Serial Communication

Serial Communication Protocols Serial Communication Protocols

Before starting with Serial Communication Protocols, let’s break down the terminology into three parts. Communication is a very well-known terminology that involves the exchange of information between two or more mediums. In embedded systems, communication means the exchange of data between two microcontrollers in the form of bits. This exchange of data bits in a…

RS-485 MODBUS Serial Communication using Arduino UNO as Slave RS-485 MODBUS Serial Communication using Arduino UNO as Slave

Modbus is a Serial Communication protocol which was discovered by Modicon in 1979 and it is used for transmitting data over serial lines between the industrial electronic devices. RS-485 Modbus uses RS-485 for transmission lines. It should be noted that Modbus is a software protocol and not a hardware protocol. It is divided into two parts such as Modbus Master and Modbus…

Serial Communication between STM32F103C8 and Arduino UNO using RS-485 Serial Communication Between STM32F103C8 and Arduino UNO using RS-485

The communication protocols are the integral part of a digital electronics and embedded system. Wherever there is interfacing of multiple microcontroller and peripherals, the communication protocol has to be used in order to exchange bunch of data. There are many types of serial communication protocol available. The RS485 is one of the serial communication protocol and is…

RS-485 Serial Communication between Raspberry Pi and Arduino Uno RS-485 Serial Communication between Raspberry Pi and Arduino Uno

Choosing a communication protocol for communication between microcontrollers and peripheral devices is an important part of embedded system. It is important because the overall performance of any embedded application depends on communication means as it is related to cost reduction, faster data transfer, long distance coverage etc.

So far, we have…

How to Use OV7670 Camera Module with Arduino​ How to Use OV7670 Camera Module with Arduino​

The OV7670 camera module with Arduino programming has always dominated the electronics industry, as it has lots of applications, such as visitor monitoring systems, surveillance systems, attendance systems, etc.  The OV7670 camera module with Arduino that we use today is smart and has a lot of features that were not present in earlier cameras. This comprehensive…

RS485 Serial Communication between Arduino Uno and Arduino Nano RS485 Serial Communication between Arduino Uno and Arduino Nano

Choosing a communication protocol for communication between microcontrollers and peripheral devices is an important part of embedded system. It is important because the overall performance of any embedded application depends on communication means as it is related to cost reduction, faster data transfer, long distance coverage etc.

In the previous…

How to use SPI Communication in STM32 Microcontroller How to Use SPI Communication in STM32 Microcontroller

In our previous tutorials, we have learned about SPI and I2C communication between two Arduino boards. In this tutorial we will replace one Arduino board with the Blue Pill board that is STM32F103C8 and will communicate with the Arduino board using SPI bus. In this STM32 SPI Example, we will use Arduino UNO as Slave and STM32F103C8 as Master with Two 16X2 LCD display…

Arduino I2C Tutorial: Communication between two Arduino Boards How to use I2C in Arduino: Communication between two Arduino Boards

In our previous tutorial learned about SPI communication in Arduino. Today we will learn about another Serial Communication Protocol: I2C (Inter Integrated Circuits). Comparing I2C with SPI, I2C has only two wires while SPI uses four, and I2C can have Multiple masters and slaves, while SPI can have only one master and multiple slaves. So there are more than one…

How to use SPI in Arduino: Communication between two Arduino Boards How to use SPI (Serial Peripheral Interface) in Arduino to Communication between two Arduino Boards

A Microcontroller uses many different protocols to communicate with various sensors and modules. There are many different types of communication protocols for wireless and wired communication, and the most commonly used communication technique is Serial Communication. Serial communication is the process of sending data one bit at a time, sequentially…

How to use Bluetooth with MATLAB for Wireless Communication How to use Bluetooth with MATLAB for Wireless Communication

Bluetooth is the simplest and most popular protocol for short range wireless communication in embedded systems. Bluetooth is not only used for transferring the data from one device to another but also used to control the devices wirelessly. Almost every electronic gadget has Bluetooth support now days so it is wise choice to have Bluetooth control option in your embedded…

Serial Communication between MATLAB and Arduino Serial Communication between MATLAB and Arduino

MATLAB is versatile software that can be used for wide variety of applications. In previous tutorials of MATLAB, we have explained how to use MATLAB to control DC motor, Servo motor and Home appliances. Here in this tutorial, we will learn how to use MATLAB for Serial Communication. For the receiving end of serial communication, we are here using Arduino…

Introduction to Bit Banging: SPI communication in Arduino via Bit Banging Introduction to Bit Banging: SPI communication via Bit Banging

Communication Interfaces are one of the factors that are considered when selecting a microcontroller to be used for a project. The designer ensures that the microcontroller being selected has all the interfaces required to communicate with all the other components to be used for the product. The existence of some of these interfaces, like SPI and I2C on microcontrollers,…