r/microcontrollers • • Aug 12 '15

[Request] Tutorial for how to build a Wifi Microcontroller light switch/outlet

I'm a noob when it comes to microcontrollers but I thought a cool project would be building a wifi enabled device to turn on and off a light switch or outlet (something like Belkin Wemo that is friendly on the wallet). Ideally, it would be something small that would act like a switch and could be mounted inside the wall behind the actual light switch or outlet. I was thinking that if it was for a light switch, it could be integrated into the circuit with before the light switch or maybe integrated as a 3 way switch so that they could both be used to turn on/off the circuit. Again, because I want it to be relatively inexpensive, it seems that using an Arduino is pretty much out of the question. Any and all help would be appreciated.

0 Upvotes

7 comments sorted by

2

u/toromio Aug 12 '15

Whoa there. easy. What you wanna look into are two things: relays, and an RF 433 transmitter/receiver combo.

2

u/[deleted] Aug 12 '15

Define inexpensive. The lowest cost, simplest access to a wifi module I can think of off hand is the ESP8266. They can be had for as cheap as $5.

https://hackaday.io/project/4731-esplux-smarts-for-your-downlights

http://www.seeedstudio.com/depot/WiFi-Serial-Transceiver-Module-w-ESP8266-p-1994.html

That said, you'll still need a microcontroller to interface with this particular wifi module.

3

u/_ryu_ Aug 13 '15

I agree on the ESP8266, but for this kind of project, you don't really need another microcontroller, the ESP8266 is a programmable microcontrontroller itself , even your ESPlux doesn't seem that has another processor..

2

u/[deleted] Aug 13 '15

I agree. If it were me , I'd just modify the ESP8266 firmware. That may not be trivial for a beginner though.

1

u/Leonelf Sep 04 '15

Their a lua capable firmware you can flash on it afaik

1

u/swrrga Aug 13 '15

Start with low-voltage DC before you start fucking with mains

1

u/[deleted] Sep 01 '15

ESP8266 + a relay and you're done, mostly, you'll need to power it which needs low voltage DC supply.

Here's a tutorial I found. http://www.instructables.com/id/ESP8266-WiFi-relay-switch/ Personally I'd mount them up with the bulb by making a custom wire.