Radio control of a
Britannicus
Posts: 98
:freaked:Hi there -
I'm hoping to pick up input from a radio control receiver - So i figure it'll be generating an output pulse of X milliseconds depending on the position of the joystick.
my intention is to use a BS2 STAMP to control a series of servos to walk a quadruped robot around. I can generate the necessary 8 servo sequence, but want to use STAMP to pick up a simple forward, backward, left right signal on 2 of the Ports - 8 run the servos.
Now here's the Question - how can I pick up a value of an RC pulse so I can store it in a variable and use it to Gosub a step routine?
I thought that Pulsin was the correct command (believing that it simply recorded a value for the pulse length, but reading the manual i notice that
1/ it won't record a long enough pulse 131 Ms max when I need between 350 and 1200 Ms
2/ I seem to get some random values on the port when I rig a rudimentary circuit
I'm sure someone out there has tried to control a stamp with a RC input - what's the secret ??
I'm hoping to pick up input from a radio control receiver - So i figure it'll be generating an output pulse of X milliseconds depending on the position of the joystick.
my intention is to use a BS2 STAMP to control a series of servos to walk a quadruped robot around. I can generate the necessary 8 servo sequence, but want to use STAMP to pick up a simple forward, backward, left right signal on 2 of the Ports - 8 run the servos.
Now here's the Question - how can I pick up a value of an RC pulse so I can store it in a variable and use it to Gosub a step routine?
I thought that Pulsin was the correct command (believing that it simply recorded a value for the pulse length, but reading the manual i notice that
1/ it won't record a long enough pulse 131 Ms max when I need between 350 and 1200 Ms
2/ I seem to get some random values on the port when I rig a rudimentary circuit
I'm sure someone out there has tried to control a stamp with a RC input - what's the secret ??
Comments
350 milliseconds is over 1/3 of a second while 1200 milliseconds is 1.2 seconds long. Way too long for an RC pulse. I think you are missing a decimal.
PULSIN is the correct command for reading an RC pulse.
Rich H
Or
This code should come before the others if you decide to use it;
Rich H
this isn't as hard as I thought it would be (famous last words) - I really appreciate your help - these STAMPS are brilliant !