Heimcontrol.js - Home automation in Node.js with Raspberry PI and Arduino
ni-c.github.io
ni-c.github.io
I started something similar a while back with Go -- a simple RESTful interface to various bits and bobs in my home. Go was a good fit due to its speed -- it's _fast_ on the RPi, and cross-compiling for ARM is straightforward. Coupled with the LimitlessLED bulbs (cheap!), it currently runs my alarm clock, and makes the lighting in my room react to various situations.
I never finished it, or made a proper interface (I just consumed the services from some Python scripts elsewhere in my network); I should probably pick it up again.
I really hope they took a lot of effort to lock that down, or a lot of homeowners are going to find their homes remote-controlled without their consent.
So, uh, make sure your firewall let's ONLY known machines through to it, and check the manual how to enable authorization. Or better yet: Use a database that isn't designed to be goatse by default.
Another option for prototyping IO is a Gertboard (if you don't mind a bit of soldering).
This is what you get when people whose main idea for a home automation system is „a responsive design” start creating hardware products...
The other option is of course to just use an ADC chip with your RPi, but since most of us who bought RPi's already have Arduino(s) lying around the house, and since they're so easy to interface with Linux devices like the RPi, it's arguably the easier and more convenient option.
ADDENDUM: The responsive design here is actually quite nice. If you want to be on mobile (like most home automation would), it's also the only workable alternative to the arduous task of creating apps for Android and iOS and any other platform you want to support.
Neat! You could actually do the same thing entirely without the Arduino by using the GPIO built into the RPi, and pick up a dirt cheap I2C expander if you need more.
I think it's the result of hobby programming/hardware converging with professional programming/hardware. The hacker scene collides with KickStarter.
People used to have to carefully write assembler to get programmable electronics to do things and had to fit it inside a 1K EEPROM. Suddenly machines exist with literally a million times more memory for prices an order of magnitude less and reference points are suddenly thrown right off.
I'm not that old (not yet 30) but for people >= a certain generation, I can understand why this all seems very very alien.
When you have to struggle with problems too much (solve driver problems that happen due to buggy hardware, fix software crashes that happen due to original author doing some insane pointer juggling, and so on), you may as well end up genuinely hating when others do things in a way that doesn't seem proper to you.
Particularly, I'm guilty of such reactions, although I try to refrain from commenting unless I'm on one of "feel free to blow off some steam" discussion sites (which HN isn't).
It's also much easier to reliably implement interrupts using the Arduino, compared to the GPIOs of an ARM CPU running Linux.
Why is a focus on useful and pleasant design a negative? Having functionality exposed in a clear and thoughtful way that makes the devices more usable should be a positive, I think. I think it's great that someone's thinking about how to lower the bar for making all these cool possibilities accessible.