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/learn/04.electronics/11.power-consumption/power-consumption.md
+66Lines changed: 66 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -74,3 +74,69 @@ The profiler we used is the [Power Profiler Kit II](https://www.nordicsemi.com/P
74
74
75
75
With the hardware and software set up, let's take a look at how to record the power consumption of your device.
76
76
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:
| 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.
0 commit comments