Skip to content

Instantly share code, notes, and snippets.

@theacodes
Created February 25, 2018 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theacodes/9e8fa5f51955d8243d977ae28295a3aa to your computer and use it in GitHub Desktop.
Save theacodes/9e8fa5f51955d8243d977ae28295a3aa to your computer and use it in GitHub Desktop.
Write our robot code in Python on the Raspberry Pi.
We'll use the Arduino as a daughterboard. It'll handle I/O.
Use a serial protocol to communicate between the 2.
Raspberry Pi (Python) <-> USB Serial <-> Arduino (Firmware)
How do we get there?
1. Write a Arduino sketch to act as our firmware. This will receive serial commands and send back data.
2. Write a Python library to send commands and receive data back from the arduino.
3. Upload this script to the raspberry pi.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment