Now that we have our ground and voltage wires separated, we can prep them for attaching them to the JST connectors.
Secure the JST cable to the helping third hand. Using wire strippers, remove a small bit of insulation from the tips of each wire to expose them. Then, tin the tips by applying a small amount of solder to them. This will fuse the strands of wire together to prevent them from fraying.
Connect Voltage to Switch
Cut a small piece of heat shrink and slide it over the red (voltage) wire from the JST cable. Then, secure the slide switch back onto the helping third hand. Now we can connect the voltage wire to the switch by soldering it to one of the pins. Polarity doesn't matter here, so it can go on either pin. Next, we can slide the piece of tubing over the bare metal and apply heat to shrink in place. And with that, our wire is now connected to the slide switch
Prep Female JST
Next, we'll work on attaching the ground wire to the female JST connector. Secure the female JST connector to the helping third hand and tin the two pins with a bit of solder. Then, cut another piece of heat shrink and slide it over the ground wire coming from the JST cable.
Connect Ground to Female JST
Now we can connect the ground wire to the ground pin on the female JST connector. You'll need to get the polarity right, so make sure your soldering to the correct pin. The outer shell of the female JST connector has a little notch on the top surface to indicate the positive voltage connection. Solder the ground wire to the ground pin. Then, slide the piece of tubing over the exposed connection and heat to shrink in place.
Bridge Voltage Connection
Now we have the voltage and ground wires connected to their respected connectors. Next, we'll need a new piece of wire to connect the slide switch to the felame JST connector. Grab the other end of the JST extension cable (with the female connector) and measure a piece of wire for connecting the switch to the female JST connector. Cut the piece of cable and separate the two wires. We'll use the red one to keep the apperance of polairty consistant.
Prep Wire for Voltage
Using wire strippers, remove a bit of insulation from the tips and apply some solder to tin the strands of wire. After that, we'll cut two more pieces of heat shrink and slide them onto the wire. Next, we'll attach this wire to the slide switch.
Connect Voltage to Switch
Secure the slide switch onto the helping third hands. Then, solder the red wire to the remaining pin on the slide switch. Slide the piece of heat shrink tubing over the exposed pin and apply heat to shrink it in place. And with that, we're done wiring the switch! Next, we'll attach the other end of the voltage wire to the female JST connector.
Connect Voltage to Female JST
Secure the female JST connector to the helping third hands and bring the voltage wire close to the pins. Then, attach the tip of the wire to the positive pin on the female JST connector by soldering the two together. Now we can slide the last piece of heat shrink over the exposed connection and set it in place. And thats it!
There's a few ways to change the format to better fit your project. For small projects, you might find it more suitable if the slide switch connections are soldered at a right angle position. The length of the wires really do matter, so do a test fit and see if they're too long or short. If they're too long, you can shorten the wires and resolder things. Too short, and you'll have to add pieces of wire. If that's the case, you may find it easier to just swap out the short wires for a longer one.