Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brownout on battery --> starting bluetooth #18

Open
lemmingDev opened this issue Sep 28, 2018 · 5 comments
Open

Brownout on battery --> starting bluetooth #18

lemmingDev opened this issue Sep 28, 2018 · 5 comments

Comments

@lemmingDev
Copy link

lemmingDev commented Sep 28, 2018

Hi

If I start my board on battery power it keeps restarting when I call:

BLEDevice::init("ESP32"); // start bluetooth

If I start the sketch with USB cable in, it works fine
If I start it on battery power, it will bootloop due to brownout, but then if I plug the USB in, it will start working fine.

I put some debugging messages to the OLED, and it happens as soon as I call BLEDevice::init("ESP32"); , and when I check the reset cause, it returns 12 --> SW_CPU_RESET --> which a brownout

The strange thing is, if I remove the USB cable after the sketch is running fine, it will work just fine on battery power. Battery is a 1500mAh 18650 Li-ion

This happens on TTGO LORA32 V2 - I have 2 boards and both exhibit this behaviour

On TTGO LORA V1, it works fine starting on battery and I have no issues - I have 2 boards and both are fine

Can someone please offer help?

@lemmingDev
Copy link
Author

lemmingDev commented Sep 28, 2018

Just checked - same issue occurs on starting wifi --> WiFi.scanNetworks();

Does having the USB cable in for a short time charge up some kind of capacitor that prevents brownout occurring?

@lemmingDev
Copy link
Author

Hardware design error?

@corck
Copy link

corck commented Oct 9, 2018

I've the same problem as you describe, actually haven't found out whats causing it.

@lemmingDev
Copy link
Author

Doesn't look like they're willing to make a comment okn the issue...

@lyusupov
Copy link

@lemmingDev : see if this workaround (1000uF electrolitic capacitor on 3.3V power rails) can help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants