Hello!
We did not write for a long time on Habr ( which is not the same ), but at the end of last year they released a new version of Wiren Board - a controller for automation with open software, and today we will tell about it (there is a discount under the cut!)
To correct what the users did not like, and we ourselves:
We also added some fashionable chips:
About this (and about important changes in software) in more detail below.
In short, Wiren Board 5 is a device that acts as a central controller in an automation or monitoring system.
For example, in a "smart home" controller can control the lighting and climate control, take readings from climate sensors and security sensors. For this, the controller can work with different external devices, it can execute different rules and scenarios, it is engaged in saving and visualizing data.
In typical scheduling and monitoring tasks, the controller acts as an advanced data acquisition device: it collects data from various devices, such as metering devices, stores local history, shows a mnemonic for local control, and sends data up.
The controller is built on a powerful processor , running Linux, has many built-in wired and wireless interfaces and ports for communication with external devices and the outside world.
Naturally, all this is industrial-grade: a DIN rail housing, a large input power range, a wide temperature range, reliable memory, protection of all ports, etc.
The pictures below show what is in the controller:
Modular design always has both advantages (flexibility for a specific task) and disadvantages (cost increase). But modularity greatly accelerates the release process with minor modifications. Production of the controller, even with small changes in the PCB, is troublesome for several months. It is quite another thing to install a small scarf inside the case.
In the previous version of the controller there was one slot for the expansion module. In Wiren Board 5, modules are installed vertically inside the case, therefore there is room for two modules. The I2C, SPI, and UART interfaces are output to the module connector. The pinout of the connector is close to the pinout of the Raspberry Pi, which allows you to install some shields. In addition, three terminal blocks are allocated for each expansion module: if, for example, you decide to add an RS-485 port, you will not have to pull the bus wires to the module's shawl inside the case — you can clamp them into ordinary terminal blocks. Already have modules:
For any wired installation, the controller must have many inputs (inputs of switches, motion sensors, openings, alarms) and outputs (separate control of each lamp or actuator). In this case, the desired set of contacts varies greatly.
Previously, our only solution for this was RS-485 peripheral devices. But there is a lot of trouble with them - a separate physical connection is required, a separate power supply, the device address must be set in the software.
Therefore, we made the side I / O modules for Wiren Board 5, which are installed very simply - dock with the controller on the DIN-rail and immediately work. In total, you can connect up to 8 modules: up to 4 input modules and up to 4 output modules. If the assembly does not fit into the cabinet in width, you can use a special cable to transfer the modules to the next rail.
Since the modules do not have built-in logic, they are noticeably cheaper than external RS-485 Modbus devices: for example, the additional 8 relay outputs now cost 2,200 rubles.
The modules are connected to the processor via the I2C bus, and their signals are processed by the driver in the Linux kernel by interrupt. Due to this, the delay between, for example, triggering an input on an expansion module and detecting a signal in the software does not exceed 1ms, which is two to three orders of magnitude faster than when working on Modbus.
Now there are five modules available:
Many household devices are controlled by remote controls (for example, for most household air conditioners, this is generally the only way to turn off the power). We have added a port for external remote IR receiver / transmitter to Wiren Board 5.
Unfortunately, the finished transceiver could not be found. Separately available receivers and transmitters with a 3.5 mm jack connector, but fortunately they have a good pinout — you can connect both to one connector.
For convenience, we have developed our transceiver, with parasitic power supply of the receiver chip. With it, you can receive signals from the consoles (and use them in your rules - read about them below), and you can also send signals to your home appliances.
The software component of the controller is also greatly improved. Recall that the Wiren Board controllers have the Linux operating system Debian, and all the special software of our development is open and available in the Github repository for study.
All configuration is now going through a web interface.
We also added drivers for the most popular electricity meters with RS-485 interfaces - Mercury 230 and Milur 305, support for IVTM sensors and various other devices . When connecting them (as well as connecting our peripherals), you just need to select the device name in the list and enter its address:
Many changes have been made to the rules engine (we call it wb-rules ). It allows users to write scripts in JavaScript. The fulfillment of the rules is tied either to the time (according to the schedule), or to the fulfillment of certain conditions (the temperature sensor showed above 25 ° C, the motion sensor was triggered, etc.). From the rules, you can control all the outputs of the controller and expansion modules (for example, switch relays), as well as send commands via RS-485, send SMS or email notifications.
Rules are created entirely through the controller web interface.
To make it easier for you to understand the rules language, we constantly replenish the section with examples in the documentation , and some users share their rules on our forum .
A separate very frequent type of rules - just sending a notification in some abnormal situation. In order not to write a special rule for this, we made a separate Alarms module, which is very easy to configure: you select a parameter to monitor, a trigger condition (for example: the temperature sensor exits the specified limits, the motion sensor triggers), the action (sending SMS or email), alert text.
The first buyers of the first versions of Wiren Board were enthusiasts from Habr. Unfortunately, the price of hardware and software increased simultaneously, especially in rubles.
It seems that we have figured out how to meet the community again and, at the same time, not to go bankrupt ourselves. It turned out something like group purchases: in the near future, we are launching another batch into production, and if you join it (on pre-order conditions), then we will give you a discount. For us it turns out as if a wholesale order, respectively, we give a wholesale discount and a little more on top, for a total of 20% .
To participate in pre-order, enter the code WB5-APR16-HABR when buying in our online store.
We collect pre-orders before May 1, devices will be ready no later than June 15. In this case, the stock of controllers is in stock right now, but they are sold from stock without discount.
In the near future, in our blog, we plan to tell you more about the hardware of Wiren Board 5, about new peripherals, show how to use our software, etc.
References:
Page Wiren Board 5 Online
Documentation
Community
We welcome comments!
Source: https://habr.com/ru/post/393043/
All Articles