YOU’LL NEED THIS
• Raspberry Pi
• Latest Pi OS
• Arduino Uno (or compatible)
• Breadboard
• 10K potentio-meter
• LED
• 330-Ohm resistor (orange-orange-brown-gold)
• 5x M2M jumper wires
• Code: https://git hub.com/lesp/ LXF-pyFirmata
The Arduino and the Raspberry Pi both have their strengths and weaknesses, but what if we could harness both of them to produce projects? Firmata is a firmware that enables our Raspberry Pi (or another Linux computer) to talk to an Arduino and use it as an extension of the GPIO. In this tutorial, we shall learn how to configure an Arduino that reacts to commands sent via pyFirmata, a Python version of Firmata. This project would be ideal for those old Arduino clone boards that many makers have in their bits box, pressing them into service to provide extra GPIO and analogue inputs