Universumgames / hsnr_esp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Communication between Arduino Uno's through light

created by Tom Arlt, Florian Meyer, Henning Müller, Florian Körwer

This project is a simple Aduino Uno project for communication between two Arduinos via light and controlling them via a serial monitor.

Installation

This project was created with PlatformIO, an extension for VS Code to write Arduino programs, compile and write the binaries to an Arduino.

To use our project, open the platformIO project, change the upload_port in platformio.ini to the port your arduino is plugged into and upload the program.

Wiring Schematic

Usage

  1. Once uploaded, the arduino can communicate with another one as long as they are in LOS (Line of sight) and pointing directly at each other. The photoresistor should be facing the leds, to achieve that, the legs problably have to be bent.
  2. Once placed correctly, you can start to open a serial monitor. You could use the integrated serial monitor in PlatformIO, the integrated serial monitor in the Arduino IDE or Putty, a great tool for using all kinds of connectivity like Serial, SSH, Raw, Telnet and Rlogin, or one of it's successors.
  3. Select the Port your Arduino is plugged into, select the baud rate your arduino is sending/recieving to/from the serial monitor (the default is 9600, but can be easily changed in config.hpp)
  4. If everything works, you should be able to recieve encoded message from another Arduino and read the decoded result in your terminal, as well as write a message yourself and send it to the other Arduino.

About

License:MIT License


Languages

Language:HTML 72.0%Language:C++ 28.0%