Wiren Board 5:Аппаратная часть/en: различия между версиями

Нет описания правки
Строка 185: Строка 185:
== Multifunctional inputs/outputs A1-A4==
== Multifunctional inputs/outputs A1-A4==
[[Файл:Ax2.png|thumb|400px|Equivalent circuit of A1-A4 channels]]
[[Файл:Ax2.png|thumb|400px|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).
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.
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:
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)
*Active (closed); channel output is connected to ground (0V)
*Inactive (open), high impedance.
*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 (100kOhm).  
Input stage of Ax channel consists of an analogue-to-digital converter ADCx and an input resistor Rx (100kOhm).  
Строка 208: Строка 203:


If the channel terminal is left floating, the input voltage measured by ADCs is pulled down to zero 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.


Ax channels also work as discrete inputs. The logical high state is 3V or higher, the logical low is 1.5V or lower.
Ax channels also work as discrete inputs. The logical high state is 3V or higher, the logical low is 1.5V or lower.
Строка 214: Строка 208:
== R1 and R2 Resistive Inputs==
== R1 and R2 Resistive Inputs==
[[Файл:Rx.png|thumb|400px|Rx equivalent circuit]]
[[Файл:Rx.png|thumb|400px|Rx equivalent circuit]]


By default each Rx terminal is connected to internal adjustable current source. By measuring the voltage drop across terminals, the Wiren Board software calculates the resistance of the sensor connected to the corresponding terminal.
By default each Rx terminal is connected to internal adjustable current source. By measuring the voltage drop across terminals, the Wiren Board software calculates the resistance of the sensor connected to the corresponding terminal.


Each input can also be [[ADC#Измерение сопротивлений|switched]] to a general-purpose analog input.
Each input can also be [[ADC#Измерение сопротивлений|switched]] to a general-purpose analog input.


In this mode, the internal current source is turned off. Voltage measurements in the range of 0-2.5V can be performed.
In this mode, the internal current source is turned off. Voltage measurements in the range of 0-2.5V can be performed.


R1 and R2 inputs also work as discrete inputs.  
R1 and R2 inputs also work as discrete inputs.  


While the internal current source is activated (as by default) the input is pulled high to the internal 3.3V power rail.
While the internal current source is activated (as by default) the input is pulled high to the internal 3.3V power rail.
Строка 233: Строка 223:


Therefore, external buttons, sensors, etc. should be connected between the Rx and GND terminals.
Therefore, external buttons, sensors, etc. should be connected between the Rx and GND terminals.


In the alternate general-purpose ADC mode (with current source disabled), the input is pulled down to the ground.
In the alternate general-purpose ADC mode (with current source disabled), the input is pulled down to the ground.
Строка 239: Строка 228:


In this mode one should connect external buttons, sensors, etc. between the Rx terminal and either "5V out" or positive power supply terminal.
In this mode one should connect external buttons, sensors, etc. between the Rx terminal and either "5V out" or positive power supply terminal.


== 1-Wire and +5V output ==
== 1-Wire and +5V output ==