I/O LED (Part 5)

Part 123456

And now comes an example of an effective use of the I/O LEDs: single LED communication. the next coming  videos illustrate the operation of a simple but yet full of promises application. Two identical modules are used, each of them using an Arduino Nano, a LED and a switch. When pressing the switch, the sketch will generate a random byte value which is converted in light pulses by the LED. The other module, which is in idle state, reads the pulses and converts them back in a byte value. While doing this, the green built in LED from the Arduino board will glow and perform some sort of acknowledgment of receipt.

Each module is then connected to a console (*) so that we can track the output and the input data. The status LED on top of the console window will flip from green (idle state) to blue (send/receive state) while sending or receiving bytes and data will be  added to the log messages, in order to check the reliability of the transmission. The next video illustrates the back and forth communication between each module. The highest achievable speed depends very much on the diode; with standard diodes, I managed to achieve a baud rate of 110.

* CommWithMe is the name of this fit for purpose console application. It has been written for Windows in VB.NET and the installation package is available as is on request.

Leave a Reply

You must be logged in to post a comment.