Cut the JST Connector from the LiPo Battery

When cutting battery wires, be very careful that you do not cut both power and ground wires in the same snip. Cutting them simultaneously creates a short between battery power and ground and can generate a nasty shock!

Using wire cutters, carefully snip the JST connector from the LiPo battery at about 3 cm from where the wire joins the battery. Be sure to snip one wire at a time to avoid creating a short between ground and power wires. After removing it, save the JST connector for a bit later, when we'll use it in a USB C to JST power adapter.

Solder the USB-C Connector

Take the USB C breakout board (bottom left of image) and identify the pads for power and ground connections on either side of the small PCB. Tin both pads with small blobs of solder.

Next, snip through one of the battery wires, then strip and tin the end of the cut wire with solder.

It's best to solder the first battery wire before cutting the second to reduce risk of shorting the leads together. Lay the tinned end of the cut battery wire on top of the corresponding breakout board solder pad (red wire <-> Vcc, black wire <-> Gnd), and melt a bit of solder on the tip of the iron. Holding the wire in place, touch the tip of the iron to the wire as it rests on the pad. This will melt the solder and connect the wire to the pad.

Once both wires are soldered, heat up the hot glue gun, and squeeze a small dollop of hot glue over the solder connections to secure and insulate them.

Cut a small length of 1cm diameter shrink tube and slide it over the end of the connector so that it covers the wires and breakout PCB. Don't let the shrink tube extend more than a few mm over the connector itself, or it won't fit into the QT Py's USB connector.

Heat the shrink tube until it tightens around the glue and wires. Add an additional dollop of hot glue in the end of the shrink tube near the wires to provide additional strain relief.

Secure the Connector to the Battery

Electrical tape secures the connector and provides extra protection to the battery. Position the USB connector over the battery so it is oriented perpendicular to the battery's long axis and the length of the connector (but not the breakout PCB) extends past the battery's edge.

Cut a piece of electrical tape, then firmly wrap it around the connector and battery twice lengthwise.

Cut another piece of electrical tape, and slice it in half lengthwise to form two narrower tape strips.

Wrap the narrower tape pieces around the short axis of the battery, perpendicular to the first piece of tape. Attach the strips so they sit just next to the USB C connector on either side.

Each strip should wrap around the battery approximately two times. When finished, the battery and USB connector should resemble the picture at left. The tape should secure the connector to the LiPo battery so that it won't slide around easily.

This guide was first published on Oct 16, 2020. It was last updated on 2020-10-16 14:35:14 -0400.
This page (Build a USB C Clasp) was last updated on Oct 24, 2020.