Let's Make Robots!

Can a Picaxe "Read" Servo Outputs?

So I am playing with a RF radio control system. For one instance, it is a perfect set-up just to have a pot stuck on to a servo (all the outputs on the receiver are servo outputs) and the pot data to be fed into an ADC on my picaxe. Now, seeing that I have a total of 8 channels on the RC unit, 8 individual servos, 8 pots and 8 ADC inputs is just not feasable.


I know that servos run off of little pulses, I'm sure there is a way to have a Picaxe "read" these pulses and execute a chunk of code. Any thoughts? There is a "count" code that will count pulses within a given time, maybe that is a way to go...?

At any rate, give me any thoughts you have and I would give my right kidney for some chunks of code.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
From my exp with a (parallax)bs2(maybe the bs1 as well), you would normally control the servo with a pulsout command. I think the servo command does this exact thing only in a nice little easy to use wrapper. I would assume that pulsin could read this information. I have yet to try it, but something I've been interested in finding out. I was going to look at the bs1 manual to see if it has any info on servo control as it's timing is very similar to the picaxe. Could be something to look into...?
Check out Chris' walk through.