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-digital-exp/datasheet/datasheet.md
+24-20Lines changed: 24 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -19,12 +19,13 @@ Industrial IoT, Building automation, Electrical loads management, Industrial aut
19
19
## Product Variants
20
20
There are two variants of the Arduino Opta® Digital Expansion created to fit the different needs of each industry and application. The difference between each of the variants can be found in the following table:
| Inputs | 16 x programmable (0-24 V digital / 0-10 V or 0-24 V analog) | 16 x programmable (0-24 V digital / 0-10 V or 0-24 V analog) |
26
+
| Outputs | 8 x Electromechanical Relays (250 VAC - 6 A) | 8 x Solid State Relays (24 VDC - 3 A)|
27
27
28
+
***All digital expansion inputs, configured as analog, support analog sensors both 0-10 VDC(industrial standard) and 0-24 VDC.***
28
29
29
30
## Application Examples
30
31
Arduino Opta® Expansion is designed for industrial standard machinery control alongside the Opta® micro PLC. It is readily integrated into the Arduino hardware and software ecosystem.
@@ -39,13 +40,13 @@ Arduino Opta® Expansion is designed for industrial standard machinery control a
@@ -58,24 +59,27 @@ Arduino Opta® Expansion is designed for industrial standard machinery control a
58
59
| Antipolarity protection | No |
59
60
| Input impedance | 5.85 kΩ |
60
61
62
+
***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.***
| Digital Input voltage logic level | VIL Max: 4 VDC. VHL Min: 5.9 VDC |
76
-
| Digital Input current | 4.12 mA at 24 V, 2.05 mA at 10 V |
77
-
| Digital Input frequency | 300 Hz |
78
-
82
+
***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.***
79
83
80
84
### Outputs (AFX00005 Only)
81
85
@@ -136,8 +140,8 @@ Arduino Opta® Expansion is designed for industrial standard machinery control a
@@ -523,7 +523,7 @@ The *Rated Load* is the maximum resistive load that a contact can make, carry an
523
523
- For resistive or slightly inductive loads (AC1 classification), Arduino Opta's *Rated Load* is 2500 VA.
524
524
- For small electromagnetic loads (> 72 VA) (AC15 classification) like power contactors, magnetic solenoid valves, electromagnets and AC single-phase supplies, Arduino Opta's *Rated Load* is 500 VA. This value assumes a peak inrush current of approximately 10 times the rated current and keeping it within the maximum peak current.
525
525
526
-
For controlling DC loads (DC1 classification), the *Breaking Capacity* or maximum value of DC resistive current that a contact can make, carry and break repeatedly, is 10/4/0.3/0.12A for respectively 24/30/110/220V.
526
+
For controlling DC loads (DC1 classification), the *Breaking Capacity* or maximum value of DC resistive current that a contact can make, carry and break repeatedly, is 10/4/0.3/0.12 A for respectively 24/30/110/220 V.
527
527
528
528
In the case of the minimum switching load parameters, the minimum values of power, voltage and current that the relays can reliably switch, are 300 mW/ 5V / 5mA. This implies that with 5V the current must be at least 60mA, with 24V, it must be at least 12.5mA, and with 5mA the voltage must be at least 60V.
Copy file name to clipboardExpand all lines: content/hardware/07.opta/opta-family/opta/tutorials/01.user-manual/content.md
+78-57Lines changed: 78 additions & 57 deletions
Original file line number
Diff line number
Diff line change
@@ -218,11 +218,13 @@ Opta's maximum power consumption at +12 VDC is 2 W, and at +24 VDC is 2.2 W.
218
218
219
219
### Programmable Inputs
220
220
221
-
The image below shows Opta™ devices have **eight analog/digital programmable inputs** accessible through terminals `I1`, `I2`, `I3`, `I4`, `I5`, `I6`, `I7`, and `I8`.
221
+
The image below shows Opta™ devices have **eight digital/analog programmable inputs** accessible through terminals `I1`, `I2`, `I3`, `I4`, `I5`, `I6`, `I7`, and `I8`.
222
222
223
223

224
224
225
-
Analog/digital input terminals are mapped as described in the following table:
225
+
***The Opta™ digital inputs also support 0 to +10 VDC logic level sensors.***
226
+
227
+
Digital/analog input terminals are mapped as described in the following table:
226
228
227
229
|**Opta™ Terminal**|**Arduino Pin Mapping**|
228
230
|:------------------:|:-----------------------:|
@@ -235,35 +237,32 @@ Analog/digital input terminals are mapped as described in the following table:
235
237
|`I7`|`A6`/`PIN_A6`|
236
238
|`I8`|`A7`/`PIN_A7`|
237
239
238
-
#### Analog Inputs
240
+
#### Digital Inputs
239
241
<br></br>
240
242
241
-
The input voltage range for each analog input terminal is the following:
243
+
The input voltage range for each digital input terminal is the following:
242
244
243
-
-**Input voltage range**: 0 to +10 VDC
245
+
-**Input voltage range**: 0 to +24 VDC
244
246
245
-
The analog input terminals can be used through the built-in functions of the [Arduino programming language](https://www.arduino.cc/reference/en/). To use the input terminals as analog inputs:
247
+
***The Opta™ digital inputs also support 0 to +10 VDC logic level sensors.***
246
248
247
-
- Add the `analogReadResolution()` instruction in your sketch's `setup()` function.
249
+
The input terminals can be used through the built-in functions of the [Arduino programming language](https://www.arduino.cc/reference/en/). To use the input terminals as digital inputs:
248
250
249
-
The sketch below shows how to monitor analog voltages on Opta's input terminals `I1`, `I2`, and `I3`. It initializes a serial connection, takes readings from each defined terminal, converts those readings into voltage based on a 12-bit resolution, and outputs these voltage values through the Arduino IDE's Serial Monitor. The readings are looped every second, allowing you to monitor real-time changes.
251
+
- Add the `pinMode(pinName, INPUT)` instruction in your sketch's `setup()` function.
252
+
253
+
The sketch below shows how to monitor digital states on Opta's input terminals `I1`, `I2`, and `I3`. It initializes a serial connection, takes readings from each defined terminal, and interprets them as either `HIGH` or `LOW` digital states. These states are then output through the Arduino IDE's Serial Monitor. The state readings are looped every second, allowing you to monitor real-time changes.
250
254
251
255
```arduino
252
256
/**
253
-
Opta's Analog Input Terminals
254
-
Name: opta_analog_inputs_example.ino
255
-
Purpose: This sketch demonstrates the use of I1, I2, and I3 input
256
-
terminals as analog inputs on Opta.
257
+
Opta's Digital Input Terminals
258
+
Name: opta_digital_inputs_example.ino
259
+
Purpose: This sketch demonstrates the use of I1, I2, and I3 input
260
+
terminals as digital inputs on Opta.
257
261
258
262
@author Arduino PRO Content Team
259
-
@version 2.0 22/07/23
263
+
@version 2.0 23/07/23
260
264
*/
261
265
262
-
// Define constants for voltage, resolution, and divider.
263
-
const float VOLTAGE_MAX = 3.3; // Maximum voltage that can be read
// Initialize serial communication at 9600 bits per second.
275
274
Serial.begin(9600);
276
275
277
-
// Enable analog inputs on Opta
278
-
// Set the resolution of the ADC to 12 bits.
279
-
analogReadResolution(12);
276
+
// Set the mode of the pins as digital inputs.
277
+
for (int i = 0; i < NUM_PINS; i++) {
278
+
pinMode(TERMINALS[i], INPUT);
279
+
}
280
280
}
281
281
282
282
void loop() {
283
-
// Loop through each of the terminal, read the terminal analog value, convert it to voltage, and print the result.
283
+
// Loop through each of the terminal, read the terminal digital value, and print the result.
284
284
for (int i = 0; i < NUM_PINS; i++) {
285
285
readAndPrint(TERMINALS[i], i + 1);
286
286
}
@@ -289,49 +289,48 @@ void loop() {
289
289
delay(1000);
290
290
}
291
291
292
-
// This function reads the value from the specified pin, converts it to voltage, and prints the result.
292
+
// This function reads the digital value from the specified pin and prints the result.
293
293
void readAndPrint(int terminal, int terminalNumber) {
294
-
// Read the input value from the analog pin.
295
-
int terminalValue = analogRead(terminal);
296
-
297
-
// Convert the terminal value to its corresponding voltage.
298
-
float voltage = terminalValue * (VOLTAGE_MAX / RESOLUTION) / DIVIDER;
299
-
300
-
// Print the terminal value and its corresponding voltage.
294
+
// Read the input value from the digital pin.
295
+
int terminalValue = digitalRead(terminal);
296
+
297
+
// Print the terminal value.
301
298
Serial.print("I");
302
299
Serial.print(terminalNumber);
303
300
Serial.print(" value: ");
304
-
Serial.print(terminalValue);
305
-
Serial.print(" corresponding to ");
306
-
Serial.print(voltage, 5);
307
-
Serial.println(" VDC");
301
+
Serial.println(terminalValue);
308
302
}
309
303
```
310
304
311
-
#### Digital Inputs
305
+
#### Analog Inputs
312
306
<br></br>
313
307
314
-
The input voltage range for each digital input terminal is the following:
308
+
The input voltage range for each analog input terminal is the following:
315
309
316
-
-**Input voltage range**: 0 to +24 VDC
310
+
-**Input voltage range**: 0 to +10 VDC
317
311
318
-
The input terminals can be used through the built-in functions of the [Arduino programming language](https://www.arduino.cc/reference/en/). To use the input terminals as digital inputs:
312
+
The analog input terminals can be used through the built-in functions of the [Arduino programming language](https://www.arduino.cc/reference/en/). To use the input terminals as analog inputs:
319
313
320
-
- Add the `pinMode(pinName, INPUT)` instruction in your sketch's `setup()` function.
314
+
- Add the `analogReadResolution()` instruction in your sketch's `setup()` function.
321
315
322
-
The sketch below shows how to monitor digital states on Opta's input terminals `I1`, `I2`, and `I3`. It initializes a serial connection, takes readings from each defined terminal, and interprets them as either `HIGH` or `LOW` digital states. These states are then output through the Arduino IDE's Serial Monitor. The state readings are looped every second, allowing you to monitor real-time changes.
316
+
The sketch below shows how to monitor analog voltages on Opta's input terminals `I1`, `I2`, and `I3`. It initializes a serial connection, takes readings from each defined terminal, converts those readings into voltage based on a 12-bit resolution, and outputs these voltage values through the Arduino IDE's Serial Monitor. The readings are looped every second, allowing you to monitor real-time changes.
323
317
324
318
```arduino
325
319
/**
326
-
Opta's Digital Input Terminals
327
-
Name: opta_digital_inputs_example.ino
328
-
Purpose: This sketch demonstrates the use of I1, I2, and I3 input
329
-
terminals as digital inputs on Opta.
320
+
Opta's Analog Input Terminals
321
+
Name: opta_analog_inputs_example.ino
322
+
Purpose: This sketch demonstrates the use of I1, I2, and I3 input
323
+
terminals as analog inputs on Opta.
330
324
331
325
@author Arduino PRO Content Team
332
-
@version 2.0 23/07/23
326
+
@version 2.0 22/07/23
333
327
*/
334
328
329
+
// Define constants for voltage, resolution, and divider.
330
+
const float VOLTAGE_MAX = 3.3; // Maximum voltage that can be read
You can snap up to five expansions to your Opta™ Base module to multiply and mix your set of I/Os with seamless detection.
@@ -1839,7 +1854,7 @@ In the image below there is an example of the power wiring of the expansions:
1839
1854
1840
1855
The Opta™ Expansions have **16x analog/digital programmable inputs** accessible through terminals `I1` to `I16`.
1841
1856
1842
-
Both Ext D1608E and Ext D1608S variant inputs can be used as **digital**with a 0-24 VDC range or as **analog** inputs with a 0-24 VDC range. The inputs are capable of operating with 0-10V analog sensors as well as 0-24V sensors.
1857
+
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.
1843
1858
1844
1859
***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.***
1845
1860
@@ -2185,6 +2200,12 @@ void loop() {
2185
2200
```
2186
2201
To fully understand the example above, we recommend you to check the [General Library Notes](#general-library-notes) section.
2187
2202
2203
+
The voltage of an analog input can be read using the built-in function `pinVoltage()` as shown below:
2204
+
2205
+
```arduino
2206
+
float V = exp.pinVoltage(<input>, false); // read the <input> and returns a voltage value
2207
+
```
2208
+
2188
2209
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