Shop OBEX P1 Docs P2 Docs Learn Events
Need Help — Parallax Forums

Need Help

t2ppt2pp Posts: 5
edited 2007-09-05 04:15 in BASIC Stamp
I just purchased a BS2 microcontroller and have been experimenting with it.· I also have a futuba remote controller and receiver and two servos.· I’m trying read the pulse transmitted by the receiver to the servo.· When I use the pulsin function, I keep on getting a zero as that value.· What am I doing wrong?· Can anybody help?

Comments

  • dandreaedandreae Posts: 1,375
    edited 2007-09-04 21:56
    Here is a sample program (attached)·using the BASIC Stamp 2 that uses an RC radio to control a Boe-Bot.



    Dave


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Dave Andreae

    Parallax Tech Support
  • t2ppt2pp Posts: 5
    edited 2007-09-04 22:40
    I tried your program Dave.· Servo just rotates to one side.· Can I connect directly from the receiver to the BS2 or am I going to need some other form of circuitry?
  • dandreaedandreae Posts: 1,375
    edited 2007-09-04 22:55
    That is correct if you are using standard servos.· The sample code that I sent you was for continuous servos.·Here is another code that uses standard servos with an RC radio attached.



    Dave


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Dave Andreae

    Parallax Tech Support
  • t2ppt2pp Posts: 5
    edited 2007-09-05 04:15
    I tried your program and for some reason I keep on getting a zero value with the pulsin command. I contacted tech support and was told I needed to filter out the pulse in order to get an accurate reading. Is this true and if so how do I accomplish this?
Sign In or Register to comment.