Pi Supply Switch – On/Off Power Switch for Raspberry Pi

Lately I have been quiet on my blog since I have been working on a commissioned quite challenging project involving a Raspberry Pi. Anyhow, I needed to properly turn off the Raspberry Pi since I had to run it on batteries and I found this little “Intelligent” switch to successfully shutdown the Raspberry Pi and turn off supply completely. It is a very well designed piece of circuit and is also very easy to assemble and get it to run in no time. In fact, the total assembly time took about 10 minutes and was soon powering my Raspberry Pi. It features 3 switches which are ON, OFF and Soft Off. There is also an LED to show that power is on/off.

You can follow the instructions here:http://www.pi-supply.com/product/pi-supply-raspberry-pi-power-switch/which are mostly pictures (a picture says a thousand words). There are also code examples of how one can use 1 of the GPIO pins to issue the shutdown command from the Soft Off button.

Pi Supply Switch
Pi Supply Switch  On/Off Power Switch for Raspberry Pi
Pi Supply Switch ? Parts
Pi Supply Switch  On/Off Power Switch for Raspberry Pi
Pi Supply Switch
Pi Supply Switch  On/Off Power Switch for Raspberry Pi
Pi Supply Switch
Pi Supply Switch  On/Off Power Switch for Raspberry Pi
Pi Supply Switch
Pi Supply Switch  On/Off Power Switch for Raspberry Pi

Remote Development on Raspberry Pi using Netbeans

Have you ever tried to write/compile C, C++ code on a Raspberry Pi using just nano and gcc? It’s a nightmare to code in such a way on a fairly large project using a number of libraries. Fear not, cause this tutorial makes life so much easier. You can write code on Netbeans on your preferred local machine and you can compile and run it remotely on your Pi! You get full debugging as if you are working on your local machine.


Android Client for Lights Control

Finally, I managed to find some time to start working on the Android Client for Lights Control.  It is very basic at this stage but works.  The list shows the device and its room in square brackets.   Please find the APK below:


Start by putting in the server settings by pressing the settings menu.  Enter the server IP/hostname and the port (default is 6004).

Make sure you have the latest version of the Lights Control code since some changes were made both to the server and the web interface.  If you cannot get the names and rooms of your devices, go through each device from the Web Interface and update each device.  This will update the device details to the Open Zwave server xml config file.  The android client communicates directly to the sever and not to the Web Interface.

Lights Control

Lights Control, is the latest version of my Home Automation software which makes use of the Open-Zwave library to manage Z-Wave devices.

Mobile version still under construction but coming soon!.

No installation hassle! Now also available as a Raspbian image for the Raspberry Pi!  Click here to download.  Web login username is Admin with first letter uppercase and passwor is admin, all lowercase. SSH login user: lightscontrol, pasword: lightscontrol.  Root password: lightscontrol.  Make sure you first setup the IP of your Raspi.  By default it is set to

Code available here: svn checkout http://lights-control.googlecode.com/svn/trunk/ lights-control-read-only

Control / Status of devices
Manage Scenes
Schedule scenes to automate your lights
Settings Menu to manage your devices

Gertboard is here!

Finally I have received the Gertboard (expansion board for the Raspberry Pi).  The pics below show the unpacking process and the soldering process.  It took me about 3 hours to completely assemble all the parts.  Everything worked fine on the first time round and soon started to run the test programs.

After the first tests, it was time to write something interesting utilising LEDs.  I quickly wrote a short and simple program which converts Decimal numbers in to Binary by illuminating the LEDs representing the bits.

Now, it’s time to think of a proper and more interesting project to use this board in junction with the Raspi.  Any ideas?

Open-Zwave on Raspberry Pi

Raspberry Pi & Aeon Labs Z-Stick

Thanks to the tutorials found below I have managed to get the system up and running:




Now it’s time to improve the software.  Keep tuned for more updates.