#FeatherS2 battery help

1 messages · Page 1 of 1 (latest)

main zodiac
#

There are 3 other pins in use... LDO1 3.3v, ground, and GPIO17 to power/read a motion sensor

sleek blade
#

What is your program supposed to do?

main zodiac
#

At the moment its just proof that it works via battery - it connects to wifi then it turns on the led and reads the state of the motion sensor and ambient light sensor every 500ms

#

all of this works fine with usb-c plugged into the computer

sleek blade
#

So you are turning on the RGB led in code? And that doesn't happen on the battery ?

main zodiac
#

correct

#

the documentation isnt clear but there are two LDO bus - LDO1 handles board operation, ESP32-S2, RAM and Flash

LDO2 handles the onboard LED and not sure what else - it mentions needing to set GPIO21 to control LDO2 - my concern is that LDO2 is off by default when on battery power and maybe I am not turning it back on properly

#

pinMode(21, OUTPUT);
digitalWrite(21, HIGH);

sleek blade
#

Yes, I saw that ... catching up on the documentation, since this is not an Adafruit board

sleek blade
#

Looks like what you're doing is correct.

You could try removing the wifi code, or at least blinking the LED before connecting to the network, just in case the wifi is drawing too much power.

main zodiac
#

Yeah I have a question out to them as well - you are my first response (thank you) 🙂

#

looks like the problem was me - had in my code to wait for a serial connection (but I didnt have one when the battery was hooked up)

#

thank you for trying to solve this though!