Reading Servo Pulses

I have my wixels controlling servos quite nicely, thanks to the servo library. I was wondering if the reverse was available? Is there code or a library that anyone knows of that reads the servo output of a standard R/C receiver and deposits the pulse length data for each channel in a set of variables?

Hi, martan.

Unfortunately, we do not have a library for reading standard RC servo pulses with the Wixel. If you are interested in building one yourself, I recommend reading the datasheet for the Wixel’s microcontroller to learn about pin change interrupts and timers to give you a place to get started.

You might also consider looking over the OrangutanPulseIn source code. However, keep in mind this code is written for a different processor, but it should give you a general idea of how to read standard RC servo pulses.

-Derrill