Search found 19 matches

by FiwiDev
Mon Feb 26, 2024 2:54 pm
Forum: ESP32 Arduino
Topic: ESP32 with Ethernet and WiFiClientSecure
Replies: 3
Views: 7577

Re: ESP32 with Ethernet and WiFiClientSecure

You cannot use the WiFiClientSecure library with anything else--it's internally bound to the WiFi module. However, you can use a wrapper library that utilizes the exact same mbedTLS functionality under the hood--and assign it to any device library that implements Client. I personally suggest https:/...
by FiwiDev
Mon Feb 12, 2024 12:23 am
Forum: ESP-IDF
Topic: ESP32-S2: need to adjust Brown Out Level at runtime
Replies: 15
Views: 1658

Re: ESP32-S2: need to adjust Brown Out Level at runtime

Just for those who might want to tinker with the brown-out detector on their own, here is my sloppy test code for the ESP32-S2. LIKELY WILL NEED CHANGED IF YOU ARE USING A DIFFERENT ESP32 VARIANT! #include <Arduino.h> #include "hal/brownout_hal.h" // for adjusting brownout level #include "soc/rtc_cn...
by FiwiDev
Sun Feb 11, 2024 2:32 am
Forum: ESP-IDF
Topic: ESP32-S2: need to adjust Brown Out Level at runtime
Replies: 15
Views: 1658

Re: ESP32-S2: need to adjust Brown Out Level at runtime

(5 farad 3.0v cap has an ESR of ~0.130R, whereas the 20 farad 3.0v cap has an ESR of ~0.050R.) Funny that a dedicated "5.5v 5F" ultracapacitor "module" costs 2-8x that of two discrete 2.7v 5F ultracaps though. Don't forget that 2x 5F, 0.13 Ohms in series is 2.5F, 0.26 Ohms. And you'd want to implem...
by FiwiDev
Sat Feb 10, 2024 8:44 pm
Forum: ESP-IDF
Topic: ESP32-S2: need to adjust Brown Out Level at runtime
Replies: 15
Views: 1658

Re: ESP32-S2: need to adjust Brown Out Level at runtime

@ Another potential option: "5V" ultracap (2x 2.5V in series) hooked up directly to 3V3 It is worth thinking about two 2.7v/3.0v ultracaps in series...that is, on the 5v rail , not the 3.3v rail. As 2x 5F capacitors are about the same cost as 1x 20F capacitor, that would be a win on the BOM level (i...
by FiwiDev
Sat Feb 10, 2024 2:24 pm
Forum: ESP-IDF
Topic: ESP32-S2: need to adjust Brown Out Level at runtime
Replies: 15
Views: 1658

Re: ESP32-S2: need to adjust Brown Out Level at runtime

Start up and set the BOD to, say, 3.0V; when the BOD triggers (interrupt), do your shutdown/cleanup routine, then set BOD to 3.3V to reset the chip and hold it there until power comes back. If only the brown-out peripheral worked that way, I'd be in tall cotton. It's how I hoped/expected it to work...
by FiwiDev
Fri Feb 09, 2024 11:52 pm
Forum: ESP-IDF
Topic: ESP32-S2: need to adjust Brown Out Level at runtime
Replies: 15
Views: 1658

Re: ESP32-S2: need to adjust Brown Out Level at runtime

Another potential option: "5V" ultracap (2x 2.5V in series) hooked up directly to 3V3 That doesn't solve the problem of the ESP32 brown-out module being effectively useless. (Also worth noting that boost converter ICs are significantly cheaper than ultracaps: TPS61023 with true disconnect functiona...
by FiwiDev
Fri Feb 09, 2024 4:52 pm
Forum: ESP-IDF
Topic: ESP32-S2: need to adjust Brown Out Level at runtime
Replies: 15
Views: 1658

Re: ESP32-S2: need to adjust Brown Out Level at runtime

I've got a similar project, thanks for the idea about enabling/disabling the converter. In my case I think I'm going to have to add an external reset button. 15F of super-capacitor decays very slowly after the ESP32 shuts down, maybe hours around 2 volts. It prevents a normal restart when the power...
by FiwiDev
Fri Feb 09, 2024 4:42 pm
Forum: ESP-IDF
Topic: ESP32-S2: need to adjust Brown Out Level at runtime
Replies: 15
Views: 1658

Re: ESP32-S2: need to adjust Brown Out Level at runtime

Grr....this chip is guaranteeing I can't have my cake and eat it too... If I disable the brown-out resetting ability, and instead use the output ("RTCCNTL.brown_out.det" from "soc/rtc_cntl_struct.h") to control code behavior, it works quite beautifully. That is, until I drop below 1.9v (chip blackou...
by FiwiDev
Fri Feb 09, 2024 3:39 pm
Forum: ESP-IDF
Topic: ESP32-S2: need to adjust Brown Out Level at runtime
Replies: 15
Views: 1658

Re: ESP32-S2: need to adjust Brown Out Level at runtime

Quick test with the default setpoint (== 7, or 2.44v) worked perfectly as expected (lit an LED green). Power On Reset was normal...lowered the voltage down until it hit 2.40v, at which point the chip blanked out (LED went out). At 2.5v, the chip cleanly restarted with a brown-out error code (LED lit...
by FiwiDev
Mon Feb 05, 2024 3:28 pm
Forum: ESP-IDF
Topic: ESP32-S2: need to adjust Brown Out Level at runtime
Replies: 15
Views: 1658

Re: ESP32-S2: need to adjust Brown Out Level at runtime

However, if I programmatically set the brown-out detector threshold to 3.19v right before shutting off the boost converter (remember, the ultracap is 3.0v max), the ESP32-S2 is guaranteed to be held in brown-out reset until VDD reaches 3.30v. What is guaranteeing this? I would expect an immediate b...