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

Interactive geodesic LED dome = extreme geometric fun!
Interactive geodesic LED dome = extreme geometric fun!
Guide to build your 3.3v power supply
Guide to build your 3.3v power supply
SDR radio breathes life into a 75 year old Marconi CR100
SDR radio breathes life into a 75 year old Marconi CR100
A Time for Ranting!
A Time for Ranting!
Emulate a Commodore 64 keyboard with a modern PC and an Arduino
Emulate a Commodore 64 keyboard with a modern PC and an Arduino
USB2005 and USB97C202 Sharing ATA/ATAPI Drive w/ Another Controller
USB2005 and USB97C202 Sharing ATA/ATAPI Drive w/ Another Controller
Robotic Cat Laser
Robotic Cat Laser
LED traffic light
LED traffic light
Estimating Power for ADSP-BF561 Blackfin® Processors
Estimating Power for ADSP-BF561 Blackfin® Processors
Teach Your Arduino to Switch Itself Off!
Teach Your Arduino to Switch Itself Off!

Top




Shares