Code for the transmission and reception of information over laser beams written for Arduino
First, some things you need:
- 2 * Arduino Uno or similar. (anything with an analogue read pin will probably work)
- LDR (light dependent resistor)
- 10k ohm resistor
- a laser diode
- Using the wiring diagram, assemble the circuits for the transmitter and receiver.
- Upload laser_commsV2.ino to both of the Arduino.
- Point the laser diode of the transmitter at the LDR on the receiver.
- Connect to the Arduino's over serial and set the receiver and transmitter accordingly
Now send a message over serial to the transmitter and watch it get sent over to the receiver as a laser pulse.