Go Down

Topic: Reading and writing PWM signals (Read 1 time) previous topic - next topic


Please help us in reading the PWM signals that are coming from the receiver .
We have a four channel receiver that outputs 4 PWM signals of 22 ms pulse,the on time of PWM signal varies from 1 ms to 2 ms on moving the analog stick of the transmitter from bottom to top position on channel1 and similarly on other channels.
We are new and have never read the PWM signals in atmega8,

After reading the PWM signals,we have to process those signals and then generate four PWM signals according to our logic .All ur help will be appreciated.

Website: http://www.quadrotor.co.nr

Big Oil

Use analogRead(pin) for the four different pins.  Don't use any delays in your program if you want to constantly read the inputs.  delay() will stop the program for the moment and you will miss readings.  You can look at the 'blink without delay' example in the IDE for an example of programming without the delays.


Please donot crosspost - http://arduino.cc/forum/index.php/topic,58422.0.html  +  http://arduino.cc/forum/index.php/topic,58421.0.html
this is considered inpolite at this forum.
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)


Use analogRead(pin) for the four different pins.

And how is that going to work?
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.
I speak for myself, not Arduino.


MR.robtillaart  As i am new to this website i don't know the rules..........Thanks for your nice suggestion,i'll take care from next time....

Go Up