DIY Bluetooth Home Automation

blueboard

Interested in a bit of home automation? Don’t know where to start? We just found a great Instructable on making your own bluetooth controlled relay module!

[Kyle’s] been working on this for a while, and finally at his 5th iteration he’s ready to share it with the public. It’s a project you can make from scratch, and each unit will cost approximately ~$25 in components — which can control up to two outputs. He’s included an inkscape PCB layout which you can easily etch on your own using the toner transfer method. The heart of the build is an Atmega328, which helps keep the costs down — after all, it is only controlling two outputs! Then it’s just a matter of adding the components, a bit of soldering, and uploading the firmware! 

The entire design is open source, and [Kyle] would love some feedback to continue improving upon it. The write-up is quite thorough, so if you’re interested, take a look and leave him a comment!

Arduino-Based Power Failure Alert System

arduinoPowerFailBox

When the power went out at his parents’ shop and ruined the contents of their fridge, [Lauters Mehdi] got to work building a custom power failure alert system to prevent future disasters. Although some commercial products address this problem, [Lauters] decided that he could build his own for the same cost while integrating a specific alert feature: one that fires off an SMS to predefined contacts upon mains power failure.

The first step was to enable communication between an Arduino Micro and a Nokia cell phone. His Nokia 3310 uses FBus protocol, but [Lauters] couldn’t find an Arduino library to make the job easier. Instead, he prototyped basic communication by running an Arduino Uno as a simple serial repeater to issue commands from the computer directly to the phone, and eventually worked out how to send an SMS from the ‘duino. [Lauters] then took the phone apart and tapped into the power button to control on/off states. He also disconnected the phone’s battery and plugged it into an attached PCB. The system operates off mains power but swaps to a 1000mAH 9V backup battery during a power outage, logging the time and sending out the SMS alerts. A second message informs the contacts when power has been restored.

Head over to [Lauters’s] project blog for schematics and photos, then see his GitHub for the source code. If you want to see other SMS hacking projects, check out the similar build that keeps a remote-location cabin warm, or the portable power strip activated by SMS.

Opentilt: Tag, You’re Out!

opentilt

Have you ever heard of the game Johann Sebastian Joust? We haven’t either, but [Juerd] has come up with an open source version of it called Opentilt, and we have to admit — it looks like a lot of fun!

Johann Sebastian Joust uses motion controllers for a game that can be played indoors or out, without a screen. Everyone gets a motion controller, and the object of the game is to make everyone else move their controller too fast. It even has a music mode that lets you move your controller relative to the speed of the music! Anyway, it had an extremely successful kickstarter, and it has been debuted at many events around the world — but it’s simply not available to the general public just yet. [Juerd] couldn’t wait that long so he decided to make a similar open source version of it, with cheap off-the-shelf parts. The biggest difference is this one doesn’t have the music.

The build is quite simple and inexpensive. You’re looking at some PVC pipe, an Arduino Nano, a RGB LED, a 2.4GHz radio module, an accelerometer, a pingpong ball, a battery pack, and various other resistors and wire. Nothing to it really! All the source code, and instructions are available off of [Juerd’s] site, and he’s done a great job explaining everything, down to fixing a common problem that some people have on Arduino Nanos!

Stick around after the break to see how the original Johann Sebastian Joust game works!

Continue reading “Opentilt: Tag, You’re Out!”

Automated Aquarium Is Kitchen-Sinky

fishtankAutomation

People have been converting their old Power Macs and Mac G5s into fish tanks for a few years now, but [Hayden’s] Internet-enabled tank is probably the most awesome ever crammed into an aquarium along with the water and the fish—and we’ve seen some fascinating builds this summer. After gutting the G5 and covering the basic acrylic work, [Hayden] started piling on the electronics: a webcam, timed LED lighting, an LCD for status readouts, filter and bubble control via a servo, an ultrasonic sensor to measure water levels, thermometer, scrolling matrix display, an automatic feeding mechanism, and more. He even snuck in the G5’s old mainboard solely for a cool backdrop.

