Using Wiren Board with pulsed output devices/en: различия между версиями
FuzzyBot (обсуждение | вклад) м (FuzzyBot переименовал страницу Wiren Board 5: Подключение устройств с импульсными выходами/en в Using Wiren Board with pulsed output devices/en без оставления перенаправления: Часть переводимой страницы Wiren Board 5: Подключение устройств с импульсными выходами.) |
(Новая страница: «Next, in the web interface, you must configure universal input A1 as a counter. In the '''Configs''' menu, select '''GPIO Driver Configuration'''. On the panel c…») |
||
(не показана 1 промежуточная версия 1 участника) | |||
Строка 23: | Строка 23: | ||
Find the device '''Discrete I/O''' and see that it has new properties: "A1_IN_current" and "A1_IN_total". The field "A1_IN_current" shows the current water consumption, and "A1_IN_total" — what amount was spent from the moment of connection. In mqtt, these fields correspond to the topics '''/devices/wb-gpio/controls/A1_IN_current''' and '''/devices/wb-gpio/controls/A1_IN_total'''. | Find the device '''Discrete I/O''' and see that it has new properties: "A1_IN_current" and "A1_IN_total". The field "A1_IN_current" shows the current water consumption, and "A1_IN_total" — what amount was spent from the moment of connection. In mqtt, these fields correspond to the topics '''/devices/wb-gpio/controls/A1_IN_current''' and '''/devices/wb-gpio/controls/A1_IN_total'''. | ||
Значение '''A1_IN_total''' сохраняется после перезагрузки контроллера (как retained сообщение в хранилище mqtt-брокера). |
Версия 21:28, 19 июля 2019
Connection of sensors and counters with pulse outputs and buttons to the Wiren Board 5
Universal inputs/outputs A1-A4 of the controller can be used to connect various devices with pulse output or buttons. A typical example is water meters or electricity meters.
Connection
Pulse input one wire is connected to the power supply 5 — 24 V, the second wire to the terminal A1.
Next, in the web interface, you must configure universal input A1 as a counter. In the Configs menu, select GPIO Driver Configuration. On the panel choose A1_IN login settings, click Properties and mark all the checkboxes. Then click Properties again. Now there are additional fields in the A1_IN input properties.
In the list of fields Pulse counter type (if any) choose the type water_meter. In the field Number of pulses per unit (kWh or m^3) specify how many pulses per cubic meter (for example, if 1 pulse of the counter corresponds to 10 liters, then specify 100; if 1 liter — 1000.) Field value Number of decimal places... specifies how many decimal places will be displayed in the Wiren Board interface. Save the settings by clicking the Save button at the top of the page and go to the list of devices on the Devices page.
Find the device Discrete I/O and see that it has new properties: "A1_IN_current" and "A1_IN_total". The field "A1_IN_current" shows the current water consumption, and "A1_IN_total" — what amount was spent from the moment of connection. In mqtt, these fields correspond to the topics /devices/wb-gpio/controls/A1_IN_current and /devices/wb-gpio/controls/A1_IN_total.
Значение A1_IN_total сохраняется после перезагрузки контроллера (как retained сообщение в хранилище mqtt-брокера).