Skip to content

RRduino: Getting Initial Setup

manu-fwi edited this page Nov 27, 2020 · 3 revisions

The following assumes you are on a Linux PC or RasperryPi.

Install tools

GIT clone https://github.com/manu-fwi/RR-duino project

git clone https://github.com/manu-fwi/RR-duino

NOTE: If you already downloaded it, you can run 'git pull' to make sure you have the latest.

Extra software

Install serial module for python:

sudo pip3 install pyserial

Install picotui module for python.

sudo pip3 install picotui

This is needed to run pico_rr_duino_setup.py (this script can completely setup any node).

Connect Arduino to PRi and Prepare Node

  1. Add jumper between pin 2 and GND on Arduino
  2. Plugin USB of Arduino to USB port on RPi
  3. Find /dev port plugged into. Run 'dmesg' and look for a line like the following.

It might look like this.

[ 4024.148464] usb 1-1.1.3: Product: USB2.0-Serial
[ 4024.149673] ch341 1-1.1.3:1.0: ch341-uart converter detected
[ 4024.152451] usb 1-1.1.3: ch341-uart converter now attached to ttyUSB0

Or might look like this.

[  256.206460] usb 1-1.3: Manufacturer: Arduino (www.arduino.cc)
[  256.206468] usb 1-1.3: SerialNumber: 95730333238351305182
[  256.207580] cdc_acm 1-1.3:1.0: ttyACM0: USB ACM device

Using the first examples, we'll assume it is on /dev/ttyUSB0

Clone this wiki locally