Wiren Board 5: Hardware

Версия от 18:19, 24 ноября 2015; Fizikdaos (обсуждение | вклад) (Новая страница: «12/24V relays, LEDs, fans, indicator lamps, etc.»)

Другие языки:
Wiren Board 4


Technical specifications

 
Wiren Board 4


{
Software
Operating System Debian Linux 7.0. Mainline kernel 3.19.
Controller
CPU Freescale i.MX287 454 MHz
RAM DDR2 SDRAM 128 MB
ROM 4 GB eMMC
Wireless Interfaces
Wi-Fi 802.11 b/g/n 2.4 GHz
GSM/GPRS 900/1800 MHz. GPRS multi-slot class 10/8 max. 85.6 kbps (downlink). microSIM card, packaged
Bluetooth 4.0, Bluetooth Low Energy
Radio module 433 MHz RFM69H module. To communicate with Noolite devices, Oregon sensors
Z-Wave (option)
IR-port (external transceiver)
Wired Interfaces
Ethernet 10/100 Mbit/s, 8P8C connector, passive PoE
USB 2.0 1 connecor. Mode operation USB Host or USB Device
Audiooutput Digital audio - S/PDIF, TOSLINK or RCA connector
2xRS-485 uninsulated.

Software support of Modbus RTU, ADICON/A-BUS/Uniel, HDL, Mercury, Milur

CAN are multiplexed with one RS-485.
Debug console Debug UART To be connected via USB-UART adapter.
1-Wire Connection of temperature sensor
Connection of sensors
4x ADC range 0-24V
2xInputs for resistive sensors Connection of 10 kOhm thermistors, The controller can be used as ADC up to 3.3V.
4x DI (digital input)
Outputs
4x"Open collector" 28V/2A, control of contactors, LED strip lights, etc.
Other
2xGPIO are multiplexed with other inputs/outputs
1xSpeaker "buzzer".
Real-time clock RTC clock battery
Watchdog timer Separate hardware watchdog to perform full reset of the device
2xConnector for extension modules
1xConnector for input/output modules series connection of modules, up to 8.
Power supply
Supply voltage 8-26 V
Power consumption <3 W (maximum 12 W)
Redundant battery backup power supply module (option)
Passive Power over Ethernet Passsive Power over Ethernet
Overall dimensions housing for DIN rail installation 6U, 106.25x90.2x57.5 mm.

size without housing: 103x87x20 mm.

Operation Operating temperature- -25...+85 С

(-40..+85 С by request). Conformal coating of pcb for moister protection.

Terminal blocks

 
Input and output protection scheme

Some terminal blocks can be used to perform more than one function. See the detailed description of input/output and the Port multiplexing article.

legend

Max. V, I state default Functions
Upper row, left block
Vin 28V Input voltage
GND "ground", minus power supply
Upper row, right block
O1 Inputs/outputs of extension module
O2
O3
O1 Inputs/outputs of extension module
O2
O3
Lower row, right block}
A1 24V , 2A High Z Outputs "open collector", ADC
A2
A3
A4
R1 5V High Z Resistive sensors, ADC, digital inputs (GPIO) without retightening
R2
GND
W1 30V 3.3V 1-Wire, GPIO
5V out 5V, 0.5A 5V Output 5V. Shutdown current is exceeded. Software control.
A 30 V 0V connector RS-485 (/dev/ttyAPP1)
B 30 V +5V
L 30 V 0V connector CAN or RS-485 (/dev/ttyAPP4).

Connection RS-485: A to terminal L, B to terminal H.

H 30 V +5V

Input protection

  1. All inputs are protected from applying the power supply voltage (up to 24 V) and transient noise.
  2. Wiren Board 5 is protected against reverse polarity
  3. Low-side FET switches on Ax inputs are protected from negative voltage spikes from inductive loads.

Multifunctional inputs/outputs A1-A4

 
Equivalent circuit of A1-A4 channels

