PDA

View Full Version : RC car Receiver and BS2



Miles. k
11-06-2009, 06:28 AM
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

SRLM
11-06-2009, 07:58 AM
Try "DEC" (without quotes) before pulses in the Debug.

Miles. k
11-06-2009, 08:57 AM
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.

PJ Allen
11-06-2009, 10:00 AM
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.

stephenwagner
11-10-2009, 08:58 PM
GOOGLE National Semiconductor LM1871 & LM1872

I hope this helps.

SJW