6
Jan
This morning I really struggled to get out of bed. Being very tired still, in a nice warm bed while outside it was -7 °C and my room probably wasn’t far off that, it took some convincing that I really did need to go to work. While laying there, between drifting in and out of consciousness, I got to wondering if I could make my room a little warmer without changing the central heating settings or adding another heater. I had the idea that I could set up my computers to respond to temperature.
Read the rest of this entry »
3
Jan

The CurrentCost power monitor has become very popular amongst amateur home automators and those technically-savvy who want to keep an eye on how much electricity they are using (and ultimately how much they are going to have to pay in bills). A couple of months ago I purchased the CurrentCost device and a USB cable to connect it to a computer from eBay. Having just seen their eBay store, it looks like they’ve got a fantastic new model on the way, but this article is about the older version.
Read the rest of this entry »
14
Jul

Over a year after it began, the whole-house-audio project is complete. 4 rooms around the house can now be filled with the sound of any of (currently) 4 audio devices thanks to a mixture of hardware and software.
Read the rest of this entry »
12
Jul

One thing that has been lacking since the first build of the rack is ventilation. With both sets of doors closed, the inside can get quite warm, especially when iron is turned on. Not any more though, having just completed the installation of 2 active ventilation zones, lighting and a low voltage power supply system complete with rack-mount control panel.
Read the rest of this entry »
15
Jun

One of the things that has been lacking in my bedroom is a TV. I can watch recorded TV programs, DVDs and other videos on my PC, but not at the same time as relaxing on my bed. While I had a week off work I was looking around the Dabs website and ventured across a real bargain of a TV (now discontinued). It supports full 1080p HDTV as well as being a relatively huge 37″ all for just £539. I couldn’t pass this by, so I spent a while doing investigation work and finally decided to take the plunge and buy the thoroughly indulgent item.
When I designed the rack, the idea was that I would eventually get an LCD TV and it would be mounted to the side of the rack. However, it now contains so much equipment that the weight has become a bit of a concern. To avoid problems with the rack castors collapsing under the load – or even the floor of my bedroom doing the same – I decided to mount it in a more traditional location, on the wall at the foot of my bed (though I had to turn my bed around to make it the foot).


Now I needed something decent to connect it to, with the ability to run MythTV and watch video at possibly 1080p resolution. Boron used to live in a HTPC case, but it started getting a little crowded and warm and with the construction of my rack the innards were moved to a 19″ case. That meant that I’ve had a spare high-quality case lying around doing nothing for a while. Now I had the opportunity to bring it back into service.

The Core 2 Duo in my gaming machine has done nothing but impress with its performance and cool running, so I knew what I wanted to base this new machine around. The E7200 2.53GHz was the cheapest Core 2 available on Dabs, so into the basket it went. I wasn’t too bothered about having a high-spec for the rest of the system, and indeed it needs to be farily quiet and cool so for graphics I went with the Asustek Radeon HD3450 256MB and a cheap-but-capable Gigabyte motherboard.

The processor ended up getting swapped for the slightly slower one in aluminium, so I got a small upgrade for gaming at the same time. For the OS I’m currently experimenting with MythBuntu for amd64. I’ve also taken another look at LinuxMCE, which I might give a go some time.

The new machine was named barium, and sits fairly neatly under my bedside table.
6
Apr

For quite a while now I’ve had 2U at the top of the rack consumed by an APW Fire Protection Unit. This clever bit of kit, found by chance on eBay for £15, will extinguish a fire using FM200 gas (with some nitrogen thrown in) when detected by either of it’s two optical smoke detectors.

Until today it hasn’t been plugged in for more than half a second because the alarm appears to be broken inside (or I need to do some sort of configuration which isn’t possible without a manual) and so it was far too noisy to use. The alarm is deafening and certainly does it’s job, but is obviously a little eager to make itself known. Just in case this was an indication that the gas might be released I disconnected the fillament in glass stopper on the end of the canister (later reconnected when I was happy it’s only the alarm that is broken).
To solve the alarm problem I have been forced to snip one of the wires to the sounder so that I can use it. This shouldn’t affect the operation of the unit, though it wont be able to give any audible indication of a fire. There is a visual indicator on the front to back it up. To replace to the audible function I will install a standard household smoke alarm.

I’m just waiting for a backup to complete before I hand over power management to it. In the event of a fire, it will instantly cut power to anything that it feeds, which in this case will be most things that are connected to the UPS. Unfortunately the UPS shutdown functionality isn’t compatible with my UPS since it uses basic status signalling, so if a fire does break out it had best not be in the UPS.
6
Apr

