From 3616ca4bf1aa0cd3f5497c27e6820633e80178b9 Mon Sep 17 00:00:00 2001 From: Ali Jahangiri <75624145+aliphys@users.noreply.github.com> Date: Mon, 12 Sep 2022 13:19:30 +0200 Subject: [PATCH] Replace Tex with Figma images --- .../assets/maxCurrentDraw.svg | 52 +++++++++++++++++++ .../mkr-battery-app-note/assets/vout.svg | 23 ++++++++ .../mkr-battery-app-note.md | 4 +- 3 files changed, 77 insertions(+), 2 deletions(-) create mode 100644 content/hardware/01.mkr/01.boards/mkr-wifi-1010/tutorials/mkr-battery-app-note/assets/maxCurrentDraw.svg create mode 100644 content/hardware/01.mkr/01.boards/mkr-wifi-1010/tutorials/mkr-battery-app-note/assets/vout.svg diff --git a/content/hardware/01.mkr/01.boards/mkr-wifi-1010/tutorials/mkr-battery-app-note/assets/maxCurrentDraw.svg b/content/hardware/01.mkr/01.boards/mkr-wifi-1010/tutorials/mkr-battery-app-note/assets/maxCurrentDraw.svg new file mode 100644 index 0000000000..690af88f69 --- /dev/null +++ b/content/hardware/01.mkr/01.boards/mkr-wifi-1010/tutorials/mkr-battery-app-note/assets/maxCurrentDraw.svg @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/content/hardware/01.mkr/01.boards/mkr-wifi-1010/tutorials/mkr-battery-app-note/assets/vout.svg b/content/hardware/01.mkr/01.boards/mkr-wifi-1010/tutorials/mkr-battery-app-note/assets/vout.svg new file mode 100644 index 0000000000..eb539d22b1 --- /dev/null +++ b/content/hardware/01.mkr/01.boards/mkr-wifi-1010/tutorials/mkr-battery-app-note/assets/vout.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/content/hardware/01.mkr/01.boards/mkr-wifi-1010/tutorials/mkr-battery-app-note/mkr-battery-app-note.md b/content/hardware/01.mkr/01.boards/mkr-wifi-1010/tutorials/mkr-battery-app-note/mkr-battery-app-note.md index 13adf4c292..58b4503c28 100644 --- a/content/hardware/01.mkr/01.boards/mkr-wifi-1010/tutorials/mkr-battery-app-note/mkr-battery-app-note.md +++ b/content/hardware/01.mkr/01.boards/mkr-wifi-1010/tutorials/mkr-battery-app-note/mkr-battery-app-note.md @@ -64,7 +64,7 @@ The nominal voltage of both LiPo and Li-Ion batteries is around 3.7V and is comm 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 -\[ V_{out} = \frac{V_{source} \times R2} {R_1 + R_2} \] +![Output voltage formula](assets/vout.svg) 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. @@ -80,7 +80,7 @@ While the MKR boards do not provide a mechanism for identifying capacity, we can **Discharge rating** When the battery is fully charged or when it is near to discharge, the discharge rate changes considerably. Yet, there is a region where the discharge rate is constant (change in voltage over change in discharge capacity does not flunctuate). Within this region, the maximum current draw is defined as: -$$\text{maximum current draw } = \text{ battery capacity } \times \text{ discharge rating} $$ +![Maximum current draw](assets/maxCurrentDraw.svg) The discharge rating (C) is often provided in the datasheet of the battery. If the C rating of a battery is 1, then it can discharge the maximum current for one hour before running out. As a rule of thumb, higher discharge rates lead to the reduction of the effective capacity and lifetime of the battery.