
Many habravchane
already noticed an unusually long pause in our regular publications "from the life of COOLRF". Over the past six weeks, many important events have happened. We lost, but then we found and safely received a package with the “rare-earth” components of our dimmer.
JetStyle drew a great design for our site. Habrahabr extended our free corporate account (yes, half a year passed by!). We solved one dimmer hardware problem, but have not yet been able to solve the other. They realized that the current hardware design of the dimmer is not compatible with the Atmel BitCloud software stack. Separated from one party. We decided to return to the development based on NRF24LE1. Began to develop one interesting new solution with a new developer.
Interesting? Welcome under the cat (carefully, unexpectedly many letters)!
A brief introduction to the course for those who first saw our projectWe are developing a complete system of smart home. The “first sign” of our system is a DIY-dimmer. Here are its main characteristics:
- Work on the radio channel 2.4 GHz
- Encrypted connection
- Installation without changing the standard wiring of an ordinary apartment
- Low power consumption
- The usual look of switches
- The possibility of independent expansion of both hardware and software functionality
If you want to join in the discussion of the features of the system, please read all
our previous articles and comments to them. Most likely the questions after such an introduction will be much less.
Want to keep abreast of all project events? It is not difficult at all!You just need to subscribe to the update of
our company in Habré and
in the VKontakte group .
')
With VKontakte questions usually does not arise. To subscribe to Habr's updates, you need to go
to the company’s page and click the “Subscribe” button in the block on the right.
Chinese adventure
Savings do not always bring to good. The first two times we acquired electronic components through an already well-known company HQEW. It turned out that they are engaged not only in printed circuit boards. They have a “proven” supplier of electronics, through which, it seems like without problems and cheaply you can buy everything your heart desires. In fact, compared with direct purchases on taobao, it was not so cheap. Plus, component prices are great (sometimes at times) floated between different shipments. We decided to purchase components on taobao, without HQEW.
Everything could have ended without incident, we use the services of one intermediary. But we wanted to crank up faster. Therefore, we agreed with the taobao intermediary about an atypical operation for him - sending our consolidated (consisting of several incoming parcels from different sellers) cargo not immediately to Russia (not quickly, using our own channel), but to neighboring Shenzhen by Chinese courier service. From where our parcel was supposed to fly by plane to us.
As a result, we got a classic case. The mediator gave the parcel to the courier and said “I wash my hands”, but the delivery service in Shenzhen did not seem to receive the parcel. Each side for a long time in every possible way fenced off from responsibility. Only a week later, we began to find out important details from the sender in the spirit of "our Chinese called our Chinese and said that one piece of paper was missing." As a result, the staff of the Yekaterinburg delivery service office helped a lot (at first they tried to solve issues directly with the Chinese office). The situation was resolved. Taking into account the confusion, the parcel went through the “fast” expensive channel for much longer than it would have passed through the cheap slow channel of the intermediary itself. Moved to the mustache ...
Site design
The design turned out to be a very simple matter.
JetStyle has allocated us a separate person for its development. Spent a lot of time and there is a complete result, fragments of which are used in this post.

In the design, emphasis was placed on compatibility with ZigBee. After some time after the completion of the work, it became obvious that there were serious problems with ZigBee. For this reason, the design has not yet turned into a working site.
Dimmer hardware problems
A decent amount of time was spent on the development of circuitry developed in Ukraine here in Yekaterinburg. It did not work out to get a stable zero detection by a microcontroller. The lamp flickered noticeably in the middle power control range. The secret turned out to be simple - during assembly, the requirement to use a LOWESR version of one of the capacitors was missed.
From unsolved issues - quiet, barely audible whistle dimmer when working. Apparently, you need to choose an alternative manufacturer of inductors used. But this problem has not yet been touched by the human hand - once, and for some time (so far) there is no one. The problem is not very significant, but getting in the way of getting a good product.
Zigbee research
The dimmer control success with ATMEL ended at the implemented MAC level. It has a workable firmware that implements the basic functionality. But this was not the goal of our transition to new expensive chips. The goal was the implementation of ZigBee, and with it we finally got nothing really sensible.
BitCloud imposes on the user code serious limitations on the execution time of individual sections. We concluded that it would not be possible to combine dimmer control (zero control + triac control) in one chip and work with the BitCloud stack. The only possible solution would be to add an additional microcontroller to the dimmer schematic, which is responsible for the low level of dimmer performance. Such an “innovation” would a) make us significantly delay the product release dates, b) would lead to a noticeable rise in the cost of the dimmer and c) would become completely impossible due to a change in the composition of the participants.
Parting with one of the participants
The project was left by Alexander Mikheev
alexmgf , the main ideologue of using ATMEL as a control chip. Alexander has devoted a huge number of his evenings to ZigBee research. As a result, I lost some faith in the possibility of the rapid development of the project. After changing the main place of work, Alexander's free time became much smaller. It was a joint decision on separation.
All developments concerning the ATMEGA128RFA1 chip and the radio module based on it remain with Alexander. Those who wish to purchase these modules (and there are quite a few such volunteers, the chip has its own fans) should contact it directly: AlexMGF (skype).
COOLRF project reload
The transition of the project to the use of new chips at one time occurred for several reasons: 1) it was difficult to find people who could program the NRF24LE1 chips, 2) there was a person who wanted to take on a significant part of the project work and who had many years of experience with ATMEGA128RFA1 microcontrollers, 3) on the basis of ATMEGA it seemed possible to develop a module that is compatible with industry standards, and therefore compatible with devices from other manufacturers (good competitive advantage).
In today's realities, all these reasons were not relevant: 1) people who felt NRF24LE1 and found it quite interesting, began to appear (posts:
1 ,
2 and
3 ), 2) we had to part with Alexander and 3) ZigBee was not implemented simply.
The COOLRF project changes focus and returns to using the NRF24LE1. The firmware for the dimmer kindly promised to help us write
MaksMS , the author of the aforementioned programs about programming this chip.
New beginnings
While the epic with the dimmer forcedly slowed down, one small fresh undertaking started. Together with the new developer, which we will present to the public later, a control module for NOBO convectors is being developed:

The control module is installed instead of the standard thermostat, which is replaceable in NOBO convectors. Without any interference in the interior of the convector, we get a controlled heat source with feedback. And this is a remote heating switch-on (arrived at the dacha, and it's already warm there), automatic climate change depending on the time of day (you can make it cooler at night) or the presence of a person in the house, remote temperature control at different points in a country house, and the like, sometimes vital - necessary features.

The NOBO convectors are one of the most expensive on the market, and are distinguished by maximum reliability and the absence of any clicks in the course of their work. The heating element is controlled by a triac, rather than a clattering relay, like many less expensive competitors.
It is planned to display the network connection indicator (green in the picture), the heating element on indicator (red), the indicators of the current set temperature level (blue) and two buttons for the local change in the temperature level on the front panel of the module. The module will operate in the common radio network of COOLRF smart home devices and promises to be significantly cheaper than the original NOBO controlled thermostats.
What's next?
The project lives, develops and changes. In the near future we are going to try out a new scheme of work. We will try to find several interested experienced developers who will work in parallel on their own piece of our large system. Thus, we hope in a not very long period of time to get a wide range of devices necessary for a smart home.
We still exist on our own pocket money, so we are looking for people who want to participate not for the sake of earnings, but more out of interest. Interest to do something that will really be used by a large number of people, interest to participate in a large interesting open project. The conditions for such participation have not yet been born completely and can be discussed individually.
If you turned out to be such a person, do not hesitate to contact the
webself directly on any of the communication channels indicated on the profile page.