Skip to content

Instantly share code, notes, and snippets.

@kelvingakuo
Created June 10, 2019 05:32
Show Gist options
  • Save kelvingakuo/df07970b05f0714e780c2df4f96cac8d to your computer and use it in GitHub Desktop.
Save kelvingakuo/df07970b05f0714e780c2df4f96cac8d 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
pip install nanpy
pip install pygame
  1. On a PC with the Arduino IDE
git clone https://github.com/nanpy/nanpy-firmware
cd nanpy-firmware
./configure.sh
  1. Open 'Nanpy/cfg.h' and set '1' to Servo, Wire, LCD, and Ultrasonic

  2. Copy the Nanpy dir to your Arduino IDE's sketchbook (usually 'Documents/Arduino/')

  3. Open Arduino IDE. Connect your Arduino.

  4. Click File > Sketchbook > Nanpy > Upload

  5. When successfully uploaded, connect the Arduino to your Raspi (use the USB ports obviously)

  6. Run any of the starter examples here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment