Skip to content
eXpire163 edited this page Dec 31, 2015 · 5 revisions

Shopping

  1. Raspberry Pi
  2. Adafruit DC and Stepper Motor HAT for Raspberry Pi

Optional:

  • Wifi Module
  • Webcam
  • USB Powerbank
  • USB Cables
  • Lipo for Motor Power (7.4 recommended)

Setup

(i'm willing to publish a ready to run iso - but thats still in progress)

1. Install Wheezy on your Raspberry (just google how-to)

1.1 Update

sudo apt-get update

sudo apt-get upgrade

1.2 Install i2c / MotorShield

follow this guide

2. Download ftpi Code

`sudo apt-get install git

cd ~

mkdir ftpi

cd ftpi

git clone https://github.com/eXpire163/ftPi.git`

3. Install NodeJS

curl -sLS https://apt.adafruit.com/add | sudo bash

sudo apt-get install node

node -v

this should output: v0.12.0

4. Setup autostart for nodejs via forever

sudo -i npm install forever -g

sudo nano /etc/rc.local

Add at the end:

/usr/local/bin/forever start /home/pi/ftpi/noderoot/server.js

5. setup python and autobahn

//TODO install python / python dev / easy_install / autobahn Follow this guide -> i skipped the pypy setup and just ran it on python native setup

5.1 Autostart python server

sudo nano /etc/rc.local

Add at the end:

sudo python /home/pi/ftpi/pythonserver/server.py

6. (optional for Webcam)

follow this guide stream - clone of the site if link is down

Autostart Webcam

sudo nano /etc/rc.local

Add at the end:

//TODO CHeck for command

TIP: run top to see your CPU usage, if over 90%, lower -q (qualtity to linke 50) or resolution. This depends on your raspberry

XX. Tests

Just open in browser

  • Website -> http://[yourPiIP]:8081/
  • Webcam -> http://[youtPiIP]:8883/
  • PythonServer -> http://[yourPiIP]:9000/