Skip to content
This repo has code and documentation to control power-wheelchairs with R-Net electronics.
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
R-net_over_IP Update Jul 4, 2017
oldCode New version of JoyLocal, refactored and more options Feb 9, 2017
ppts Publishing AMW slides from 2017 Sep 12, 2018
.gitignore fixes Sep 18, 2016
COPYING Add GPL Dec 12, 2016 New version of JoyLocal, refactored and more options Feb 9, 2017 Update Mar 29, 2019
RNETdictionary_V2.txt Create RNETdictionary_V2.txt Mar 29, 2019
RNETdictionary_catagorized.txt Update RNETdictionary_catagorized.txt Oct 12, 2016

PGDT R-Net CAN library for power-wheelchairs with R-Net electronics

By Stephen Chavez & Specter

Projects that use this

Raspberry PI setup

To install PiCan2 on pi3, add to /boot/config.txt:



R-Net Wiring Pinout to CAN inferface

  1. Strip a R-Net wire in half.
  2. Connect the wire with this pinout:
white is can high
blue is can low
black is gnd
red is +vin

SocketCAN setup

Add the following lines under file /etc/network/interfaces

allow-hotplug can0
iface can0 can static
        bitrate 125000
        up /sbin/ip link set $IFACE down
        up /sbin/ip link set $IFACE up

Add these kernel modules under /etc/modules


Reboot the pi! Then you should see an can0 interface listed under the command ifconfig


$ git clone
or sudo apt-get install can-utils

R-Net command examples from the terminal

$ candump can0 -L   # -L puts in log format
(1469933235.191687) can0 00C#
(1469933235.212450) can0 00E#08901C8A00000000
(1469933235.212822) can0 7B3#
(1469933235.251708) can0 7B3#

$ cansend can0 181C0D00#0840085008440840  #play a tune

$ cangen can0 -e -g 10  -v -v     #fuzz buss with random extended frames+data

$ candump -n 1 can0,7b3:7ff     #wait for can id 7B3

Or run python3 to control a R-Net based PWC using any usb gamepad connected to the pi3.

Python 3 is required.

You can’t perform that action at this time.