#ARDUINO SOFTWARE SERIAL LIBRARY DOWNLOAD SERIES#
As you know, Serial Communication is a series of binary (I/O) command which originates from Digital Pins that can create High and Low voltage signals. It requires 4 wires for communication.ĭifferent micro controller board has different pin location of communication protocols. Above is an overview for the 3 communication protocols on Arduino UNO.ĮSP Software Serial is a library codes that allow users to convert 2 Digital Pins into a Software Serial Ports. SPI is commonly found in modules where speed is important such as SD card module, or sometimes sensors that requires fast information changes like temperature sensors. However, SPI is much faster than I2C due to simple protocol. Unlike I2C, SPI allows a single master device with slave devices up to 4 units only. SPI stands for Serial Peripheral Interface. It is similar to I2C which the communication protocol is specially designed for communication between micro controllers. The most common modules that use I2C communication would be the Real Time Cloak (RTC) and the LCD Display module.
The trade off for this simplified wiring is slower speeds than SPI. I2C makes it possible to connect multiple masters and slaves to your board using the exact same wires. It is very popular among modules and sensors which could potentially connect up to 128 devices on the Arduino board. I2C stands for inter-integrated-circuit, is a serial communications protocol specially designed for micro controllers communication. Beginner or entry level board such as Arduino UNO, Nano and Mini have only 1 Serial Port. It requires 2 wires for communication. It is also commonly applied on certain modules or equipment such as Energy Monitoring Device and even online monitoring platform such as Blynk App Web interface. It communicate through Rx and Tx pins and with other computer via USB port. UART stands for Universal Asynchronous Reception and Transmission, is a simple communication protocol that allows the Arduino to communicate with serial devices.