You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/hardware/07.opta/opta-family/opta/tutorials/01.user-manual/content.md
+41-79Lines changed: 41 additions & 79 deletions
Original file line number
Diff line number
Diff line change
@@ -1718,6 +1718,16 @@ The Opta Expansions can be controlled by any Opta controller variant: [Opta™ L
1718
1718
1719
1719
***The Opta™ expansions firmware must be updated to the latest version to ensure proper functioning. See this [section](#update-expansion-firmware) for a guided step-by-step.***
You can snap up to five expansions to your Opta™ Base module to multiply and mix your set of I/Os with seamless detection.
@@ -1779,38 +1789,18 @@ Finally, your Opta™ expansion will be updated with the latest firmware version
1779
1789
1780
1790
The Opta™ Expansions have **16 analog/digital programmable inputs** accessible through terminals `I1` to `I16`.
1781
1791
1782
-
Both Ext D1608E and Ext D1608S variant inputs can be used as **digital**with a 0-24 VDC or 0-10 VDC range or as **analog** inputs with a 0-24 VDC range. The analog inputs are capable of operating with 0-10 VDC analog sensors as well as 0-24 VDC sensors.
1792
+
Both Ext D1608E and Ext D1608S variant inputs can be used as **digital**within the 0-24 VDC range or as **analog** inputs within the 0-10 VDC or 0-24 VDC range. The analog inputs are capable of operating with 0-10 VDC analog sensors as well as 0-24 VDC sensors.
1783
1793
1784
1794
***The inputs are marked on plastic as DGT/0-10 V to maintain uniformity with the main Opta module and as conventionally the majority of industrial analog sensors work in the 0-10 V range.***
1785
1795
1786
1796

1787
1797
1788
-
<table>
1789
-
<thead>
1790
-
<tr style="text-align: middle;">
1791
-
<th width="30%">Characteristics</th>
1792
-
<th>Details</th>
1793
-
</tr>
1794
-
</thead>
1795
-
<tbody>
1796
-
<tr>
1797
-
<td style="vertical-align: top;">Number of inputs</td>
Analog/digital input terminals are mapped as described in the following table:
1816
1806
@@ -1833,34 +1823,18 @@ Analog/digital input terminals are mapped as described in the following table:
1833
1823
| I15 | 14 |
1834
1824
| I16 | 15 |
1835
1825
1826
+
***The inputs are marked on plastic as DGT/0-10 V to maintain uniformity with the main Opta module and as conventionally the majority of industrial analog sensors work in the 0-10 V range.***
***The analog-to-digital converter resolution of 14 bits is considered in the 0-24 VDC range. If you are using a 0-10 VDC sensor, take into account that you will be leveraging half of the ADC scope.***
2057
2013
2058
2014
The state of an input terminal, configured as analog, can be read using the built-in function `analogRead()` as shown below:
2059
2015
@@ -2199,6 +2155,12 @@ for(int i = 0; i < 5; i++) { // check all the five available expansion slots
2199
2155
```
2200
2156
The above method will check if there is an Ext D1608E or Ext D1608S expansion connected in the `i` index from the five admitted. If any is found in the asked index, the expansion `mechExp` or `stsolidExp` turns to true. This will ensure which expansion the read value belongs to.
2201
2157
2158
+
The voltage of an analog input can be read using the built-in function `pinVoltage()` as shown below:
2159
+
2160
+
```arduino
2161
+
float V = exp.pinVoltage(<input>, false); // read the <input> and returns a voltage value
2162
+
```
2163
+
2202
2164
After the Opta™ controller is programmed with the example sketch, open the Arduino IDE Serial Monitor and you will see each input voltage as follows:
0 commit comments