Use an Adafruit LiPoly/LiIon Backpack Charger with a Teensy
Used in this case
Note
This LiPo battery charger add-on for Teensy 3.1 has the pins at the right place for the Teensy, could be a better choice in most case. In my case I needed to put in on the side of the Teensy and wanted something as small as possible and the big hole in the Backpack was good for keeping it in place.
How To
- Separate VIN from VUSB on the Teensy as explained here.
- OPTIONAL
I personally used it with a switch to turn the project off. For that you need to separate the switch pins on the Backpack. Reefer to here for more details about adding a switch.
-
Connect Teensy VUSB pin to the 5v pin from the Backpack
- Connect
BAT pin from the Backpack to the VIN from the Teensy
-
Connect the GND pin from the Teensy and the G from the Backpack together.
- Plug your LiPoly/LiIon compatible battery in the Backpack Charger.
- Plug the USB cable in the Teensy in a USB charger or a USB port. A LED on the Backpack Charger should light. You are now charging your battery