Skip to content

Commit 2c7098b

Browse files
committed
Change math symbol from $$ to \[\]
1 parent 576edc9 commit 2c7098b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/hardware/01.mkr/01.boards/mkr-wifi-1010/tutorials/mkr-battery-app-note/mkr-battery-app-note.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ The nominal voltage of both LiPo and Li-Ion batteries is around 3.7V and is comm
7575

7676
In the MKR boards, the battery terminal is connected to the SAMD21 via a reserved pin (PB09) known as `ADC_BATTERY` within the Arduino Core. This pin is used internally on the board, and is not accessible via the MKR pins. Since the voltage of a Li-ion battery exceeds 3.3V (the AREF value), a voltage divider must be used to extend the range while also ensure that only safe voltages are applied to the microcontroller. We can calculate the output voltage using the following formula
7777

78-
$$ V_{out} = \frac{V_{source} \times R2} {R_1 + R_2} $$
78+
\[ V_{out} = \frac{V_{source} \times R2} {R_1 + R_2} \]
7979

8080
In the MKR WIFI 1010, $R_1$ and $R_2$ are 330k ohm and 1M ohm respectively. Therefore, for a resolution of 12 bits, the board is subject to 3.3V that corresponds to about 4.39V on the battery side. Therefore, we can cover the operating value of a whole battery. The high values reduce the leakage current that may pass through, increasing the life of the battery. The capacitor acts to clean the signal.
8181

0 commit comments

Comments
 (0)