Skip to content

Commit 2273ef0

Browse files
committed
Update power-consumption.md
1 parent 12c3f3b commit 2273ef0

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

content/learn/04.electronics/11.power-consumption/power-consumption.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,69 @@ The profiler we used is the [Power Profiler Kit II](https://www.nordicsemi.com/P
7474

7575
With the hardware and software set up, let's take a look at how to record the power consumption of your device.
7676

77+
1. Open the **nRF Desktop App**
78+
2. instructions for setting up the PP
79+
3. Enable the power output, by clicking the "Enable Power Output" option.
80+
81+
![Enable power output.]()
82+
83+
4. Select sample period (60 seconds) and number of samples (100k).
84+
5. Click on the "Begin Sampling" to start the power consumption test.
85+
86+
![Start sampling.]()
87+
88+
6. During the test, you can see the power consumption in real-time. After 60 seconds (or when specified sample period ends), you will have the data, which includes the **max** and **avg** consumption. You can also zoom in to view the data.
89+
90+
![Power consumption data.]()
91+
92+
You have now recorded the power consumption of your device. You can note down the results, export it as a `.csv` or take a screenshot for future reference.
93+
94+
## Example Results
95+
96+
In this section, you will find a number of tests we ran on a set of Arduino boards during different conditions.
97+
98+
### Simple Analog Read
99+
100+
The simple analog read sketch continuously reads an analog pin.
101+
102+
```arduino
103+
void setup() {
104+
105+
}
106+
107+
void loop() {
108+
int analog_value = analogRead(A0);
109+
delay(1);
110+
}
111+
```
112+
113+
In the table below, you can see the results of each board tested with the sketch:
114+
115+
| Board | Min | Max | Average |
116+
| ------------ | -------- | --------- | -------- |
117+
| UNO R4 WiFi | 82.86 mA | 124.04 mA | 92.63 mA |
118+
| GIGA R1 WiFi | 51.02 mA | 94.08 mA | 58.05 mA |
119+
| Nano ESP32 | 29.18 mA | 46.58 mA | 31.05 mA |
120+
121+
122+
123+
### Arduino Cloud Basic
124+
125+
The **Arduino Cloud Basic** sketch sends sensor data to the Arduino Cloud, and turns on the built-in LED whenever activated from a dashboard.
126+
127+
```arduino
128+
129+
```
130+
131+
In the table below, you can see the results of each board tested with the sketch:
132+
133+
| Board | Min | Max | Average |
134+
| ------------ | --------- | --------- | --------- |
135+
| UNO R4 WiFi | 94.07 mA | 513.70 mA | 140.19 mA |
136+
| GIGA R1 WiFi | 121.00 mA | 477.44 mA | 139.83 mA |
137+
| Nano ESP32 | 36.70 mA | 274.19 mA | 58.81 mA |
138+
139+
## Summary
140+
141+
In this guide we have learned how to use a power profiler to record power consumption data. This is an incredibly good utility, as it helps you identify the power needs of your application, which can aid your decision in selecting the right power source.
142+

0 commit comments

Comments
 (0)