Paper-Duino-Pi software modifications

Before start make an update:

$ sudo apt-get update
$ sudo apt-get upgrade

Install Shutdown & Reset Button

1. Make an folder

$ mkdir /home/pi/paper-duino-pi
$ cd /home/pi/paper-duino-pi

2. Download and unzip that Python script

$ wget http://www.dernulleffekt.de/programme/shutdownbutton_02.py.tar
$ tar xf shutdownbutton_02.py.tar

2. Change owner & rights

$ sudo chown root:root shutdownbutton_02.py
$ sudo chmod 755 shutdownbutton_02.py

3. Create the autostart:

  $ sudo nano /etc/rc.local

write before exit 0:

 # run reset and shutdown script
 printf "Starting shutdown aund reset button\n"
 /home/pi/paper-duino-pi/shutdownbutton_02.py &
 

To save and leave press:
CTRL+O, Enter, CTRL+X

4. Reboot

$ sudo reboot

Install Blinking LED

1. Make an folder (if not existing)

$ mkdir /home/pi/paper-duino-pi
$ cd /home/pi/paper-duino-pi

2. Download and unzip that Python script

$ wget http://www.dernulleffekt.de/programme/blink_22.py.tar.gz
$ tar xf blink_22.py.tar.gz

2. Change owner & rights

$ sudo chown root:root blink_22.py
$ sudo chmod 755 blink_22.py

3. Create the autostart:

  $ sudo nano /etc/rc.local

write before exit 0:

 # blink an LED
 printf "Starting blinking LED on GPIO 22"
 /home/pi/paper-duino-pi/blink_22.py &
 

To save and leave press:
CTRL+O, Enter, CTRL+X

4. Reboot

$ sudo reboot

Install the Arduino IDE & modify

1. Install the Arduino IDE, type in command line:

$ sudo apt-get installl arduino

2. For the modification of the GPIO Pin and the Avrdude, the easiest way is to download the setup for the AlaMode board:

$ wget http://www.wyolum.com/downloads/alamode-setup.tar.gz

unpack it

$ sudo tar xf alamode-setup.tar.gz

and run the setup.

$ cd alamode-setup
$ sudo ./setup

That will install a new version of the avrdude and will also do some Linux modifications (one for the alamode board).

3. To modifier the Arduino IDE setup for the Paper-Duino-Pi you have to type in the terminal:

$ sudo nano /usr/share/arduino/hardware/arduino/boards.txt

Change the name of the board:

   alamode.name=Paper-Duino-Pi

The baud rate should be set to 57600:

   alamode.upload.speed=57600

Than change the fuses from 0xde to:

   alamode.bootloader.high_fuses=0xda

and save it!

4. Reboot

$ sudo reboot

After resetting the Raspberry Pi a new serial port: dev/ttyS0 and a new board: Paper-Duino-Pi will appear in your Arduino IDE. For uploading a program use the Paper-Duio-Pi board and the ttyS0 port.

Thanks for the avrdude modification to: Wyolum.com

Here are some details of the serial modification


Install Pure Data, PD-extended

1. To install pd-extended run the following command in your terminal:

$ sudo nano /etc/apt/sources.list 

copy/paste this line to the list(right-click to paste):

deb-src http://archive.raspbian.org/raspbian wheezy main contrib non-free rpi 

To save and leave:
CTRL+O, Enter, CTRL+X

2. Update

$ sudo apt-get update

3. Download pd-extended

$ wget https://puredata.info/downloads/pd-extended-0-43-3-on-raspberry-pi-raspbian-wheezy-armhf/releases/1.0/Pd-0.43.3-extended-20121004.deb 

4. Install the package

$ sudo dpkg -i Pd-0.43.3-extended-20121004.deb 

5. Fix the installation

$ sudo apt-get -f install 

it should be installed.

6. Change the root priorities:

$ sudo chmod 4755 /usr/bin/pd-extended



Download the Firmata

1. Create folder

$ mkdir /home/pi/pd-sketchbook
$ cd /home/pi/pd-sketchbook

2. Download and unpack

$ wget http://at.or.at/hans/pd/Pduino-0.5.zip
$ unzip Pduino-0.5.zip