Multifunctional channels consist of input and output stages are connected in parallel, as well as protective diodes (connected to one terminal of the channel).

Output stage consists of the Tx switch. The Tx switch can connect the corresponding output with ground.

The state of the switch is controlled by logic circuits inside the controller. The switch may be one of 2 states:

  • Active (closed); channel output is connected to ground (0V)
  • Inactive (open), high impedance.

Such outputs are called “open collectors”

Input stage of Ax channel consists of an analogue-to-digital converter ADCx and an input resistor Rx. The ADC has a high impedance, so it doesn't affect the channel operation even if the channel works as output. In input mode the Tx switch is inactive (open) and, thus, does not affect voltage measuring at the channel terminals. Input resistance of the channel in input mode is determined by the Rx resistance. If the channel terminal is left floating, the input voltage measured by ADCs is pulled down to zero by the Rx resistance.

Аx channels support binary input function DI: more than 3V at the terminal is considered as triggering of the input.

Resistive Inputs R1 and R2

In the default mode each terminal is connected to internal adjustable current source. The controller provides a predetermined current through the sensor, thus measuring the voltage drop on it. Of the known current and voltage values, software of the controller calculates the resistance of the sensor.

Each input also can be switched to a conventional analog input settings. In this mode, the power supply is turned off and measure the input voltage in the range 0-3.0V.

The inputs R1-R2 also act as binary inputs.

While the current source is activated (the default mode) the input is tucked up to the power supply. If no entry to connected, this state is perceived as a logical unit. If you connect the terminals to the ground, this corresponds to a logical zero. External buttons, sensors, etc. in this mode must be connected between the Rx and GND.

In an alternate mode while the current source is unactivated, the input is tucked up to ground. A logical zero corresponds to the input, to which nothing is connected; logical unit - the entrance to which a voltage is applied > 3B. In this mode external buttons, sensors, etc. must be connected between the Rx and terminal board 5V out, or plus of supply.

Extension modules

Look the relevant articles to describe the connection and operation of the software:

Power Supply

 
WB 4 block diagram of the power


External power source

Allowed voltage range is 7-28 V. Average power consumption of the board is 1.5-2 W, but the GSM module may temporally consume up to 8 W. Therefore, it is recommended to use at least 10 W power sources.

A standard connector jack 5.5x2.1 mm is provided for connection to the power source. Input power can also be connected to Vin and GND terminals.

Power over Ethernet

It is possible to power the device via an Ethernet cable. Ref.Power over Ethernet.


Battery

Wiren Board allows to connect interior WBMZ-BATTERY backup power supply module with Li-Ion (Li-Pol) battery .

Operation with screw terminals

 
Working with WAGO 250 terminals

Self-tightened clips of "type 250" series are used as interface terminals of the controller. When a stripped single-core wire is inserted into a clip, it is automatically caught by a spring latch. In order to insert multi-core wires, it is necessary to press the clip button to compress the spring. The button is provided with a slot suitable for a flat screw-drive. In order to remove the wire, it is necessary to press the clip button to compress the spring, and then pull the wire out of the clip.

Wi-Fi, GSM, 433MHz antennas

Wi-Fi, GSM and 433 MHz radio antennas are connected to SMA connectors.

If GSM signal is weak, it is recommended to use an external antenna and to locate it far from the controller.

Peripheral devices connection diagrams

 
Example of relay connection

Low voltage load control

12/24V relays, LEDs, fans, indicator lamps, etc.

Подключите "+" нагрузки к "+" источника питания, а "-" к клеммам Ax. Если суммарный ток на каналах больше 2 А, дополнительно подключите клемму GND к "-" источника питания.

При управлении индуктивной нагрузкой (реле), возникают всплески напряжения. Для защиты от перенапряжения в контроллер встроены защитные диоды - внешних защитных элементов не требуется.

Датчики с аналоговым выходом по напряжению

