
Having successfully completed the testing of the latest version of iron last Sunday, we hasten to tell readers about the functions and features of our long-awaited DMMR2 - dimmer in the form factor of a micromodule embedded in a standard wall opening (for a switch) connected to a standard electrical wiring (to a single 220V line break -or alterations), controlled by a standard Wi-Fi-channel (already available in almost all apartments and houses in this country).
Not a very original development story
Many are aware of our history. It began almost two years ago, on September 8, 2013, from
the Innovative Dimmer of the Smart Home . Behind her, we tried to write posts almost every week, slowly gaining prominence in the narrow circles of electronics engineers and connoisseurs of the idea to make your home at least a little smarter.
As time went on, the project developed according to the planned scenario. Due to lack of experience, we systematically collected all sorts of bumps. It was admitted, it seems, the maximum range of errors. Including:
- Incorrect understanding of the scope of development. The solution on the selected chip provided the basic transport layer. When it came to the development of a protocol for interaction between devices, it became clear that this was not at all easy and was not implemented at all quickly.
- Wrong stage design. We started with electronics without regard to the case for it. They made a payment with the expectation that “well, and then we will make the case,” having received as a result a solution for an individual case with a simply unreal price tag for manufacturing. Plus, it went down with dimensions - the device was poorly placed in a very limited space allocated to the wall.
- Flirting with the world of OpenSource. The device turned out quite difficult to repeat. Its open source did not bring any benefit to the project. Just wasting time on answering numerous questions "why it works at all" from those who were lazy to read our posts and comments to them from cover to cover.
At different times, the project changed the composition of participants. With new people, we then tried to switch to another main chip (because people knew how to work with it and had no interest in NRF24LE1), then develop other devices - a thermostat for NOBO convectors and leakage protection (because new people will not let them finish someone else’s development with a bunch of problems). The result of such a chase for different hares, naturally, turned out to be negative. And the hares were not caught and their people caught were left with a lost interest.
')
At the end of this whole “rake road”, cheap ESP8266-based wireless modules appeared on the market, working on a standard Wi-Fi channel:
“ESP8266: A revolution in the world of the Internet of things” ,
“ESP8266: What's inside the“ popular wi-fi ”? " . It became crystal clear that the decision on the NRF24LE1 does not have any bright commercial future.
As a result of rethinking everything "committed", the new product DMMR2 began to emerge. Based on a fully updated circuit design, in a pretty factory plastic case of more than adequate size, working in WiFi networks using an ESP8266 chip that controls all processes.
To date, we have a working hardware prototype in our hands with the simplest firmware, which allows you to control the brightness of the lamp using the slider on a web page. All the rest we have yet to implement in the software. And it does not look like some kind of unreal idea. This post is devoted to the review of the developed functionality.
DMMR2 is a convenient dimmer for the Internet of Things.

So today is our test dimmer. Below, a debugging module hangs on the loop, which will not be in the final version.
Easy installation and setup - some of the most important features
You will need a screwdriver, a pair of WAGO terminal blocks and a sacred knowledge of the location of the electrical panel. Turn off the electricity, unscrew the switch, remove two power wires from it. Connect the removed wires to the upper, “lamp”, contacts DMMR2 with the help of terminal blocks. Connect the bottom, "push-button", wires DMMR2 with a switch. Put the switch on the old place. Remove the screwdriver somewhere far away, no longer needed.
Turn on the electricity. Take in hand a smartphone / tablet / laptop, or any other device with Wi-Fi support and a browser. Connect to the network with the name like "COOLRF_XXXX", open the host "coolrf" in the browser and go to the settings page.
On this page, enter the parameters of your home wireless network, the desired host name of the device on your network, for example, “wclight”, save the settings. The device will reboot, enter your network, its web interface will be available on the selected host name.
DMMR2 Functional Features
- The absence of electrolytic capacitors in the design. And that means the risk that the device hidden in the wall will suddenly die in a year or two of permanent work.
- Setup and management - through the built-in web interface with support for multiple languages.
- Firmware update over the Internet.
- Control the brightness of both conventional and LED lamps. The possibility of fine tuning parameters for specific models of lamps.
- Work in both domestic 220-volt and American 110-volt electrical networks. The latter will require tuning and debugging at the program level, without changing the hardware.
- Adjustable lighting control from a local switch connected to the dimmer. This can be either a normal switch or a button switch.
- HTTP API support for integration with third-party smart home components.
- Energy consumption statistics.
- Control the brightness of a single lamp or a group of lamps through the built-in web interface. For example, from a smartphone, lying on the couch.
- Remote control of home lighting from work, from the car and so on. It is implemented using a central home device based on the Raspberry Pi with forwarding through a home router.
- Perhaps something else, invented during the development of these features.
What's next?
Writing firmware code, alpha testing in Yekaterinburg, beta testing in Russia, global expansion. In parallel, a return to high activity in Habré / Heckimes / Megamind. For regular stories about the progress of the project. And discussions with interested readers of our development plans.
If you are interested in following the dimmer project from Ekaterinburg - do not forget to join
our group VKontakte . There are published short notes about growing up dimmer, not falling on Habrahabr and Giktayms. Also, the project ribbon is replete with links to interesting publications on “smart home” topics.