#91 How to properly power the ESP8266 modules

  Рет қаралды 184,580

Andreas Spiess

Andreas Spiess

7 жыл бұрын

Topics in this video:
Can we enhance stability of ESP8266 with capacitors across the power pins?
What about this, if we use a voltage regulator?
How can we reduce power consumption during deep sleep, with and without voltage regulators?
Can we use a NodeMCU board for deep sleep low energy applications?
Supporting Material and Blog Page: www.sensorsiot.org
Github: www.github.com/sensorsiot
If you want to support the channel and buy from Banggood use this link to start your shopping: bit.ly/2jAQEf4 (no additional charges for you)
Official Wemos Store: s.click.aliexpress.com/e/jUzBiIq
/ sensorsiot
/ spiessa

Пікірлер: 389
@TracyNorrell
@TracyNorrell 3 жыл бұрын
For what it's worth, 4 years after you published this, it answered an exact question I had today. Please never remove your videos, and thank you for sharing ask the knowledge that you've earned.
@AndreasSpiess
@AndreasSpiess 3 жыл бұрын
Thank you for your feedback! I still get a lot of views from relatively old videos.
@CamiloSantana
@CamiloSantana 7 жыл бұрын
i appreciate the time and effort you put into this presentation. i'm a beginner and you're greatly assisting me with my understanding of electronics. thank you.
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
You're welcome. This is exactly the purpose of this channel: To get you faster into the stuff that you have more of your valuable hobby time.
@Peter_S_
@Peter_S_ 7 жыл бұрын
Andreas, thank you very much for your work. I enjoy and appreciate your videos. Cheers from Boulder, Colorado, USA
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
Thank you for your nice words!
@laurencemunro
@laurencemunro 7 жыл бұрын
I ordered my ht7333 from one of your previous recommendations, and boy they work well with lipo's!! One thing that I experimented with was to power the ESP8266 from USB reliably/successfully - by using an 1000uF pre and 2200uF post with an ams3.3v regulator. I could finally built a custom pcb to flash (and run) my ESP's directly using my usb programmers - no more breadboard wiring or additional power sources, just plug and flash!!
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
Good to read that you made similar experiences. It is obviously a little tricky...
@gmag11
@gmag11 7 жыл бұрын
I was looking for a proper regulator for esp adaptor board. This one seems perfect. Thank you for sharing that information
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
You're welcome!
@uniquegrey1910
@uniquegrey1910 4 жыл бұрын
This was great! Very detailed, informative. Going to be watching it just one more time :) Looking forward to watching more of your videos. Thank you!
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
You are welcome! And welcome to the channel.
@barstinaz6326
@barstinaz6326 3 жыл бұрын
Thanks for your effort, I didn't come across anyone on the internet who explained like you
@AndreasSpiess
@AndreasSpiess 3 жыл бұрын
Thank you for your nice words!
@olarmariusalex
@olarmariusalex 6 жыл бұрын
You are a gold mine, mister! Those videos are so helpful for the ESP8266 community! As a small suggestion, the voice is a little liniar but this is maybe from the swiss type language, anyway a little voice fluctuation will improve the overall experience.
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
Thank you for the feedback. This is probably the price you have to pay for "non-entertaining" hard facts...
@olarmariusalex
@olarmariusalex 6 жыл бұрын
Good point! :D
@nickname7152
@nickname7152 7 жыл бұрын
Thank you for another sweet topic. I like your thinking and pointing different things.
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
:-)
@rnickens1999
@rnickens1999 7 жыл бұрын
You are an awesome presenter. Thanks for all your work!
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
You are welcome!
@DennisMurphey
@DennisMurphey Жыл бұрын
Thank You so very much. I need to see the older videos you referenced. I needed this for my Wemos D1 Mini in a Model Train. Dennis
@AndreasSpiess
@AndreasSpiess Жыл бұрын
Is power consumption an issue for your model trains?
@sarahjanegray
@sarahjanegray 3 жыл бұрын
Excellent video Andreas. I don't know how I missed this video before and am now glad I have found it as it has now helped me fill in a few gaps in this area that I have been struggling with. I had told myself that I was not going to invest in a scope until I understood how to use it properly and could get value from it. I think I am now ready to make that investment. Thank you, as always.
@AndreasSpiess
@AndreasSpiess 3 жыл бұрын
An oscilloscope is indispensable in an electronics lab. So a good decision.
@sarahjanegray
@sarahjanegray 3 жыл бұрын
@@AndreasSpiess Yes. I just have been telling myself that I would not invest in one until I understood how to use it properly, due to the costs. Think I am definitely getting there and really would have help analyze the recent voltage drop issues I have been experiencing on an ESP32 project due to the number of other components connected to it!
@EwaldBurger
@EwaldBurger 7 жыл бұрын
As always interesting video Andreas, thanks again!
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
:-)
@sergioruizvargas7045
@sergioruizvargas7045 7 жыл бұрын
Thank you very much.You make a very good job and ESP's videos are very interesting.Fantastic videos
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
You're welcome!
@elecnut8211
@elecnut8211 7 жыл бұрын
I find this fascinating. Keep up the good work.
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
:-)
@asiw
@asiw 7 жыл бұрын
Really, really, really good. Saved me a lot of time. Many thanks Art
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
Good to read. You're welcome!
@proller14
@proller14 7 жыл бұрын
Thanks for your videos, they are pretty good and usefull, ESPecially these ones. :)
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
:-)
@massimon9410
@massimon9410 5 жыл бұрын
ESPecially... You are a genius!
@protonx80
@protonx80 7 жыл бұрын
that was a very thorough and detailed analysis ...... Thank you
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
You are welcome!
@vaseef1
@vaseef1 7 жыл бұрын
you are doing nice job. keep going. I am watching your videos regularly.
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
Thank you for your support!
@yura979
@yura979 7 жыл бұрын
Andreas, you should consider making ASMR videos. Your voice is so soothing and pleasant, I almost fell asleep :) Thanks for useful info.
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
:-)) (I had to google ASMR)
@hoggif
@hoggif 5 жыл бұрын
At 4:35 it is recommended to add parallel cap (ok) or inductor in series of power lead (wrong!). You really do not want to add any more inductance. Power rail inductance is the reason your voltage drops during spikes. Inductor resists change of current and at power supply end you see less spikes but at the device end the current does not increase as quickly ie. voltage drops. Sometimes inductors are added with capasitors to form a low pass filter (like in picture at 4:35). That helps to reduce spiking/noise at power supply end. However, due to added inductance you usually need much more capasitance than if you had only added capasitors. You take this route only if you want to filter noise.
@AndreasSpiess
@AndreasSpiess 5 жыл бұрын
You are right!
@JeanPierreLavoie
@JeanPierreLavoie 7 жыл бұрын
Very good info and work again.
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
Thanks!
@RobertoColi
@RobertoColi 7 жыл бұрын
Very interesting. I never though that the simple cables/ic board resistance was an issue on so low power voltage devices.
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
Thank you for your feedback!
@miikakurkela5606
@miikakurkela5606 7 жыл бұрын
Really great video! Thank you!
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
You're welcome!
@XerotoLabs
@XerotoLabs 7 жыл бұрын
again clearly delivering the needed info . and nice tip about inductors being a hindrance . i will have to rethink my layout a small bit . I suppose i have been lucky with one project . I ran it a 9V mostly with buck converters at the parts that were 5V and lower . and i set the buck value with probes at the ESP's VCC and GND . so that was just dumb luck all this time for me . LOL . so again thanks for great job.
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
Higher voltage here really helps. Unfortunately, the AMS1117 is not made in 3.6 volt config...
@XerotoLabs
@XerotoLabs 7 жыл бұрын
yeah modules like esp make one want to have a small supply of LDO adjustable regulators . but for low power modes it becomes a challenge for sure.
@Really2950
@Really2950 7 жыл бұрын
Very thorough, fantastic videos
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
:-))
@yadneshchonkar205
@yadneshchonkar205 7 жыл бұрын
Excellent video, loved it.
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
:-)
@sjaaknabuurs2261
@sjaaknabuurs2261 7 жыл бұрын
great information, thanks.
@PhattyMo
@PhattyMo 7 жыл бұрын
This pretty well reflects what I've found empirically. Moral of the story,use at least 100uf capacitor across the 3.3V power pins,close to the chip. I also like to include a 0.1uf cap. I haven't had any power-related problems when following this 'rule of thumb' with these devices.
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
Thanks for confirming!
@ddavid2
@ddavid2 3 жыл бұрын
Great analysis!!
@AndreasSpiess
@AndreasSpiess 3 жыл бұрын
Glad you liked it!
7 жыл бұрын
Thanks for this great video!
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
+Werner Bröcker You are welcome!
@dukenuke2690
@dukenuke2690 6 жыл бұрын
Thank you, that is the stuff that our university never taught us!!
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
This is the power of KZfaq. If you want, you get it!
@AB-zh6lp
@AB-zh6lp 6 жыл бұрын
Congratulation, thats a good Quality video
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
:-)
@gbegerow
@gbegerow 7 жыл бұрын
Now it is much more clear, why my temperature logger crashes. Will have to rebuild from ground. Thanks a lot for the video.
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
You're welcome!
@malam2660
@malam2660 6 жыл бұрын
Another super cool video
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
Thanks!
@leozendo3500
@leozendo3500 7 жыл бұрын
Extreamly useful. I was about to buy 1117 but am getting 7333 instead
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
+wzd leo :-)
7 жыл бұрын
Thank you for your great videos. They are inspiration to me. BTW: Did you done any measurement of power consumption using a a different TX power levels? I'm still waiting for my modules, so I can't do any measurement yet.
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
Never tried low power levels.
@TheDealSleuth
@TheDealSleuth 7 жыл бұрын
Thank you for researching capacitor values. Most websites recommend only 10 or 47uF so hopefully with 470 I will finally be able to get a stable ESP. These resets are really frustrating.
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
You're welcome!
@laurencemunro
@laurencemunro 7 жыл бұрын
Thomas Kirchner , depending on your peripherals attached, you may find even a 470uF too light. When used with a small oled, I find a 2200uF is required for STABLE running. A 1000uF works, but tge chip randomly crashes otherwise - lots of hours spent to fix this, swapping chips, changing code, flashing firmware - a 1000uF must surely be enough... :)
@c2h7
@c2h7 4 жыл бұрын
Thank you for another great informative video! What exactly is causing the peaks you show in this episode? Is that the ESP waking up from deepsleep, processing something (what and for how long? with wifi or without? what currents?) and going back to sleep?
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
The Wifi transmitter needs a lot of current.
@fassesweden
@fassesweden 7 жыл бұрын
Thanks Andreas, again, for a superb video! How about dropping the voltade from a lipo cell with a diod (0,5-0,7V) instead of a voltage regulator (together with a 1000uF cap)?
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
I do not like diodes because of their fixed dropout voltage. This is, why I spend the extra few cents for a LDO regulator. They have down to 0.1 V dropout and you can use the batteries longer. But, a diode is also ok.
@hwj1822
@hwj1822 7 жыл бұрын
Again big Thumbs up! Thank you. :)
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
HW J :-)
@jumadhaheri
@jumadhaheri 7 жыл бұрын
This is amazing help as I got some crashing in some of my devices. I used one in -25 c freezer to report temperature and it won't crash but on hot day outdoors similar device would crash easily
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
That is strange. I wonder, if the capacitor is the issue or something else. Did you try different modules?
@jumadhaheri
@jumadhaheri 7 жыл бұрын
Andreas Spiess yes i did. It seams that it would run better in colder setuation and in my setup I draw a lot from the pins to drive 7 segment module.
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
Aha. Are you in the limits of the (small) LDO on the board? If it gets very hot, then you would have an explanation...
@BADALICE
@BADALICE 4 жыл бұрын
video # 47. roger that. I bet it worked pretty well.
@jareksinicki7862
@jareksinicki7862 7 жыл бұрын
It is strange but because there is a way around this problem I will try to use it will see how I go.
@200sxgrazor
@200sxgrazor 7 жыл бұрын
Hi Andreas. Thank you for your research and easy to understand presentations. If I wanted to reduce reboots due to power fluctuations on a wemos or nodemcu board (with onboard USB) should I put the capacitor across gnd and 5v or gnd and 3.3v? Is it even possible to use a capacitor on these boards? Thank you.
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
1. Always on the 3.3 volt side, close to the pins of the ESP module 2. You can do it, but I think, it is not necessary. Especially, the Wemos have good power regulators
@sourabhns6966
@sourabhns6966 6 жыл бұрын
Very useful video. What happens in ht7333 if input voltage fall below 3.3v. o/p just follow input voltage or switch-off
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
It follows the voltage with a small drop
@arcadeuk
@arcadeuk 7 жыл бұрын
You have the same bench meter as me. Despite what the haters say, I really like mine :) Nice video as always :)
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
I never heard about the haters. I know, that Dave Jones did not like another meter from UNI-T. His critics were more on the high voltage side, which I never use.
@arcadeuk
@arcadeuk 7 жыл бұрын
Oh yes, I am surprised people have not commented yet. If my meters are in a video I always get people telling me I should be using a Fluke and not Uni-T rubbish. To them I have to point out that my portable meter (UT-70D) is now about 17-18 years old and still working and accurate
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
That is why we have two ears: These comments enter my left ear and exit immediately at the right one...
@LEO-xo9cz
@LEO-xo9cz 4 жыл бұрын
Is it a Mastech? It has the same leads as mine.
@oslafeman2497
@oslafeman2497 5 жыл бұрын
Hi Andreas, congratulations for your very useful videos. I'd like to get an advise from you. I'm working in an proyect with Wemos D1 mini and I'll use the DC power shield which can be feeded with 7-24V 1A. May I use a power adapter for LED strips, input 110V output 12V 1A? I'll really appreciate your advise. Thanks in advance.
@AndreasSpiess
@AndreasSpiess 5 жыл бұрын
This shield should work on 12 volts. So you can power it with a 12 volt DC power supply.
@magiske
@magiske 7 жыл бұрын
Good stuff !!!
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
:-)
@racketman2u
@racketman2u 7 жыл бұрын
This is all really good stuff, as I have had so many problems previously due to inadequacies in my power provisions for the ESP8266. One question I have re the HT7333, which seems attractive as a regulator for battery power, due to its very low drop out; is its maximum current of 250ma a bit marginal for the ESP8266?
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
The average current used by the ESP8266 is about 80mA, so well inside the specs. The peaks are supplied by the big capacitors, so the LDO does not need to feed them.
@mexicanmoustache8180
@mexicanmoustache8180 6 жыл бұрын
Hi andreas you said that the nodemcu is not capable of low power applications. But is it possible to change the 100uF capacitor across the esp8266 on the nodemcu with a bigger value and replace the regulator with the ht7333-a to make the nodemcu suitable for low power applications? ... I recently did that but I just replaced the capacitor and unsoldered the regulator. I'm currently supplying through the 3v3 pin but with a 1n4001 diode in series with the LiPo battery to drop the voltage to about 3.5v... I'm currently reading about 22uA ...
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
So you proved it. But at the end, it is no more a "nodeMCU", but a pimped nodeMCU ;-)
@underwoodblog
@underwoodblog 7 жыл бұрын
Hello, great video again! Have you take a look at the ESP8285? This ESP has build in flash and is smaller, so suits better for use for battery powered aplications.
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
+underwood I have a few laying around. But I did not have the time to use it
@xennelul
@xennelul 7 жыл бұрын
how can one measure the battery voltage in low power mode without wasting power like with a simple voltage divider that is constantly drawing current??
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
Quick idea: You could switch the voltage divider off with a p-channel FET if not used.
@pedro.federici
@pedro.federici 7 жыл бұрын
The AMS1117 and HT7333 have different pinout (SOT-89 package). Do know witch one can be used at those small white cheap expansion boards. I think the HT7333 you used is not the SOT-89 version, Am I wrigh?
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
You are right. They have different pinouts. I used a SOT-89 HT7333 on the white boards. The 1117 does not fit.
@pedro.federici
@pedro.federici 7 жыл бұрын
Ok. Thanks.
@dodgyaz
@dodgyaz 5 жыл бұрын
Did you make a video testing 8266's at different temperatures? I have a couple of projects that will be subjected to 47c ambient temp and am interested to know what the results of that test are.
@AndreasSpiess
@AndreasSpiess 5 жыл бұрын
I live in a cold country. The specifications say: Operating Temperature Range -40°C ~ 125°C for the chip itself.
@dallatorretdu
@dallatorretdu 7 жыл бұрын
Hello, which LDO should I buy to power an ESP from a single lipo battery? Would a diode be much simpler (don't care of completely draining the battery)?
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
1. HT7333 2. I do not like diodes, because their voltage drop is constantly 0.6 volt. LDOs have a minimal drop-out of ca. 0.15 volts only
@javicani
@javicani 7 жыл бұрын
I have a problem. It turns out that once programmed, at the end of the "void loop ()" I place the deep sleep command and without bridging the nodemcu makes an attempt to reboot but it does not pass the scribbles. And if I put the gpio16 (D0) bridge with RST, it goes into a reboot loop where the doodles start continuously ... What am I doing wrong?
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
As soon as your ESP reaches the ESP.deepsleep() statement it starts to sleep for the time you said. After that time, the RST pin is pulled low by GPIO16 (if connected). So, the ESP always reboots after deepsleep and you have to write your program accordingly. Maybe you watch my videos and my sketches for this topic.
@MPElectronique
@MPElectronique 7 жыл бұрын
Andreas What about a 22000 uF cap for esp8266 deep sleep ?? Thank you. Marc.
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
This is more like a battery. You can try. I am not a fan of these for small current applications. Batteries are much better for that purpose.
@Roman-ht3cg
@Roman-ht3cg 5 жыл бұрын
Hi Andreas, your videos are fantastic. You pack a lot of info in there! I have a couple of questions that maybe you can help clear up for me. I am powering an ESP8266/Nodemcu with a 120v AC to 5v DC power supply. I am planning to step down voltage using a 1000uf cap and an HT7333 for the ESP8266 and other components that need 3.3v, and use raw 5v for some other components. 1) I ordered 25v caps vs 10-15v caps and I can't figure out if that's going to be a problem. All I can find is that I should de-rate caps by 2-3x (consistent with what you've said), vs if there is a reason to go with a voltage rating closer to that of my operating voltage. Should I be using a lower voltage rated cap? 2) Is there a reason to use a SOT-89 vs TO-92 - such as heat dissipation? I understanding the packaging is different - SMB vs through-hole - of course, but I'm curious if I should be figuring out how to use an SOT-89 in my prototype PCB device. I have found some commercial boards for the SOT-89 package to breadboard pin, which might help with heat. To be fair, I have done no math to see if I even need to worry about heat. My devices aren't drawing much power and I'm only dropping 1.7v. I guess I should do the math. (Note, these devices will never be on pre-printed PCB's, they're just for one-off my use (or mostly one off, some of my friends are interested now that I'm figuring it out, ha).) 3) Would/do you do anything to clean/protect/stabilize the power from a 5v power supply to 5v devices? I am running some sensors that use higher input voltage. I would have bought 3.3v devices if possible but the specialized commercial device I needed was only available in higher-voltage. If you have time to answer any of my queries, I would much appreciate it. If not, no worries, I shall keep researching and watching your videos!
@AndreasSpiess
@AndreasSpiess 5 жыл бұрын
1. A capacitor never has to have a lower voltage rating. A higher one is no problem (except it is more expensive and bigger in size) 2. Please make the math. According to the datasheet, both cases can dissipate 500 mW. 3. Many devices use some capacitors at the 5-volt rail to "clean" harmonics. It depends on your device and your power source.
@dl8cy
@dl8cy 7 жыл бұрын
Today was again to my taste :-)
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
:-)
@jareksinicki7862
@jareksinicki7862 7 жыл бұрын
Well done again Andreas. Quick question: what's the trick to get bare bones ESP12 or ESP07 running? I can flash them but keep getting watchdog errors all the time (e.g. "ets Jan 8 2013,rst cause:4, boot mode:(3,6) wdt reset load 0x4010f000, len 1384, room 16 tail 8 chksum 0x2d csum 0x2d v09f0c112"). Nodemcu runs well but ESP12 and ESP07 in minimal configuration does not. Is the capacitor that critical? - I only have 47uF across 3.3V and GND.
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
This is usually not the capacitor. Did you run exactly the same sketch?
@nicolassuarez144
@nicolassuarez144 5 жыл бұрын
Hi Andreas! And what about an USB Charger recycle for outlet socket for example? Thanks!
@AndreasSpiess
@AndreasSpiess 5 жыл бұрын
Why not?
@kingggerald
@kingggerald 5 жыл бұрын
Hi Andreas, I'm trying to use a 18650 battery for a 3.3v arduino project. Now I've been searching allot around the internet, and don't get a clear answer. I would prefer to purchase just one or two modules for charging and using the 18650 battery (charging seperate from operation) But I can't seem to find such a module/method. I'm clearly searching in the wrong direction. FYI, using the ESP8622 with just the 8 pins (ESP-01 I think) Can you or the other subscribers help me out here? Would prefer to have a source if possible, so I can learn something! :) much appreciated!
@saeedmardani3900
@saeedmardani3900 7 жыл бұрын
Hi, thanks for your videos. I learnt alot from them. could you say why you wear gloves working with these boards?
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
+Saeed Mardani It is a private reason
@sebastiencare-colin6434
@sebastiencare-colin6434 7 жыл бұрын
Fantastic video as every one. Just one question : what about ceramic capacitor compared to tantalum or electrolytic regarding leakage current ? Just a neewbie in electonic, but seems that leakage current is one of drawback of electrolytic cap, in contrtadiction with your video ;-) Anyway your videos (all) help me a lot to built my project, just a few questions about capacitor and I'll be able to release it
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
Tantalums have much higher capacity. Small tantalums also have only small leakage currents.
@SolarMiracle
@SolarMiracle 6 жыл бұрын
Thank you very much for your kindness and knowledge and experience we have learned a lot , I am planning on using D1 Mini and powering it with AC to DC (HLK-PM01) and connect it to the 5v , or (HLK-PM03) and connect it to 3.3v , which is better ? and do i need any other component ? i.e. capacitor .. etc
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
The D1 does not work only on 3.3 volts. It has components which need 5 volt
@SolarMiracle
@SolarMiracle 6 жыл бұрын
Thanks , so 5V it is , how about capacitor do I need one ?
@user-so2xd7pw9l
@user-so2xd7pw9l 6 жыл бұрын
Hi Andreas, do you have an explanation how to implement Deep Sleep and ULP with Arduino IDE to the ESP32?
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
So far I never used the ULP. Still on the project list...
@HamzaKhan-sn2sj
@HamzaKhan-sn2sj 6 жыл бұрын
after adding the 1000 uF capacitor to the esp8266 power pins , what are you using as a power source , can arduino pins (3.3 v and ground ) be used ? currently we're advised from our teacher to use a 12v 5A adapter with LM2596 to power the esp8266 which to me seems kinda expensive solution for such a cheap module. thanku and great video
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
The Arduino 3.3 volt pins do not work. I would say, you need at least 300 mA 3.3 volt supply.
@marclefevre1045
@marclefevre1045 6 жыл бұрын
Hi Andreas, I see that KZfaq is your preferred method of contact and I have a suggestion for a future topic. I'd like to know more about the pros and cons of using ESP8266 modules that don't have metal lids (ESP-01 for example). Do you have the equipment to assess the RFI (radiated and susceptibility) performance of these modules? Are they listed as not FCC approved because they failed to get approval or never tried?
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
I do not know if they tried to get certified. And I do not sell products. So I am not very interested in this topic. I also do not have this specific knowledge.
7 жыл бұрын
Hi Andreas, thank you for the video! One question: you said that NodeMcu boards cannot be used for low power scenarios, what about using a HT7333 voltage regulator to power directly a 3.3V Pin on the board? I guess the onboard USB TTL chip will still consume some power, but at least I would spare the AMS1117, or?
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
There are many different "nodeMCU" boards available. So you have to try and measure the current. I doubt that you will be successful to get the current down to the microamps. And why would you use a nodeMCU board without everything which makes it different than a bare ESP? Then, you better use the white PCB where you can solder an HT7333 LDO on the back as showed in some of my videos. This has a real small current and is anyway cheaper and has also 2.54mm headers.
7 жыл бұрын
Well the reason for the nodeMCU board is that it's much more convenient than a bare ESP. But I will measure it to get some information on it. Thanks!
@eldadyamin
@eldadyamin 7 жыл бұрын
Hi, What are those gloves for? anti shock? If so, please add a link :) thanks
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
Private reasons, not electronics related.
@bsiz1757
@bsiz1757 7 жыл бұрын
That was awsome man awsome
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
Thanks!
@ec6741
@ec6741 3 жыл бұрын
Hi, I can power my esp01S with a wall powered 7V adapter and a spx3819 voltage regulator (and even directly with a 3V CR2032 button battery!). When I use the 9V battery with a spx3819 voltage regulator, it doesn't work. I get 1V instead of 3.3V between the VCC and GND pins once I connect the ESP01. Is this voltage collapse due to current drain?
@AndreasSpiess
@AndreasSpiess 3 жыл бұрын
The ESP-01 needs 3.3 volts and more current than a CR2032 can deliver.
@viciokas1993
@viciokas1993 7 жыл бұрын
Excellent video, as always. I was wondering whether you have any experience with mbed microcontrollers? I specifically got an LPC11U24 recently, and it seems to be very interesting so far, might be interesting for you to look at (I think there are newer versions of it out now).
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
VaHaLa I will not divert my effort to other controllers for now. I still have many ideas with the Esp and its successor. If I would start with another MPU there is an increadible choice and I would not know, which one to chose ;-)
@MaxintRD
@MaxintRD 7 жыл бұрын
mBed is interesting too, but somewhat different and it seems to have a smaller and less active ecosystem. The esp on Arduino is such a succes because of price combined with a large ecosystem. mBed modules (such a the mBuino shown in my avatar) are more expensive. However, the mBed online compiler is interesting too and gives access to many interesting libraries. The ESP-MusicEngine (see github) was ported from the mBed environment.
@meditation5270
@meditation5270 7 жыл бұрын
You are so good in knowledge and your presentation skills. I am using ESP8266 - 12 Development board for experiment. I want to measure battery life, 2 AA Connected directly to 3.3V and GND. Do I need to bypass on board 3.3 V (AMS1117) regulator as this set up will feed back 3.0 volts from 2 AA batteries to output pin of AMS 1117 regulator? If so, can I just lift the out put pin from the development board?
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
The ESP8266 chip only measures up to 1 volt. If you want to measure higher voltages, you have to use a voltage divider (2 resistors, just google). If you use high values, the current through them is very low.
@yapayzeka
@yapayzeka 7 жыл бұрын
sir your channel is awesome. big fan. i have a question. how can i make an esp system which is connected to city power (here 220v) and a rechargable battery (for example 3.7v lipo cell). when the city electricity went out the battery kick in and continue to power up the esp. and when the city lights come back the esp will switch back to city electricity and the battery wil recharge and when the battery is full, stop recharging. thank you very much.
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
The easiest solution would be to use a powerbank. You constantly charge the powerbank and run your device from the bank. The powerbank has to have two have two properties: 1. It has to be able to be loaded and discharged at the same time 2. It has to keep "on" with the load of your device All other solutions are very similar: A battery charger, a battery, and a voltage regulator which delivers the needed voltage for your device. The charger has to have a switch off mechanism built in.
@bobbytmp1322
@bobbytmp1322 4 жыл бұрын
Thanks!
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
Welcome!
@michoyou7876
@michoyou7876 7 жыл бұрын
Great Video, as I understood for a 12V power supply the HT7333 should be good f0r 3.3V output for an ESP32, right? What chip could I use if I have only 24V DC available?
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
The question is power dissipation. I am not sure if the HT7333 is good enough for 12 volt. Maybe it gets too hot. Anyway, I would use a switching regulator for any voltage above 5 v. It dissipates much less heat.
@michoyou7876
@michoyou7876 7 жыл бұрын
Andreas Spiess - Thanks a lot. What switching regulator would you recommend for 12 or 24 Volt DC power supply to drive an ESP 32
@Bobby-jm7cu
@Bobby-jm7cu 7 жыл бұрын
Excellent! Just what I needed, all the options in a nutshell. By the way, have you thought of using a mini buck converter the mini LM2596? How much of an inteference do you think it will have with the wifi signal, do you think?
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
I would not care about the interference. 2.4 GHz is much higher than the few 100 kHz of a switching regulator
@Bobby-jm7cu
@Bobby-jm7cu 7 жыл бұрын
Thanks!
@MartinDolan
@MartinDolan 5 жыл бұрын
I use mainly esp8266 boards at 3.3 v for home automation stuff as all the sensors I use on them are also 3.3v Some of those sensors are a bit power hungry (gesture sensors etc) so as far as a capacitor goes Im guessing a 1000uF 10v, 16v or 25v aluminium electrolytic is what I should be using? Just about to order some from AliExpress
@AndreasSpiess
@AndreasSpiess 5 жыл бұрын
Those caps should be ok.
@JimBell20
@JimBell20 7 жыл бұрын
Based on your statement that the NodeMCu cannot be used for low power application, 2 questions Can the WeMos module be used for low power? What is the recommended module for low power operation that can be purchased from Banggood?
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
Only bare ESP-12f (or similar) modules suit well, because they have no additional components.
@Rajatsharma-lx8og
@Rajatsharma-lx8og Жыл бұрын
Thanks
@AndreasSpiess
@AndreasSpiess Жыл бұрын
You are welcome!
@warperone
@warperone 7 жыл бұрын
Hi Andreas - I see you also mentioned the Wemos Mini as having a better regulator ? - as I am using Wemos Mini and Wemos Mini Pro I wanted to know if a large capacitor is also recommended - reason I ask is I seems to get at best around 48-64 hrs before I get a hardware watchdog restart occuring on my wemos no matter what.
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
I do not use a capacitor. Maybe your watchdog comes from a loop which blocks Wi-Fi for too long. I would insert a few yield() statements into the loops and would check again.
@warperone
@warperone 7 жыл бұрын
will give that a go
@meddjihed9108
@meddjihed9108 3 жыл бұрын
Thank you master suisse
@AndreasSpiess
@AndreasSpiess 3 жыл бұрын
You are welcome!
@alanmcoll101
@alanmcoll101 6 жыл бұрын
Hi Andreas. I hope you can help this noob. I powered some Wemos D1 minis with a 18650 battery via the VIN. I got a few hours before they died and (maybe) over-discharged. Indeed, I had to discard one of them... My Soshine Lifepo4 size AAs arrived and I plugged one into the 3.3v on a Wemos D1 mini. At 700mah, I expected the Lifeop4 to die quite quickly. Not so. It's going strong after 4 hours. So, how come a 700mah plugged into the 3.3v input can last well when compared to a 2400mha LiPo plugged into the 5v VIN? Are voltage regulators really so inefficient? Or am I making bad assumptions?
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
1. I would measure the current flowing from the battery in both scenarios. Then, you see if there is a difference. It should not be big. 2. If there is no big difference, your 18650 does not have a lot of capacity3. If you connect a battery to the 5V pin, a regulator (LDO) is connected between your battery and the 3.3V pin. These LDOs have a minimum voltage across them to work (in the D1 mini around 0.3 volts). This is not a lot of "inefficiency". Of course, this voltage increases to 5 - 3.3 volts if you supply the full 5 volts
@mychannel-cm1ce
@mychannel-cm1ce 6 жыл бұрын
Reactive component of an inductor is proportional to the frequency. No wonder inductors produce high voltage drop (higher reactance) at high frequency spikes.
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
You are right.
@PeterHellmich
@PeterHellmich 4 жыл бұрын
Hey Andreas! Even if this video is already a few years old, I got a related problem (at least I think it's related). I'm using a simple esp8266 button solution with 4 buttons. They send a MQTT message to my nodered server. It works great. The only issue is: The buttons "fire" when I want to turn down or up the window blinds in the same room. They are in no way connected. They only hang in the same power circuit of my appartment. Any idea how this might happen?
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
Maybe you power supply is not clean and makes the ESP to reset. Maybe you watch Serial if this happens.
@yonneh.
@yonneh. 7 жыл бұрын
The voltage drops you are showing seem a bit extreme, compared to what I have seen. With the board you show at 10:34, I have 2 capacitors: 100uF electrolytic across VCC and GND, (high side of the linear regulator) and 470uF across the VCC/GND pins of the actual module. (low side of the linear regulator) on the reverse, I have a 3.3v HT7333 (250mA LDO). I have not seen more then 25mV of voltage drop, even when transmitting large amounts of data. Maybe the high voltage drops you are seeing are coming from the high resistance of a bad breadboard/jumper wires?
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
These voltage drops are very short and do not depend on the amount of data transmitted. In average, it is well possible, that it is only 25 mV. You are absolutely right, that wire size and especially the breadboard has an influence on the behavior. But many of our devices have only small batteries and thin wires. This is, why I chose this setup and not a beefy LiPo with 14 AWG wires. My experience shows, that a 470 uF capacitor is just right to avoid the spikes. Take it away and do the measurement again and you should see the spikes
@kerens08
@kerens08 6 жыл бұрын
Hi, andreas. i read all the comments, and ht7333 is your recommendation. The datasheet says, max output is 250mA. So is it okay? Can you explain why? Thank you btw for all your great videos.
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
Because the ESP only needs about 80 mA.
@SashNone
@SashNone 7 жыл бұрын
Nice gloves! Looks very professional!
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
:-)
@danielcavalcante8103
@danielcavalcante8103 7 жыл бұрын
Your videos are always graet! I learn a lot with them. Could you make a video teaching us how to connect two or more ESP's through wifi? I can't find a good video about this topic on youtube.
@leorusnac
@leorusnac 7 жыл бұрын
you mean to make them communicate through wifi? you can just use the usual HTTP methods: GET, POST, .... and have the ESPs answer to them
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
Next week...
@lukider11
@lukider11 7 жыл бұрын
i can recommend MQQT to you. Its really awesome but you need a server (raspberry pi is great for that)
@AlexSchick
@AlexSchick 7 жыл бұрын
lukider11 I have to agree 👍 MQTT. is the thing for machine to machine communication. ☺️
@danielcavalcante8103
@danielcavalcante8103 7 жыл бұрын
Do you know a tutorial teaching how to do this with mqtt? Can I use another ESP as a server?
@sergioarielfernandez8217
@sergioarielfernandez8217 6 жыл бұрын
Hello Andreas, thank you very much for your videos, you are the best!! I have this big problem, I was using de 12E, with deep sleep, and SPIFFS, with a TLV30033, because I need to use it with a battery. BUT I bought a few ESP 8266 12F, and fails, a lot, if i use another power source, works great, but not with the LDO. In the data sheet, the power specifications and the pin modes to booy from flash, are the same that the 12E, so I do not undestand why it crashes. Do you ever used the 12F? Thank you very much for your time. Best regards.
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
1. I never used a 12F (I even do not know the differences). 2. ESP8266 needs a very good power supply. Otherwise, it crashes randomly. I made a video about that (using a 1000uF capacitor right at the ESP module after the LDO)
@sergioarielfernandez8217
@sergioarielfernandez8217 6 жыл бұрын
Andreas, thank you very much for your answer, Yes, I saw the video, I put an 1800uF capacitor and it never locks again! The strange thing is that with the 12E, it never crashed, using the same LDO, with its own capacitors, as power supply. Obviously do not consume the same, for more than the datasheet so says. Thank you very much!!!
@hinnanayab9887
@hinnanayab9887 5 жыл бұрын
Informative video Andreas. I have a question. My Esp module (Wemos D1 Mini) resets after few seconds every time. I am using motion sensors with it. I tried to power up the sensor from separate power supply. The ESP is powered up via a USB cable from my laptop. I tried the capacitor thing but didn't work. Can you please help with this? I need continuous data from my sensors for about 2 or 3 minutes but i am not able to do that since the ESP resets after every few seconds. Thank you in advance!
@AndreasSpiess
@AndreasSpiess 5 жыл бұрын
Maybe you try to disconnect the sensor to find out if it crashes because of the sensor, because of your program (forgotten Yield() command, or because of a bad board.
@hinnanayab9887
@hinnanayab9887 5 жыл бұрын
I haven't used the Yield() command anywhere in my program. I tried it though but it didn't make any effect on the reset issue
@miniwarrior7
@miniwarrior7 7 жыл бұрын
for low power you might be better off with the WeMos specifically the "d1 mini v2" v2 has a better regulator
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
You are right, that the Wemos regulators are better, but I did not test them for low power applications. If you watch one of my later Mailbags, I already purchased some of these regulators to play with tem.
@PLOBEXRIME
@PLOBEXRIME 7 жыл бұрын
Awesome video :-) I was wondering why my ESP12-E on a common adapter (shown in 10:28) reports 2.68V, also the initialization was rarely not successful (crashes, boot loops etc.). I just tried a 470uF capacitor, it is now stable and reports 3.0V but surely will replace with 1000uF or even 2200uF once i start moving out my project from breadboard.
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
The question is how you power the thing (5V, 3.3V) and if you use an LDO. Just start measuring at the voltage source and follow the leads. Then you will discover where you lose the voltage,
@PLOBEXRIME
@PLOBEXRIME 7 жыл бұрын
Currently MB102 connected to USB (it has AMS1117-3.3V). Once prototype is finished i will use the same LDO but DC power supply, this device will work at my house non stop. In other words stability is the priority, and i gained it thanks to your tests.
@mams2944
@mams2944 7 жыл бұрын
I am using an ESP-01 Black, I am having a problem in powering it the right way, I tried several things but with no luck, can you give an option, that is cheap and easy to power it, so it can function with any problems. thanks in advance!
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
What did you try?
@danielcavalcante8103
@danielcavalcante8103 7 жыл бұрын
do you know a good and small AD-DC converter board (for exemple: 220Vac/5Vdc) that I can solder on PCB to power my ESP projects?
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
I have this is one: www.aliexpress.com/item/5pcs-AC-DC-85V-265V-700mA-3-5W-Isolated-Switching-Power-Board-Module-Industrial-Power-Supply/2054274081.htm and this is the other: www.aliexpress.com/item/power-supplies-5V-small-size-regulated-output-led-power-supply-module-220V-to-5V-0-4a/2036637836.html They are quite good if you do not want to have a separat power supply. But of course, no CE...
@danielcavalcante8103
@danielcavalcante8103 7 жыл бұрын
I'm sorry for my ignorance, but what is CE? I've never heard this term before!
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
It is a European test which should show consumers, that devices connected to mains voltage are save.
@emlodnaor
@emlodnaor 7 жыл бұрын
I like these: www.ebay.com/sch/i.html?_odkw=hilink+5v&_osacat=0&_from=R40&_trksid=p2045573.m570.l1313.TR0.TRC0.H0.Xhilink+5v+5pcs.TRS0&_nkw=hilink+5v+5pcs&_sacat=0
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
Thanks for the link!
@tycstahX
@tycstahX 5 жыл бұрын
Am I understanding correctly that the 470uF SMD capacitors have no issues? Does this mean two 470uF SMD caps in parallel could avoid a "bulky" 1000uF THT cap?
@AndreasSpiess
@AndreasSpiess 5 жыл бұрын
I do not know if they have no issue. Maybe it is only smaller. Usually, 470 uF is also ok for that purpose. I would try it.
@tycstahX
@tycstahX 5 жыл бұрын
Thanks for the advice.
@ChrisFredriksson
@ChrisFredriksson 7 жыл бұрын
Great video and really interesting! While the ESP is getting older, it is great to see some people still making videos about it. The ESP8266 is one of my favourite trinkets, even though I haven't even tried using Arduino on them yet. I've only tried some simpler AT commands and against my own webserver, which locks up when the ESP tries to access it through HTTP requests. No idea why.. I will build another server at home to try and figure out why it locks up.. Not so fun when it locks up my whole webserver that I don't have at home and is serving real websites ;) hehe.. Anyhow, When you're measuring current you have the meter wires plugged into the Voltage ports and it is reading mV. Is this correct? I'm in no way doubting, complaining or anything.. I'm just wondering why =) I know that you somehow can measure current by measuring voltage as well, you probably know what I mean and it might be what you did in this video. I just cant remember how to do it or if it has a name or so. But like, you measure the voltage and while it says Voltage you can just convert it to Amperage. Do you know what I mean? Hard to explain ;) Well, great video and I can't wait for more ESP videos and any other topic you come up with, all your videos are really interesting and awesome! =)
@AndreasSpiess
@AndreasSpiess 7 жыл бұрын
Maybe you watch my videos about "measuring current". There, I explain how Ido it.
@greyhnd001
@greyhnd001 4 жыл бұрын
My understanding was the 12e could take up to 20v at the vcc port. Is that not true?
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
It can take what you give. But above about 3.6 volts it will be destroyed.
#328 ESP32 Secrets: Interrupts, and Deep-Sleep under the Hood
18:57
Andreas Spiess
Рет қаралды 174 М.
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 36 МЛН
New ESP8266 Voltage Regulator Design
12:54
ItKindaWorks
Рет қаралды 132 М.
MPPT What is it and How it works?
25:17
Electronoobs
Рет қаралды 97 М.
ESP8266 as Window Sensor with years of battery life
17:57
MakerMeik
Рет қаралды 177 М.
Your Powerbank has 1 BIG Problem! (That we can "Hack")
12:13
GreatScott!
Рет қаралды 349 М.
Aggressively Low Power with the ESP8266
10:18
CNLohr
Рет қаралды 78 М.
#118 ESP8266 Deep Sleep 💥 and Bare Bones ESP (easy)
34:18
Ralph S Bacon
Рет қаралды 28 М.
#142 Solar Power for the ESP8266, Arduino, etc.
15:06
Andreas Spiess
Рет қаралды 237 М.
Что делать если в телефон попала вода?
0:17
Лена Тропоцел
Рет қаралды 3 МЛН
ОБСЛУЖИЛИ САМЫЙ ГРЯЗНЫЙ ПК
1:00
VA-PC
Рет қаралды 2,5 МЛН
Проверил, как вам?
0:58
Коннор
Рет қаралды 80 М.
My iPhone 15 pro max 😱🫣😂
0:21
Nadir Show
Рет қаралды 211 М.