Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: Charging a LiPo Battery using the teensy's micro USB input

  1. #1
    Junior Member
    Join Date
    Jun 2020
    Posts
    4

    Charging a LiPo Battery using the teensy's micro USB input

    Would like to know if there is anyway to allow the micro usb port to be used for charging aswell as interfacing with the Teensy.

  2. #2
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    7,422
    You might take a look at the Tindie product: https://www.tindie.com/products/oneh...for-teensy-31/

    There are probably also threads up here on the forum talking about different setups.

  3. #3
    Senior Member+ MichaelMeissner's Avatar
    Join Date
    Nov 2012
    Location
    Ayer Massachussetts
    Posts
    3,829
    Quote Originally Posted by chuckpea12 View Post
    Would like to know if there is anyway to allow the micro usb port to be used for charging aswell as interfacing with the Teensy.
    There are many different ways to do this.

    KurtE mentioned one board. The guy who makes them, actually has two different boards:


    Both of these boards require you to cut the pad underneath the Teensy that connects the USB to VIN. They provide a convenient on/off switch.

    The author designed them to be used under the Teensy, but I don't tend to like doing it that way, because I tend to have Teensy's with the pins going down, and it interferes with using it in breadboards, etc. I tend to mount the board on top of the Teensy, sometimes using stacking headers, sometimes just soldering it. They do work mounted above the Teensy, but the LEDs for charging might be hard to see (generally you can see the reflection).

    One problem that I have with these boards is the JST connector is not really stable if you just solder it in the board. If you want to take the battery off, and put it on, you might find yourself having to reattach the JST connector every so often (assuming it doesn't tear of the solder pads).

    Adafruit made this board for their Trinket Pro, Trinket M0, and ItsyBitsy boards. Like the previous boards, you need to cut the VIN/VUSB pad. You can attach an on/off switch to the charger.


    If you are using the Teensy LC, 3.2, 3.5, or 3.6, be sure to use the ground pin next to pin 0, and not the analog ground pin in between VIN and 3.3v. On the Teensy 4.0 and 4.1, there is no difference between the two ground pins.

    If you are using a Teensy 3.2 or LC, my favorite method is the Adafruit Feather adapter. You do not have to cut the solder pads (the adapter will charge the battery if there is power on VIN, and if there is no power on VIN, it will use the battery). Unlike the above boards, this board will give you 5v on VIN if you have the USB connected, and battery voltage (3.7-4.2v) when running on battery. Pin A7 has a voltage divider that allows you to monitor the charge of the battery. The JST connector is solidly attached to the board, and it is a lot easier to attach and detach the battery.
    [list][*]
    • https://www.adafruit.com/product/3200[/url]


    If you have a Teensy 3.5, 3.6, 4.0, or 4.1, you need to have some modifications in how it is connected. I put the information in the unofficial Teensy wiki:

    If

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •