Shop OBEX P1 Docs P2 Docs Learn Events
Newbie Questions sensors and servo control — Parallax Forums

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 !!!!!!!!! smile.gif

Comments

  • BeanBean Posts: 8,129
    edited 2009-01-24 18:37
    Andy,
    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.


    ·
  • Capt. QuirkCapt. Quirk Posts: 872
    edited 2009-01-25 03:47
    Arrange your program loops so all your refresh timming (your PAUSE) statements don't add on to each other.

    Post Edited (Capt. Quirk) : 1/25/2009 3:54:23 AM GMT
Sign In or Register to comment.