Serial Communications With Arduino 4 Steps with PicturesSerial communications can be used in many ways, but in this situation we will use it to turn off and on an LED. Just add an LED to pin 1. Then connect your USB cable. FT232RL USB to Serial Adapter for PIC AVR ATMEGA ARDUINO MCUs Parts List. Serial communications can be used in many ways, but in this situation we will use it to turn off and on an LED. Just add an LED to pin 13 and ground. Arduino is an open source computer hardware and software company, project, and user community that designs and manufactures singleboard microcontrollers and. The Arduino Due is the first Arduino board based on a 32bit ARM core microcontroller. Finally Famous Zip. With 54 digital inputoutput pins, 12 analog inputs, it is the perfect board. Addressing a OneWire device. Each 1Wire device contains a unique 64bit ROM address, consisting of an 8bit family code, a 48bit serial number, and an 8bit CRC. Arduino is an opensource electronics prototyping platform based on flexible, easyto use hardware and software. Its intended for artists, designers, hobbyists, and. Create an integer to store the incoming serial byte. I decided to name it in. ByteIn the void setup, set pin 1. Serial. beginlt baud rate to initiate the serial communication. We used 9. 60. 0bits per second, so we added Serial. So, we use Serial. This function returns the number of bytes that are available to be read. So, if we use ifSerial. Serial. read, which will read the byte. Byte. In total, this line read in. Byte Serial. read While still being inside the main if statement lt ifSerial. Arduino Serial Output Pin' title='Arduino Serial Output Pin' />Arduino Serial Output PinTo read or write a letter to a variable, we will put the letter in single quotation marks. We wanted our LED to turn on if we sent an a to the Arduino. Thus, our if statement read ifin. Byte a inside the if statement we added set the pin to HIGH. Also, we used Serial. Serial monitor, that it has read an a and has turned on the LED. This if statement looked like this ifin. Byte a byte is adigital. Write1. 3, HIGH Serial. LED On We also wanted the LED to turn off if any other letter was read. LED off. This all may seem confusing, but it is easier to understand if you look at the final code on the next page.