Wiren Board 5: Now Outdated Automation Controller Version


    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!)


    Why we have released a new version


    To correct what the users did not like, and we ourselves:


    • doubled the amount of RAM - from 64 to 128 MB DDR2, at the same time expanding the operating temperature range to -25 .. + 85 ° C
    • replaced a potentially unreliable microSD memory card as a ROM with built-in eMMC 4 GB memory
    • made the controller modular - you can add functions by installing expansion cards inside the case, and also increase the number of inputs and outputs by connecting side modules

    We also added some fashionable chips:


    • Bluetooth 4.0 (including Low Energy)
    • CAN port
    • infrared port
    • S / PDIF (digital sound)

    About this (and about important changes in software) in more detail below.


    Device description


    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 tasks and acts as a controller for monitoring advanced DRC : collects data from various devices such as metering devices, stores a local history shows mnemonic for local management, sends the upward information.


    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:



    Full specifications
    • Операционная система Debian Linux 7.0. Веб-интерфейс и ПО для автоматизации в комплекте.
    • Процессор и память: 454 МГц ARM9, 128 Mбайт DDR2, 4 Гбайт eMMC
    • Беспроводная связь:
      • GSM/GPRS
      • Wi-Fi
      • Bluetooth 4
      • радио 315/433 МГц (опция)
      • Z-wave (опция)
      • ИК-порт (внешний приемопередатчик)
    • Порты:
      • Ethernet 10/100
      • USB 2.0
      • RS-485 x 2
      • CAN
      • 1-wire
    • Аудиовыход: S/PDIF Toslink или RCA.
    • Входы/выходы (мультиплексированы):
      • 4 входа АЦП
      • 1 вход для резистивных датчиков
      • 5 цифровых входов
      • 4 выхода “открытый коллектор”
    • 2 слота для модулей расширения:
      • ADC, DAC, RS-232 и др.
    • до 8 модулей ввода-вывода: реле, "сухие контакты" и др.
    • Корпус: 103x87x20 мм, на DIN рейку
    • Условия эксплуатации: -25..70°C, относительная влажность до 95% без конденсации влаги
    • Watchdog, динамик, часы реального времени RTC
    • Встроенный Li-Ion аккумулятор (опция)

    Internal Expansion Modules



    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, then 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:


    • RS-232
    • CAN (Isolated)
    • RS-485 (Isolated)
    • ADC - voltage inputs, 0-20mA inputs, inputs for PT100 and PT1000 sensors
    • DAC - Outputs 0-10V
    • dry contact inputs
    • GPS / GLONASS
    • microSD connector

    Coupled I / O 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.


    How it works inside

    Модули подключаются к процессору по шине I2C, а их сигналы обрабатываются драйвером в ядре Linux по прерыванию. Благодаря этому, задержка между, например, срабатыванием входа на модуле расширения и детектированием сигнала в ПО не превышает 1мс, что на два-три порядка быстрее чем при работе по Modbus.


    Now there are five modules available:


    • digital inputs for connecting "dry contacts" with group galvanic isolation
    • 220V digital inputs
    • relay output module (10A ~ 230B)
    • I / O module with TTL levels (5V, up to 20mA) - in fact, additional GPIO
    • discrete output module. It contains 8 outputs of the type "High Side Switch" - when the channel is turned on, the Vin voltage is applied to the terminal. Designed to control relays, low voltage motors, etc.

    Infrared port


    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.


    Soft


    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:


    Rule system


    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 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 .


    Alert module


    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.


    How to buy wiren board cheaper


    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.


    Stay tuned


    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.


    Links: The
    Wiren Board 5 page on the
    Documentation Community site



    We welcome comments!


    Also popular now: