Skip to content

Commit b6bd683

Browse files
Added table and fixes
1 parent b0a269d commit b6bd683

File tree

1 file changed

+12
-16
lines changed
  • content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started

1 file changed

+12
-16
lines changed

content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/content.md

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Opta is a robust micro PLC solution with many engaging features. In this tutoria
3030

3131
### Required Hardware and Software
3232

33-
- USB-C® cable (either USB-C to USB-A or USB-C to USB-C)
33+
- USB-C® cable
3434
- [Arduino Opta](https://store.arduino.cc/pages/opta)
3535
- [Arduino IDE](https://www.arduino.cc/en/software)
3636
- Power supply of 12-24V DC, 1A (optional if not running the section related to the relays)
@@ -253,28 +253,24 @@ void loop() {
253253
digitalWrite(LED_D3, LOW);
254254
delay(1000);
255255
}
256+
```
256257

257258
*** Important: It is not possible to program the Opta while it is being powered with the power pins. You would need to disconnect the power supply, upload the program and then connect the power again. ***
258259

259260
### Using Opta's Inputs
260261

261262
Opta has 8 input pins that can be programmed to be used as analog or digital. The mapping between the marking on the Opta physical terminals (I1 to I8) and their definition in the core can be found below:
262263

263-
I1 --> A0
264-
265-
I2 --> A1
266-
267-
I3 --> A2
268-
269-
I4 --> A3
270-
271-
I5 --> A4
272-
273-
I6 --> A5
274-
275-
I7 --> A6
276-
277-
I8 --> A7
264+
| Physical terminal | Defenition in core |
265+
| ----------------- | ------------------ |
266+
| I1 | A0 |
267+
| I2 | A1 |
268+
| I3 | A2 |
269+
| I4 | A3 |
270+
| I5 | A4 |
271+
| I6 | A5 |
272+
| I7 | A6 |
273+
| I8 | A7 |
278274

279275
The 8 inputs pins can be used as digital (having the logical values of LOW or HIGH) or as analog inputs (within a range from 0 to 10V).
280276
* To use them as digital inputs, add the Arduino command *pinMode(pinName, INPUT);* inside the setup().

0 commit comments

Comments
 (0)