Shop OBEX P1 Docs P2 Docs Learn Events
Bs2SX microcontroller, servo motoring not rotating properly — Parallax Forums

Bs2SX microcontroller, servo motoring not rotating properly

StereoPonyzStereoPonyz Posts: 82
edited 2009-12-12 21:25 in BASIC Stamp
I need help, i used the examples in the manual for activity 6 that is to check the wheel rotation by inserting the duration 650 and 850

i realised even when i insert both wheels with 650, the wheels are still rotating in the opposite direction.

Do
pulsout 13, 650
pulsout 12, 650
Loop

I had done manual calibration on the servo to stop spinning at 750 already. But why is it still behaving weirdly?

Comments

  • Shawn LoweShawn Lowe Posts: 635
    edited 2009-12-12 16:55
    This question should be posed in the Basic stamp forum as the BS2SX and the SX chip are two entirely different beasts. But I think the problem you are having is the BS2SX is 20% faster than the BS2 and you have to compensate for this in your pulsout commands. Been there, keep making the mistake!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Shawn Lowe


    When all else fails.....procrastinate!
  • FranklinFranklin Posts: 4,747
    edited 2009-12-12 21:25
    It would help if you ATTACHED your actual code to the post. Also tell us which exact chip you are using, as mentioned several of the chips have different values for the timing specific commands.
    Do
    pulsout 13, 650
    pulsout 12, 650
    Loop
    
    

    You need to have a 20ms pause between each pass through the loop.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
Sign In or Register to comment.