Перейти к содержанию

Навигация

Using Wiren Board with pulsed output devices/en: различия между версиями

м
FuzzyBot переименовал страницу Wiren Board 5: Подключение устройств с импульсными выходами/en в Using Wiren Board with pulsed output devices/en без оставления перенаправления: Часть переводимой страницы Wiren Board 5: Подключение устройств с импульсными выходами.
(Новая страница: «Wiren Board 5: Connect devices with pulse outputs»)
 
м (FuzzyBot переименовал страницу Wiren Board 5: Подключение устройств с импульсными выходами/en в Using Wiren Board with pulsed output devices/en без оставления перенаправления: Часть переводимой страницы Wiren Board 5: Подключение устройств с импульсными выходами.)
 
(не показано 6 промежуточных версий 1 участника)
Строка 1: Строка 1:
<languages/>
<languages/>


== Подключение датчиков и счетчиков с импульсными выходами и кнопок к Wiren Board 5 ==
== Connection of sensors and counters with pulse outputs and buttons to the Wiren Board 5 ==




[[Wiren_Board_5:Аппаратная_часть#Универсальные входы/выходы A1-A4|Универсальные входы/выходы A1-A4]] контроллера могу использоваться для подключения различных устройств с импульсным выходом или кнопок. Типичный пример: счетчики воды или электросчетчики.
[[Wiren_Board_5:hardware Part#Universal inputs/outputs A1-A4|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 ====


Импульсный вход одним проводом подключаем к источнику питания 5 — 24 В, второй провод к клемме А1.
Pulse input one wire is connected to the power supply 5 — 24 V, the second wire to the terminal A1.
[[File:Installation_WB5_+_WaterMeter.png|thumb|center|400px|Пример подключения счетчика с импульсным выходом]]
[[File:Installation_WB5_+_WaterMeter.png|thumb|center|400px|Example of connecting a meter with a pulse output]]


Далее в веб-интерфейсе необходимо настроить универсальный вход A1 как счетчик.  
Next, in the web interface, you must configure universal input A1 as a counter.  
В меню '''Configs''' выбираем раздел '''GPIO Driver Configuration'''.
In the '''Configs''' menu, select '''GPIO Driver Configuration'''.
На панели выбираем настройки входа A1_IN, нажимаем кнопку '''Properties''' и отмечаем все флажки. Еще раз нажимаем кнопку '''Properties'''.
On the panel choose A1_IN login settings, click '''Properties''' and mark all the checkboxes. Then click '''Properties''' again.
Теперь  в свойствах входа A1_IN появились дополнительные поля.
Now there are additional fields in the A1_IN input properties.
[[File:GPIO6_WaterMeter.png|thumb|center|800px|Вид интерфейса настройки счетчика]]
[[File:GPIO6_WaterMeter.png|thumb|center|800px|Counter configuration interface view]]
В списке поля '''Pulse counter type (if any)''' выбираете тип ''water_meter''.  
In the list of fields '''Pulse counter type (if any)''' choose the type '''water_meter'''.  
В поле '''Number of pulses per unit (kWh or m^3)''' указываете, сколько импульсов приходится на кубометр (например, если 1 импульс счетчика соответствует 10 литрам, то указываете 100; если 1 литру — 1000.)
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.)
Значение полей '''Number of decimal places...''' задает, сколько знаков после запятой будет отображаться в интерфейсе Wiren Board.
Field value '''Number of decimal places...''' specifies how many decimal places will be displayed in the Wiren Board interface.
Сохраняем настройки, нажав кнопку '''Save''' вверху страницы и переходим к списку устройств на страницу '''Devices'''.
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.
[[File:DiscreteIO.png|thumb|center|200px|Данные от счетчика]]
[[File:DiscreteIO.png|thumb|center|200px|Counter data]]
Находим устройство '''Discrete I/O''' и видим, что у него появились новые свойства: ''A1_IN_current'' и ''A1_IN_total''. Поле ''A1_IN_current'' показывает текущий расход воды, а ''A1_IN_total'' какой объем был израсходован с момента подключения. В mqtt этим полям соответствуют топики '''/devices/wb-gpio/controls/A1_IN_current''' и '''/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-брокера).
Value '''A1_IN_total''' persists after restarting the controller (as retained in the message storage mqtt broker).
wb_editors
14 355

правок