Raspberry Pi Tutorial 38 - Use an Arduino as a Slave with Python (Nanpy)

Опубликовано: 21 Март 2026
на канале: Alexander Baran-Harper
146,390
1.9k

Arduinos are great. The Raspberry Pi is pretty cool too. Together, they're spectacular. However writing separate codes in different languages to have the two units works together is a bit of a hassle. In this tutorial I show you how to stream commands from the Raspberry Pi to the Arduino using UART serial communication. The package is Nanpy, allowing you to run Arduino commands in a Python script.

Download links:
https://github.com/nanpy/nanpy
https://github.com/nanpy/nanpy-firmware