You may notice in the picture of my setup (in the previous post) that the Raspberry Pi is being powered normally via the USB power connector. This was done because the Pi was failing to boot when powered through the GPIO port as I had planned. While I did not do any tests, the obvious cause is a lack of sufficient current to power the Pi. It really does want to have a solid 700mA of 5 volt juice. My planned configuration worked fine on the workbench but failed once I mounted it on the wall and connected the alarm sensors. The sensors require 12V power and I was using the same power supply to drive the sensors and the power adapter for the interface board. That 12V power supply was only 2A and that was apparently too little for all of this.
I could have gotten a larger 12V power supply, but I already have several of these 2A supplies. Realization finally struck me that using a single power supply would be a mistake. If any of the sensor lines was compromised, shorting the power to ground, it would cause the Pi to shut down suddenly. So now I have one supply just for the alarm sensors and another that drives the interface board, and through that, the Pi.
The system is up and has been running for over a week with no major problems. I spent several hours improving my code for driving the X10 interface to make it as reliable as possible. It seems to work as well as it ever has when using heyu or ActiveHome to drive it. X10 is inherently unreliable, but is usually good enough for casual use. If you have a fairly new house that is wired properly, then it can work fairly well. My house, unfortunately, is old and poorly wired. I have made some improvements over the years, but there are still areas of my house that the X10 signals simply will not reach. I will cover X10 in more detail in an future post.
I could have gotten a larger 12V power supply, but I already have several of these 2A supplies. Realization finally struck me that using a single power supply would be a mistake. If any of the sensor lines was compromised, shorting the power to ground, it would cause the Pi to shut down suddenly. So now I have one supply just for the alarm sensors and another that drives the interface board, and through that, the Pi.
The system is up and has been running for over a week with no major problems. I spent several hours improving my code for driving the X10 interface to make it as reliable as possible. It seems to work as well as it ever has when using heyu or ActiveHome to drive it. X10 is inherently unreliable, but is usually good enough for casual use. If you have a fairly new house that is wired properly, then it can work fairly well. My house, unfortunately, is old and poorly wired. I have made some improvements over the years, but there are still areas of my house that the X10 signals simply will not reach. I will cover X10 in more detail in an future post.