
At first, we made a temperature and humidity sensor for offices in a beautiful wall case with an RS-485 Modbus interface, but so far we did, appetites have grown a bit.
As a result, the sensors were placed in a compact case:
- CO2 concentration,
- temperature / humidity
- illumination
- noise
- VOC concentrations - “volatile organic matter (VOC)”
- movement
And:
- IR transmitter (with receiver for training)
- and still knows how to squeak and blink "eye" red / green
As a result, the quantity goes into quality. Installing one device on a room completely covers the task of monitoring and controlling indoor climate. Easier installation and configuration, and the device itself is cheaper than several separate ones.
')
How we did the body
From left to right - the sensor in the Chinese case, the first prototype, the serial case.
Combined wall sensors for residential and office space, we have been doing for several years. There were a lot of revisions, several thousand copies sold, several large deployments: you may have found the sensor in the case on the left, for example, in a network store or in branches of a large bank.
Naturally, at first we used the standard case from catalogs of countless Chinese manufacturers of standard cases.
We modified it for ourselves: milled holes, glued lenses. It worked out quite decently and technologically, but I wanted better - more solid plastic, comfortable latches, etc. One of the funny problems: when customers hung sensors low on the walls, visitors sometimes took the button and tried to "push" . The very strong turned out like this:

When we started to make our own body, we took the old standard as a basis: we looked at it and corrected what we did not like about it.
They deepened the lens, widened the mounting holes, added cuts for the cable, made small legs on the bottom, fixing the lens with screws. Printing a prototype (master model) was done on a 3D printer (~ 15,000 rubles) + a pilot batch of silicone casting.
The master model was black, and in general the form suited us, but when we received a trial batch of white cases we were saddened - it turned out worse than the Chinese original. The principle of "black slim, white fills" is true not only for dresses. This is not very visible in the photo, but, despite the formal equality of dimensions, the new building looked much thicker. Due to smooth angles, bulges around the lens.

And the narrowing of the walls to the bottom of the Chinese case gives an interesting effect - when the case hangs on the wall and you look at it from a slight angle, you can only see the straight part of the side wall and it seems that the case is twice as thin.
Therefore, the next version was underestimated with the zeal of the Dagestanis - and, in general, they rested against the thickness of the CO2 sensor. We also added a side cutout for a cable channel of 10 * 15 mm - now the crookedly cut edge of the cable channel is covered by the body itself.
The bottom line is this:

Pay attention to the little things: there are "glasses" around the mounting holes to protect the board from the installer's screwdriver; technological openings under the latches work as windows for status LEDs; there is only one latch, but it is so recessed that it will not work with a finger.
I made a little mistake with the snaps - because of the tolerances they turned out to be slightly thicker than the holes for them, you have to gently modify the file, but this is only 10-20 seconds per case.
The mold and casting were made in China. at prices it turned out only about $ 2500 for a mold and about $ 600 for a casting of 1000 pieces. But the construction of the hull was much more :). A lot of time and money was spent on prototyping, though more for reasons of their sloppiness. And the casting into silicone turned out to be an extra step - the casting accuracy still didn’t allow us to notice the absence of gaps for tolerances in the latches, and the general principle and appearance can be understood by the model from a photopolymer 3D printer if you paint it in the correct color.

