Category: Serial Communication

Arduino SPI Tutorial

Arduino SPI Tutorial

In this tutorial we learn about SPI protocol and how to use it in Arduino. We will use SPI Protocol for communication between two Arduinos. Here one Arduino will act as Master and another one will act as Slave, two LEDs and push buttons will be connected to both the arduinos. To demonstrate SPI communication, we will control master side LED by the push button at slave side and vice versa using the SPI Serial communication protocol.

Learn more about SPI protocol and how to use it with Arduino

Controlling Arduino with Raspberry Pi using …

Controlling Arduino with Raspberry Pi using pyFirmata

We use PyFirmata firmware to give commands to Arduino using Raspberry Pi python script. PyFirmata is basically a prebuilt library package of python program which can be installed in Arduino to allow serial communication between a python script on any computer and an Arduino. This python package can give access to read and write any pin on the Arduino. So here we will run python program on Arduino using Raspberry pi.

So in this tutorial we will take advantage of this library and will use this in our Arduino board to control Arduino using Raspberry Pi.