I am new to the world of electronics as I am in my 2nd year of my apprenticeship.
For my project I am modifying an RC car and need some help with programming. First I want to read the signal output of my encoder signal and hopefully communicate with my micro controller most likely atmega16 to switch LEDs on and off or typically I could do this on my reciever end. The encoder signal has a start code of 500Hz 75% duty cycle then followed by 1kHz 50% duty cycle.
The second part of the signal has the number of function codes (n) W1
4 - End code
10 - Forward (pulse)
16 - Forward (high lvl)
22 - Turbo
28 - Forward (high lvl) & Left
ect ect.
What would be the best way to read and transpose into my program?
Thanks in advance.
For my project I am modifying an RC car and need some help with programming. First I want to read the signal output of my encoder signal and hopefully communicate with my micro controller most likely atmega16 to switch LEDs on and off or typically I could do this on my reciever end. The encoder signal has a start code of 500Hz 75% duty cycle then followed by 1kHz 50% duty cycle.
The second part of the signal has the number of function codes (n) W1
4 - End code
10 - Forward (pulse)
16 - Forward (high lvl)
22 - Turbo
28 - Forward (high lvl) & Left
ect ect.
What would be the best way to read and transpose into my program?
Thanks in advance.