USB to 5VDC wiring diagram
I can never remember what the pinout is to get 5VDC from a male USB-A connector, and being color-blind having a true wiring diagram helps a lot. Sure I could Google and Wikipedia search it, and combine the results, but hey, why not use my blog as a repository of stuff I’ve learned, right?
Here is a link to a PDF document including pictures and data polarity/voltages. Basically, you want pins 1 and 4. Looking at the male connector head-on, pin 1 is the far right, and pin 4 is far left. Pin 1 is your 5VDC (VCC) and the associated wire should be red, and pin 4 is GND and the associated wire should be black.
Now, gonna go make my girlfriend a USB-power cable for her new digital picture frame (it can only be powered by 5VDC power supply, no battery or USB…you believe that?)