Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:automation:02-glossary:digital-inputs-hidden [2018/11/01 09:42]
jan_kozak [Using DI13 and DI14 on the UniPi 1.1]
en:automation:02-glossary:digital-inputs-hidden [2021/06/09 08:51] (current)
avsetula
Line 3: Line 3:
 The digital inputs (DI) are for reading logical states (true or false), which are represented by levels of DC voltage. The DIs are therefor suitable for reading two-state sensors such as switches (on/off), movement sensors (movement, no movement), water level sensors (water present, no water) etc. The software detects logical 1 (true) if the input voltage between given DIx.y and DIGND is between 5-35V. If the voltage is lower than 3.5V, the state is evaluated as 0 (false) The digital inputs (DI) are for reading logical states (true or false), which are represented by levels of DC voltage. The DIs are therefor suitable for reading two-state sensors such as switches (on/off), movement sensors (movement, no movement), water level sensors (water present, no water) etc. The software detects logical 1 (true) if the input voltage between given DIx.y and DIGND is between 5-35V. If the voltage is lower than 3.5V, the state is evaluated as 0 (false)
  
-The DIs on the UniPi units are galvanically isolated, which means it is safer to use them in environment affected by electromagnetic interference.+The DIs on the Unipi units are galvanically isolated, which means it is safer to use them in an environment affected by electromagnetic interference.
  
-=====Digital inputs on the UniPi 1.1===== +----
-The following picture depicts a connection of an external device to a UniPi 1.1 controller using an integrated 12V power source. ​+
  
-For preserving the galvanic isolation of both the connected device and UniPi'​s internal circuits we recommend using a 5-24V DC external power source connected according to a picture below. ​+<​html><​span class="​kbBlueText">​More information about digital inputs can be found in specific categories:</​span></​html>​\\
  
-{{:en:automation:02-glossary:unipi_contact_extvolt.png?150|}}+<​tile>​ 
 +| en:​hw:​007-patron:​description-of-io:​01-description-of-di ​    | Patron ​            ​| ​:en:hw:​unipi-kb-icon-patron.png ​    | 
 +| en:​hw:​01-axon:​description-of-io:​01-description-of-di ​       | Axon               | :​en:​hw:​unipi-kb-icon-axon.png ​      | 
 +| en:hw:02-neuron:description-of-io:​01-description-of-di ​     | Neuron ​            | :​en:​hw:​unipi-kb-icon-neuron.png ​    | 
 +| en:​hw:​03-unipi11:​description-of-io:​01-description-of-di ​    | 1.1 & 1.1 Lite     | :​en:​hw:​unipi-kb-icon-1.png ​         | 
 +| en:​hw:​04-extensions:​description-of-io:​01-description-of-di ​ | Extension modules ​ | :​en:​hw:​unipi-kb-icon-extension.png   
 +</​tile>​
  
-Before connecting the power source, make sure JP2-JP5 jumpers are set correctly according to the UniPi 1.1 documentation. Bear in mind the negative pole must be connected to the corresponding P0x terminal on the power source. ​ 
  
-====Using DI13 and DI14 on the UniPi 1.1====+/* 
 +===== Digital inputs ​on Unipi Neuron, Unipi Axon and Unipi Extension ​====
 +By default, all Unipi Neuron and Unipi Axon controllers,​ as well as Unipi Extension modules, feature digital inputs with counter functionality able to detect pulses of up to 10 kHz frequency and only tens or hundreds of microseconds long. When the maximum value of a counter (4 294 967 295) is exceeded, its value is reset. ​
  
-As the default cable connecting ​the Raspberry Pi to the UniPi 1.1 board does not support the digital inputs 13 and 14it is necessary ​to create your own connection.+Counter inputs on Neuron PLCs will reset if the device’s power is disconnectedOn Axon controllers ​and newer Extension xS11 and xS51 modulesthe counter values are stored in memory and loaded during the next device startup. This feature prevents any loss of data due to loss of power
  
-The picture below shows the P5 header ​on the UniPi board, designed for connection of the Raspberry Pi and matching the P5 header on the computer itselfHighlighted are the IN14 and IN15 pins+===== Digital inputs ​on the Unipi 1.1 ===== 
 +{{ :​en:​automation:​02-glossary:​unipi_contact.png|}}
  
-{{:​en:​automation:​02-glossary:​unipi_in13_14.jpg?200|}}+The following picture depicts a connection of an external device to an Unipi 1.1 controller using an integrated 12V power source
  
-It is possible to use any of the unused GPIOs and wire them to pins mentioned above. After the connection of those pins, edit the evok.conf file in order to enable them+For preserving the galvanic isolation ​of both the connected device ​and Unipi'​s internal circuits we recommend using a 5-24V DC external power source connected according ​to a picture below
  
-| **RPi connector pin** | **RPi function** | **UniPi P5 pin** | **UniPi function** |+{{ :​files:​img_breakline.png?​nolink |}} 
 +{{ :​en:​automation:​02-glossary:​unipi_contact_extvolt.png|}} 
 + 
 +Before connecting the power source, make sure JP2-JP5 jumpers are set correctly according to the Unipi 1.1 documentation. Bear in mind the negative pole must be connected to the corresponding P0x terminal on the power source.  
 + 
 +{{ :​files:​img_breakline.png?​nolink |}} 
 +====Using DI13 and DI14 on the Unipi 1.1==== 
 + 
 +As the default cable connecting the Raspberry Pi to the Unipi 1.1 board does not support digital inputs 13 and 14, it is necessary to create your connection. 
 + 
 +The picture below shows the P5 header on the Unipi board, designed for connection of the Raspberry Pi and matching the P5 header on the computer itself. Highlighted are the IN14 and IN15 pins.  
 + 
 +{{:​en:​automation:​02-glossary:​unipi_11vyrez.jpg?​400|}} 
 + 
 +It is possible to use any of the unused GPIOs and wire them to the pins mentioned above. After the connection of those pins, edit the // **evok.conf** //  file to enable them.  
 + 
 +| **RPi connector pin** | **RPi function** | **Unipi P5 pin** | **Unipi function** |
 | 27 | (GPIO28)ID_SD | 5 | I2C0 data | | 27 | (GPIO28)ID_SD | 5 | I2C0 data |
 | 28 | (GPIO29)ID_SC | 6 | I2C0 Clk | | 28 | (GPIO29)ID_SC | 6 | I2C0 Clk |
Line 32: Line 55:
 | x | x | 8 | 5V | | x | x | 8 | 5V |
 | x | x | 1.2 | GND | | x | x | 1.2 | GND |
 +
 +<WRAP center round tip 60%>
 +GND connectors are not required. The 3V3 connector is required only if the second I2C bus connector is used
 +</​WRAP>​
 +*/