Skip to content

Commit 466e33a

Browse files
committed
Tables update
1 parent acbb95d commit 466e33a

File tree

1 file changed

+71
-71
lines changed
  • content/hardware/05.pro-solutions/solutions-and-kits/edge-control/tutorials/user-manual

1 file changed

+71
-71
lines changed

content/hardware/05.pro-solutions/solutions-and-kits/edge-control/tutorials/user-manual/content.md

Lines changed: 71 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,14 @@ The Edge Control has **eight analog input pins**, mapped as follows:
180180

181181
| **Input Name** | **Arduino Pin Mapping** |
182182
|:-------------------------:|:-----------------------------------:|
183-
| `0-5V Channel 1` | `INPUT_05V_CH01` |
184-
| `0-5V Channel 2` | `INPUT_05V_CH02` |
185-
| `0-5V Channel 3` | `INPUT_05V_CH03` |
186-
| `0-5V Channel 4` | `INPUT_05V_CH04` |
187-
| `0-5V Channel 5` | `INPUT_05V_CH05` |
188-
| `0-5V Channel 6` | `INPUT_05V_CH06` |
189-
| `0-5V Channel 7` | `INPUT_05V_CH07` |
190-
| `0-5V Channel 8` | `INPUT_05V_CH08` |
183+
| 0-5V Channel 1 | INPUT_05V_CH01 |
184+
| 0-5V Channel 2 | INPUT_05V_CH02 |
185+
| 0-5V Channel 3 | INPUT_05V_CH03 |
186+
| 0-5V Channel 4 | INPUT_05V_CH04 |
187+
| 0-5V Channel 5 | INPUT_05V_CH05 |
188+
| 0-5V Channel 6 | INPUT_05V_CH06 |
189+
| 0-5V Channel 7 | INPUT_05V_CH07 |
190+
| 0-5V Channel 8 | INPUT_05V_CH08 |
191191

192192
Every pin can be used through the built-in functions of the Arduino programming language.
193193

@@ -311,12 +311,12 @@ The Edge Control has **six interrupt request input pins**, mapped as follows:
311311

312312
| **Input Name** | **Arduino Pin Mapping** |
313313
|:------------------------------------:|:----------------------------:|
314-
| `Interrupt Request Input 1` | `IRQ_CH1` |
315-
| `Interrupt Request Input 2` | `IRQ_CH2` |
316-
| `Interrupt Request Input 3` | `IRQ_CH3` |
317-
| `Interrupt Request Input 4` | `IRQ_CH4` |
318-
| `Interrupt Request Input 5` | `IRQ_CH5` |
319-
| `Interrupt Request Input 6` | `IRQ_CH6` |
314+
| Interrupt Request Input 1 | IRQ_CH1 |
315+
| Interrupt Request Input 2 | IRQ_CH2 |
316+
| Interrupt Request Input 3 | IRQ_CH3 |
317+
| Interrupt Request Input 4 | IRQ_CH4 |
318+
| Interrupt Request Input 5 | IRQ_CH5 |
319+
| Interrupt Request Input 6 | IRQ_CH6 |
320320

321321
The IRQ inputs of the Edge Control can be used through the built-in functions of the Arduino programming language. The configuration of an interrupt pin is done in the `setup()` function with the function `attachInterrupt()` as shown below:
322322

@@ -399,10 +399,10 @@ The Edge Control has **four 4-20mA input pins**, mapped as follows:
399399

400400
| **Input Name** | **Arduino Pin Mapping** |
401401
|:--------------------------------:|:-------------------------------------:|
402-
| `4-20mA Sensor Input 1` | `INPUT_420mA_CH01` |
403-
| `4-20mA Sensor Input 2` | `INPUT_420mA_CH02` |
404-
| `4-20mA Sensor Input 3` | `INPUT_420mA_CH03` |
405-
| `4-20mA Sensor Input 4` | `INPUT_420mA_CH04` |
402+
| 4-20mA Sensor Input 1 | INPUT_420mA_CH01 |
403+
| 4-20mA Sensor Input 2 | INPUT_420mA_CH02 |
404+
| 4-20mA Sensor Input 3 | INPUT_420mA_CH03 |
405+
| 4-20mA Sensor Input 4 | INPUT_420mA_CH04 |
406406

407407
Every 4-20mA input can be read through the built-in functions of the Arduino programming language. They are sampled the same way as the 0-5V analog inputs but the input value is read via a 220 ohm resistor and a +19V reference.
408408

@@ -510,22 +510,22 @@ The Edge Control has **16 Watermark sensor inputs**, mapped as follows:
510510

511511
| **Input Name** | **Arduino Pin Mapping** |
512512
|:--------------------------------:|:-------------------------------------:|
513-
| `Watermark Sensor Input 1` | `WATERMARK_CH01` |
514-
| `Watermark Sensor Input 2` | `WATERMARK_CH02` |
515-
| `Watermark Sensor Input 3` | `WATERMARK_CH03` |
516-
| `Watermark Sensor Input 4` | `WATERMARK_CH04` |
517-
| `Watermark Sensor Input 5` | `WATERMARK_CH05` |
518-
| `Watermark Sensor Input 6` | `WATERMARK_CH06` |
519-
| `Watermark Sensor Input 7` | `WATERMARK_CH07` |
520-
| `Watermark Sensor Input 8` | `WATERMARK_CH08` |
521-
| `Watermark Sensor Input 9` | `WATERMARK_CH09` |
522-
| `Watermark Sensor Input 10` | `WATERMARK_CH010` |
523-
| `Watermark Sensor Input 11` | `WATERMARK_CH011` |
524-
| `Watermark Sensor Input 12` | `WATERMARK_CH012` |
525-
| `Watermark Sensor Input 13` | `WATERMARK_CH013` |
526-
| `Watermark Sensor Input 14` | `WATERMARK_CH014` |
527-
| `Watermark Sensor Input 15` | `WATERMARK_CH015` |
528-
| `Watermark Sensor Input 16` | `WATERMARK_CH016` |
513+
| Watermark Sensor Input 1 | WATERMARK_CH01 |
514+
| Watermark Sensor Input 2 | WATERMARK_CH02 |
515+
| Watermark Sensor Input 3 | WATERMARK_CH03 |
516+
| Watermark Sensor Input 4 | WATERMARK_CH04 |
517+
| Watermark Sensor Input 5 | WATERMARK_CH05 |
518+
| Watermark Sensor Input 6 | WATERMARK_CH06 |
519+
| Watermark Sensor Input 7 | WATERMARK_CH07 |
520+
| Watermark Sensor Input 8 | WATERMARK_CH08 |
521+
| Watermark Sensor Input 9 | WATERMARK_CH09 |
522+
| Watermark Sensor Input 10 | WATERMARK_CH010 |
523+
| Watermark Sensor Input 11 | WATERMARK_CH011 |
524+
| Watermark Sensor Input 12 | WATERMARK_CH012 |
525+
| Watermark Sensor Input 13 | WATERMARK_CH013 |
526+
| Watermark Sensor Input 14 | WATERMARK_CH014 |
527+
| Watermark Sensor Input 15 | WATERMARK_CH015 |
528+
| Watermark Sensor Input 16 | WATERMARK_CH016 |
529529

530530
Watermark sensors are capable of measuring the physical force holding the water in the soil. Those measurements are correlated with the effort plants have to make to extract water from the soil, a really interesting data for agricultural applications.
531531

@@ -766,14 +766,14 @@ The board provides a total of 16 latching ports divided in 2 types:
766766

767767
| **Output Name** | **Arduino Pin Mapping** |
768768
|:----------------------------:|:-----------------------------------:|
769-
| `Latching Output 1` | `LATCHING_OUT_1` |
770-
| `Latching Output 2` | `LATCHING_OUT_2` |
771-
| `Latching Output 3` | `LATCHING_OUT_3` |
772-
| `Latching Output 4` | `LATCHING_OUT_4` |
773-
| `Latching Output 5` | `LATCHING_OUT_5` |
774-
| `Latching Output 6` | `LATCHING_OUT_6` |
775-
| `Latching Output 7` | `LATCHING_OUT_7` |
776-
| `Latching Output 8` | `LATCHING_OUT_8` |
769+
| Latching Output 1 | LATCHING_OUT_1 |
770+
| Latching Output 2 | LATCHING_OUT_2 |
771+
| Latching Output 3 | LATCHING_OUT_3 |
772+
| Latching Output 4 | LATCHING_OUT_4 |
773+
| Latching Output 5 | LATCHING_OUT_5 |
774+
| Latching Output 6 | LATCHING_OUT_6 |
775+
| Latching Output 7 | LATCHING_OUT_7 |
776+
| Latching Output 8 | LATCHING_OUT_8 |
777777

778778
These outputs can handle up to 3.3 A, so they can manage loads directly without problem. Motorized valves or solenoid latching valves are perfect examples of devices to control with these outputs.
779779

@@ -792,14 +792,14 @@ If you want to know more about using this outputs, follow our guide: [Connecting
792792

793793
| **Output Name** | **Arduino Pin Mapping** |
794794
|:----------------------------:|:-----------------------------------:|
795-
| `Latching Command 1` | `LATCHING_CMD_1` |
796-
| `Latching Command 2` | `LATCHING_CMD_2` |
797-
| `Latching Command 3` | `LATCHING_CMD_3` |
798-
| `Latching Command 4` | `LATCHING_CMD_4` |
799-
| `Latching Command 5` | `LATCHING_CMD_5` |
800-
| `Latching Command 6` | `LATCHING_CMD_6` |
801-
| `Latching Command 7` | `LATCHING_CMD_7` |
802-
| `Latching Command 8` | `LATCHING_CMD_8` |
795+
| Latching Command 1 | LATCHING_CMD_1 |
796+
| Latching Command 2 | LATCHING_CMD_2 |
797+
| Latching Command 3 | LATCHING_CMD_3 |
798+
| Latching Command 4 | LATCHING_CMD_4 |
799+
| Latching Command 5 | LATCHING_CMD_5 |
800+
| Latching Command 6 | LATCHING_CMD_6 |
801+
| Latching Command 7 | LATCHING_CMD_7 |
802+
| Latching Command 8 | LATCHING_CMD_8 |
803803

804804
These outputs must be connected to external devices through third-party protection/power circuits with high impedance inputs (max +/- 25 mA). They are suitable for custom applications where just the activation signal is needed. For example for using external relay modules or direct connections with other control devices like PLC inputs.
805805

@@ -856,10 +856,10 @@ The Edge Control has **four solid state relay outputs**, mapped as follows:
856856

857857
| **Output Name** | **Arduino Pin Mapping** |
858858
|:--------------------------------:|:-------------------------------------:|
859-
| `Solid State Relay 1` | `RELAY_CH01` |
860-
| `Solid State Relay 2` | `RELAY_CH02` |
861-
| `Solid State Relay 3` | `RELAY_CH03` |
862-
| `Solid State Relay 4` | `RELAY_CH04` |
859+
| Solid State Relay 1 | RELAY_CH01 |
860+
| Solid State Relay 2 | RELAY_CH02 |
861+
| Solid State Relay 3 | RELAY_CH03 |
862+
| Solid State Relay 4 | RELAY_CH04 |
863863

864864
This relay outputs are suitable for AC loads with a current draw below 2.5A and a 24V AC power supply.
865865

@@ -874,7 +874,7 @@ Relay.off(RELAY_CH01); // this command opens the channel 1 relay contacts
874874

875875
The example code shown below closes and opens the first channel `Relay Contact` repetitively, turning on and off the connected load:
876876

877-
```cpp
877+
```arduino
878878
#include "Arduino_EdgeControl.h"
879879
880880
// #define SSR_POLL
@@ -965,7 +965,7 @@ To power on or off a power rail the `Power.on(<rail>)` and `Power.off(<rail>)` f
965965

966966
The different commands and controllable power rails will be specified in the list below:
967967

968-
```cpp
968+
```arduino
969969
Power.on(PWR_VBAT); // turns on the 12V power rails for the "Latching Outputs"
970970
Power.on(PWR_3V3); // turns on the 3.3V power rail for the micro SD Card
971971
Power.on(PWR_19V); // turns on the 19V power rail for the 4-20mA sensors reference
@@ -997,7 +997,7 @@ To display text, we use the `LCD.print(text)` function.
997997

998998
The example code below prints "Edge Control" in the first row and starts a seconds counter in the second one:
999999

1000-
```cpp
1000+
```arduino
10011001
#include <Arduino_EdgeControl.h>
10021002
10031003
void setup() {
@@ -1026,7 +1026,7 @@ The Enclosure Kit includes a push button so you can interact with the device in
10261026

10271027
To read the button state we can use the built-in functions of the Arduino programming language. We first need to define it as an input using the `POWER_ON` macro.
10281028

1029-
```cpp
1029+
```arduino
10301030
pinMode(POWER_ON, INPUT); // the push button is addressed to the MCU input as "POWER_ON"
10311031
```
10321032

@@ -1036,7 +1036,7 @@ The state of the button can be read as usual with the `digitalRead(POWER_ON)` fu
10361036

10371037
In the example code below, we will attach the input to an interrupt and increase a counter with every tap shown in the LCD.
10381038

1039-
```cpp
1039+
```arduino
10401040
#include <Arduino_EdgeControl.h>
10411041
10421042
// Keep track of toggle-style press with an ISR
@@ -1086,21 +1086,21 @@ In the example code, there is a .h file called Helpers that includes very useful
10861086
Initially, you must set the current time as a reference for the RTC. This is made just once and can be done using the function setEpoch([Current Unix Time](https://www.unixtimestamp.com/)):
10871087

10881088

1089-
```cpp
1089+
```arduino
10901090
RealTimeClock.setEpoch(Unix Time); // You can use the timestamp generated on https://www.unixtimestamp.com/. Be aware that the time found on the webpage is UTC.
10911091
```
10921092

10931093
The `time(NULL)` function returns the Unix time (seconds since Jan 1st 1970), this is perfect for cloud and servers data logging.
10941094

1095-
```cpp
1095+
```arduino
10961096
getRTDateTime(); // 2023-09-30 16:33:19
10971097
getRTCTime(); // 16:33:19
10981098
getRTCDate(); // 2023-09-30
10991099
```
11001100

11011101
Also, you can use these more specific functions to retrieve the time in a custom way:
11021102

1103-
```cpp
1103+
```arduino
11041104
RealTimeClock.getYears(); //return the current year
11051105
RealTimeClock.getMonths(); //return the current month
11061106
RealTimeClock.getDays(); //return the current day
@@ -1126,19 +1126,19 @@ The NINA-B306 has two I2C ports, the I2C_1 is the one shared with the internal c
11261126

11271127
To use I2C communication, include the `Wire` library at the top of your sketch. The `Wire` library provides functions for I2C communication:
11281128

1129-
```cpp
1129+
```arduino
11301130
#include <Wire.h>
11311131
```
11321132
In the setup() function, initialize the I2C library:
11331133

1134-
```cpp
1134+
```arduino
11351135
// Initialize the I2C communication
11361136
Wire.begin();
11371137
```
11381138

11391139
To transmit data to an I2C-compatible device, you can use the following commands:
11401140

1141-
```cpp
1141+
```arduino
11421142
// Replace with the target device's I2C address
11431143
byte deviceAddress = 0x05;
11441144
@@ -1162,7 +1162,7 @@ Wire.endTransmission();
11621162
```
11631163
To read data from an I2C-compatible device, you can use the `requestFrom()` function to request data from the device and the `read()` function to read the received bytes:
11641164

1165-
```cpp
1165+
```arduino
11661166
// The target device's I2C address
11671167
byte deviceAddress = 0x05;
11681168
@@ -1186,7 +1186,7 @@ In the example code below, we are going to communicate the `Edge Control` with a
11861186

11871187
#### Edge Control Code
11881188

1189-
```cpp
1189+
```arduino
11901190
#include <Arduino_EdgeControl.h>
11911191
11921192
// The MKR1 board I2C address
@@ -1267,7 +1267,7 @@ void writeBytes(uint8_t *buf, uint8_t len) {
12671267

12681268
#### MKR WiFi Code
12691269

1270-
```cpp
1270+
```arduino
12711271
#include <Wire.h>
12721272
#include <WiFiNINA.h>
12731273
#include <utility/wifi_drv.h>
@@ -1405,7 +1405,7 @@ This example shows how to export Arduino functions as remote procedure calls (RP
14051405

14061406
#### Edge Control Code
14071407

1408-
```cpp
1408+
```arduino
14091409
#include <Arduino_EdgeControl.h>
14101410
14111411
bool led { false };
@@ -1436,7 +1436,7 @@ void loop()
14361436

14371437
#### MKR Code
14381438

1439-
```cpp
1439+
```arduino
14401440
void setup() {
14411441
Serial1.begin(9600); // must be the same on both devices
14421442
pinMode(LED_BUILTIN, OUTPUT);
@@ -1465,7 +1465,7 @@ The example code used below is an adaptation of the "Datalogger" example include
14651465

14661466
The same wiring of the [analog input section](#analog-inputs) can be used, with the addition of an micro SD card attached.
14671467

1468-
```cpp
1468+
```arduino
14691469
#include <Arduino_EdgeControl.h>
14701470
#include <SPI.h>
14711471
#include <SD.h>

0 commit comments

Comments
 (0)