Issues when battery powered

coldib
Posts: 3
Joined: Wed Nov 03, 2021 8:04 pm

Issues when battery powered

Postby coldib » Wed Nov 03, 2021 8:12 pm

Hello! I want to build my own weather station that periodically transmits temperature every hour using MQTT via WiFi. Everything works fine when powering the ESP32 via USB or via 5V using a YW Robot Power MB V2 - however, when I try to power it using 4xAA with a DC Buck Modul AMS1117 or a 3,3V input using YW Robot Power MB V2 it seems to get stuck in a boot loop. I guess this is due to the spikes created when using WiFi - when turning off WiFi for testing reasons the ESP32 seems to run stable.

Any suggestions how to get this to work?
Last edited by coldib on Thu Nov 04, 2021 9:53 am, edited 1 time in total.

ESP_Sprite
Posts: 9764
Joined: Thu Nov 26, 2015 4:08 am

Re: Issues when battery powered

Postby ESP_Sprite » Thu Nov 04, 2021 7:22 am

Your text does not make sense - for one, the LM1117 is not a buck module. Can you draw a schematic of what you have, and also list the *specific* components you're using?

coldib
Posts: 3
Joined: Wed Nov 03, 2021 8:04 pm

Re: Issues when battery powered

Postby coldib » Thu Nov 04, 2021 9:50 am

Sure!

I use the following components:

[*] AMS1117: http://www.advanced-monolithic.com/pdf/ds1117.pdf
[*] AZDelivery ESP32-WROOM-32 with CP2102: https://cdn.shopify.com/s/files/1/1509/ ... 1598356497
[*] 4 x NiMH AA-Battery 2000 mAh
[*] DHT22

Schematics:
IMG_1718.jpg
IMG_1718.jpg (44.37 KiB) Viewed 8821 times

ESP_Sprite
Posts: 9764
Joined: Thu Nov 26, 2015 4:08 am

Re: Issues when battery powered

Postby ESP_Sprite » Fri Nov 05, 2021 1:37 am

Okay, clear, all separate modules. What may be happening here is that the impedance between battery, AMS1117 and ESP32 is too high because you e.g. use jumper wires. Could you try connecting the batteries directly to the 'V5' input on that devboard? The devboard already has a built-in LDO and that way you make use of that: it's more likely to have proper decoupling as well.

coldib
Posts: 3
Joined: Wed Nov 03, 2021 8:04 pm

Re: Issues when battery powered

Postby coldib » Sun Nov 28, 2021 8:36 pm

Hello! Sorry for the late replay but this did not help unfortunately. Do you have any other suggestions? Regards

Chevelle
Posts: 20
Joined: Sun Nov 29, 2020 12:50 pm

Re: Issues when battery powered

Postby Chevelle » Mon Dec 06, 2021 10:44 pm

OK. I get where you are going but what you are showing in your schematic is not the way to get there.

First off, 4 AA batteries at 1.2V each gives a total of 5.8 volts. That gives your 5V regulator only 0.8V to work with. I see that it is an LDO but that still isn't much margin and it will go away as the voltage drops from use. Consider using 6 or 8 batteries or even a 9V.

Also, that regulator is an adjustable regulator. I needs a resistor network to set the proper output voltage. Finally, that regulator is way more than you need. Even in full transmit mode, the ESP32 doesn't need anywhere near that ouput current and your sensor needs just a few mils at amost. Look for an fixed LDO in the 250-500 mA range.

If you use the proper regulator and a battery pack with some more room in it, you will be far better off. Get the regulator circuit running before you connect anything else to it.

Now if you really want to do it right, ditch the development kit and use the ESP32 module directly and select a 3.3V compatable sensor. (There must be plenty.) Now the whole thing will easily run on your 4 AA pack.

I'm happy to help which ever way you go.

Who is online

Users browsing this forum: No registered users and 84 guests