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.
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.
This is my first attempt to PCB engraving. It was quite easy although you need to redraw the whole PCB on CAD before. I used Inkscape to trace a PCB which was in GIF format by simply drawing circles and lines which was later exported as DXF. After following this tutorial http://www.cambam.co.uk/forum/index.php?topic=1770.0 I managed to get very successful results as you can see in the picture below.
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.
This is my neat solution to mount the Gertboard on top of the Raspi. The Gertboard mounting replaces the top of the Raspi box. All cut on my DIY CNC machine. If you are interested in obtaining the box with the Gertboard mounting, please contact me directly.
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 10.0.0.100
Code available here: svn checkout http://lights-control.googlecode.com/svn/trunk/ lights-control-read-only
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?