This module is for use with the Engineers-Without-Borders "Coding for Development" classes. It contains several modules for use with a RaspberryPi.
ewb.radio
: An interface to the pifm
FM transmitter. Includes Text-to-speech capability
ewb.position
: An interface to the GPS
ewb.blink
: Introductory functions for the accessing the Inputs and Outputs of the RaspberryPi
cd ~
wget http://omattos.com/pifm.tar.gz
tar xf pifm.tar.gz
sudo cp pifm /usr/sbin/pifm
sudo apt-get install ipython-notebook python-gps python-rpi.gpio espeak git sox
Recommended but not required:
sudo apt-get install gpsd-clients picocom libsox-fmt-all
On your raspberry pi:
-
Download the
ewb
code. In this example, theewb
folder will be placed in your home directorycd ~
git clone --recursive [email protected]:EWB-Coding-for-Development/ewb.git -
(Optional) Install the module system-wide
sudo ./ewb/setup.py install
-
If you are connecting the GPS directly to the Pi, the following is required to enable the serial port
sudo patch -p0 < ewb/disable_serial_console
-
Now find the IP ADDRESS of your Raspberry Pi. It should look something like 192.168.0.2.
ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}'
-
To start the Notebook server, run:
sudo ipython notebook --ip=* ewb/notebooks
-
Finally, on your computer, open a browser and navigate to http://IP ADDRESS:8888 or http://raspberrypi:8888