How to Measure And Calculate Board Runtime for a Single Battery Charge - ESP32 Example

  Рет қаралды 8,219

Robert Feranec

Robert Feranec

Күн бұрын

Simple tips and tricks to increase battery runtime by correctly measuring currents. This video also shows power consumption of ESP32 board in different modes (deep sleep, WiFi, normal). Thank you very much Andrea Longobardi
Links:
- Andrea's Linked In: / andrealongobardi
- Andrea's company: al2tech.com/
- FEDEVEL courses: fedevel.com/courses
Chapters:
00:00 The problem
00:31 Power profiler
05:32 Setup
09:03 Typical IoT application
10:40 Calculating without measurements
16:52 Measuring current: LED
17:48 ESP32 current and power consumption for 160MHz vs 80MHz
19:46 ESP32 current and power consumption in deep sleep mode
21:48 ESP32 current and power consumption when using WiFi
33:34 Real life application measurements
35:36 Battery life time calculation for a real life application with LDO
41:16 Battery life time calculation for a real life application with BUCK/BOOST
46:37 Using a GPIO to help with measurements
49:42 Using coulombs for calculation
53:44 Optimizing software to reduce power consumption
57:46 About Andrea does
------------------------------------------------------
Would you like to support me? It's simple:
- Sign up for online courses hosted on our platform: fedevel.com/
- You can also support me through Patreon: / robertferanec
- FEDEVEL Discord: / discord
It is much appreciated. Thank you,
- Robert

Пікірлер: 35
@zyghom
@zyghom 7 ай бұрын
since I bought PPK2 my devices (ESP32S2) reached another level. My recent result is: temperature/humidity/light/PIR motion sensor that is sleeping and reporting every 3min or when motion happens powered by 1000mAh battery, after 380 days is still at 50% of the LiPo - I would NEVER reach this without PPK2 and spending some hours on proper design. Super nice video as usual
@guillep2k
@guillep2k 7 ай бұрын
Awesome video, Robert! I'd like to add that rechargeable batteries have a noticeable self-discharge, so for IoT, primary batteries are better if you can afford them. But, if the battery is small, or the consumption peaks are high, it's also important to check the evolution of the internal resistance of the battery, because it will not be able to deliver the same amount of current towards the end of the charge (good decoupling capacitors help a lot). Also, the capacity curves are not the same for continuous consumption and for pulsed consumption: that factor also affects the duration of the battery. Last but not least: temperature also affects 1) consumption of the device, 2) battery capacity. Cheers!
@Gengh13
@Gengh13 5 ай бұрын
These interviews are gold, it is a shame that they don't get that many views, they are a really nice introduction to the subjects.
@udhayakumara4033
@udhayakumara4033 7 ай бұрын
51:50 where you considered the batter self discharge current. For Li-ion rechargeable batteries, the self discharge current will be much higher. Thats why primary batteries are used in the long battery life product's.
@metalafterlife666
@metalafterlife666 7 ай бұрын
Hi Robert, thanks for the video. As a lot of people says, the Nordic Power Profiler Kit II is a very good and cheaper option. I've using it for years and I've done a lot of battery-powered devices, resulting a very nice calculation of battery life. Absolutely recommended.
@electronics.unmessed
@electronics.unmessed 7 ай бұрын
Very comprehensive and full of valuable content! Thank you for sharing.
@rick_er2481
@rick_er2481 7 ай бұрын
Awesome, listened to Andrea on the amp hour podcast. And now this video with more technical information, Thanks Robert and Andrea!
@ttcitron
@ttcitron 7 ай бұрын
Robert, your words at 1:02:10 came straight from my heart 🤩 I actually couldn't resist and bought the JouleScope 220 when I saw this excellent video. It will be a good improvement over my beloved LowPowerLab CurrentRanger. Especially because it uses an isolated USB port to transfer the data. Right now I am using a scope on an isolation transformer to measure current with high time resolution. But that's all tinkering compared to what's in store for me 😁
@romancharak3675
@romancharak3675 7 ай бұрын
What an interesting and well presented topic ! Thank you Andrea and Robert.
@dookshi
@dookshi 7 ай бұрын
Robert, I don't know if you even need any encouragement to continue with what you're doing, but your content is amazing.
@RobertFeranec
@RobertFeranec 7 ай бұрын
Interview videos don't get many views, but I really like making them. It is very nice to hear that some other people like them too.
@cyrus_12kw
@cyrus_12kw 7 ай бұрын
Would love to see the numbers for bluetooth
@MathPiSG
@MathPiSG 7 ай бұрын
Excellent discussion guys! Very informative
@user-bo9fl8dj3i
@user-bo9fl8dj3i 7 ай бұрын
Here is my setup: 1)if you are using arduino ide export your code to Microchip studio or VScode depending on board that you are using check arduino core code and delete all code that turn on all unused peripheral like ADC, Timers etc. 2)If you are using Atmega base controller don't use standart arduino input output functions it’s spends milliseconds instead of hundreds of microseconds 3)Check current of all peripheral on your board (RS485 convectors, Step up, Step down convectors, GSM, Lora, Radio transmitters etc), if power consumption bigger that 1uA, add mosfet to turn on, off that device, if this is powerfull device or you need capacitors after mosfet, don't forget to add capacitor before, so you controller will not reset after you turn on your mosfet. 4)Quartz Crystal resonator is another device that take to much current, avoid to use it, if it's possible if you need RTC(Real Time Clock), use internal RC oscillator(a lot microcontrollers have it), and recalibrate it every time you success send data to server by time taken from server, 5 minutes per 10 days it's precession that I archive, if you need more accuracy use low power clock crystals(be careful transconductance of amplifier inside mcu must be at least 3 times bigger that crystal’s), low transconductance, high ESR of crystal means low reliability of crystal, noise, humidity can stop it. Modern mcu like Atmega328PB(not Atmega328P),STM32 have special functions that called up when this happens 5)You can use cheap low power mcu like atmega8, to turn off, on through mosfet mcu like ARM cortex A, atmega8 is enough to do a lot of simple task 6)Turn off all your perif like usart, spi etc., switch pin states of usart, spi etc. pins to high impedance without pullups, pulldowns before going to sleep. 7)If your battery don't provide enough current add big capacitor 8)Check what happened if it's not enough power during transmition, most GSM controllers for example simply resets it selves. 9)decrease time of sends and check how many sends of data your controller could provide before discharge battery, you can use lion rechargeable battery like samsung 18650 for that. 10)increase time of sends, and check current between sends by using your multimeter, or you can also use big capacitor instead of battery, connect it parallel to battery and after send data, disconnect battery. 11)Using previous information, you can calculate battery time of your device. 12)There are different types of battery like Lithium Thionyl Chloride high power type, Lithium Thionyl Chloride high energy type, rechargeable Lithium ion batteries. There are always been trade between is battery rechargeable, can it provide big currents, capacitance. So for example if your device need 10 times low current that battery could provide, you can try to find another battery with same size and price but lower current and bigger capacity. Buy battery that could provide 2-3 times lower current that you need and add capacitor, very often solution for GSM modules.
@rick_er2481
@rick_er2481 7 ай бұрын
Thank you for sharing this, really good tips.
@user-rk1kz3jp8c
@user-rk1kz3jp8c 7 ай бұрын
Hello, I would like to ask you a question. Regarding high-speed differential pairs, can we refer to the power layer? Will it have a bad impact? Thank you.
@zorabixun
@zorabixun 7 ай бұрын
Robert .. would you like to make a video about - INVERTERS - I have a project, in it is an inverter 12/220 volt .... is the inverter simply a transformer ? .... thanks for even short practice explanation 🎉
@arockiyalipson5730
@arockiyalipson5730 6 ай бұрын
How he is calculating days by taking sampling time and clock frequency ?? , I can't understand
@user-ux5lk6lp2d
@user-ux5lk6lp2d 7 ай бұрын
Nice research, but I might say that the calculating of dc-dc efficiency is inaccurate and depends on the duration of deep sleep (the more time in sleep - less efficiency of the dc-dc). Also the quiescent current of dc-dc is forgotten. So, the efficiency of LDO can be better with the the bigger periods of transmitting data. One more thing about 10% of the capacity of the chosen battery, after dropping to 3.5V it will drop dramatically to 3V sooner than expected (because of non-linearity of the discharge curve), so, choosing a dc-dc instead of an LDO to get more capacity is not so sufficient. The last thing, in low power devices with all optimizations the quiescent current of the chosen IC (LDO or DC-DC) becomes more sufficient
@andrealongobardi2084
@andrealongobardi2084 7 ай бұрын
Hi thanks for the feedback! DcDc efficiency losses are calculated on the average load current during the lifetime of the device. In the example that is around 5.3mA and it is where the DCDC efficiency is extracted. The DCDC efficiency reported in the data sheet will also take in account quiescent current , it is POUT/PIN (generally).
@user-ux5lk6lp2d
@user-ux5lk6lp2d 7 ай бұрын
@@andrealongobardi2084 hi! Exactly, but the average current drops with bigger periods of wakings, so, the efficiency drops with lower current. For instance, with mcp1700t-3302e/tt there will be less power hungry with 1.6 uA of the quiescent current. I might add that it cannot handle 500 mA for a long time, but for your use case it will be able to and won't be overheated (or add extra capacitance). Just my point of view
@AlbiinoBlacksheep
@AlbiinoBlacksheep 7 ай бұрын
Or instead of buying an expensive ass device you could just measure the current with an arduino. Log it to an sd card and do the maths in excel...
@lolsypussy
@lolsypussy 7 ай бұрын
Not accurate, not fast, not high bandwidth. Accuracy and precision are key here
@AlbiinoBlacksheep
@AlbiinoBlacksheep 7 ай бұрын
@@lolsypussy whats the min req?
@raguaviva
@raguaviva 7 ай бұрын
Dislike for using a click-and-bait thumbnail, you just show a power profiler but do not talk about what the image promises.
@RobertFeranec
@RobertFeranec 7 ай бұрын
video explains how we went from 8 days to over 300 days: 1) measure current consumption with proper equipment 2) use sleep mode 3) BUCK/BOOST is better than LDO 4) Optimize your firmware
@raguaviva
@raguaviva 7 ай бұрын
@@RobertFeranec the thumbnail shows a specific board and a 1.5volt battery, then you talk about something else, this is dishonest.
@lolsypussy
@lolsypussy 7 ай бұрын
​@@raguavivathat is typical. I assume you are new to this kind of stuff. Content creators would use higher quality images that might not be the actual. However the same concepts apply.
@raguaviva
@raguaviva 7 ай бұрын
@@lolsypussy If many people do something wrong, it doesn't become right. Chances are this video was an advertisement.
@VeritasEtAequitas
@VeritasEtAequitas 6 ай бұрын
​@@raguavivano, you're being an overly literal sperg. I would like to see more details on how to optimize circuits and code, but he isn't "lying". It's not as in depth as it might be, but it's exactly the information that popped into my head and what I've done before on the job.
@lolsypussy
@lolsypussy 7 ай бұрын
Is that test software free to use? I have a similar MQTT project that I'd like to power-profile.
Do You Really Need Power Planes? Are you sure? | Eric Bogatin
1:03:38
Robert Feranec
Рет қаралды 69 М.
Getting started with ESP32 Deep Sleep
13:36
Programming Electronics Academy
Рет қаралды 8 М.
Can You Draw The PERFECT Circle?
00:57
Stokes Twins
Рет қаралды 97 МЛН
顔面水槽をカラフルにしたらキモ過ぎたwwwww
00:59
はじめしゃちょー(hajime)
Рет қаралды 37 МЛН
小路飞姐姐居然让路飞小路飞都消失了#海贼王  #路飞
00:47
路飞与唐舞桐
Рет қаралды 94 МЛН
2D water magic
10:21
Steve Mould
Рет қаралды 432 М.
ESP32 Guide 2024 | Choosing and Using an ESP32 Board
41:06
DroneBot Workshop
Рет қаралды 221 М.
Why 50 Ohms?
2:19
Quaxys
Рет қаралды 4,6 М.
How to Profile Battery Usage for IoT Devices - Workbench Wednesdays
8:17
element14 presents
Рет қаралды 8 М.
12 New AI Projects using Raspberry-Pi, Jetson Nano & more
7:50
ToP Projects Compilation
Рет қаралды 626 М.
10 Tips for Analog & Mixed & OP Amp Designs
1:27:45
Robert Feranec
Рет қаралды 10 М.
Battery Type Comparison || Lead Acid VS NiMH VS Li-Ion VS LiPo
6:11
#400 The Best Power Source for ESP32/ ESP8266 Projects
14:30
Andreas Spiess
Рет қаралды 112 М.
PCB Antenna - How To Design, Measure And Tune
1:35:32
Robert Feranec
Рет қаралды 32 М.
3D printed Nintendo Switch Game Carousel
0:14
Bambu Lab
Рет қаралды 4,7 МЛН
Эффект Карбонаро и бумажный телефон
1:01
История одного вокалиста
Рет қаралды 2,6 МЛН
Дени против умной колонки😁
0:40
Deni & Mani
Рет қаралды 9 МЛН