It appears I have not posted for almost a year, but don’t think I haven’t been busy! In fact, over the past year, we have bought and renovated a house, and I have also been travelling a lot for work. We also gained a cat, Stella, but unfortunately lost Yoshi, our red-ear slider. I believe these events are relevant because I have always used the pets as inspiration for projects. The house has also provided some new inspiration for projects. I built a compost bin, as well as some raised planter beds. Those don’t amount to much more than boring wooden boxes, though. The pride of my new office has become the desk that I built this Fall. Read on to see some pictures and how it all came together!
I have always used the cat and turtles as catalysts for different projects. I thought this would be a good one because I hadn’t done much with the raspberry pi camera that I had, and I also wanted to work on using the GPIO pins on the raspberry pi to read sensor data. This was another good project to practice writing code in python on the pi. The concept: detect the cat, take his picture, tweet his picture (@KookieHouse). Continue reading The Oscar Detector
This is one of the more exciting nodes I’v gotten working so far. Late last year, I left the house for a hockey game, and when I got home I found that I had left the garage open the whole time. Having a monitor on it is useful for alerts if the door is open for too long, and being able to close it remotely if it’s accidentally left open is even more useful. I used this as a catalyst for figuring out how to trigger actuators (a relay in this case) from openHAB. It was a very slow and painful process but it’s really cool to have working now.
Continue reading Garage Sensor and Remote
I wanted to create a way to detect when the washer and dryer were running. The Uber Home Automation instructable has a solution using a mic to detect the machine noise. I found this solution not to be robust enough. With some perfect tuning it might work but I decided to try to use accelerometers instead.
The first two nodes I created were simple door sensors. The sensor is just a reed switch attached to the door frame and a magnet attached to the door. When the door is closed, the magnet pulls the reed switch closed. When the door is open, the switch is open. It doesn’t get much simpler than that. Additionally, the node measures the voltage from the battery. Every time the door opens or closes, the status is sent wirelessly to the openHAB server.
The program that runs on the arduino is interrupt driven, meaning that the arduino is in a very low power sleep mode until it detects a signal. This allows the batteries to last much longer. Once the signal is detected, it evaluates the state of the switch and communicates that to the server. The program can be downloaded from my Github repository here.
The openHAB configuration is very straightforward. It updates the interface based on the state of the switch. I decided to use the “contact” mapping rather than the “door” because I liked the graphic better. I also added a feature to see the last time the status was updated by clicking on the individual doors. Finally, on any state change, I receive an email from openHAB alerting me of the change. The email is routed directly to a specific label and marked read so I am not bombarded with status updates, but it is nice to be able to see the history of each node without having to go any further than my gmail account. The email is sent using an openHAB rule.
These nodes use moteinos with RFM69HW chips preinstalled, which can be purchased here, and reed switches which can be purchased here. The battery packs, wires and small breadboards are all easy to find. I also use a liberal amount of velcro.
These nodes are a great place to get started if you are considering doing this project. The program is very simple and is simpler still if you don’t use the interrupt.
A few months ago, I came across an instructable explaining how to make a DIY home automation system using arduinos and a raspberry pi (two things I have previously written about). The instructable, which can be found here has morphed into an entire community of people who have created systems in their own homes. In the process, there are several improvements that people have been able to make since the original system was described. Because there are so many people working on this and many of them have questions, a whole forum was created which is dedicated to these sorts of questions and ideas (found here).
I am in the midst of creating an epic home automation system based on the brilliant “Uber Home Automation” instructable. I’m not going to go into any of the details in this post, but rest assured, there will be an epic post coming once I finish up a few more things. Continue reading Where Should the Oscar Detector Go?