kk
Gabriel Morell





Home Automation Via IRC

Using IRC and Celery, control an entire house worth of interconnected nodes.

Soon
posted March 3, 2014, 5 p.m.
under home-automation-via-irc · perma
Soon

Soon

Soon

Soon

Soon

Soon

Soon

Soon

Soon

Soon

Soon

Soon

Soon

Soon

Disco Light Attack
posted Aug. 19, 2013, 10 p.m.
under home-automation-via-irc · perma

I finally got back to working on these lights. A few weeks ago I assembled everything and built a case out of a sparkfun box.

best project box ever

best project box ever

I coded a few methods into the bot and it's far less flaky than writing to an arduino's serial port like before. Check out sieze aka disco mode:

The code is here

Of RGB LEDs and raspberries
posted April 3, 2013, 11 p.m.
under home-automation-via-irc · perma

I saw a 5M strip of RGB LEDS (SMD5050) on amazon that were "used" for 2/5 the original asking price, so I decided it was a pretty good idea to snag it.

Upon arrival I inspected that product and noted that the built-in connector with fragile pins was busted. It didn't really matter as

  • A the LEDs worked
  • B I had no actual intention of using the built-in connector.

Treading onward, I soldered a female header onto the end of the strip and attached it to my stripboard prototype platform. (see last post)

A floppy drive connector from an ATX PSU became actually useful because it plugged into the pin headers on the stripboard happily.

I compiled the fantastic pi-blaster library and powered the contraption up. After debugging a few connections I was able to change the light colors successfully but I may be dealing with some odd capacitance or such along the way that messes with the MOSFETs and PWM unpredictably. But it's a good start.

Strip Board to the rescue
posted March 23, 2013, 11 p.m.
under home-automation-via-irc · perma

I needed an easy way to test RGB control, so I put together a strip board to prototype using N-channel MOSFETs and a lot of male pin headers and jumper wires.

Strip Board

Strip Board

Scheduling Mania
posted March 17, 2013, 11 p.m.
under home-automation-via-irc · perma

Now I needed a way to control the lights depending on time of day. I setup celery with redis and used django-celery purely for an easy-mode gui for adding tasks.

As you can see below, the lights turn on in the evening and then fade to minimum as the night progresses.

Mono light Command

Mono light Command

I set up a listening socket on the IRC bot and pointed the tasks to write raw commands to the socket for the bot to echo.

Below it shows what it looks like from the irc channel. It's getting cozy in there now.

screenshot from putty showing scheduler

screenshot from putty showing scheduler

Around this time I wrote another bot plugin to query what was being played on the tv. Now we're getting places.

Living Room LED Control
posted March 4, 2013, midnight
under home-automation-via-irc · perma

The living room has LEDs around the edges of the wall pointing down. I took a FET and a power supply and hooked them to the PC that was controlling the TV and added a few basic commands to control the lights:

  • Single - a single light value
  • Blink - Blinks on and off
  • Fade - Fades between on and off
  • Spaz - Jumps between steps randomly
screenshot from putty showing led control

screenshot from putty showing led control

Initial Bot
posted March 2, 2013, midnight
under home-automation-via-irc · perma

I started this project by making a class that talks to a TV over serial and commands inputs.

I took the class from this and linked it to a supybot plugin and...

screenshot from putty showing tv control

screenshot from putty showing tv control