Organize and Share your Electronics the way you want. Sign-Up for a free account now. It takes only 30 seconds!

Radio Control Encoder

Radio Control Encoder

A modern RC encoder, whether it be for an AM or FM system, would typically produce of a number of pulses corresponding to the number of channels, plus a longer sync pulse to enable the decoder at the receiver end to extract the pulses in the correct order.
This combined pulse train is called a Frame, and is approximately 20 milliseconds long. A typical channel pulse at neutral is 1.5 milliseconds long, and consists of a variable high for 1100 microseconds, and a fixed low of 400 microseconds. The fixed low is required by most AM receivers for automatic gain control.

The decoder circuit will look at the pulse length from rising edge to rising edge, so we only need to vary the high, giving a combined pulse from 1000 microseconds to 2000 microseconds, for full travel of the control stick.

An actual control stick only moves about 90 degrees, so the voltage swing is small. This is the reason for the rather complicated maths done on the ADC value.

I’ve also scaled the equation to enable an eight bit A to D pic to be used. ( 16C711) A great advantage of using the ADIN function instead of POT, is that the channels can be mixed or reversed externally. Obviously this could also be done in software, but that is beyond my abilities at this moment ( nor with 30 lines of code !!!).

Another issue to address is the terms Fixed Frame Rate, and Variable Frame Rate. This code produces a Variable Frame Rate, as the varying pulse lengths add or subtract from the total Frame time. This would be easy to fix with more code. Most modern decoders are quite happy with both, but a “nice to have” would be a link on the encoder board, to change from one to the other.

Visit Here for more.







 

More Articles to Read

An Arduino laser pinball machine
An Arduino laser pinball machine
CTCSS fingerprinting: A method for transmitter identification
CTCSS fingerprinting: A method for transmitter identification
TI DLP® Pico™ Technology for Aftermarket Head-up Displays
TI DLP® Pico™ Technology for Aftermarket Head-up Displays
Brute force computation for cheap log digital potentiometer
Brute force computation for cheap log digital potentiometer
Smart "Homer"
Smart "Homer"
A DIY Segway-style vehicle
A DIY Segway-style vehicle
Superbeta transistors inside: Die photos and analysis of the LM108 op amp
Superbeta transistors inside: Die photos and analysis of the LM108 op amp
Peeqo is a desktop bot that communicates through GIFs
Peeqo is a desktop bot that communicates through GIFs
Using a Programmable Input Multiplier to Minimize Integer Boundary Spurs
Using a Programmable Input Multiplier to Minimize Integer Boundary Spurs
Serial seven segment LED display shield
Serial seven segment LED display shield

Top


Shares