AnsweredAssumed Answered

STM32F103 how to encode in a packet ppm signals

Question asked by anton.bogdan on Jan 3, 2015
Latest reply on Jan 3, 2015 by Clive One
Hello, i am staring a remote control project for a quadcopter, the main "processor" is a stm32f103c8t mcu wich is intended to work with nrf24l01 or cc2500 wireless devices.

My main concern is after reading lets say 4 adc channels wich are wired with my analog potentiometers, i want to generate a ppm frame with a frequency of 50 hz, each 50hz frame will contain lets say 4 ppm impulses wich the width of the impulse vary between 1ms and max 2ms,  this means that my 4 impulses accumulates a maximum lenght 8 ms, and the remains of 12 ms are free for the moment.
Ok, lets say i understand the encoding of each ppm impulse in the 50hz frame.
I was thinking of reading adc signals and convert them to  values between 1000 and 2000 wich are considerd to be microseconds, and after loading them in a timer.

But does anyone have a ideea how to encode these 4 impulses in one packet/byte ?

My experience with ppm signals is zero :(