I would like to run the Xiao and a small vibration motor from one battery and utilize the XIAOs charging capabilities.
Diagram A - I have it working when powering the Xiao via USB with a battery providing power to the motor. Since the battery is not connected to the Xiao battery connectors there is no battery charging.
Diagram B - Will this work? In the end this all needs to be powered from the battery and the plugged into USB it charges the battery. What am i missing, will i fry something?
I’m not an electronics person, my concern is when the USB-C is plugged in to charge the battery if there is a chance it could somehow damage anything. I guess I can wire it up and see.
Hi there,
B looks good but , I would move the switch so the battery is always connected, thus just shutting down the motor FET combo.that way leaving the USBc plugged in, the battery charger will better manage the battery.
otherwise if the power switch is off the battery doesn’t get charged , even if USBc is connected.
My .02
HTH
GL PJ
Hi there,
To make it all the way off I unplug the batteries. It’s why I always put a JST tail on the Xiao for stuff like this.
Otherwise I LIKE the Xiao/Grove expansions with there power switches.
GL PJ
do you know which pin the XIAO Grove EB powers> does it power regulated 3v3 or 5v?.. i assume 3v3 right i would assume it takes power in on 5v and returns it on 3v3… i think that is part of the reason you cannot power via 5v… atleast some say so
Hi there,
Here is the schematic , they use the switch to just disconnect the battery, and when the USB is connected the PMIC supply’s the Vsys and 5V that makes the 3.3v pin.
HTH
GL PJ
In my case this will be sealed in a case so disconnecting the battery is not an option. I still want to minimize battery drain when not in use, that’s why I though the switch on the battery lead was a descent option, the downside being you have to switch it on to charge. That’s not a deal breaker for my case.
I’m also trying to keep it as small as possible, so I’d rather not add any expansion boards if I don’t have to.
I need to learn more on controlling the sleep modes and what they effect and maybe using a momentary button rather that a latching On/Off switch to enter and exit sleep mode.