USB charger for motorcycle, so your devices never run out of battery.
PARTS:
Motorcycle with 12V battery
Car charger socket (if you have one).
Fuse 20amps
Switch
Wire
Soldering Iron
IF YOU DON'T HAVE A CHARGER YOU'LL NEED THESE EXTRA PARTS:
Transistor 7805
Capacitors 1μF and 10μF
Resistor 1kΩ
LED any color
More Wires and soldering iron
This is how you wire the whole thing if you don't have a car adapter.
If you do, this is the polarity for the charger:Sketch:
To use it you press the switch (motorcycle started), and press it back after so the battery won't discharge. And the LED should turn on when it is ready to be used.
This is how it looks finished:
ENJOY THE ROAD!