garbage var from pulsin,,
ok im using a bs2, to test something, i was using this code,
________________
PAUSE 250
PLS VAR Word
main
PULSIN 15, 1 , pls ' recieve hi pulse store in pls varible
DEBUG pls
GOTO main
__________________
my goal is to see what kind of varible comes up at certian points,, , with pin 15 conected to the signal wire off of a futaba reciever, it seems to work, but this is what the varible reads,
___
0Ëê 3:
t
___
i was expecting a number read out, around150 , or 1.50 , which would be the pulse that operates a servo, any help turning the jiberish i got into the numbers i expected?i suspect im missing a bit of code, to tell the bs2 how to decipher the signal its recieving
as expected,, i did infact get a change in the out put of the debug terminal, when i controled the reciever via remote , only i am inable to compare the jibberish i got,
fyi using 10 k ohms resistor betweensignal wire and input pin 15 on bs2, plan to build using pic just testing with what i got
why it weas garbage and how to fix it,
ok, the numbers we were thinking are too low look around the 700 regon,, connect the servo batery negitive to the bs2 or pic - power suply,, since the pulse is sent on hi,,, the negitives must be conected for the ic wether (pic or bs2) and the servo pack, other wise you get the junk output, once this conection is made every thing works ,, with dramatically simple coding