Shop OBEX P1 Docs P2 Docs Learn Events
Need Help Via Communication — Parallax Forums

Need Help Via Communication

What I would like to do and was wondering if it was possible was to have 2 boe boards communicate via a servo wire connection. Like a pulseout and pulsein command. say i send out a servo position of 230 the other chip would pick it up and do a function with that associated number. thanks for any suggestions. [noparse]:)[/noparse]

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-03-29 05:45
    Yes, you can do that. The only issue is that the receiving Stamp has to be ready at the PULSIN before the other Stamp sends its pulse.
  • edited 2008-03-30 02:31
    how do we time that?? thanks again for the help.
  • Mike GreenMike Green Posts: 23,101
    edited 2008-03-30 05:46
    If the sending Stamp has a schedule like it sends a pulse roughly every 20ms, then the receiving Stamp just has to take a little less than 20ms to process the information from the previous pulse before it does its PULSIN. If the sending Stamp has no schedule, then it could send a long pulse (longer than the data pulse) prior to the pulse with the data. The receiving Stamp can check its PULSIN value and, if it's not long pulse, it can immediately do another PULSIN to wait for the next pulse. The reason for this is, if the receiving Stamp gets out of sync with the sending Stamp, the long pulse can't be confused with the data pulse. What you're trying to avoid is the receiving Stamp starting its PULSIN in the middle of a data pulse. Worse come to worst you'll miss one data pulse before getting in sync.
Sign In or Register to comment.