Skip to content
Florian Sachs edited this page Jan 7, 2016 · 14 revisions

Install on Raspberry PI

I have only tried it on a Raspberry2. I don't know how the older ones or the Zero behave. I actually tried to make it work with the Zero, but the Touchscreen didn't work under pygame, but that's maybe due to my horrible soldering skills. The display actually did show the boot process....

The wiki in contains various information about the display. Use the latest WHEEZY image,, for the raspberry.

pygame and touchscreen don't work correctly in jessie. See and

  1. Install pi from the given image.
  2. Enable the wlan as described in .
  3. sudo apt-get update
  4. sudo apt-get install libts-bin evtest xinput python-dev python-pip
  5. sudo easy_install-2.7 pip
  6. sudo pip-2.7 install evade
  7. Run sudo evtest to find out which exentX is your touchscreen. In my system it is event2
  8. Calibrate the display using TSLIB_FBDEVICE=/dev/fb1 TSLIB_TSDEVICE=/dev/input/eventX sudo ts_calibrate.

The Display should work now and the touchscreen can be used. Now lets install die PDU1800. Again, everything is meant to be run as pi (or any other non-root-user)

  1. sudo pip-2.7 install pygame
  2. git clone This will create a directory pdu1800
  3. cd pdu1800
  4. Run the PDU1800 with the command sudo python

That's it. Touch the screen to be able to quit the program or to shutdown the entire pi. If you want to run the program at startup, add the following lines to the file /etc/rc.local before the exit 0:

cd /home/pi/pdu1800
nohup python >/tmp/pdu1800.out 2>&1 &
Clone this wiki locally
You can’t perform that action at this time.