-
1Step 1
Find an old broken USB component, such as a keyboard or mouse.
Take it apart and if possible, preserve the connecters to avoid having to solder more than nessisary.
Find a small plastic container, a pill bottle would likely work fine. If it's sturdy enough, you may want to drill it to save time, but if it was like mine and brittle as hell you'll likely have to use a leather punch or drill bit to do it by hand. Generally, just use common sense, wouldn't want the item you're drilling to shatter and spray sharp plastic shards around the room.
For my project, I chose to use banana plug terminals, they're cheap and you should be able to get them at most hobby electronic or audio stores. The reason for this choice is twofold: first, it allows you to have pole terminals inside that are easy to access, second, the banana plugs actually unscrew so you can place bare end wires inside and tighten to have a stable connection.- Mark your holes on the container according to your parts
- Drill them in, taking care not to make them too big or too small
- if your usb cable end has a connector, fit it in first to save hassle later, if not, it can wait. Whenever you pull it through, tie a knot to prevent it from slipping back out, then pull it a bit farther so you have adequate room to work.
- Place your connector and switch in the holes you drilled and clean up the edges as neededWire the 5v of the usb to one end of the switch, then the other end of the switch to the banana positive. Goes without saying but you shouldn't have power connected yet
- wikipedia is a great reference for wiring reference
- That said, a multimeter works just as well
- Wire the ground of the USB to the ground of the banana
- Solder the LED and Resistor together and wrap them around the internal poles of the banana terminal. Keep in mind the direction of the LED to current flow. This step may take a bit of time depending on how small your case is and how big your fingers are.
- Double check everything is wired properly
- Clean up and secure the connections, pulling the usb cable back to the knot you made earlier and placing the lid back in its proper place. A little tidying up goes a long ways.
- Connect to a USB charger to test it, flipping the switch to on should suffice, if the LED turns on, you've likely wired it correctly
- Build something, 555's and 74 series logic chips are all prime targets here, just make sure to have fun with it.
NOTE: this setup has no protection, so never plug it in to a computer, always use a spare usb charger on some form of surge protection.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.