#171 External Battery Monitor from your Arduino
Don't let a flat battery ruin your data gathering! This simple trick shows you how to detect a failing battery.
PCBWay Assembly Service only $30 with Quick Turnaround Time https://www.pcbway.com
You can read all this and MORE (eg Circuit Diagrams, Sketch) in my GitHub:
https://github.com/RalphBacon/171-Monitor-Your-Battery
So your battery-powered project runs on a buck-boost (or other DC to DC converter) and you need to monitor the voltage of the LiPO rather than the VCC supplied to the Arduino (as shown in video #160).
A simple configuration at the Arduino and a simple potential divider and it's job done! Then you can monitor the voltage of your LiPO (or car battery etc) and **get early warning** when it is on the slippery slope to complete discharge.
Remember, too, that you don't want to run a LiPO (eg an 18650) any lower than 3.0v or you will **permanently damage** the device and it may never fully recover. If your battery has protection circuitry included (18650 batteries WITH protection are slightly longer than unprotected ones) it will automatically shut it down at 3.0 volts anyway.
The sketch is so simple I'm almost embarrassed to upload it - BUT there is a **critical line** of code that is essential this all works without destroying your Arduino's AREF pin so do check it out before connecting anything.
List of all my videos
(Special thanks to Michael Kurt Vogel for compiling this)
http://bit.ly/YouTubeVideoList-RalphBacon
You can read all this and MORE in my GitHub:
https://github.com/RalphBacon/171-Monitor-Your-Battery
=============================
LINKS to products used in the video
=============================
CJMCU-4599 Si4599 N and P Channel 40V (D -S) **MOSFET Expansion Board** Module about $4 for 3 pieces:
https://www.banggood.com/3pcs-CJMCU-4599-Si4599-N-and-P-Channel-40V-D-S-MOSFET-Expansion-Board-Module-p-1363266.html?p=FQ040729393382015118&utm_campaign=25129675&utm_content=3897
DC-DC **Boost Buck Adjustable** Step Up/Step Down Automatic Converter XL6009 Module about $2.67 (or $5 from UK warehouse):
https://www.banggood.com/DC-DC-Boost-Buck-Adjustable-Step-Up-Step-Down-Automatic-Converter-XL6009-Module-p-1087346.html?p=FQ040729393382015118&utm_campaign=25129675&utm_content=3897
DC-DC 2.5V-15V to 3.3V **Fixed Output** Automatic Buck Boost Step Up Step Down $1.67 each:
https://www.banggood.com/DC-DC-2_5V-15V-to-3_3V-Fixed-Output-Automatic-Buck-Boost-Step-Up-Step-Down-Power-Supply-Module-p-1355827.html?p=FQ040729393382015118&utm_campaign=25129675&utm_content=3897
0.36 Inch **Digital Voltmeter** DC 0V-100V Three Wires 3 Digit Battery Voltage Panel Meter about $2 each or $1 each in a pack fo 10:
https://www.banggood.com/805-Micro-0_36-Inch-Digital-Voltmeter-DC-0V-100V-Three-Wires-3-Digit-Battery-Voltage-Panel-Meter-LED-Display-for-RC-Airplane-Car-Boat-Motorcycle-p-1557653.html?p=FQ040729393382015118&utm_campaign=25129675&utm_content=3897
Wemos **18650 UPS/PSU** as used in the video, about $7 for THREE pieces ($3.68 if bought indivually):
https://www.banggood.com/3Pcs-Wemos-ESP32-ESP32S-18650-Battery-Charge-Shield-V3-Micro-USB-Type-A-USB-0_5A-Test-Charging-Protection-Board-For-Raspberry-Pi-Arduino-p-1448427.html?p=FQ040729393382015118&utm_campaign=25129675&utm_content=3897
Interactive cheat sheet for calculating **potential (resistor) divider** values:
http://www.ohmslawcalculator.com/voltage-divider-calculator
My blog article on what happened to my eye (again):
https://ralphbacon.blog/?p=340
### Popular Links
**YIHUA 938D Portable Hot Tweezers** Mini Soldering Station 110V/220V
https://bit.ly/2M8R0bj
DANIU Heavy Duty **Soldering Solder Iron Tip Cleaner** Steel Wire $3.33 from China, higher price local warehouse
http://bit.ly/SolderingIronCLeaner
SMD Components Solder **Practice Module Kit** - all components incl QFP chips
http://bit.ly/SMDPracticeBoard
If you like this video please give it a thumbs up, share it and if you're not already subscribed please consider doing so and joining me on my Arduinite journey
My channel and blog are here:
------------------------------------------------------------------
https://www.youtube.com/RalphBacon
https://ralphbacon.blog
------------------------------------------------------------------
Видео #171 External Battery Monitor from your Arduino канала Ralph S Bacon
PCBWay Assembly Service only $30 with Quick Turnaround Time https://www.pcbway.com
You can read all this and MORE (eg Circuit Diagrams, Sketch) in my GitHub:
https://github.com/RalphBacon/171-Monitor-Your-Battery
So your battery-powered project runs on a buck-boost (or other DC to DC converter) and you need to monitor the voltage of the LiPO rather than the VCC supplied to the Arduino (as shown in video #160).
A simple configuration at the Arduino and a simple potential divider and it's job done! Then you can monitor the voltage of your LiPO (or car battery etc) and **get early warning** when it is on the slippery slope to complete discharge.
Remember, too, that you don't want to run a LiPO (eg an 18650) any lower than 3.0v or you will **permanently damage** the device and it may never fully recover. If your battery has protection circuitry included (18650 batteries WITH protection are slightly longer than unprotected ones) it will automatically shut it down at 3.0 volts anyway.
The sketch is so simple I'm almost embarrassed to upload it - BUT there is a **critical line** of code that is essential this all works without destroying your Arduino's AREF pin so do check it out before connecting anything.
List of all my videos
(Special thanks to Michael Kurt Vogel for compiling this)
http://bit.ly/YouTubeVideoList-RalphBacon
You can read all this and MORE in my GitHub:
https://github.com/RalphBacon/171-Monitor-Your-Battery
=============================
LINKS to products used in the video
=============================
CJMCU-4599 Si4599 N and P Channel 40V (D -S) **MOSFET Expansion Board** Module about $4 for 3 pieces:
https://www.banggood.com/3pcs-CJMCU-4599-Si4599-N-and-P-Channel-40V-D-S-MOSFET-Expansion-Board-Module-p-1363266.html?p=FQ040729393382015118&utm_campaign=25129675&utm_content=3897
DC-DC **Boost Buck Adjustable** Step Up/Step Down Automatic Converter XL6009 Module about $2.67 (or $5 from UK warehouse):
https://www.banggood.com/DC-DC-Boost-Buck-Adjustable-Step-Up-Step-Down-Automatic-Converter-XL6009-Module-p-1087346.html?p=FQ040729393382015118&utm_campaign=25129675&utm_content=3897
DC-DC 2.5V-15V to 3.3V **Fixed Output** Automatic Buck Boost Step Up Step Down $1.67 each:
https://www.banggood.com/DC-DC-2_5V-15V-to-3_3V-Fixed-Output-Automatic-Buck-Boost-Step-Up-Step-Down-Power-Supply-Module-p-1355827.html?p=FQ040729393382015118&utm_campaign=25129675&utm_content=3897
0.36 Inch **Digital Voltmeter** DC 0V-100V Three Wires 3 Digit Battery Voltage Panel Meter about $2 each or $1 each in a pack fo 10:
https://www.banggood.com/805-Micro-0_36-Inch-Digital-Voltmeter-DC-0V-100V-Three-Wires-3-Digit-Battery-Voltage-Panel-Meter-LED-Display-for-RC-Airplane-Car-Boat-Motorcycle-p-1557653.html?p=FQ040729393382015118&utm_campaign=25129675&utm_content=3897
Wemos **18650 UPS/PSU** as used in the video, about $7 for THREE pieces ($3.68 if bought indivually):
https://www.banggood.com/3Pcs-Wemos-ESP32-ESP32S-18650-Battery-Charge-Shield-V3-Micro-USB-Type-A-USB-0_5A-Test-Charging-Protection-Board-For-Raspberry-Pi-Arduino-p-1448427.html?p=FQ040729393382015118&utm_campaign=25129675&utm_content=3897
Interactive cheat sheet for calculating **potential (resistor) divider** values:
http://www.ohmslawcalculator.com/voltage-divider-calculator
My blog article on what happened to my eye (again):
https://ralphbacon.blog/?p=340
### Popular Links
**YIHUA 938D Portable Hot Tweezers** Mini Soldering Station 110V/220V
https://bit.ly/2M8R0bj
DANIU Heavy Duty **Soldering Solder Iron Tip Cleaner** Steel Wire $3.33 from China, higher price local warehouse
http://bit.ly/SolderingIronCLeaner
SMD Components Solder **Practice Module Kit** - all components incl QFP chips
http://bit.ly/SMDPracticeBoard
If you like this video please give it a thumbs up, share it and if you're not already subscribed please consider doing so and joining me on my Arduinite journey
My channel and blog are here:
------------------------------------------------------------------
https://www.youtube.com/RalphBacon
https://ralphbacon.blog
------------------------------------------------------------------
Видео #171 External Battery Monitor from your Arduino канала Ralph S Bacon
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![#170 ToneAC Library with 328P DIP Nano PCB Plug-in](https://i.ytimg.com/vi/Gb7ofRZUXcU/default.jpg)
![#160 Arduino Battery (🔋 VCC) Monitor - No external components required](https://i.ytimg.com/vi/C-VnvjEP0-k/default.jpg)
![How to Monitor RV Batteries On A Budget.](https://i.ytimg.com/vi/tObHbsSDWeQ/default.jpg)
![#86 More eBay Goodies (for the price of a cup of coffee)](https://i.ytimg.com/vi/O3WRvSbmH8M/default.jpg)
![Monitoring a boat's battery banks](https://i.ytimg.com/vi/z9iWP_dHwdU/default.jpg)
![#151 - ESP32 Passing Values 💾 Between Tasks - Deep Dive (2 Easy Ways)](https://i.ytimg.com/vi/ywbq1qR-fY0/default.jpg)
![Save Time and Hassle, Build a DIY Battery Capacity Meter, V2](https://i.ytimg.com/vi/sJ-sy8Osqr0/default.jpg)
![#173 ATTiny85 Power On Off Shutdown](https://i.ytimg.com/vi/S2y1oAVmxdA/default.jpg)
![#70 GPS Ublox - First look! Possible RTC replacement?](https://i.ytimg.com/vi/R0Z5S6nNpV4/default.jpg)
![BMS (Battery Management System) || DIY or Buy || Properly protecting Li-Ion/Li-Po Battery Packs](https://i.ytimg.com/vi/rT-1gvkFj60/default.jpg)
![#157 Top 5 Essential Arduino Workshop Tools 🛠️ - Beginner & Upgrader](https://i.ytimg.com/vi/BGg2uGDivYQ/default.jpg)
![#153 STM32 clones - good value or cheap copy? Asian Alternative Components](https://i.ytimg.com/vi/VE8-DCMXzo8/default.jpg)
![Tech Note 115 - Using the ESP32 ADC for wide range DC voltage measurements](https://i.ytimg.com/vi/S34R4zg03uE/default.jpg)
![Testing a Battery Monitor System](https://i.ytimg.com/vi/CE9zcKSLSJ0/default.jpg)
![#BB1 Transistors - from an Arduino Perspective. Bacon Bytes Beginners' Series.](https://i.ytimg.com/vi/9aYUzRpVSjA/default.jpg)
![TUTORIAL: How to Measure / Read Voltages Into Arduino - (Part 1/3 Voltages Less than 5v)](https://i.ytimg.com/vi/lec7kPv3VS8/default.jpg)
![Wireless battery voltage monitoring using Arduino , Bluetooth module Hc-05 | Hc06 and voltage sensor](https://i.ytimg.com/vi/zXtKolDPoyc/default.jpg)
![#118 ESP8266 Deep Sleep 💥 and Bare Bones ESP (easy)](https://i.ytimg.com/vi/NgPwPKXCLFY/default.jpg)
![#18 Add a Relay Module to your Arduino project - Hints, Tips & Traps](https://i.ytimg.com/vi/d9evR-K6FAY/default.jpg)
![#156 LGT8F328P Replacement for ATMEGA328P (at 32MHz 😲)](https://i.ytimg.com/vi/Myfeqrl3QP0/default.jpg)