Help powering device via battery

I have tried searching for this, but haven’t found any relevant answers yet.

I have a SeeedStudio ESP32-C6 connected to the Grove Shield for XIAO with battery management chip and an SHT31 to monitor temperature and humidity.

When I connect this to my USB cable, everything works fine, but ideally, I want to connect it via battery so that I can move it around, or place it in areas without outlets.
When I try to connect with the battery, I am not able to get it to work at all. I am new to this, so not 100% sure if the issue is the battery (3.7V Li-Ion 3000mAh with jst 2mm connector), my setup, or the code.

What I have tried to to use the little L-shape connector that came with the board and plug it into the +ve and -ve terminals/holes in the expansion board, and then connect the other pins to the jst connector of the battery, ensuring that the +ve from the board is the +ve on the battery, and same for the -ve connectors.

Anyone have any hints to help me out?

Thanks!

HI there,

And Welcome here…

SO, It’s a common mistake , and happens often.
If you have "while Serial " statement in your code , It won’t run “UNTIL” you connect the Serial device (usb-c) to the computer.

Comment out the While serial ,(waiting on port) and go again . It should work on battery just fine.
Have a look at the Grove Expansion demo code and video I have on here.

HTH
GL :slight_smile: PJ :crossed_fingers:

You can use the code tags above to paste you code for comments. “</>” :backhand_index_pointing_left: paste it in there. :+1:

1 Like