ADC/en: различия между версиями

Материал из Wiren Board
(Новая страница: «== Input voltage ==»)
 
(не показана 21 промежуточная версия 3 участников)
Строка 1: Строка 1:
<div lang="ru" dir="ltr" class="mw-content-ltr">
<languages/>{{DISPLAYTITLE: Analog inputs (ADC)}}
== Как получить напряжение с АЦП ==
== Definitions ==
</div>
'''Analog to digital converters (ADC)''' — devices designed to convert input analog signals into digital code.


#Voltage must be within acceptable range.
'''Analog inputs''' — ADC inputs used to measure the voltage applied to them. Analog inputs in automation devices are designed to connect sensors with an [[AnalogSensors_connecting | analog output signal]].
#Ax terminal blocks perform two functions: ADC and low voltage load control. Before measuring voltage, set the corresponding low voltage load control output to the "off" position. For example, if you are connecting to terminal A1, disable A1_OUT in the web interface (section Relays & FETs).
#Connect your source to the terminal. The voltage value will immediately appear in the [[Wired Board Web Interface | web interface]] on the ADCs. The value is also translated into the [[Special:MyLanguage/MQTT|MQTT]] message system.


Also, the value can be obtained in manual mode: [[Special:MyLanguage/Low-level work with ADC|Low-level work with ADC]].
== Analog inputs in the Wiren Board controller==
=== Wiren Board 6 === 
In the Wiren Board 6 ADC processor chanels are connected to terminals A1-A4. Also, the ADC has an input voltage (after the input diodes) and a voltage at the 5Vout terminal.
=== Wiren Board 7 === 
In the Wiren Board 7 processor chanels are connected to terminals A1-A3. Voltages at the D1 terminal and at the 5Vout terminal are not measured.
<gallery mode="packed" heights="100px" caption="Universal inputs/outputs">
Image: WB6_AI_DI.PNG| Wiren Board 6
Image: WB7_AI_DI.PNG| Wiren Board 7
Image: WB6.Ax.png| Schematic diagram of the input Ax
Image: WB7.D1.png| Schematic diagram of the input D1 in Wiren Board 7
</gallery>
== Voltage measurement ==
=== Connection and setup ===
#The voltage must be within the acceptable range.
#The Ax terminal blocks perform two functions: ADC and low voltage load control. Before measuring voltage, set the corresponding low voltage load control output to the off position. For example, if you are connecting to terminal A1, turn off A1_OUT in [[Веб-интерфейс Wiren Board | web interface]] (section Relays & FETs).
#Connect your source to the Ax terminal. The voltage value will immediately appear in the [[Веб-интерфейс Wiren Board | web interface]] on the ADCs. The value is also transmitted to the message system [[Special:MyLanguage/MQTT|MQTT]].
=== Measured voltage display  === 
The wb-homa-adc daemon transmits a value to MQTT message queuing to the /devices/wb-adc/controls/Vin topic.
So the value is displayed in the web interface as the Vin channel of the ADC device.


== Input voltage  ==
<div lang="ru" dir="ltr" class="mw-content-ltr">
Демон wb-homa-adc транслирует значение в очередь сообщений MQTT в топик  /devices/wb-adc/controls/Vin .
Таким образом, значение отображается в веб-интерфейсе как канал Vin устройства ADCs
</div>
<div lang="ru" dir="ltr" class="mw-content-ltr">
== Список АЦП для контроллера WB6 ==
</div>
<div lang="ru" dir="ltr" class="mw-content-ltr">
В Wiren Board 6 каналы АЦП процессора подключены к клеммникам A1-A4. Также на АЦП заведено входное напряжение (после входных диодов) и напряжение на клемме 5Vout.
</div>
<div lang="ru" dir="ltr" class="mw-content-ltr">
Смотрите также:
Смотрите также:
* [[Wiren Board 6.2: Peripherals#Каналы АЦП| Каналы АЦП в Wiren Board 6.2]]
* [[Wiren Board 6.2: Peripherals#Каналы АЦП| ADC chanels of Wiren Board 6.2]]
* [[ADC.OLD | Списки АЦП для старых версий контроллера]]
* [[Wiren_Board_7.2:_Peripherals#Аналоговые_входы| ADC chanels of Wiren Board 7]]
</div>
* [[ADC.OLD | ADC lists for older controller versions]]

Текущая версия на 11:18, 23 сентября 2022

Другие языки:

Definitions

Analog to digital converters (ADC) — devices designed to convert input analog signals into digital code.

Analog inputs — ADC inputs used to measure the voltage applied to them. Analog inputs in automation devices are designed to connect sensors with an analog output signal.

Analog inputs in the Wiren Board controller

Wiren Board 6

In the Wiren Board 6 ADC processor chanels are connected to terminals A1-A4. Also, the ADC has an input voltage (after the input diodes) and a voltage at the 5Vout terminal.

Wiren Board 7

In the Wiren Board 7 processor chanels are connected to terminals A1-A3. Voltages at the D1 terminal and at the 5Vout terminal are not measured.

Voltage measurement

Connection and setup

  1. The voltage must be within the acceptable range.
  2. The Ax terminal blocks perform two functions: ADC and low voltage load control. Before measuring voltage, set the corresponding low voltage load control output to the off position. For example, if you are connecting to terminal A1, turn off A1_OUT in web interface (section Relays & FETs).
  3. Connect your source to the Ax terminal. The voltage value will immediately appear in the web interface on the ADCs. The value is also transmitted to the message system MQTT.

Measured voltage display

The wb-homa-adc daemon transmits a value to MQTT message queuing to the /devices/wb-adc/controls/Vin topic. So the value is displayed in the web interface as the Vin channel of the ADC device.

Смотрите также: