#315

  Переглядів 115,377

Andreas Spiess

Andreas Spiess

4 роки тому

Computers crash if they do not have enough voltage. Li-Ion batteries could explode during charging if they were deeply discharged. How can we prevent such events? We need so-called voltage supervisors. Cheap parts with a big effect, which usually do their job in the dark. Let’s tear them to the light and protect your ESP32 or Arduino from not booting correctly and your Raspberry from a crash. We will use KA75330, KA75450, and TPS3839 for our experiments.
I am a proud Patreon of GreatScott!, Electroboom, Electronoobs, EEVblog, and others.
Links:
Raspberry Pi4 US: amzn.to/3pP32HZ
Raspberry Pi4 DE: amzn.to/3avMgaG
Raspberry Pi4 : ebay.to/3n1sPef
KA75330: s.click.aliexpress.com/e/_dZi...
KA75450: s.click.aliexpress.com/e/_d8l...
TPS3839G33: s.click.aliexpress.com/e/_dV3...
Power Supply: bit.ly/2uG5mJR or s.click.aliexpress.com/e/_dUL...
ESP32 Breadboard friendly: s.click.aliexpress.com/e/_d6A...
The links above usually are affiliate links which support the channel (no additional cost for you).
Supporting Material and Blog Page: www.sensorsiot.org
Github: www.github.com/sensorsiot
My Patreon Page: / andreasspiess
My Bitcoin address: 19FSmqbBzb5zsYB1d8Bq4KbxVmezToDNTV
If you want to support the channel, please use the links below to start your shopping. No additional charges for you, but I get a commission (of your purchases the next 24 hours) to buy new stuff for the channel
For Banggood bit.ly/2jAQEf4
For AliExpress: bit.ly/2B0yTLL
For ebay.com: ebay.to/2DuYXBp
profile.php?...
/ spiessa
www.instructables.com/member/...
Please do not try to Email me or invite me on LinkedIn. These communication channels are reserved for my primary job

