I have a PCB that needs 5V input and I want to plug my contraption(PCB + battery in a housing) into a USB power receptacle. The housing has a male USB A plug popping out perpendicular to the PCB and I am trying to look for a connector to connect the male USB A connections to my PCB. I am not entirely sure what such a connector is called. Do you have any suggestions on how to get power to my PCB from the USB? EDIT: This illustrates it better I guess
Okay. The vertical-mount Type-A plug doesn't exist to my experience. You have two basic options:
- Use a right-angle cable, cut it, and solder wires to your PCB. You may need some mechanical attachment of the right-angle end to your enclosure, glue or something.
- Use a surface-mount Type-A plug,
and fit it vertically. You might need to place your PCB closer to the bottom wall of your enclosure, and make some mechanical reinforcement like an additional square metal housing, solder the housing to PCB, and to few spots on the USB plug shroud.
If you are not using data communication then how you connect the plug to PCB is absolutely not important, assuming the wires you use can carry the current and are flexible enough to not break when plug moves in-out.
If you don't want to simply solder the wires to PCB you can use any connector salvaged from old electronic devices, for example cooling fan plug and corresponding pin header from motherboard.
As for actual plug, I'd like to suggest using any cheap USB memory stick like on the photos below. Pop it open, solder your wires, make sure they move freely. Then glue the memory stick inside your enclosure so that it becomes part of the "contraption". This way you won't have to invent your own "popping-out" mechanism.