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
آی-ویدئو