Подключите землю устройства к клемме GND, или соедините с общей земляной шиной. Выход датчика подключается к одному из клемм Ах или Rx. Каналы Ах/Rx имеют разные диапазоны измеряемых напряжений. Подберите оптимальный канал для вашего датчика.


Датчики с аналоговым токовым выходом

Специальных токовых входов в WB нет, но можно, используя резистор 100-300Ом, ток преобразовать в напряжение и подключить как в предыдущем пункте.

Также для подключения токовых датчиков предназначен специальный модуль расширения.


Датчики с резистивным выходом

Входы R1 и R2 предназначены для измерения сопротивлений в диапазоне 1-100кОм. Измеряемое сопротивление подключается между GND и Rx.

Для более точного изменения сопротивлений, а также для подключения датчиков Pt100 и Pt1000 по двух- и трёх- проводным схемам предназначен специальный модуль расширения.

Датчики/счетчики с импульсными выходами/кнопки

Такие устройства формируют сигнал, замыкая подходящие к ним два провода. Подключите один провод к источнику питания 5-24В. Второй провод подключите к клемме Аx. Некоторые счетчики имеют импульсный выход на оптроне, тогда два провода имеют полярность - "плюс" и "минус". В таком случае минус подключается к Аx, "плюс" к источнику питания.

Для подключения также можно использовать входы R1 и R2 контроллера, как описано выше.

Так же возможно подключение с использованием модуля расширения (см. следующий пункт).

Устройства с выходом открытый коллектор

Устройство и контроллер должны иметь общую землю. Выход "открытый коллектор" подключите к клемме Dx модуля расширения.

Для подключения также можно использовать входы R1 и R2 контроллера, как описано выше.

Подключение к 1-Wire сети

Землю сети подключите к клемме GND или общей земляной шине. Линию данных к клемме 1-Wire. Линию питания к клемме 5Vout (внутренний источник питания). Допускается использовать внешние источники питания шины 1-Wire.

При использовании пассивного питания, контакт питания каждого датчика соединяется с земляным проводом. В этом случае, шина прокладывается двумя проводами, подключаемыми соответственно к "1-Wire" и "GND".

Подключение к сети RS-485

Смотрите RS-485.

В Wiren Board 5 есть два порта RS-485. Второй порт мультиплексирован с портом CAN (L c A, H c B) Линии А В подключаются к клеммам А и В соответственно. Сигнальную землю (если есть) подключить к земле контроллера.

Если сеть RS-485 достаточно протяженная, то для её подключения рекомендуется использовать модуль расширения с гальванически-изолированным RS-485.

Пример подключения устройств

Схема испытательного стенда -

 
Схема стенда

Подключение устройств с использованием модулей расширения

Контакторы с управляющим напряжением 220В

Используйте модуль расширения с релейными выходами, например WBIO-DO-R3A-8.

Подключите управляющую катушку контактора через реле модуля расширения (см. рисунок).

Модуль расширения содержит TVS, защищающий контакты реле от искрения. Внешние защитные компоненты не требуются.

Датчики/счетчики с импульсными выходами/кнопки

 
Пример подключения кнопки

Такие устройства формируют сигнал, замыкая подходящие к ним два провода.

Для подключения к контроллеру один провод подключите к питанию (или клемме 5Vout), второй провод к клемме Ax.

Так же можно использовать модуль расширения дискретных входов типа "сухой контакт" WBIO-DI-DR-8.

Подключите один провод к клемме GND, или соедините с общей земляной шиной. Второй провод подключите к клемме Dx.

Некоторые счетчики имеют импульсный выход на оптроне, тогда два провода имеют полярность - "плюс" и "минус". В таком случае минус подключается к GND, "плюс" к Dx.

Схема и чертеж

Принципиальная схема Wiren Board 4 - Файл:WB 4.3.pdf, чертёж - Файл:WB 4.2 чертеж.pdf

Список GPIO

Статья, описывающая подключение сигналов процессора к клеммникам, встроенной периферии и разъёмам расширения: Wiren Board 5:Список GPIO