PyFirmata by Tino de Bruijn is an amazing tool for combining the powers of the Raspberry Pi (full operating system, python, …) and the Arduino (high time precision, …). This will allow us to control the Arduino Mega from the Raspberry Pi. This is important, because of two reasons:
The Raspberry Pi has the input data from the ethereum node script.
...
Then, connect the pin D3 of the Arduino to a LED and a 270Ω resistor on the breadboard, like this
...
.
Now, start the script by typing:
...