Several months ago I posted some information on the cable to connect a Compaq T2400h to a standard serial port. This weekend I finally got around to trying out the information that I found. I now have the 2.4KVA UPS at the bottom of my rack cabinet talking to my Ubuntu-based fileserver, boron.
The first step was to create the cable. This requires a 9 pin female ‘D’ connector and a matching male connector. For the cable I used an offcut of CAT5, though normally serial cables do not use twisted pair (usually just parallel wires).




The software part is done using NUT, for which there is a package included in the Ubuntu distribution. This software talks to the UPS, monitors it’s status and allows other computers to check the status. The monitoring applications are then responsible for shutting down the computers attached to the UPS should power fail and the battery become critical. So far this is just boron and my Windows machine, aluminium. The latter uses WinNUT to shut down Windows when needed.
There were a few problems getting NUT to work with Ubuntu. First off, the package doesnt put any configuration files in the /etc/nut path, so I had to go hunt for the examples and copy then modify them. The next problem was with permissions for the serial port. For testing purposes I tried running the protocol module as root, but this introduced different permissions problems. The solution was to add the ‘nut’ user to the ‘dialout’ group, which is one group that has access to the serial ports. To my relief this got everything working.
These are the parameters that I can access over the serial connection:
simon@boron:~$ upsc compaq@boron
battery.charge: 97.22
battery.runtime: 1620.000
battery.voltage: 0055.50
battery.voltage.nominal: 0048.00
driver.name: upscode2
driver.parameter.input_timeout: 5
driver.parameter.manufacturer: Compaq
driver.parameter.port: /dev/ttyS0
driver.parameter.use_pre_lf: yes
driver.version: 2.0.5
driver.version.internal: 0.84
input.voltage: 0244.50
input.voltage.maximum: 0276.00
input.voltage.minimim: 0162.00
input.voltage.nominal: 0230.00
output.current: 0001.95
output.frequency: 0050.00
output.voltage: 0215.10
ups.alarm:
ups.delay.reboot: 000
ups.delay.shutdown: 000
ups.load: 21.875
ups.mfr: Compaq
ups.model: UPS 2400 VA FW -0023
ups.power.nominal: 2300.000
ups.serial: E########
ups.status: OL TRIM
These are the resources that I used to get the UPS/NUT combo working:
29
Dec
I received yet more odd looks and comments at work when a few weeks ago I received a delivery of 24 foam tiles. I ordered them from eBay as an experiment in trying to reduce the amount of noise eminating from the rack cabinet. At about £30 it was a bit of a gamble.

Read the rest of this entry »
9
Dec
Here are some initial interface wireframes for the iPod Touch remote control. I’ve not shown all of the menus because that would be quite a bit of work. These three should give you an idea of what I intend to do though.
Main menu
The main menu summarises the major systems of the house. Clicking on one of the buttons takes you to more controls for that system. The colour of the buttons indicate the overall state of the system – green = OK, yellow = warning, red = error, grey = disabled.

Audio
The audio controls will list the 4 zones, with a drop-down menu next to each button to select the audio source. Clicking the large button switches the zone on or off. Pressing the ‘Use for all’ button copies the settings of the selected zone to all the other zones.

Security
The large buttons display a thumbnail of the live video from the cameras. Clicking on the large button will show the full video feed (resized to fit the iPod’s screen). Cameras can be disabled for privacy.

8
Dec
Whilst pondering over what sensors I could put around the house, I ventured upon the idea of having a ’sensor box’ per room. This would be based upon something like the Netiom xAP, which would connect various sensors to the house’s IP network. Some of the sensors in each room would be different. Here are some examples of the sensors that would be common to all of the rooms:
- Temperature
- PIR (motion detector)
- Door contact
- Window contacts
- Light
Room specific sensors could be:
Entrance hall:
- Current meter
- Intruder alarm status (triggered/armed)
- Door bell
Kitchen:
- Back door bolt contact
- Oven/hob state
Each of these nodes can then be queried, via the xAP protocol in this case. Temperature could be recorded, although at present our combi-boiler would probably not allow for remote control. Motion detection and door contacts can be used to determine which rooms are occupied, and along with the window sensors could be used as a secondary security system. The light sensors would be used to control the house lights.
Having one single ‘node’ to talk to would do away with having lots of independent sensors that would probably all communicate differently. Thanks to having picture rail throughout most of the house, there won’t be a problem with hiding the wiring. I’m not sure how big the boxes would be, but I dont think they would be massive. I just need to find the money to build a prototype.