Cheap WiFi LED dimmer (~10$)
Posted: Wednesday 31 December 2014 4:06
--update (2017-02)
Just wanted to let everyone know this project is still very much alive and kicking! I'm using the modules in my new house and it's working great! Check out the updated index page for the project by clicking here! We're up to version 2.6 of the board now!
------------------------------------------------------------------------
In the past I started the "Building my own network controlled LED dimmer" topic here on the forum. The plans I had for that module (v1) have since been completed and it instantly become obsolete a few weeks later. I have made a v2 of it using different hardware bringing the cost down a LOT (sub 10$).
The reason for making this hardware for me was that I wanted a cheap LED dimmer that was controllable using Domoticz. I looked at everything from dx.com dimmers to Applamp to z-wave Fibaro dimmers and while they all had their strong points, they never really did what I wanted and some where WAY too expensive to use extensively throughout my house (Which I'm currently building). My main requirements where that I would like to have it use WiFi and also that the dimming was smooth between given values and not an instant switch.
So this topic will be about the v2 device, how to build it and how to get it to communicate with Domoticz! Partly in this post, partly with the posts I'm writing on my blog (too much information to contain in a forum post).
Blog Posts
Part1: The Setup, how does this work and why?
Part2: What hardware do I need, where do I get it and what tools are required?
Part3: Flashing and programming the ESP-01
Part4: Configuring Domoticz
Part5: Hacked Ikea LED lamps
Part6: ESP8266 Domoticz Wall Switch
Part7: Updated Dimmer and Domoticz code
Part8: Version 2 of the PCB design
The new module is based on the ESP8266 ESP-01 chip from China which is a Micro-controller and WiFi board in 1. They make these little boards for about 3$ and they are the ideal "Internet of things" device. Since a little while there is firmware available which allows you to program them in the relatively simple "LUA" programming language.
I have completed my first prototype soldered version and am writing code for it right now. Currently I have functioning code for on the little device and Domoticz (using LUA scripts) to have a working Dimmer slider. I will be posting those on my blog in the next few days to try and have a central place where I keep the code updated!
As written in the topic title, the complete module with all parts used comes in under 10$ and can be easily built yourself. Currently only by soldering the complete board yourself but hopefully my first run using http://dirtypcbs.com will be successful so I can post my PCB board design. Then it should be quite easy making one yourself!
I intend to share everything, I just want to make sure the design works before posting it!
--update 2015-01-03
I have made a video of the completed setup, you can find it here: http://youtu.be/r0mZF1C8Z-U?list=UU98qr ... 3Ne7zrbXvA . Also I updated the Domoticz code to fix the module not turning off but completely on when using it in a scene. Also the code has been improved to use variables at the beginning of the script.
--update 2015-02-02
I have added the Gerber and Fritzing files so you can get the boards made yourself.
A word of warning though, I give no guarantee this will work in your case and that the design of this board is perfect. It certainly is not and the way the voltage converter is connected with little wires is beyond clunky... It works though, no problem!
If you want to do me a favor, please buy it from here using the following link: http://dirtypcbs.com/view.php?share=367 ... a4761dae6a It will help me out a bit, and for you it just costs the normal very very low price of dirty PCB's anyway.
--update 2015-04-10
I have updated this post to include the new editions to my blog posts I have written. They include various parts using an ESP8266 in Domoticz. The most important one for the LED dimmer is Part 8, a new, much better and smaller, design for my LED dimmer board. It's now less then half as big and still includes all functions of the previous one. Anyone wanting to use these boards I recommend creating v2 from now on. You can read Part 8 here.
This applies to this one too, if you want to do me a favor, please buy the boards at DirtyPCB's using the following link. http://dirtypcbs.com/view.php?share=5691&accesskey=
The new board!
Just wanted to let everyone know this project is still very much alive and kicking! I'm using the modules in my new house and it's working great! Check out the updated index page for the project by clicking here! We're up to version 2.6 of the board now!
------------------------------------------------------------------------
In the past I started the "Building my own network controlled LED dimmer" topic here on the forum. The plans I had for that module (v1) have since been completed and it instantly become obsolete a few weeks later. I have made a v2 of it using different hardware bringing the cost down a LOT (sub 10$).
The reason for making this hardware for me was that I wanted a cheap LED dimmer that was controllable using Domoticz. I looked at everything from dx.com dimmers to Applamp to z-wave Fibaro dimmers and while they all had their strong points, they never really did what I wanted and some where WAY too expensive to use extensively throughout my house (Which I'm currently building). My main requirements where that I would like to have it use WiFi and also that the dimming was smooth between given values and not an instant switch.
So this topic will be about the v2 device, how to build it and how to get it to communicate with Domoticz! Partly in this post, partly with the posts I'm writing on my blog (too much information to contain in a forum post).
Blog Posts
Part1: The Setup, how does this work and why?
Part2: What hardware do I need, where do I get it and what tools are required?
Part3: Flashing and programming the ESP-01
Part4: Configuring Domoticz
Part5: Hacked Ikea LED lamps
Part6: ESP8266 Domoticz Wall Switch
Part7: Updated Dimmer and Domoticz code
Part8: Version 2 of the PCB design
The new module is based on the ESP8266 ESP-01 chip from China which is a Micro-controller and WiFi board in 1. They make these little boards for about 3$ and they are the ideal "Internet of things" device. Since a little while there is firmware available which allows you to program them in the relatively simple "LUA" programming language.
I have completed my first prototype soldered version and am writing code for it right now. Currently I have functioning code for on the little device and Domoticz (using LUA scripts) to have a working Dimmer slider. I will be posting those on my blog in the next few days to try and have a central place where I keep the code updated!
As written in the topic title, the complete module with all parts used comes in under 10$ and can be easily built yourself. Currently only by soldering the complete board yourself but hopefully my first run using http://dirtypcbs.com will be successful so I can post my PCB board design. Then it should be quite easy making one yourself!
I intend to share everything, I just want to make sure the design works before posting it!
--update 2015-01-03
I have made a video of the completed setup, you can find it here: http://youtu.be/r0mZF1C8Z-U?list=UU98qr ... 3Ne7zrbXvA . Also I updated the Domoticz code to fix the module not turning off but completely on when using it in a scene. Also the code has been improved to use variables at the beginning of the script.
--update 2015-02-02
I have added the Gerber and Fritzing files so you can get the boards made yourself.
A word of warning though, I give no guarantee this will work in your case and that the design of this board is perfect. It certainly is not and the way the voltage converter is connected with little wires is beyond clunky... It works though, no problem!
If you want to do me a favor, please buy it from here using the following link: http://dirtypcbs.com/view.php?share=367 ... a4761dae6a It will help me out a bit, and for you it just costs the normal very very low price of dirty PCB's anyway.
--update 2015-04-10
I have updated this post to include the new editions to my blog posts I have written. They include various parts using an ESP8266 in Domoticz. The most important one for the LED dimmer is Part 8, a new, much better and smaller, design for my LED dimmer board. It's now less then half as big and still includes all functions of the previous one. Anyone wanting to use these boards I recommend creating v2 from now on. You can read Part 8 here.
This applies to this one too, if you want to do me a favor, please buy the boards at DirtyPCB's using the following link. http://dirtypcbs.com/view.php?share=5691&accesskey=
The new board!