The build uses both a Raspberry Pi and an Arduino Mega, which sit underneath the tank at the base. The Pi provides a web interface written in PHP and jQuery, which presents you with the tank’s status and allows changes to some settings. Nearly every component received some form of modification. [Hayden] stripped the webcam of its case and replaced the enclosure with a piece of acrylic and a mountain of silicone, making it both waterproof and slim enough to fit in the appropriate spot. Though he decided to stick with an Amazon-bought Eheim fish feeder, he disabled the unit’s autofeed timer and tapped in to the manual “feed” button to integrate it into his own system.

It’d take half of the front page to explain the rest of this thing. We’ve decided to let the aquarium tell you the rest of its features in the video below. Yeah…it can talk.

Continue reading “Automated Aquarium Is Kitchen-Sinky”

Arduino Astronomic Clock Automates Lights

ardAst

[Paulo’s] garden lights are probably a bit more accurately automated than anyone else’s on the block, because they use latitude and longitude clock to decide when to flip the switch. [Ed Note from the far future: this page no longer exists, but you can still read it on the Wayback Machine. The TimeLord library has also been superceded, so you’ll have some porting to do.]

Most commercial options (and hobbiest creations) rely on mechanical on/off timers that click on an off every day at the same time, or they use a photosensitive element to decide it’s dark enough. Neither is very accurate. One misplaced leaf obscuring your light-dependent resistor can turn things on unnecessarily, and considering the actual time of sunset fluctuates over the year, mechanical switches require constant adjustment.

[Paulo’s] solution addresses all of these problems by instead relying on an algorithm to calculate both sunrise and sunset times, explained here, combined with swiftek’s Timelord library for the Arduino. The build features 4 7-segment displays that cycle through indicating the current time, time of sunset and of sunrise. Inside is a RTC (real time clock) with battery backup for timekeeping along with an Omron 5V relay to drive the garden lamps themselves. This particular relay comes with a switch that can force the lights on, just in case.

Check out [Paulo’s] project blog for the full write-up, links to code and more details, then take a look at some other home automation projects, like the SMS-based heater controller or occupancy-controlled room lighting.

Commodore 64 Power Glove Is So Bad

The Nintendo Power Glove was terrible. Really, really terrible. Thanks to modern components, though, it’s possible to recreate the Power Glove experience in a way that doesn’t suck so much. That’s what [Leif] did with his motion sensing glove for the Commodore 64.

Instead of rolling his own IMU and putting it in a glove, [Leif] is using SonicWear SoMo, a glove originally designed to generate MIDI data for performance pieces. Inside this glove is a 9 DOF gyro/accelerometer/magnetometer, uC, battery, and XBee that can be easily reprogrammed to do something a little more (or less) useful than simply sending MIDI notes and commands.

[Leif] reprogrammed the XBees to use I/O line passing instead of sending serial data, and connected the recieving XBee to the C64 joystick port through a very simple circuit with a hex inverter.

All the code to turn a SonicWear glove into a C64 controller is available on the Github, and there’s a neat demo video of [Leif] demoing his glove at the VCF Midwest late last month.

HackPrinceton: Piano Stairs!

princeton piano

It was Hack.Princeton this weekend and [Bonnie] and [Erica] threw together this great interactive portable piano!

The setup is very simple using six LED flashlights, and six photoresistors. An Arduino Uno reads in the values from the photoresistors and parses them to a nearby Raspberry Pi which then creates the sounds. The system even automatically calibrates itself when turned on, adjusting to the ambient light conditions. They made the project for the Hackathon and after a short scare of having to move it to another staircase for the demo, they took home 2nd place in the hardware category!

Stick around after the break to see it in action — this would make a great school project to get kids interested in hacking!

Continue reading “HackPrinceton: Piano Stairs!”