- Download Raspbian Jessie from here.
- Mount the image onto an SD card using these instructions.
- Follow the on-screen instructions to set up Raspberry Pi.
- Run
sudo raspi-config
and set locale, timezone, keyboard (GB => US). - Update packages with
sudo apt-get update
followed bysudo apt-get upgrade
. - Install git with
sudo apt-get install git
.
Clone Stephen Chavez's repository
git clone https://github.com/redragonx/can2RNET
Install can-utils
sudo apt-get install can-utils
Add the following lines to /boot/config.txt
dtparam=spi=on
dtoverlay=mcp2515-can0,oscillator=16000000,interrupt=25
dtoverlay=spi-bcm2835
Add the following lines to /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 to /etc/modules
mcp251x
can_dev
Boot with everything connected and run
python3 JoyLocal.py
- Connect the computer to a WiFi network. Since CalVisitor doesn't support local SSH and AirBears2 is difficult to set up on the Raspberry Pi, we use enable a Personal Hotspot on an iPhone (Settings > Personal Hotspot) to use as our local WiFi network.
- Connect Raspberry Pi to the same WiFi network using these instructions.
- SSH using these instructions.
- (Optional) Set up a permanent IP address for the Raspberry Pi using either this link or the second comment in this link. Not sure which one did the trick.
- (Optional) Enable password-less SSH by copying the contents of the computer's id_rsa.pub file to the Raspberry Pi's ~/.ssh/authorized_keys file.
- Download the AprilTag application on the iPhone.
- Tap the yellow text on the top left corner to go to settings, enter the Raspberry Pi's IP address into the "UDP Transmit Addr" field, and turn on the "UDP Transmit Enabled" switch.
- Receive the UDP packets on port 7709 according to the AprilTags wiki. See their example decoder written in Java here.
Install OpenCV so that RaspiCam compiles with OpenCV compatibility
sudo apt-get install libopencv-dev
Clone repository (fixes BGR issues from original SVN repository)
git clone https://github.com/6by9/raspicam-0.1.3
Following these instructions...
cd raspicamxx
mkdir build
cd build
cmake ..
Verify that -- CREATE OPENCV MODULE=1
in the output, then run
make
sudo make install
sudo ldconfig
Following these instructions...
Install dependencies
sudo apt-get install subversion cmake libopencv-dev libeigen3-dev libv4l-dev
Clone repository
git clone https://github.com/ysshah/SmartWheels.git
Compile and run
cd SmartWheels
make
./build/bin/apriltags_demo
Follow this OpenCV guide and then this Python with camera guide.