Shop OBEX P1 Docs P2 Docs Learn Events
serial mis-communication between stamps — Parallax Forums

serial mis-communication between stamps

raulduke1011raulduke1011 Posts: 17
edited 2008-06-05 22:27 in BASIC Stamp
I have two bs2sx stamps which I am using for my robot. The first checks several senses and the second serves as the brain and pulls the sensors stamp for results. This was working up to a few days ago. I have no idea what I changed or what may be failing hardware wise but I can't get it back to normal. The sensors controller should only return the values 1 - 4 but I am getting results going all the way up to 98. This is driving me crazy and so any information would be a major help. Attached are the files.

Comments

  • allanlane5allanlane5 Posts: 3,815
    edited 2008-06-05 15:46
    Looks good, as far as a quick look-over can reveal.

    Things that cause this -- low batteries, bad ground wire, loose connection to a pin.
  • raulduke1011raulduke1011 Posts: 17
    edited 2008-06-05 16:01
    Thanks, that confirms my suspicion that it was the power supply. I recently had to improvise my power supply connections using a soldering iron.
  • kenwtnkenwtn Posts: 250
    edited 2008-06-05 22:27
    Maybe I am missing something, but I thought when you sent numbers using SEROUT and receiving using SERIN you need to terminate with character and use DEC formatter.

    Example

    SLAVE:
    SERIN ComLine\FC, Baud, 200, TryAgain, [noparse][[/noparse]DEC2 Command, x]
    MASTER
    SEROUT ComLine\FC, Baud, 200, TryAgain, [noparse][[/noparse]DEC2 Command, " "]

    Post Edited (kenwtn) : 6/5/2008 10:52:28 PM GMT
Sign In or Register to comment.