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 event halts the system, when the voltage increase it doesn't resume working. #9587

Open
1 task done
brunofgc opened this issue May 3, 2024 · 2 comments
Open
1 task done
Labels
Type: Question Only question

Comments

@brunofgc
Copy link

brunofgc commented May 3, 2024

Board

ESP32-C3 using Arduino

Device Description

It's a module soldered into my own device.

Hardware Configuration

Just a Modem SIM800L conencted in.

Version

v2.0.14

IDE Name

Arduino IDE

Operating System

Windows

Flash frequency

40MHz

PSRAM enabled

yes

Upload speed

115200

Description

Hi there!
I'm using the ESP32-C3 with the Arduino Framework.

The system uses a battery as backup for AC Power Source, and it works okay. However, when the battery drains too much, the system stops working. Additionally, when the AC Power is restored, it recharges the battery, but the system doesn't resume working. I need to completely turn off and turn on again in order to back working. "Hardware Reset".

Do you know of any system functions or calls that can detect when the system halts/fails for any reason? Perhaps I could detect a "brownout event" and take some actions accordingly?

Thank you in advance.

Sketch

It's a very big program. I'll be making a small one to try reproduce this error and post here soon.

Debug Message

I couldn't capture it is happening on clients.

Other Steps to Reproduce

Decrease the voltage until it stop working, and then get the voltage back to an operating range.

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@brunofgc brunofgc added the Status: Awaiting triage Issue is waiting for triage label May 3, 2024
@me-no-dev
Copy link
Member

There are chips out there (I think they were called "voltage supervisors") that would pull the ESP reset when voltage drops to certain level (must be higher than what the ESP will trigger as too low) and will release the pin once voltage goes above that level again. Such solution is known to work in your exact case

@Jason2866 Jason2866 added Type: Question Only question and removed Status: Awaiting triage Issue is waiting for triage labels May 4, 2024
@Quindus
Copy link

Quindus commented May 26, 2024

Must be issue with the Power. When you using SIM 800L it required 2 Amps while trying to connect network. Esp 32 required 500 mA while connecting to wifi. At the peak your power supply may stuck to produce enough power. So it drops voltae for some milli seconds. Then you got brown out.

Try power up the SIM800L odulw seperately. This may work.

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

No branches or pull requests

4 participants