News for hackers. Stuff that matters.
Re:I made a cheap home motion sensor and controller by StavrosK on Friday March 18, 2016 @10:15AM (#11311894)
Thank you! I was afraid it didn't contain enough code, or enough interesting bits. I'm glad you like it! You can take a look at the code on Github, hopefully it'll be easy enough to understand (it's a bit ad-hoc, so I don't know how much sense it will make to others).
Re:I made a cheap home motion sensor and controller by roymurdock on Friday March 18, 2016 @10:40AM (#11312068)
I liked the use of the Expounder tool as well. Less work than jumping up and down to read footnotes, the explanations were well-written and fit into the article flow, and the animation was quick but nice. Nicely done!
Re:I made a cheap home motion sensor and controller by StavrosK on Friday March 18, 2016 @10:52AM (#11312150)
Thank you! I hate footnotes as well, so that's part of why I made Expounder.
Re:I made a cheap home motion sensor and controller by jeffwass on Friday March 18, 2016 @12:04PM (#11312675)
Missed this in the article, but how are you actually turning on/off the lights after this controller sends a "turn on" signal?

Is this basically right : You have some separate receiver that the light or other accessory plugs into, which senses the MQTT signal sent from the controller unique for its channel, and turns on its connected accessory? Were those receivers custom designed as well?

Re:I made a cheap home motion sensor and controller by StavrosK on Friday March 18, 2016 @12:09PM (#11312705)
The lights plug in to some cheap RF-controlled plugs, and the sensor board sends the signal with the RF transmitter to turn the plugs on and off. I reverse-engineered the timings in this post:

https://www.stavros.io/posts/how-remote-control-rf-devices-r...

Also, I designed this PCB that's basically a wifi-enabled ESP8266 LED controller:

http://dirtypcbs.com/view.php?share=16892&accesskey=996a11f9...

This allows you to control 5050 LEDs and change their color/intensity/etc over MQTT. I'm going to write a thing to slowly fade them to max as night falls, and make them progressively redder as I get nearer bed time. I'm just waiting for the PCBs to arrive, the prototype works fine.

You can subscribe to my blog to be notified when I write that post up as well.