An IR receiver for AIM lap timing beacons
The code is written to run on an AVR microcontroller. This was chosen over PIC32 because I already knew how to use interrupts in AVR-C and I didn't want to learn MP-Lab
Measures the width of IR pulses for testing, diagnostics, and analysis
most functional code
referance code mooched from https://ucexperiment.wordpress.com/2012/02/18/arduino-ir-lap-timer/
The AIM IR beacon emits a series of infrared pusles modulated over a 38khz carrier frequency. The beacon emmits pulses of two widths:
- 5900 microseconds -- long pulse
- 1190 microseconds -- short pulse The pulses are emitted in the following sequence:
- long plulse
- short pulse
- short pulse
This sequency repeats indefintiley from start up to power off.
The reciever detects the long and short pulses. It waits for 3 long pulses (called "tokens" in code) to determine if the ir signal is comming from a beacon or interfearence.
The number of short pululses received between long pulses is convereted to the Base ID, which will hopefull allow for more multiple stations around the track in the future.