Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kelvingakuo/993193941b1bd43d681fbd42ed920bec to your computer and use it in GitHub Desktop.
Save kelvingakuo/993193941b1bd43d681fbd42ed920bec to your computer and use it in GitHub Desktop.
##### Testing the different components separately before building the whole system
## THINGS YOU NEED TO SET UP
1. On the Raspberry Pi
```bash
pip install nanpy
pip install pygame
```
2. On a PC with the Arduino IDE
```bash
git clone https://github.com/nanpy/nanpy-firmware
cd nanpy-firmware
./configure.sh
```
3. Open 'Nanpy/cfg.h' and set '1' to Servo, Wire, LCD, and Ultrasonic
4. Copy the Nanpy dir to your Arduino IDE's sketchbook (usually 'Documents/Arduino/')
5. Open Arduino IDE. Connect your Arduino.
6. Click File > Sketchbook > Nanpy > Upload
7. When successfully uploaded, connect the Arduino to your Raspi (use the USB ports obviously)
8. Run any of the starter examples [here](http://nanpy.github.io/)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment