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/05.pro-solutions/solutions-and-kits/edge-control/tutorials/user-manual/content.md
+65-2Lines changed: 65 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -959,6 +959,14 @@ void loop()
959
959
}
960
960
```
961
961
962
+
### Power Rails
963
+
964
+
The Edge Control let you manage the power state of several internal components, so energy efficient applications could be achieved using this board.
965
+
966
+
The different commands and controllable power rails will be specified in the list below:
967
+
968
+
969
+
962
970
## Edge Control Enclosure Kit
963
971
964
972

@@ -1164,7 +1172,9 @@ while (Wire.available()) {
1164
1172
}
1165
1173
```
1166
1174
1167
-
In the example code below, we are going to communicate the Edge Control with a MKR WiFi 1010. With a potentiometer connected to the Edge Control, the onboard LED of the MKR board will be controlled, so we will be sending the brightness value through I2C to it.
1175
+
In the example code below, we are going to communicate the Edge Control with a MKR WiFi 1010. With a potentiometer connected to the Edge Control, the onboard LED of the MKR board will be controlled, so we will be sending the brightness value through I2C to it.
1176
+
1177
+
***Use the same connection from [this section](#analog-inputs) for the potentiometer wiring.***
1168
1178
1169
1179

To learn more about how to communicate the Edge Control through UART with other devices, we will use the example code below that can be found on **File > Examples > Arduino_EdgeControl > RPC > BlinkOverSerial**
1384
1394
1385
-
This example shows how to export Arduino functions as remote procedure calls (RPC), the Edge Control is capable ofcontrolling a MKR board built-in LED by Serial communication.
1386
1395
1396
+
This example shows how to export Arduino functions as remote procedure calls (RPC), the Edge Control is capable of controlling a MKR board built-in LED by Serial communication.
1397
+
1398
+

1399
+
1400
+
#### Edge Control Code
1401
+
1402
+
```cpp
1403
+
#include<Arduino_EdgeControl.h>
1404
+
1405
+
bool led { false };
1406
+
1407
+
void setup()
1408
+
{
1409
+
EdgeControl.begin();
1410
+
Power.on(PWR_3V3);
1411
+
Power.on(PWR_VBAT);
1412
+
Power.on(PWR_MKR2);
1413
+
1414
+
// Wait for MKR to power on
1415
+
delay(5000);
1416
+
1417
+
SerialMKR2.begin(9600); // must be the same on both devices
1418
+
while (!SerialMKR2) {
1419
+
delay(500);
1420
+
}
1421
+
}
1422
+
1423
+
void loop()
1424
+
{
1425
+
SerialMKR2.write(led);
1426
+
led = !led;
1427
+
delay(1000);
1428
+
}
1429
+
```
1430
+
1431
+
#### MKR Code
1432
+
1433
+
```cpp
1434
+
void setup() {
1435
+
Serial1.begin(9600); // must be the same on both devices
0 commit comments