We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpElectronics,  Serial Library › multiple servos controlled
Page Index Toggle Pages: 1
multiple servos controlled (Read 929 times)
multiple servos controlled
Apr 25th, 2010, 2:05pm
 
I'm currently working on a robotic snake, and I've finally gone from building to programming. However, I'm only in high school, and I need some help with the serial communications. How the system works is all the positions of the servos are calculated on the computer, and transmitted to the snake. Currently I'm using a (dreaded) basic stamp as a servo controller (my actual servo controller wasn't capable of sending servo signals out far enough to get through the body of the snake), and he arduino I planned on using decided to bite the dust.



So anyways, my problem is how to go about sending multiple bytes to the basic stamp and having it be able to tell them apart and specify which numbers go for which servo. I'm assuming I'm going to have to address each number sent, but I don't really know the proper way to go about doing this. Any help you guys have about the Processing code (and maybe even some basic stamp code if I'm lucky!) would be greatly appreciated.

Page Index Toggle Pages: 1