Web Based Automation Courtesy Of Raspberry Pi

web-based-automation-via-rpi

This project is a great example of the Raspberry Pi’s ability to eclipse Arduino when it comes to interaction. [Fall Deaf] mentions that he used to use an Arduino board with an Ethernet shield to add extensible interactivity to his project. But this one, which is a home automation lamp project, uses a Raspberry Pi instead. The concepts end up being very similar. But the cost of the hardware is less and the coding work is arguably orders of magnitude easier.

Don’t get us wrong, the hardware is fundamentally different. When you move from Arduino to RPi you lose some I/O pins and the low level control of them isn’t quite as straight-forward. But you also don’t have to program the thing in C. The Linux kernel handles the low level control which means you can write your scripts using Python. Because Python is an interpreted language the testing and debugging is much faster — no need to flash new code, just run the script again.

This project used the RPi GPIO to drive a strip of LEDs which use the WS2801 protocol. The board includes a NIC which makes it a snap to use as a web server. The smart phone controls seen above are served up from the Pi using jQuery. Right now there’s a cord running out of the lamp. But there should be plenty of room to use a screw-in outlet adapter and to hide the RPi and its PSU inside.

The board still has enough juice to drive other automation features too, like acting as a web radio server.

Continue reading “Web Based Automation Courtesy Of Raspberry Pi”

24-hour Hackathon Project Adds Object-based Automation To Hackerspace

hackerspace-automation

[Jeremy Blum], [Jason Wright], and [Sam Sinensky] combined forces for twenty-four hours to automate how the entertainment and lighting works at their hackerspace. They commandeered the whiteboard and used an already present webcam as part of their project. You can see the black tokens which can be moved around the blue tape outline to actuate the controls.

MATLAB is fed an image from the webcam which monitors the space. Frames are received once every second and parsed for changes in the tokens. There are small black squares which either skip to the next track of music or affect pause/play. Simply move them off of their designated spot and the image processing does the rest. This goes for the volume slider as well. We think the huge token for the lights is to ensure that the camera can sense a change in a darkened room.

If image processing isn’t your thing you can still control your audio entertainment with a frickin’ laser.

Continue reading “24-hour Hackathon Project Adds Object-based Automation To Hackerspace”

Perfect Wall-mounted Tablet Integration

There’s a building downtown built about ten years ago that has tablet-sized LCD screens next to the entrance of each large meeting room. They’re never on and we always wonder why they didn’t just use one of those things that holds a sheet of printer paper to label what’s happening in the meeting space? Now this is a similar idea but with much better execution. Instead of just displaying data the in-wall tablet mount makes your room interactive.

[Tim’s] been working on it for a couple of years. He started out trying to house an iPod Touch behind a junction box cover plate. There are some pictures of that at the top of his build album. That didn’t quite take so keep scrolling to see the path to the finished product shown above. He cut a hole in the drywall and figured out how to mount a tablet dock that includes inductive charging. It holds the tablet in place with the small ledge and a few magnets, keeping its battery charged without a need for wires. Once tested he mudded, sanded, textured, and painted for a perfect finished product.

TP-Link Router Turned Into A DALI Automated Lighting Controller

dali-control-in-tplink-router

The members of Shackspace continue to put up impressive hacks based around the tiny TP-Link routers. This time around [Timm] has shoehorned a DALI controller inside the router case. This is a protocol we don’t remember hearing about before. The Digital Addressable Lighting Interface is a control network for commercial lighting. That way people responsible for taking care of large buildings can shut off all the lights at night (to name just one use). The new room at Shackspace has this style of controllers in its lights.

The two brown wires coming into the router make up the data bus for the DALI system. It connects to the add-on PCB which uses an Atmel AT90PWM316 microcontroller. The chip is specifically designed for DALI networks which made the rest of the project quite easy. It talks to the lights, the router talks to it, bob’s your uncle, and you’ve got network controlled lighting. Get this in a big enough building and you can play some Tetris.

In case you were wondering. Yes, this project has already been added to their TP-Link firmware generator.

Raspberry Pi Helps With 2.4GHz Home Automation

Wanting to extend the capabilities of the radio frequency devices in his home [Kalle Löfgren] turned a Raspberry Pi into an RF control hub. We’ve seen some of his home automation work in the past. In his media room he built a universal remote base station which used the same RF board as in this project. The main difference is that before he went with an AVR microcontroller and this time he’s upgrade to a Raspberry Pi board.

The RPi brings a lot more to the table. Notably, the scripting (whose output is shown above) and networking features. His radio board is an nRF24L01 which he talks to via the SPI protocol. The Raspberry Pi has no problem talking to SPI devices through its GPIO header. [Kalle] just needed to do a bit of setup to configure the pin modes.

A Python script lets him sent commands using his keyboard, but this can also be automated. Combine that with the TCP server script he wrote and it opens up the a wide range of configurations to switch or talk to any device operating on the 2.4 GHz band.

Just Put Your Lips Together To Turn On A Lamp

whistler-lamp-control

The inlaid image is a controller board which [Limpkin] developed to add whistle control as a home automation option. It has an effective range of around fifteen feet and does a good job of detecting whistles from many different people. Here is one of the test subjects (captured with a hidden camera) whistling to the white LED lamp in order to switch it on.

The board is quite small. [Limpkin] holds it up in the beginning of his test video, which gives a good sense of scale. One end has a barrel jack through which the board gets power. The other end has a two conductor screw terminal which is used for switch your devices. An N-channel MOSFET protects the circuit when a heavy external load is connected. It is capable of driving a respectable 90 watts. If you’re looking to switch mains rated devices you’ll need to bring your own relay to the party.

Audio processing is handled by the Freescale ARM Cortex M4 chip at the center of the board. The Serial Wire Debug (SWD) clock and data pins are both broken out to solder pads so the thing is hackable. [Limpkin] posted the schematic, gerbers, and a code template. But he didn’t release the algorithms he uses for processing so if you want to make this at home you’ll need to figure that out for yourself. If you need help you should check out this whistle-based remote control.

http://www.youtube.com/watch?v=1eIxAMKNphw

Pebble Watch Hack Makes It A Home Automation Controller

[Enrico] loves his Pebble watch, and recently had a chance to explore the code package used to customize its function. It turned out to be really easy to work with so he set out to make the Pebble watch into a home automation controller (dead link; Internet Archive).

So far the two bits of hardware used in his experiments are shown in the image above. The watch itself serves as the controller, interacting with the Ethernet relay board seen in the background. The watch communicates via Bluetooth but you don’t have to know much about that thanks to the example files available from the repository. With communications taken care of he needed a menu system to access commands on the watch. Instead of coding his own he hacked a playlist into the built-in music menu. This allows him to switch the relays on and off again as if he were playing or pausing audio tracks. See it in action after the break.

Continue reading “Pebble Watch Hack Makes It A Home Automation Controller”