Shop OBEX P1 Docs P2 Docs Learn Events
RC car Receiver and BS2 — Parallax Forums

RC car Receiver and BS2

Miles. kMiles. k Posts: 34
edited 2009-11-10 12:58 in BASIC Stamp
I am using a 2 channel futaba AM transmitter and receiver with a 75.990MHz crystal and I'm trying to use a debug terminal to display the number of servo pulses that the receiver is receiving so i could configure a robot work with my RC controller. i used this code and it displays odd characters when i pull the trigger like "`e K~ 0123"

' {$STAMP BS2}
' {$PBASIC 2.5}

pulses VAR Word

DO

PULSIN 1, 1, pulses
DEBUG HOME, pulses

LOOP

any help would be greatly appreciated, if my post is unclear just notify my on what i should clear up.

Thanks,
Miles

Comments

  • SRLMSRLM Posts: 5,045
    edited 2009-11-05 23:58
    Try "DEC" (without quotes) before pulses in the Debug.
  • Miles. kMiles. k Posts: 34
    edited 2009-11-06 00:57
    now the debug window only shows numbers but the numbers range from 6000 to 9000 and i know that its a bit high for sevo pulses.
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2009-11-06 02:00
    Miles. k said...
    ·I'm trying to use a debug terminal to display the number of servo pulses that the receiver is receiving...
    PULSIN returns a value that correlates to the input pulse's duration (time), it's not the number of pulses.
  • stephenwagnerstephenwagner Posts: 147
    edited 2009-11-10 12:58
    GOOGLE National Semiconductor LM1871 & LM1872

    I hope this helps.

    SJW
Sign In or Register to comment.