Accurately Read Battery Voltage with an Arduino and Voltage Divider | Pro Mini | 18650 | ATmega328p

  Рет қаралды 15,595

Delali

Delali

Күн бұрын

Lets look at how to track Arduino VCC and accurately measure battery voltage using a voltage divider.
Hope you learn something new. cheers!!!
Libraries and Code Example:
github.com/Ner...
~~~~ Tools and Parts Used in this Video (AliExpress Affiliate)~~~~
RD6018W 60V 18A Bench Power Supply
s.click.aliexp...
Breadboard
s.click.aliexp...
Alligator Clips
s.click.aliexp...
UT61E Plus Multimeter
s.click.aliexp...
Jumper Wires
s.click.aliexp...
Kindly support us on patreon here: / delali
----------------------------------------
Other Channel Gear and Equipment's (Affiliate)
AliExpress
~~~~ Multimeters ~~~~
UT204 Plus Clamp Multimeter
s.click.aliexp...
~~~~ Oscilloscope ~~~~
DSO FNIRSI PRO Oscilloscope
s.click.aliexp...
~~~~ Soldering and Welding Kit ~~~~
DH30 Max Portable Battery Spot Welder Kit
s.click.aliexp...
KSGER T12 STM32 V3.1S Electric OLED Soldering Station
s.click.aliexp...
~~~~ Testers ~~~~
USB Adjustable Discharge Load
s.click.aliexp...
RD UM34C USB Tester
s.click.aliexp...
USB Tester with Current Voltage Indicator
s.click.aliexp...
Qualcomm QC2.0 & 3.0 | 5V / 9V / 12V / 15V / 20V Trigger
s.click.aliexp...
~~~~ Others Tools ~~~~
Xiaomi Mijia Screw Driver Kit
OLD Version s.click.aliexp...
NEW Version s.click.aliexp...
NEW Electric Version s.click.aliexp...
Non-slip Metal Scalpel Knife Set with 40 Blades
s.click.aliexp...
All Channel Gear on Amazon
Amazon : www.amazon.com...
----------------------------------------
Don't forget to LIKE, SHARE and SUBSCRIBE
Follow us @diydelali on Facebook, Twitter and Instagram
Channel Theme Song: Entire by Quincas Moreira
#Arduino #VoltageDivider #ATmega328p #BatteryMonitoring
#arduino #18650 #readvoltage #batterymeasurement #promini
#arduinoprojects #voltagedivider #promini #atmega328p #arduinotutorial #arduinoprojectsforbeginners #arduinoprogramming #howtouseanarduinotoreadbatteryvoltage #howtousevoltagedividerandarduinotoreadbatteryvoltage #readvoltagewitharduino #delali
arduino,arduino projects,18650,voltage divider,arduino voltage divider,pro mini,atmega328p,3.3v 8mhz,arduino tutorial,how to use an arduino to read battery voltage,how to use voltage divider and arduino to read battery voltage,read voltage,read voltage with arduino,Arduini Projects,delali,arduino project,how to,how to use an arduino and voltage divider to read battery voltage,how to monitor arduino battery voltage with voltage divider

Пікірлер: 25
@Magne-ficent
@Magne-ficent Күн бұрын
How are you getting vcc max value of 3.303 volts? Is that max voltage through the voltage divider?
@khaleef_hrm
@khaleef_hrm Жыл бұрын
Hello. Can i connect with you please. I just started learning Arduino and I'm all about 18650 battery. I want to do a lot with Arduino with 18650. If you don't mind.
@Delali
@Delali Жыл бұрын
Please check the about page of this channel for my email.
@andresmateo4281
@andresmateo4281 Жыл бұрын
Excuse me one question, why you didnt use the function "map" to get the battery percentage?
@jakesllama
@jakesllama 10 ай бұрын
It doesn't work I tried the same and couldn't find answer why online. So went to basics and divided the value against the total times 100. This worked for me atleast
@Delali
@Delali 7 ай бұрын
I didnt use the map() function becuase there was no need for making the Atmega328p do more work. I wanted to keep the code simple. I believe this: ((batt_volt - lowBat )/ (fullBat - lowBat)) * 100 is simpler than this: map(batt_volt - lowBat, batt_volt - lowBat, fullBat - lowBat, 0, 100)
@iamfyrus
@iamfyrus 10 ай бұрын
Can I measure without DC power supply? Anyone done it with nano 5v?
@Delali
@Delali 7 ай бұрын
Yes you can. The battery will be the power source and the entity being measured at the same time. Unless i've misunderstood your question.
@woll757
@woll757 Жыл бұрын
You powered the pro mini with more than 3.3v in the beginning, but with a current limit. Is this why it didn’t break? Or Why is it ok to power 3.3v pro mini with ~4V? Great channel and vids btw keep it up!
@Delali
@Delali 7 ай бұрын
I powered the pro mini with a current limit to ensure it doesnt get damaged incase i dont something wrong along the process of making the video. It was just a safety precaution. Thanks for the kind words too. I appreciate your feedback. Cheers!!
@aherte1257
@aherte1257 Жыл бұрын
assuming battery level with just measuring the voltage is not a very correct approach. Because voltage discharge level is not linear. to calculate the exact power level you also have to measure the current.
@Delali
@Delali 7 ай бұрын
In my case i'm just trying to measure the battery voltage, so the non linearity of battery discharge doesnt matter much. It might matter if i was trying to calculate and estimate how long before the battery gets to a fully discharged state. I hope you get what i mean.
@sivaforu2004
@sivaforu2004 11 ай бұрын
How about the same for esp32? i'm unable to use the program for esp32?
@Delali
@Delali 7 ай бұрын
The code is meant for the Arduino line of boards. I belive the ESP has a different architecture.
@samithetechsavvy6485
@samithetechsavvy6485 7 ай бұрын
Thank you very much
@Delali
@Delali 7 ай бұрын
You are welcome. Please don't forget to subscribe. Cheers!!
@samithetechsavvy6485
@samithetechsavvy6485 7 ай бұрын
@@Delali of course, already done , keep up
@tybozo
@tybozo 11 ай бұрын
question: would this problem exist if you used a separate power source for the arduino and not use the battery?
@Delali
@Delali 7 ай бұрын
No it wont exist. If the power source never dips below the 3.3v output peg the microcontroller requires as reference then this problem goes away.
@gloriagbagbo-pf1of
@gloriagbagbo-pf1of Жыл бұрын
This is a beautiful channel
@Delali
@Delali Жыл бұрын
Thanks fam.
@autonoob
@autonoob 8 ай бұрын
Is this still a problem if you use two cells feeding a voltage regulator that then feeds the arduino? As I understand it the problem arises because a Lion cell drops below 3.3V as it discharges this messing with the analog ref. Correct?
@Delali
@Delali 7 ай бұрын
Yes. Correct. If you use two cells in series, the good news is you have more time before the combined voltage dips below the voltage regulators desired input.
@robotboy3525
@robotboy3525 Жыл бұрын
Mad respects brother! mad respects!
@Delali
@Delali 7 ай бұрын
Thank you fam❤️ Please dont forget to subscribe. Cheers!!
How-to: Accurate Voltage Measurements with Arduino
12:15
Elektor TV
Рет қаралды 39 М.
Incredible: Teacher builds airplane to teach kids behavior! #shorts
00:32
Fabiosa Stories
Рет қаралды 11 МЛН
Will A Guitar Boat Hold My Weight?
00:20
MrBeast
Рет қаралды 256 МЛН
The Joker wanted to stand at the front, but unexpectedly was beaten up by Officer Rabbit
00:12
哈莉奎因怎么变骷髅了#小丑 #shorts
00:19
好人小丑
Рет қаралды 54 МЛН
Arduino diy battery tester
8:03
Esperienze elettroniche
Рет қаралды 12 М.
Measure DC Voltage and Current with Arduino
37:29
DroneBot Workshop
Рет қаралды 201 М.
Arduino Temperature Gauge
34:43
upir
Рет қаралды 50 М.
Using EEPROM with Arduino - Internal & External
31:54
DroneBot Workshop
Рет қаралды 196 М.
Constant Voltage or Current Supply with ARDUINO
18:02
Electronoobs
Рет қаралды 70 М.
Correctly Measure Battery Level - MAX17048 (ESP32 + Arduino series)
4:22
How To Identify An Unmarked or Blown IC Chip
32:31
Learn Electronics Repair
Рет қаралды 63 М.
Should you be using Lithium-Ion batteries on your FPV drone?
18:39
Joshua Bardwell
Рет қаралды 77 М.
Incredible: Teacher builds airplane to teach kids behavior! #shorts
00:32
Fabiosa Stories
Рет қаралды 11 МЛН