Now that we have seen how to communicate between Arduino and Raspberry Pi, to control the board, we can apply this to our security system project. We need to do this for communicating with and controlling our camera from the Raspberry Pi:
On the Raspberry Pi we need to do the following:
The following section is the sketch that should be download in the Arduino board:
First we start the serial communication:
void setup ...