How to use 2 Basic Stamps on one robot?
Hi, there!
I've been searching the for quite some time now and I can't find any help... Does any of you know, how to do it - how to have to BSs on one robot? I know it can be done, but I don't know how!
If you know anything, please reply!
roksraka
I've been searching the for quite some time now and I can't find any help... Does any of you know, how to do it - how to have to BSs on one robot? I know it can be done, but I don't know how!
If you know anything, please reply!
roksraka
Comments
If so, how do you want them to communicate? What tasks are they?
The problem with your question is that there are lots of answers.
Which one to choose depends on what you want to do.
In the Basic Stamp Manual, there's an example of hooking two or more Stamps into a network.
Look in the chapter on the SEROUT statement.
There's a pair of Nuts and Volts Columns on networking Stamps.
Look through the index of Nuts and Volts Columns for the specific column #s.
Unless you're not telling us everything, you have no synchronicity between the two Stamps which SERIN/SEROUT would have given you. What this means is that the data fielded by the BS2px may not be the freshest data available, just the most recently recorded. I don't know if that makes any difference to you, but it's something to keep in mind.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When all else fails, try inserting a new battery.
True, the data may be up to 100 ms old, but since this is part of the real world (and hence moves in time increments of seconds) I'm not to worried about it. I'd be worried with serout and serin since the BS2 may send it at the wrong time, and do so often. Plus, I don't like to keep things waiting (as would be the case).
In short, I think it's a more elegant and reliable solution than serial. (so there!)
Edit: I'm far from done with debugging, but the comunication is not the problem (it's the usb datalogger that is causing the most problems)
http://forums.parallax.com/showthread.php?p=719314
http://forums.parallax.com/showthread.php?p=733853
http://forums.parallax.com/showthread.php?p=737034
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
Maybe this can be helpful for you:
http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/vol3/col/nv81.pdf