Linux Format

Arduino to Pi GPIO comms using Python

YOU NEED

Raspberry Pi

Latest Pi OS

Arduino Uno (or compatible)

Breadboard

10K potentiometer

LED

330-Ohm resistor (orangeorangebrown-gold)

5x M2M jumper wires

Code: https://git hub.com/ lesp/LXFpyFirmata

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

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format5 min read
Some Ansible Advice For Around The Home!
Of late, this writer has been busy creating new virtual hosts for different things and decided that it would be an ideal time to get stuck into Ansible. Things have evolved in system management since Bash. Ansible is a great way to deploy software c
Linux Format14 min read
Ubuntu at 20
Without Ubuntu, the current Linux landscape would be unrecognisable. Back in October 2004, the first 4.10 (2004.10) release of Ubuntu, with its intriguing Warty Warthog code name, leapt from obscurity to being one of the most downloaded Linux distrib
Linux Format3 min read
Kernel Watch
Linus Torvalds announced the fourth RC (Release Candidate) for what will become Linux 6.9 in another few weeks. In his announcement, he noted that there was “Nothing particularly unusual going on this week – some new hardware mitigations may stand o

Related Books & Audiobooks