Shop OBEX P1 Docs P2 Docs Learn Events
Pulsin from r/c receiver — Parallax Forums

Pulsin from r/c receiver

ArchiverArchiver Posts: 46,084
edited 2003-12-04 07:24 in General Discussion
Hi,

I'm having trouble centering my servos, so what I want to do is get
the pulse from my r/c receiver, get my bs2p to read it, make
the "center" value +/- 10ms, and send the same pulse to 4 modified
servos.

Currently, I have 2 control wires from my Hitec receiver from ch. 1
(plugged into P1) and ch. 2 (plugged into P2). 2 servos are
connected to P14 (ch. 1) and the other 2 servos are connected to P15
(ch. 2). I can pulsout the servos, but I'm having trouble with
pulsin.

If anyone knows how to get the pulse from an r/c receiver, please
let me know. The center value for my bs2p is 1795 ms.

Thanks,
Harrison

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-12-01 13:23
    Hi Harrison,

    I'm doing a similar thing with a Robbe Futaba receiver.

    My problem was that I did'nt get response on Pulsin, the cause was that the
    pulse-voltage from the Futaba was about 3 volts which is not enough for te
    Stamp.

    My solution is to put in a transistor which amlifies the pulse and also
    inverts the signal. No problem, the Stamp can handle a negative Pulsin.

    It works fine here, I hope you will find a solution to your problem to.

    Regards,

    Klaus


    Oorspronkelijk bericht
    Van: gizmo_dude_2000 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=cvW8pnI8CuyDtyxGK8DwiZII1LviUk27AptiM0O_DSk6sTHvX6xb3mdyErmh4FjYmg1VxJ7prLsT15Jd9bxw]gizmo_dude_2000@y...[/url
    Verzonden: maandag 1 december 2003 2:08
    Aan: basicstamps@yahoogroups.com
    Onderwerp: [noparse][[/noparse]basicstamps] Pulsin from r/c receiver


    Hi,

    I'm having trouble centering my servos, so what I want to do is get
    the pulse from my r/c receiver, get my bs2p to read it, make
    the "center" value +/- 10ms, and send the same pulse to 4 modified
    servos.

    Currently, I have 2 control wires from my Hitec receiver from ch. 1
    (plugged into P1) and ch. 2 (plugged into P2). 2 servos are
    connected to P14 (ch. 1) and the other 2 servos are connected to P15
    (ch. 2). I can pulsout the servos, but I'm having trouble with
    pulsin.

    If anyone knows how to get the pulse from an r/c receiver, please
    let me know. The center value for my bs2p is 1795 ms.

    Thanks,
    Harrison


    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.


    Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
  • ArchiverArchiver Posts: 46,084
    edited 2003-12-01 14:31
    Our original BS1 AppNotes show how to read the pulse from a receiver and
    display it on a serial LCD -- check it out and adapt it for your BS2p
    (which has better PULSIN and PULSOUT resolution).

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office


    Original Message
    From: gizmo_dude_2000 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=77KZR75x7M-mgIV4eQJ7SKio2gMfCZ168GkB0y0O9Rij4CnM2O60BXc70JwIMa0iF4uYwoUOjCrGPjluscBfOHH_Cw]gizmo_dude_2000@y...[/url
    Sent: Sunday, November 30, 2003 7:08 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Pulsin from r/c receiver


    Hi,

    I'm having trouble centering my servos, so what I want to do is get
    the pulse from my r/c receiver, get my bs2p to read it, make
    the "center" value +/- 10ms, and send the same pulse to 4 modified
    servos.

    Currently, I have 2 control wires from my Hitec receiver from ch. 1
    (plugged into P1) and ch. 2 (plugged into P2). 2 servos are
    connected to P14 (ch. 1) and the other 2 servos are connected to P15
    (ch. 2). I can pulsout the servos, but I'm having trouble with
    pulsin.

    If anyone knows how to get the pulse from an r/c receiver, please
    let me know. The center value for my bs2p is 1795 ms.

    Thanks,
    Harrison


    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject
    and Body of the message will be ignored.


    Your use of Yahoo! Groups is subject to
    http://docs.yahoo.com/info/terms/




    This message has been scanned by WebShield. Please report SPAM to
    abuse@p....
  • ArchiverArchiver Posts: 46,084
    edited 2003-12-04 07:22
    Just a quickie as I read through some of these
    messages. Are you sharing a ground between r/c
    receiver and stamp??

    Matt

    __________________________________
    Do you Yahoo!?
    Free Pop-Up Blocker - Get it now
    http://companion.yahoo.com/
  • ArchiverArchiver Posts: 46,084
    edited 2003-12-04 07:24
    Also, you will read a high for the pulsin, so
    try this.


    servo1 var word

    loop1:
    pulsin pin#, 1, servo1
    debug dec servo1,cr
    goto loop1



    __________________________________
    Do you Yahoo!?
    Free Pop-Up Blocker - Get it now
    http://companion.yahoo.com/
Sign In or Register to comment.