Hi Everyone,
Just had a chat with the guys @ Core and they recommended I post in this forum.
I have a simple project Im working on and I need to add 1s liion battery management to the Xiao.
Im hoping to keep it as compact as possible and utilize the Xiaos USB C port for charging, so as to eliminate the need for two ports.
I stumbled across this here:
Which is longer than needed but a plug in module like that would be great.
We also chatted about the possibility of using something like this:
Connected to the 5v rail of the Xiao this should initiate charging when USB C is connected. It would seem however that when USB C is disconnected that the battery would power the Xiao (discharging the battery) which is not ideal. Since the project needs to be switched on and off this could perhaps be resolved by a simple inline switch off the Xiao. When off the battery is disconnected, when on the Xiao is powered and the Xiao runs the code, lighting the LEDs. There may be a need for a boost module for the LEDs (5v) as the original design uses this. However it would seem that the LEDs can be driven directly from Lipo as well so if that can be omitted that would be great.
The other concern is that the Xiao will drive a string of ws2812 LEDs and if they are also powered when USB C is plugged in Im not sure how much energy will make it to charge the battery. Would I need to overcome the load current of the LEDs and the Xiao and any net energy would then be available for the charging? Im sure there is a way this could be implemented in the coding, but coding is beyond me. I can solder just fine and follow schematics, design and do all the 3d printing, but the function of the chip and implementing different modes for LED display and smart charging is beyond me.
For reference the project is an open source LED Poi Im working on, lovingly dubbed the “Rave Grenade” The housing is designed and printed in house out of a mixture of PLA and TPU.
Any advice or pointers appreciated.
Cheers
Shanan