Skip to content

Commit 12c3f3b

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

File tree

1 file changed

+31
-2
lines changed

1 file changed

+31
-2
lines changed

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

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,37 @@ Now, if we wanted to power this application using a battery, we know that the po
4040

4141
With that information, we can make an educated guess of what type of battery we should get. For example, a battery with more capacity, let's say 600 mAh, would in theory last for twice the period.
4242

43-
***Note that there are other factors at play, such as the battery's discharge rate and the general quality of the battery.***
43+
***Note that there are other factors at play, such as the battery's discharge rate and the general quality of the battery. The above formulas and measurements are to be considered guidelines.***
44+
45+
46+
## Software Setup
47+
48+
The software setup involves two steps: **upload a sketch** and **insatlling nRF Connect for Desktop**.
49+
50+
### Upload Sketch
51+
52+
This step is rather straightforward. Upload the sketch that you want to measure the power consumption of. Below is a minimal sketch that reads an analog pin continuously.
53+
54+
```arduino
55+
56+
```
57+
58+
### Install Desktop App
59+
60+
To measure the power consumption, we are going to use the [nRF Connect for Desktop](https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-for-Desktop/Download) tool. This is a program that you install on your computer.
4461

4562
## Hardware Setup
4663

47-
## Software Setup
64+
The profiler we used is the [Power Profiler Kit II](https://www.nordicsemi.com/Products/Development-hardware/Power-Profiler-Kit-2).
65+
66+
1. First disconnect the USB cable from your board. You will be powering the board directly from the power profiler, so there's no need for the USB cable at this point.
67+
2. Use the provided cable from the kit, and connect it to your board's GND and power pin, following the illustration below:
68+
69+
![Connect the power profiler to the board.]()
70+
71+
***Important note! In the software setup you enable the "Power Output" of the power profiler. Make sure that the voltage (3.3 V or 5 V) matches the voltage on the power pin of the board. Applying 5 V to a 3.3 V pin will damage your board.***
72+
73+
## Power Consumption Test
74+
75+
With the hardware and software set up, let's take a look at how to record the power consumption of your device.
76+

0 commit comments

Comments
 (0)