Pages: [1]   Go Down
Author Topic: Reading and writing PWM signals  (Read 430 times)
0 Members and 1 Guest are viewing this topic.
Indore
Offline Offline
Newbie
*
Karma: 0
Posts: 14
Working on Quadrotor Helicopter these days
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Mayank Gupta

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 180
Posts: 8081
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

pulsein(pin, HIGH) returns the pulse width in microseconds.

the Servo library will output PWM pulses suitable for driving standard servos.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Indore
Offline Offline
Newbie
*
Karma: 0
Posts: 14
Working on Quadrotor Helicopter these days
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks a lot,today we have done the same thing and we were really able to read and write the PWM pulse......
Logged

Mayank Gupta

Pages: [1]   Go Up
Jump to: