Interaction between Arduino and Raspberry Pi
In this chapter, we will look at how the Raspberry Pi can work as a terminal computer to program, not only having the device as a server and deploying pages or applications but also have an IDE for programming the Arduino board. To do this we need to have the Raspberry Pi connected to the Arduino, so that they can communicate with each other.
Here are some interfaces that the Raspberry Pi has, all of these which included in the device: I2C protocol, SPI communication, USB ports, and serial UART ports. In this case, we will use the USB port to communicate between Arduino and the Raspberry Pi.
These are the steps to configure Arduino and Raspberry Pi to interact with each other:
Install Arduino IDE for the Raspberry Pi
Open your terminal with PuTTY and check the IP address of your Raspberry Pi
Execute remote access, and type the IP address
Open Arduino IDE in the graphical interface
Installing Arduino IDE in Raspbian
Type the following command to install...