APC

Arduino to Pi GPIO comms using Python

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

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

More from APC

APC2 min read
Ducky ProjectD Outlaw 65
PRICE $499 WEB www.duckychannel.com.tw If you’ve ever wanted to build your own keyboard, then the Ducky ProjectD Outlaw65 is a simple and easy way to go about it. Included in this compact kit are most of the pieces required to build a mechanical key
APC3 min read
MSI Project Zero B650M & Pano M100R PZ
PRICE $349 (motherboard); $149 (case) WEB www.msi.com Cables. You can’t live with them and you can’t yet live without them. Or can you? If you can’t see them, do they really exist? Deep philosophical questions aside, the humble PC has come a long wa
APC1 min read
Neural Parasite
PRICE Free PLATFORM PC WEB bit.ly/NeuralGame Before WASD and mouse-aiming became the norm, there were all sorts of crazy control schemes for first-person games, and in that light Neural Parasite’s isn’t too bizarre. You move with your feet – by which

Related