КОМЕНТАРІ: 462
@joakinsa
@joakinsa 4 роки тому
This is exactly the problem I found some days ago with my project and this video just came from nowhere! Already ordered TPS3839 after the end of the video. Thank you!
@AndreasSpiess
@AndreasSpiess 4 роки тому
I hope it will help!
@TheLinuxBust
@TheLinuxBust 4 роки тому
Excellent video, thank you for sharing! I hadn't heard of voltage supervisors before, but now that I do, it feels almost too obvious that there are parts that do this specific task!
@AndreasSpiess
@AndreasSpiess 4 роки тому
You are welcoome!
@kbxbr
@kbxbr 4 роки тому
Mr. Spiess thank you so much for all your well-made incredible videos! Cheers from Brazil!
@AndreasSpiess
@AndreasSpiess 4 роки тому
You are welcome!
@waltsteinchen
@waltsteinchen 4 роки тому
Thank you Andreas for another really very userful video! ... I'm using your videos very often as a "reference" to look up things if needed in my projects.. this is definitiv one I'll remember ;-)
@AndreasSpiess
@AndreasSpiess 4 роки тому
Sometimes, I use them as a reference, too ;-)
@jvgorkum
@jvgorkum 4 роки тому
Yet another gem, I could use this for my supervisor (when my energy is to low)
@AndreasSpiess
@AndreasSpiess 4 роки тому
:-) The question is then how he is wired: On at low level or off at low level...
@jaynottelling5892
@jaynottelling5892 4 роки тому
Might need the gas soldering iron!?
@piebebakker2447
@piebebakker2447 4 роки тому
Thank you Andreas. Exactly what I needed for my solar powered ESP32 Lora nodes, who stop when the sun light has been insufficient during winter and never come back again as result of the ‘limbo’ state.
@AndreasSpiess
@AndreasSpiess 4 роки тому
I think this is a very good application.
@sarahjanegray
@sarahjanegray 3 роки тому
Thanks for this video, Andreas. As well as explaining how votage supervisors work and how to use them, through some of your demos and charts in this video, you have helped me cement some understanding about power issues that I had been struggling with understanding what was happening some times in my own circuits using MCUs. Now I need to go and buy some of these so I can use them in my circuits! Thank you. Stay safe.
@AndreasSpiess
@AndreasSpiess 3 роки тому
You are welcome. Fortunately they are not too expensive ;-)
@sarahjanegray
@sarahjanegray 3 роки тому
@@AndreasSpiess Indeed. Apart from the KA75330 (which I have purchased from AliExpress), I seem to be having problems sourcing them. I need through-hole versions rather than PCB friendly versions and would like to have a selection of them. Just wonder if you could recomemmend a good place to source the KA75XXX or equivalents)? Thanks.
@AndreasSpiess
@AndreasSpiess 3 роки тому
I bought a few MAX809 and a TL7702 also from AliExpress. But I never used them so far.
@sarahjanegray
@sarahjanegray 3 роки тому
@@AndreasSpiess Thanks Andreas. I'll take a look.
@tonysfun
@tonysfun 4 роки тому
Very practical! This should prevent a lots of problems! Thanks again Andreas!!! Have a great week!
@AndreasSpiess
@AndreasSpiess 4 роки тому
Thanks. You too!
@craiglarson2346
@craiglarson2346 11 місяців тому
One small thing I learned from exploring the voltage supervisors: a voltage supervisor is not a battery supervisor. When these devices turn off (Output goes to zero volts) the VCC/GND supply current increases substantially. The KIA7029’s I’ve been testing consume very little amperage when output is high. As a dropping supply voltage approaches the 2.9V trigger the device current use is about 16 uA. Once output goes to zero the device current rises to over 500 uA. Andreas solves this problem too with the N-channel FET idea at 12:30 in the video - it just took me a while to understand it. Hope this helps other viewers of this great channel.
@AndreasSpiess
@AndreasSpiess 11 місяців тому
I have to admit: I did not focus on the powr supply of these parts. So I learned something. Thanks!
@duncanx99
@duncanx99 4 роки тому
Excellent advice and very informative. Thanks Andreas...
@AndreasSpiess
@AndreasSpiess 4 роки тому
You are welcome!
@puriap250
@puriap250 3 роки тому
This was so absolutely informative! I had never thought about this. I always put large capacitors on my ESP boards because they are sensitive to power but it never occurred to me that the power-up could also cause bugs. Maybe I've been lucky so far. I will definitely use the capacitor+resistor on reset pin trick next time I'm designing a board. Also I had no idea these voltage supervisor chips exist. They are so useful! Unfortunately they don't seem to be available where I live but it's still good to know that they exist. Maybe I can find similar parts. Thanks a lot for this video.
@AndreasSpiess
@AndreasSpiess 3 роки тому
You find many suppliers for such parts. They are widely used.
@wileecoyoti
@wileecoyoti 4 роки тому
This is great, thanks! I use these and a few others that are latching and/or keep the voltage divider outside of the main chip so as to be able to tune the cutoff points. I have a few components that become unstable at weird points like 3.85v, and others that need to be effectively removed from the circuit until the battery has had a chance to get back up to a decent level.
@AndreasSpiess
@AndreasSpiess 4 роки тому
Maybe a list of your parts would be interesting for other viewers?
@wileecoyoti
@wileecoyoti 4 роки тому
@@AndreasSpiess oops! Thought I had mentioned it, but the MAX8354/835 series is my go-to for latching. Here's a little more information to make up for not mentioning that r in the first message :) The internal reference is only 1.2v giving it a very broad range. It's extremely low power consumption (I usually see 1-3uA), so perfect for battery devices. A bit more expensive and SMD, so as always depends on your application. 834 if an open drain, and 835 is push/pull. Either can use separate VCC and monitored voltage on case you're working with things outside of its native VCC range.
@AndreasSpiess
@AndreasSpiess 4 роки тому
Sorry for missing the connection to another message. I get a lot and I am already quite old ;-)
@BerndFelsche
@BerndFelsche 4 роки тому
Thanks for introducing the device type. Perhaps a follow-up video comparing them to brown-out detection built into microcontrollers?
@AndreasSpiess
@AndreasSpiess 4 роки тому
Maybe in hte future. I looked at the brownout detector of the ESP32, but it was not well documented. Especially not with the Arduino IDE. It seems that the Arduino also can be fooled ( ukposts.info/have/v-deo/boCXZ6aQan2po4E.html )
@pt4ve8cw3l
@pt4ve8cw3l 4 роки тому
Thank you! That's a very interesting chip. So useful! You are a great teacher.
@AndreasSpiess
@AndreasSpiess 4 роки тому
You are welcome!
@pierrefpv
@pierrefpv 4 роки тому
Perfect timing! I just ran into a similar issue this weekend setting up a ESP32-cam as a doorbel. When the bel is pressed the voltage drops and resets the board, but leaves the camera in a weird state and needs a hard reset. Sometimes this also happens when flashing OTA.
@AndreasSpiess
@AndreasSpiess 4 роки тому
I hope such a part will help!
@mrx.2233
@mrx.2233 3 роки тому
Always enjoy watching your videos. Thanks for the good work.
@AndreasSpiess
@AndreasSpiess 3 роки тому
Glad you like them!
@Excalibur32
@Excalibur32 4 роки тому
This sounds like exactly what I need. Thank you very much!
@AndreasSpiess
@AndreasSpiess 4 роки тому
You are welcome!
@tonybell1597
@tonybell1597 4 роки тому
Useful little devices, thanks Andreas
@AndreasSpiess
@AndreasSpiess 4 роки тому
True! You are welcome.
@blaketurner9389
@blaketurner9389 Рік тому
Thank you. So much useful and practical information in all your videos 😊
@AndreasSpiess
@AndreasSpiess Рік тому
Glad you think so!
@craiglarson2346
@craiglarson2346 4 роки тому
Andreas, @ 8:50 you give a gift. The RC circuit solves my problem and stability returns! (R=68K, C=10uF)
@AndreasSpiess
@AndreasSpiess 4 роки тому
Good to know it helped!
@nirmalkumarvermabachchan632
@nirmalkumarvermabachchan632 4 роки тому
A great informational video. Thanks a lot. I was searching for the same.
@AndreasSpiess
@AndreasSpiess 4 роки тому
You are welcome!
@LMchVideo
@LMchVideo 4 роки тому
Exaclty what I was searching for! Now it's solved, the project I'm doing it's now even more optimized. Always great and userful videos, learning a lot thaks! Grüssen aus Ticino!
@AndreasSpiess
@AndreasSpiess 4 роки тому
For sure it does not hurt! Still healthy where you live ?
@LMchVideo
@LMchVideo 4 роки тому
@@AndreasSpiess totally! Near Lugano, working as Fablabmanager at the Fablab SUPSI as well as teaching and developing projects (interaction designer and engineer)
@ristomatti
@ristomatti 4 роки тому
These seem very useful but simple to use at the same time. Off to shopping, thanks!
@AndreasSpiess
@AndreasSpiess 4 роки тому
:-) Not an expensive buy, fortunately...
@DimitrisPaterakis1
@DimitrisPaterakis1 4 роки тому
Thank you for the video. I am using the MAX809S (2.93V) for this purpose because it costs nothing ($1.51 50pcs). It has push-pull output (no need for pull-up resistor).
@AndreasSpiess
@AndreasSpiess 4 роки тому
Good choice. Thanks!
@easynow6599
@easynow6599 4 роки тому
thanks for the advice, but i have a question: according to datasheet: "The MAX803/MAX809 have an active-low RESET output", but esp32 is activated when reset pin is high..so how it can be used for esp32 activation?
@spehropefhany
@spehropefhany 4 роки тому
Easy Now MAX810 has the inverted output. Needless to say you need to be very careful to pick the correct voltage range including tolerances.
@DimitrisPaterakis1
@DimitrisPaterakis1 4 роки тому
@@easynow6599 According to the datasheet of MAX809: "RESET output remains low while VCC is below the reset voltage threshold, and for a reset timeout period after VCC rises above reset threshold". We talk about ENABLE pin of MCU and not reset. Don't be confused.
@AndreasSpiess
@AndreasSpiess 4 роки тому
I mentioned it in the video that the "reset" pin on the ESP32 is called "enable" pin.
@Hackvlog
@Hackvlog 4 роки тому
Thanks for informational video, answering questions "What? Why? and How?". For simple microcontrollers, like ATMegas, brown-out detection could do the job. It holds the core in reset-state, when voltage is below the threshold. There is limited amount of threshold values (ATMega328p for example has programmable thresholds of 1.8V, 2.7V or 4.3V). But even for these simpler micros, external supervisor has benefits of wider range of thresholds, start-up delays and other specs. Just thought to add this tidbit, even though this might not be as applicable to ESP and Raspberry Pi.
@juanmontes8905
@juanmontes8905 4 роки тому
I know I heared about that internal undervoltage protection module before
@BerndFelsche
@BerndFelsche 4 роки тому
BOD seems effective for loss of power but not so much for slow recovery.
@McTroyd
@McTroyd 4 роки тому
I've seen in other places that, at least on AVR microcontrollers, the brown-out detection can cause an increase in idle current draw on the order of milliamps. That could still present an over-discharge problem in a battery-operated circuit. The FET-based switching solution Andreas presents here, using one of these supervisors, could still be useful in that case.
@donpalmera
@donpalmera 4 роки тому
@@BerndFelsche >BOD seems effective for loss of power but not so much for slow recovery. That would be part of the Power-On-Reset block.
@AndreasSpiess
@AndreasSpiess 4 роки тому
You can fool the Arduino, too, if you want ( ukposts.info/have/v-deo/boCXZ6aQan2po4E.html )
@javiercuellar73
@javiercuellar73 4 роки тому
Excelente information Andreas!! Thank you very much!!!!
@AndreasSpiess
@AndreasSpiess 4 роки тому
You are welcome!
@JoelvdLoo
@JoelvdLoo 4 роки тому
Very interesting, thanks Adreas!
@AndreasSpiess
@AndreasSpiess 4 роки тому
You are welcome!
@marinehm
@marinehm 4 роки тому
This was awesome. I think it explains what happened to my Raspberry Pi when the mains cut off during a bad storm.
@AndreasSpiess
@AndreasSpiess 4 роки тому
The Raspberry has a different problem because it has an operating system and has to be shutdown, not only switched off. At the end of the video I showed how it has to be done for a Pi.
@frogeye22
@frogeye22 4 роки тому
Thanks, a very interesting and well presented lesson.
@AndreasSpiess
@AndreasSpiess 4 роки тому
You are welcome!
@mordinkainen1844
@mordinkainen1844 4 роки тому
very useful, as always! Thank you Andreas.
@AndreasSpiess
@AndreasSpiess 4 роки тому
You are welcome!
@Really2950
@Really2950 4 роки тому
This was super useful information. Many thanks
@AndreasSpiess
@AndreasSpiess 4 роки тому
You are welcome!
@burakkaraduman5950
@burakkaraduman5950 4 роки тому
This is what i have been waiting for a long time. Thanks👍
@AndreasSpiess
@AndreasSpiess 4 роки тому
You are welcome!
@PilotPlater
@PilotPlater 4 роки тому
Thanks Andreas, this is really helpful
@AndreasSpiess
@AndreasSpiess 4 роки тому
You are welcome!
@brainfornothing
@brainfornothing 4 роки тому
Thanks for sharing and stay safe !
@AndreasSpiess
@AndreasSpiess 4 роки тому
I try!
@webslinger2011
@webslinger2011 4 роки тому
Very informative. I knew my esp32cam resets due to low power on my arduino toy mobot but didn't know how to prevent it. Had to power it separately. Thanks for sharing this.
@AndreasSpiess
@AndreasSpiess 4 роки тому
It is always better to use a stable power supply...
@devluz
@devluz 4 роки тому
Great video. That was exactly what my solar temperature sensor was missing!
@AndreasSpiess
@AndreasSpiess 4 роки тому
Fortunately, not complicated to add ;-)
@adityapandya8098
@adityapandya8098 2 роки тому
This video is so amazing for me keep it up sir and keep make us knowledgeable. Thanks
@AndreasSpiess
@AndreasSpiess 2 роки тому
Glad you liked it! Thank you.
@sevenacregreen
@sevenacregreen 4 роки тому
This solution is good for the esp as it can reset everything even if you use third party code like tasmota. I have found that bod on chip can be troublesome in some applications and is different for each cpu this gives the same solution for all and you can debug it with a scope. One point on the input resistor divider for the comparator in the devices. The voltage reference will need some headroom to operate so needs to be below the threshold voltage. A good explanation of their operation, thanks Andreas.
@AndreasSpiess
@AndreasSpiess 4 роки тому
I also did not find out how to use the BOD signal in code. And BOD only works if the MPU still works, so above 2.3 volts.
@timmyfingaz100
@timmyfingaz100 Рік тому
RGH (reset glitch hack) on the xbox 360s was fun. The original Jtag hack used a few resistors and small diodes, not much cost at all! Thanks for the great info, I am looking into circuit protection atm!!
@AndreasSpiess
@AndreasSpiess Рік тому
You are welcome!
@sausagehider
@sausagehider 4 роки тому
Very useful to know. I did not know these things existed. I had the problem with powering ESP8266 and solar power. While I'm away at work, if the voltage drops the ESP locks up and sometimes I have to wait for over a month before I can get to it just to press the reset button. Thanks, another great video.
@AndreasSpiess
@AndreasSpiess 4 роки тому
I think such a part could solve your problem.
@usmanasghar2567
@usmanasghar2567 4 роки тому
Beautifully explained
@AndreasSpiess
@AndreasSpiess 4 роки тому
Thank you!
@nogrend
@nogrend 4 роки тому
Thank you for the nice-to-know-stuff!
@AndreasSpiess
@AndreasSpiess 4 роки тому
:-)
@richard_wenner
@richard_wenner 4 роки тому
Comprehensive description and demonstration.
@AndreasSpiess
@AndreasSpiess 4 роки тому
Thank you! I am still watching your (epic) video.. My wife easily can watch a whole Netflix series during he same time ;-) It seems you had a great time.
@richard_wenner
@richard_wenner 4 роки тому
@@AndreasSpiess HA! Yes it was a good 21st birthday for her. I hated the ice hotel but the Northern Lights made up for everything.
@certified-forklifter
@certified-forklifter 4 роки тому
thank you for another awesome video!
@AndreasSpiess
@AndreasSpiess 4 роки тому
You are welcome!
@bobbonham4823
@bobbonham4823 4 роки тому
Thanks. Once again, something I can use.
@AndreasSpiess
@AndreasSpiess 4 роки тому
You are welcome!
@ivandidomenico3281
@ivandidomenico3281 4 роки тому
Very very good Andreas! Good video as always 😉
@AndreasSpiess
@AndreasSpiess 4 роки тому
Thank you!
@g3i0r
@g3i0r 4 роки тому
I had this startup problem with an ESP8266 design. Now I finally know what the problem is! 😎
@AndreasSpiess
@AndreasSpiess 4 роки тому
And not difficult to solve...
@ep_dimi
@ep_dimi 3 роки тому
thanks once again for the info!
@AndreasSpiess
@AndreasSpiess 3 роки тому
Any time!
@RickB3n
@RickB3n 4 роки тому
Very useful! Thank you, greetings from Italy.
@AndreasSpiess
@AndreasSpiess 4 роки тому
:-) I hope you are still healthy!
@RickB3n
@RickB3n 4 роки тому
@@AndreasSpiess Thanks, fortunately I live far from the red zone. However, we must be careful.
@CristiIstrate
@CristiIstrate 4 роки тому
Exactly what I needed!
@AndreasSpiess
@AndreasSpiess 4 роки тому
:-)
@reinholdu9909
@reinholdu9909 4 роки тому
Andreas .. YESSS! 15min listening to UKpostss most tech savy "swiss accent" and the day is gonna be "GUAT"!
@AndreasSpiess
@AndreasSpiess 4 роки тому
:-) Today, I had to do a little more. I had to give a "Indoor Cycling" class with my daughter...
@recomoto
@recomoto 4 роки тому
@@AndreasSpiess having quality velo time :D
@AndreasSpiess
@AndreasSpiess 4 роки тому
So you must be Swiss ;-) (Velo)
@georgegeorgiou5229
@georgegeorgiou5229 4 роки тому
Very nice video, useful and informative!
@AndreasSpiess
@AndreasSpiess 4 роки тому
Thank you!
@saugatsigdel7381
@saugatsigdel7381 4 роки тому
Hello sir, I love to learn from your channel and I haven't missed a single video from you. You have addressed the really critical issue for professional product development. As a beginner, I want to know all the essential kinds of stuff like this (the critical one that most of the hobbyist miss). Please suggest me some books or any resources that teach me these kinds of stuff.
@AndreasSpiess
@AndreasSpiess 4 роки тому
There are not a lot of books for this modern stuff. I showed my only books I have in other videos.
@saugatsigdel7381
@saugatsigdel7381 4 роки тому
@@AndreasSpiess it would be a great help for me if you can please post the link for the video describing books or post the name of the book in comment.. Sir..
@lmamakos
@lmamakos 4 роки тому
Thank you for bringing this topic to our attention! I knew these things were out there, but never thought about their application in my hobby projects. Now I have yet another thing to put on my long list of stuff to think about! (Also, I think your battery schematic symbol is backwards?)
@AndreasSpiess
@AndreasSpiess 4 роки тому
You are right. A few viewers "complained" about the battery symbol. I was too lazy to look it up because I felt it was not so important (for me)
@chaughten
@chaughten 4 роки тому
Your videos are the best, I learn lots thx!
@AndreasSpiess
@AndreasSpiess 4 роки тому
Glad you like them!
@Graham_Wideman
@Graham_Wideman 4 роки тому
Andreas: Nice video on a useful and perhaps lesser-known part. A minor point -- in your schematics the battery symbol is upside down. The long bar represents positive in the standard symbol.
@AndreasSpiess
@AndreasSpiess 4 роки тому
You are right.
@bobpaydar3210
@bobpaydar3210 3 роки тому
you are wonderful, thanks
@albygnigni
@albygnigni 4 роки тому
thanks andreas for this video! very informative as always! As many other viewers have suggested, most modern MCUs, even smallest ones (e.g. ATTiny), have brownout detection capabilities. In another way, also the raspberry pi has undervoltage detection capabilities (the "yellow lightning bolt") and you can write a script that powers it off. As for new designed boards, I suggest to use single PMICs that have all those function built-in. Otherwise, selecting a LDO or a Battery IC with a V_OK pin could be another solution.
@AndreasSpiess
@AndreasSpiess 4 роки тому
What PMIC would you use for a 3.3 volts project? And what LDO? This couls be interesting for other viewers, too.
@albygnigni
@albygnigni 4 роки тому
@@AndreasSpiess From Texas Instruments: - TPS3702 Supervisor IC has capability for UV and OV monitoring - TPS778 LDO has a power-good output - As for integrated solutions, the BQ25570 you showed in video #278 has all those capabilities but is not so cheap By the way, TI, Analog, ST and many more companies are making these kinds of ICs, but they are using really small and often BGA packages, so it is difficult for a maker to use them in prototyping. Those ICs are also application-specific and not general purpose, so I suggest to take a look at the catalogs.
@AndreasSpiess
@AndreasSpiess 4 роки тому
Thanks for the part numbers. The ones I saw were also for smaller voltages...
@BorisDessimond
@BorisDessimond 4 роки тому
@@albygnigni Unfortunately not found on aliexpress for 2-3$ 10-20pcs like other parts :( Thanks for the tips !
@albygnigni
@albygnigni 4 роки тому
@@BorisDessimond You can try to look at LCSC, I have found the TPS3705-33 that is similar to the TPS3702 and it is 0.45€/piece , while the LDO can be found in the adj version (TPS77801D) for 3.82€/piece
@wilyfreddie
@wilyfreddie 4 роки тому
Thank you very much for this video! Will immediately add this to our solar power system. Can I use any resistor for the KA75330 circuit?
@AndreasSpiess
@AndreasSpiess 4 роки тому
More or less. I uses 22k
@buzhug35
@buzhug35 4 роки тому
Very usefull as usual. Thanks a lot and best regards.
@AndreasSpiess
@AndreasSpiess 4 роки тому
You are welcome!
@adamdms
@adamdms 4 роки тому
Great episode! I didn't know.
@AndreasSpiess
@AndreasSpiess 4 роки тому
Thank you!
@Firejaps
@Firejaps 4 роки тому
Thanks, dear Andreas 🇧🇷
@AndreasSpiess
@AndreasSpiess 4 роки тому
You are welcome!
@prathambumb5593
@prathambumb5593 4 роки тому
Really Helpful 👍 Thanks
@AndreasSpiess
@AndreasSpiess 4 роки тому
You are welcome!
@langrock74
@langrock74 4 роки тому
Another awesome video. Danke!
@AndreasSpiess
@AndreasSpiess 4 роки тому
Bitte, gern geschehen!
@simfungreek
@simfungreek 4 роки тому
Great educative video.
@AndreasSpiess
@AndreasSpiess 4 роки тому
Thank you!
@ManishMoorjmalani
@ManishMoorjmalani 2 роки тому
thank you so much
@AndreasSpiess
@AndreasSpiess 2 роки тому
You are welcome!
@uvatham
@uvatham 4 роки тому
Useful component
@AndreasSpiess
@AndreasSpiess 4 роки тому
:-)
@mvadu
@mvadu 4 роки тому
RapsberryPi uses an internal power management chip (PMIC, MxL7704 in Pi 3&4) has some of these power management built in. BMC Chip actually works at ~1V range, and it does boot up and it has a section during bootup where it detects if the voltage is enough to continue boot process. During the operation is you draw too much power, and supply voltage dipped below 4.63V is tags is and you can examine it using vcgencmd get_throttled command.
@AndreasSpiess
@AndreasSpiess 4 роки тому
I think I mentioned it. But still you need to shut it properly down
@minepro1206
@minepro1206 4 роки тому
Wow, I couldn't have imagined that a capacitor in Vcc was the culprit to one of my projects. 👍
@AndreasSpiess
@AndreasSpiess 4 роки тому
:-)
@electronic7979
@electronic7979 4 роки тому
Helpful video 👍
@AndreasSpiess
@AndreasSpiess 4 роки тому
Thank you!
@Olavotemrazaodenovo
@Olavotemrazaodenovo 4 роки тому
Congratulations from Brazil.
@chuxxsss
@chuxxsss 4 роки тому
Enjoy this one Andreas, very claming. Need to do a vlog tomorrow on my old spot welder. Have a great week. And as we say in Australia, don't forget the toilet roll. Lol
@AndreasSpiess
@AndreasSpiess 4 роки тому
I can imagine, in a large country like yours, this detail is even more important than around here ;-)
@Kevin192291
@Kevin192291 4 роки тому
Thank you so much, you are the man.
@AndreasSpiess
@AndreasSpiess 4 роки тому
:-)
@TheEmbeddedHobbyist
@TheEmbeddedHobbyist 4 роки тому
This is OK for simple embedded uP, but if there is any storage requirements in the system then it does not fully remove the problem. The Raspberry PI would still crash and not recover if you just hit the reset, if it's writing to the memory card at that point game over. re-install of memory card might be required. So if there is a memory storage of important information required we need to add a little bit extra. Capacitors to hold up the supply and a diode to stop the falling incoming power discharging the caps. the voltage detector instead of hitting the reset should be connected to a non-maskable interrupt, So the controller has time to do a bit of house keeping, save data to non-volatile memory, etc, and go into a safe state ready for power down. Quite a few uP have the reset driven from the clock oscillator, the clock has to run for a number of cycles before the reset is released, making sure that there is a stable clock running before your code is let lose. When you have to design of power glitch's there are other issues involved, Hot or COLD starts. do you want to load defaults in to system (cold start) or do you want to reload the settings last set while running (HOT start), so the need to save settings as power is lost, because if power is only removed for 100ms or so , you don't want the usre to have reset all the controls back to where they had set them. Still a great video if you read all the way down to here. :)
@AndreasSpiess
@AndreasSpiess 4 роки тому
Concerning the protection of the RPI: I showed how it can be done at the end of the video (GPIO3, Super Caps)
@ashishsunny1916
@ashishsunny1916 3 роки тому
Thanks a lot
@AndreasSpiess
@AndreasSpiess 3 роки тому
You are welcome!
@jawolllinger
@jawolllinger 4 роки тому
Hi Andreas, thanks for the awesome video. As I'm still quite new to making my individual electronics projects so your videos help me quite a lot. I have a question regarding the supercapacitors for using with the KA75450 as a safe shutdown system for the raspberry Pi: In your video #133 you suggested 15-20 F supercaps to have enough time for the Pi to safely shut down. That video was before the Pi4 and I was wondering whether the 15-20F recommendation still applies with the Pi4's power consumption? Thanks in advance.
@AndreasSpiess
@AndreasSpiess 4 роки тому
You have to try. I do not know. I assume the Pi for will also shutdown faster.
@pulesjet
@pulesjet 4 роки тому
I have a number of LiIon battery projects these would be handy for. Preventing Over charge and or Over Discharge situations. Been using the LM393 and resistor divider. This would be much easier I think. 3.3v version is just about ideal for the task on LiIon cells and with a added resistor would work for the LeFePo4 type. Just ordered 10 to mess with. Thank You. China is having some rather serious issues with the virus thing . Orders are taking quite a bit longer then the normal long times in the past. Guessing this one will take two months to show up.
@AndreasSpiess
@AndreasSpiess 4 роки тому
Overvoltage protection is often built-in into the charging chips.
@markomrvelj
@markomrvelj 4 роки тому
Hi Andreas, Njce video. I guess this is handling levels below what can be done with Brown out detection, which is present in many MCUs. I did some work with ATmega and configured BOD to be able to be stable on quite a low voltages.
@AndreasSpiess
@AndreasSpiess 4 роки тому
The ESP32 also has a BOD. Biut it only worked if hte processor still worked. So no protection if you come from below the threshold. And it seems yo ucan fool the Atmega 328, too (ukposts.info/have/v-deo/boCXZ6aQan2po4E.html )
@jamess1787
@jamess1787 4 роки тому
Love this video. Thanks Mr.SwissGuy =) [aka Andreas!]
@AndreasSpiess
@AndreasSpiess 4 роки тому
Thank you!
@user6193
@user6193 3 роки тому
Very helpful video for me as it help me to get the idea to solve the problem in flight controller for a mini quad powered with 1s 3.7volt lipo where it got discharged below 3volt if I continue to fly the quad for some more time after low battery indication (a small camera connected with battery will keep on consume current even after landing the drone)... by using this small component i can protect my lipo by cutting the supply if Vbat < 3volt. Thanks for this informative video as always :)
@zyroxiot9417
@zyroxiot9417 Рік тому
thanks by the infos.
@AndreasSpiess
@AndreasSpiess Рік тому
You are welcome!
@ronaldhofman1726
@ronaldhofman1726 3 роки тому
i was glad to watch your video, i was experimenting with KA75330 ordered on ali but i got a TO-92 thyristor instead of the real ka75330 i followed your link and ordered new one and those where the right parts. ik took me some time to figure out what was wrong, it did not act as a comparator and let my Peak DCA-75 decide what it is , and the answer was thyristor and a quick test with multimeter on ohm range and connecting anode to gate proved it , yesterday i received the correct parts, tested it, i use a 180 ohm pull up and on 3.17 volt the output drops to 0 volt , and on 3.22 volt it returns to normal high level, so i was glad to have received the correct parts, i emailed the supplier on ali that his parts are wrong , did not get a answer from him yet. one thing that suprises me, if you look at the datasheet of a KA75330 the - input is the voltage reference, So if V-in drops below the voltage reference the output transistor is being shut- off so the output should rise to VCC but instead is is being dropped to 0 volt ,so the output transistor is on and the collector voltage drops to 0 volts, is this a bug in the datasheet?, with this behaviour it can be connected to a ESP8266 and will be halted if the voltage drops below 3.17 volts and release at 3.22 volts so that's gooed but it contradicts the datasheet, the - input wil be higher so the op-amp output goed to zero.
@AndreasSpiess
@AndreasSpiess 3 роки тому
I think you want this behavior because it is needed. (Think I showed it in the video). Sometimes datasheets only show a simplified version.
@ronaldhofman1726
@ronaldhofman1726 3 роки тому
@@AndreasSpiess Yes indeed this is the desired behaviour it can be directly connected to reset pin.
@PanosKontogiannis
@PanosKontogiannis 4 роки тому
Thanks, Great video. What about the TL7702 series. I use it on sensitive applications but never tested if they actually perform. I took the word of Texas instruments for granted
@AndreasSpiess
@AndreasSpiess 4 роки тому
They seem to be a little more sophisicated chips. But with a similar purpose.
@fingerprint8479
@fingerprint8479 4 роки тому
Interesting and useful. It is a perfect addition to my battery powered project. One question: on 12:30 minutes on your video you show a diagram of a circuit to shut down not only the ESP32 but also all peripherals when the battery is under 3.3v but show no values for the resistors. How can I calculate the resistors for the circuit? Thanks again.
@AndreasSpiess
@AndreasSpiess 4 роки тому
You do not need to do any calculations. Just pick two (If I remember I used 22k). But they do not matter too much.
@nigeljohnson9820
@nigeljohnson9820 4 роки тому
The first voltage supervisor I used was the TL7705, this had a problem that it released the reset when its own supply voltage is low. When my company switched from the NMOS to the CMOS 8085, the processor continued to operate below the supply voltage at which the reset circuit stopped working. The result was that the processor would restart (leave reset) during the time it was being switched off. It is worth checking that the reset signal is maintained until the processor is safely off. Ideally the reset signal should be maintained all the way down to zero supply volts, One solution to this problem is make the reset a passive resistor pull down signal and "NOT in reset" active high.
@AndreasSpiess
@AndreasSpiess 4 роки тому
You are right. I showed that the three switch on again at around 0.7 volts. Which should be ok for a 3.3 volt MCU.
@meteor8076
@meteor8076 4 роки тому
very interesting
@AndreasSpiess
@AndreasSpiess 4 роки тому
:-)
@RobinGerritsen1995
@RobinGerritsen1995 3 роки тому
Thanks for the heads-up! Got some nasty problems with undervoltage. I can't find a voltage detector for >4v threshold with to-92 footprint on AliExpress. I am currently working with the wemos development boards and had some problems with undervoltage. Now I want to keep the reset pulled to GND untill the 5V supply voltage is above 4V.
@AndreasSpiess
@AndreasSpiess 3 роки тому
I use the ka75450 for 4.5 volts. It does not come in a TO-92. This is a very old case.
@jamest.5001
@jamest.5001 4 роки тому
Interesting!
@AndreasSpiess
@AndreasSpiess 4 роки тому
:-)
@ugetridofit
@ugetridofit 4 роки тому
Just as a FYI. The ESP32 has a setting in menuconfig where you can select its reset detect level. Arduino people don't know this because Arduino does not allow access to the many, many options in the ESP32 menconfig system.
@AndreasSpiess
@AndreasSpiess 4 роки тому
I tried it in the Arduino IDE, but I was not able to chage the brounout level. And it works only, if theMCU runs, as I showed in the video :-(
@gsge
@gsge 4 роки тому
Great video again. I have a question for specific use case. Is it possible to use RC timer circuit before this device to create an user adjustable power up/down trigger circuit instead of using regular deep sleep feature of micrcontroller ? In other words is it possible to use such circuit inplace of more expensive and not so user friendly (SMD soldering) TPL5110 ? What could be the power consumption theoretically of such circuit when micro controller is powered down ? Any feedback are appreciated. Thanks.
@AndreasSpiess
@AndreasSpiess 4 роки тому
I think the TPL5110 is a good solution for such problems. You find the quiescent current in the datasheets of the respective device. It is probably a bit higher . And the RC might add an additional few nA Maybe you try if you do not like the TPL...
@gsge
@gsge 4 роки тому
@@AndreasSpiess Thank you for your reply. I will have to try it.
@kwazar6725
@kwazar6725 4 роки тому
You need a batt ups with pi as they corrupt fat sdcards easily. This is a cool/geil way to monitor voltages and shutdown and on safely. Thanks andreas!👍
@AndreasSpiess
@AndreasSpiess 4 роки тому
This is particularly true if you add a few super caps or a small battery as shown at the end of the video.
@anpr
@anpr 4 роки тому
Thanks. Is there a similar video for over voltage, surge, spikes? thanks
@AndreasSpiess
@AndreasSpiess 4 роки тому
I do not know.
@marcrives279
@marcrives279 4 роки тому
You should definitely make a part 2, digging further on Power on Reset (POR) and Brown Out Detection (BOD). The whole point of a MCU is to have all those components integrated *and* to make use of them. Using an external supervisor is only for very specific cases.
@AndreasSpiess
@AndreasSpiess 4 роки тому
I looked into the brownout detector of the ESP32. It works if you reduce the voltage from 3.3 volts. But I did not find a way to reset the MCU down after this message. The brownout message did not shut the CPU down. And it is not very well documented...
@andrewtitcombe8378
@andrewtitcombe8378 Рік тому
Good explanation . So i am using the KA75330 with an esp32 Epaper to wake when the battery gets to low. to display a low battery warning and then putting the esp to sleep only to be wake when the KA75330 signal goes high to clear the low voltage warning. As one of the big issues with epaper is if the battery goes flat.Iit just sits there displaying the last thing displayed, and the user has no idea that it is not functioning or updating. It would be useful for esp32 e-paper such as LILYGO® TTGO T5 V2.3.1_2.13 Inch E-Paper added a battery monitor chip to the board as standard.
@AndreasSpiess
@AndreasSpiess Рік тому
Good point! And a good implementation of a solution.
@dd0356
@dd0356 3 роки тому
Thanks for the video! I hope if we use supervisor chip we may bypass the voltage regulator and connect the esp directly to the battery or use an ldo for additional protection. But deep discharge won't happen? And the battery OK led will be quite useful. Can we connect it to the same supervisor as that on the RESET pin?
@AndreasSpiess
@AndreasSpiess 3 роки тому
These devices have different functions. An ESP should not be connected to more than 3.6 volts. So you need an LDO for LiIon batteries. Often these supervisors are connected to reset pins to make sure the MCU only boots with enough voltage.
@dd0356
@dd0356 3 роки тому
Sorry i forgot to mention 3xNiMh in series will mean 0.9x3=2.7 low cut-off and 1.2x3=3.6 max voltage. So a 3-3.6V supervisor will mean LDO is not required if we charge it externally. But, if we need charging facility also, an LDO will also be required and we may connect it directly to USB for charging 1.6x3=4.8 of course if there was some arrangement to limit currents. Of course, a suitable solar panel would limit charging current but maybe an LDO will be required. Of course, with a LIPO we may need an LDO. Unfortunately, i did not find cheap LiFePo4 here and they don't ship batteries from china..
@PhG1961
@PhG1961 4 роки тому
Excellent Sunday morning entertainment.
@AndreasSpiess
@AndreasSpiess 4 роки тому
Thank you!
@shakerileiwat4341
@shakerileiwat4341 4 роки тому
Amazing ♥♥♥
@AndreasSpiess
@AndreasSpiess 4 роки тому
Thank you!
@fullpower8382
@fullpower8382 Рік тому
Oh man wie konnte mir der coole Kanal so lange Zeit verborgen bleiben?!?! Saubere Arbeit! Gleich abonniert weil geiler shit!!
@AndreasSpiess
@AndreasSpiess Рік тому
Willkommen and Bord! Du hast ja noch etwas aufzuholen wenn du willst ;-)
@fullpower8382
@fullpower8382 Рік тому
@@AndreasSpiess Hi Andreas, vielen Dank, ich bin schon fleissig dabei deine Videos zu schauen, da werde ich definitiv eine Weile beschaftigt sein, aber der Wille ist ungebrochen! ;-) Wäre schön Leute aus der gleichen Gegend zu treffen die ebefalls an dem Thema interessiert sind. Hast du da vielleicht ne Idee?
@AndreasSpiess
@AndreasSpiess Рік тому
@@fullpower8382 Es gibt in verschiedenen Städten Gruppen rund um TTN.. Die sollten auf der TTN Homepage gelistet sein.
@easynow6599
@easynow6599 4 роки тому
excellent video as always..i would like to ask 2 more things: 1) if you use PROTECTED lipo battery (in built protection) do you have to use the voltage supervisors to prevent from undervoltage or the battery itself is sufficient? 2) do you need voltage supervisor for a project running with lifepo4 that as i remember in another video you said are safe from undervoltage?
@AndreasSpiess
@AndreasSpiess 4 роки тому
1. If the battery safely shuts down before the MCUs low specification you should not need such a device. 2. The battery technology has no effect on this topic. Also LiFePo4 batteries can crash your MCU. They just seem to be less harmed by deeply discharging the battery.
@easynow6599
@easynow6599 4 роки тому
​@@AndreasSpiess 1) as far as i know my battery (i dont know if its a standard for all li-ion protected batteries) has cut-off at 2.65V, so i guess i want be a good voltage for esp32, so i want a voltage supervisor.. 2) hm..i know that its battery unrelated, but i assumed that because LiFePO4 is safer when they discharge (no explosions like lipo?)they will be safe for MCU..which is wrong.. maybe they will not explode but they will undervoltage the MCU..and unexpected behaviors will be sure thing
@si98justme1
@si98justme1 4 роки тому
I went into this video thinking he was referring to Voltage Regulators, but due to a language/interpretation issue was calling them Supervisors, and that I wasn't going to learn much if anything... Whoops my bad, and I learned two things to add insult to my hubris: I'm not as smart as I thought I was, and learned about a part, that even as a professional (many years ago), I didn't know about.
@abhijitborah
@abhijitborah 4 роки тому
This Swiss' videos are always perfectly researched. And satisfying to learn from.
@whitefields5595
@whitefields5595 4 роки тому
@@abhijitborah He's Swiss .....
@abhijitborah
@abhijitborah 4 роки тому
@@whitefields5595 Seeking a thousand pardons. My bad. Thanks, edited it out.
#260 Most used tools, tips and tricks to spend your money wisely
15:11
Andreas Spiess
Переглядів 156 тис.
ЧТО ДЕЛАТЬ, ЕСЛИ НЕ ХВАТАЕТ ДЕНЕГ НА ВОССТАНОВЛЕНИЕ ТАЧКИ?
47:52
Повістки у Києві: «Яке право вони мають забирати всіх мужиків?» #війна #мобілізація #військові
00:41
Слідство.Інфо | Розслідування, репортажі, викриття
Переглядів 1,5 млн
We should use this amazing mechanism that's inside a grasshopper leg
19:19
#224 🛑 STOP using Serial.print in your Arduino code! THIS is better.
26:39
Rutgers University Confirmed: Meshtastic and LoRa are dangerous
13:27
Andreas Spiess
Переглядів 719 тис.
USB-C Tutorial for Everybody (Connector, Cable, PD, Data Transfer, Devices)
26:08
461 The Tools and Organizers I Use (with some tricks)
15:32
Andreas Spiess
Переглядів 81 тис.
The most simple way to set up a 555 timer
10:35
learnelectronics
Переглядів 211 тис.
Are Fuses from AliExpress and Amazon really dangerous? How to test yours!
13:19
ESP8266 vs ESP32 with WLED
24:01
ResinChem Tech
Переглядів 184 тис.
I7 2600K тест в играх и сравнение с AMD Ryzen
17:53
Первый рабочий день HappyPC Старый Оскол! 🔥
9:51
Герасимов Live
Переглядів 17 тис.
Клавиатура vs геймпад vs руль
0:47
Balance
Переглядів 485 тис.
СКОЛЬКО ЕЩЕ БУДЕТ АКТУАЛЕН IPHONE 13?
14:10
DimaViper Live
Переглядів 57 тис.