Newbie Questions sensors and servo control
I have made the transition to the sx microcontroller line from the basic stamp 2 and had a few quick questions.
How do i send a signal to a servo:
In basic stamp is was just pulsout, 1, 750? is their an easy equivalant?
Also I have sonar modules and tilt sensor and was wondering if they would work with the sx? If so how could i code is so they would work?
Thanks for any help that you can offer !!!!!!!!!
How do i send a signal to a servo:
In basic stamp is was just pulsout, 1, 750? is their an easy equivalant?
Also I have sonar modules and tilt sensor and was wondering if they would work with the sx? If so how could i code is so they would work?
Thanks for any help that you can offer !!!!!!!!!
![smile.gif](http://forums.parallax.com/images/smilies/smile.gif)
Comments
In SX/B the PULSOUT command is in 10uSec instead of 2uSec so you would use "PULSOUT RA.0, 150".
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
·The next time you need a hero don't look up in the sky...Look in the mirror.
·
Post Edited (Capt. Quirk) : 1/25/2009 3:54:23 AM GMT