About the case told, but what's inside?
And there is a green fee! Part of the sensors in the form of separate modules (TH, VOC, CO2), the rest on the board.
Briefly about the sensors:
CO2 sensors (carbon dioxide)
- Famous Winsen MH-Z19B. They work on the NDIR technology (
nondispersive infrared sensor, non-dispersive infrared analyzer) - that is, light of a certain wavelength is driven through the gas chamber, and its intensity is measured to decrease.
The more carbon dioxide in the air, the more the light dies out. This technology is superior to electrochemical sensors, including its high selectivity (that is, the reaction to carbon dioxide, and not to other similar ones (for example, CO is carbon monoxide).
The carbon dioxide concentration itself is an important parameter that directly affects human performance (
https://ehp.niehs.nih.gov/doi/10.1289/ehp.1510037 ) The CO2 concentration in the street is 400 ppm, a good level for the room is up to 600 ppm, at a concentration of 1000 ppm (which is easily achieved, for example, by meeting with the windows closed), the deterioration of performance is noticeable without special studies. Elevated CO2 levels signal that the room needs to be ventilated — not only to reduce the concentration of carbon dioxide, but also to clean the room from bacteria — for example, causing a cold.
Temperature / Humidity Sensor
- we put the digital combined T + RH sensor with individual calibration. There was a negative experience with the Chinese sensors AOSONG AM2320 - after some time (1-2 years) ~ 20% of the party began to underestimate the testimony. Earlier, there was a large variation between different batches, which indirectly indicated that the batches were discarded but not calibrated by the manufacturer at best.
The chip is closed in a “sandwich” of printed circuit boards to additionally protect the sensitive element of the sensor from dust, water droplets and the installer’s fingers.
VOC sensor
- Sensirion's new SGPC3 multi-pixel gas sensor for measuring air quality. The sensor itself is generally the leading edge of development, MEMS technology, low consumption, compactness, stability of readings and many other beautiful words.
What is air quality? What do we measure at all? The sensor reacts to organic gases. This evaporation of varnishes / paints, alcohols, decaying vegetables, gases emitted by man, also detects the leakage of domestic gas. It complements, but does not exclude the CO2 sensor.
The sensor is covered with a gas permeable film (left). Right sensor with the film removed. And inside is such a beauty:

You can see that the wires of the spiral heater of the substrate are suitable from the right-to-left, and from the top and bottom of the wire to the 4 cells. But it is not exactly.
Light sensor

- advanced, with a filter that repeats the spectral sensitivity curve of the human eye. It therefore has good accuracy and measures real suites, not parrots.
The effect is especially noticeable when comparing the readings of our sensor with devices of competitors, where there is an ordinary photodiode, with different lighting: daylight, incandescent lamps, cheap and expensive LED lamps.
Why do we need a light sensor? Control of lighting, rolling shutters. Since the suites are real, the threshold values ​​can be set not “by eye”, but according to the norms of SanPiN.
Motion Sensor
- based on the PIR sensor D203S. Sensitivity and viewing angle is not the most outstanding (120 °, up to 10 m), but for working indoors is enough.
It is not just a signal transmitted that there is movement / no movement, but a certain “amount” of movement in parrots. That allows programmatically in the system of rules to respond differently to different thresholds.
Noise sensor
- microphone with amplifier and filters for correction on scale A, taking into account the peculiarities of the human ear perception of sounds of different frequencies. Can be used in addition to the motion sensor.
You can turn down the volume of the TV, if the time is later, and the children are carried away watching the action movie. Or squeak loudly if the poetess read their poems too loudly :)
However, most customers have more “boring” applications: monitor compliance with the very SanPiN; sometimes give additional information about the work of noisy units.
In the picture: the noise in the room and the work of the Central Art Museum (this is such a very large refrigerator) in the grocery store.Emulation of IR remotes for technology
In the new WB-MSW under the lens hidden IR receiver for training and 8 IR LEDs. Their power is enough to "cover" the signal of a large room.
Training is done once - the commands are stored in the device’s memory and can be played by the Modbus command from the controller. The number of commands remembered is large enough (up to a hundred, depending on the model of the remote control) in order to control all the devices in the room at once: a TV, an air conditioner, a receiver, a player, a projector - the main thing is that the IR receivers of the devices “see” the transmitter.
Taking into account the recommendations to place temperature, humidity and carbon dioxide sensors at about the height of human growth, it will be easy to provide. The transmitter power is enough for the controlled devices to receive not only the direct, but also the reflected signal.
In non-residential premises, using infrared, it is possible to control the air conditioners (almost all of them have an infrared receiver window, and IR control is several times cheaper than “native” interfaces) and heat curtains. Naturally, WB-MSW is suitable only if all devices in the field of visibility need to be controlled synchronously: one remote control cannot supply different modes to two different air conditioners. For individual control of each air conditioner, the “younger brother” of the sensor is suitable -
WB-MIR .
Indication

The sensor can squeak loudly and blink in different colors.
The commands for Modbus define the period and duration of the “flashes” of the LEDs: in fact, you can change the frequency and brightness of the flash.
On the LEDs, you can make feedback for the user, for example, blink red at a high level of CO2. It is also convenient when you install many identical sensors in a large room: you can remotely turn on, for example, a squeaker and find the one you need.
Total
Thus, the combined sensor is a serious source of data for room automation. With it, an advanced script on the controller can provide a comfortable stay for people.
- Temperature and humidity conditions and air quality: control of ventilation and humidification, control heads of radiators, air conditioning, window opening / closing drives, automatic curtains (temperature, humidity, carbon dioxide, VOC).
- Security functions: motion and sound notifications (microphone, motion sensor).
- Implementation of scenarios: control of lighting, automatic curtains, background music, on / off video on a schedule, comfortable waking up, circadian lighting (light sensor, microphone).
- Drawing attention to abnormal situations (squeaker, signal leds)
- Energy saving: the presence / absence of people in the room (motion sensor, microphone, CO2 sensor).
I already want to buy
Samples of the new model are already in happy testers, the first production batch is in production. As usual, one and a thousand pieces can be ordered
on our website .
We are preparing for the arrival of the party of new MSW v. 3 and clear the shelf space: old (“mature”, “time-tested”) WB-MSW v. 2 sold at a discount of ~ 30%.