ESP working on PC USB Power but not on USB charger

yannick
Posts: 2
Joined: Tue Oct 13, 2020 7:20 pm

ESP working on PC USB Power but not on USB charger

Postby yannick » Tue Oct 13, 2020 7:52 pm

Hello lovely people of the forum!

I just finished my first ESP32 project: A temperature controller using a simple temperature sensor and a relay to turn on/off a heating element for my ant-farm.
I have the wiring and all the components wired up and the script does exactly what it should. During development and testing the ESP32 was always connected and powered using USB on my Macbook (also using a USB A to USB C adaptor). Now, that I'm done, I wanted to use a USB charger to power the ESP32, but interestingly it does not work. The display glows up, but the content is not displayed (no script is being executed - Relay not working either) and the ESP32 is blinking its red LED (more or less consistently the whole time).

What I tried already is:
- Many different USB chargers. From smartphone charger with 0.5A up til 3A. USB type A and USB type C with an adapter.
- A 230V to USB power supply (bare pcb with components. This was what I wanted to use in the end)
- I also connected it back to my Macbook with the USB A to USB C adaptor where it was working perfectly fine again.
- Finding the solution in all forums and discussions i could find in several hours of searching.

I don't understand the possible problem. Should the USB power from the Macbook not be exactly the same than the one of a USB charger? I mean, it is just power. Plus and minus. 5 volts.
I don't get it...

Hoping for someone to enlighten me or providing a clue or a way to troubleshoot this. I appreciate every input!

Thanks and greetings from Vienna :D
Yannick
Attachments
IMG_20201010_212045.jpg
everything working with soldered PCBs. Powered using PC USB.
IMG_20201010_212045.jpg (303.14 KiB) Viewed 7597 times

Spile2
Posts: 23
Joined: Tue Sep 22, 2020 8:39 pm

Re: ESP working on PC USB Power but not on USB charger

Postby Spile2 » Wed Oct 14, 2020 7:58 am

I am wondering if you tried to power by USB and 5v in at the same time? There is a diode D1 that may have shorted?
I now only power by USB when setting up. For my alarm panel, I use one of the excellent and tiny MP2307 regulators, set at 5v and fed into VIN...

https://www.ebay.co.uk/itm/MP2307-Adjus ... 2749.l2649

yannick
Posts: 2
Joined: Tue Oct 13, 2020 7:20 pm

Re: ESP working on PC USB Power but not on USB charger

Postby yannick » Sat Oct 17, 2020 7:51 am

Hi Spile2,

thank you for the suggestion. I did not power it with 5V and USB simultaneously. What ground pin would you use with VIN, when not powering over USB?
I did use the USB power, since I have some of those USB chargers around. And most importantly, I really want to find out the reason, why this strange behaviour occurs.

I think I'm gonna order some of those regulators you suggested, since the form factor seems more appropriate, than my USB-chargers :D

I'll update, if I get new information.
THANK YOU!
Attachments
IMG_20201017_094812.jpg
Current USB charger
IMG_20201017_094812.jpg (2.15 MiB) Viewed 7469 times

Spile2
Posts: 23
Joined: Tue Sep 22, 2020 8:39 pm

Re: ESP working on PC USB Power but not on USB charger

Postby Spile2 » Sun Oct 18, 2020 5:33 am


andreapier
Posts: 2
Joined: Sat Sep 18, 2021 10:20 am

Re: ESP working on PC USB Power but not on USB charger

Postby andreapier » Sat Sep 18, 2021 10:22 am

Hi, @yannick. I am facing the exact same issue? Were you able to solve it?

ESP_LJH
Posts: 384
Joined: Tue May 18, 2021 9:21 am

Re: ESP working on PC USB Power but not on USB charger

Postby ESP_LJH » Wed Sep 22, 2021 3:46 am

Could you measure 3.3 V power supply? If there is no power output of USB charger? Maybe it is the problem of USB charger, we find if the current is too low, USB charger will be switched off due to its protection mechanism.

andreapier
Posts: 2
Joined: Sat Sep 18, 2021 10:20 am

Re: ESP working on PC USB Power but not on USB charger

Postby andreapier » Thu Sep 23, 2021 12:14 pm

ESP_LJH wrote:
Wed Sep 22, 2021 3:46 am
Could you measure 3.3 V power supply? If there is no power output of USB charger? Maybe it is the problem of USB charger, we find if the current is too low, USB charger will be switched off due to its protection mechanism.
Thanks for your help.
I solved my issue. It was a grounding problem, solved by replacing ground wire. I suppose it was somehow damaged, even if not visibly cut or broken.

Who is online

Users browsing this forum: StanInexeon and 62 guests