12V/5V Power Supply Hookup Guide

Contributors: bboyho
Favorited Favorite 1


The 12V/5V (2A) power supply is great for powering a microcontroller and an LEDs. In this tutorial, we will replace the power supply's molex connector with two male barrel jacks adapters.

Power Supply - 12V/5V (2A)

5 Retired

Required Materials

To follow along with this tutorial, you will need the following materials. You may not need everything though depending on what you have. Add it to your cart, read through the guide, and adjust the cart as necessary.


You will need a soldering iron, solder, general soldering accessories, and the following tools.

Hook-Up Wire - Assortment (Solid Core, 22 AWG)

Hook-Up Wire - Assortment (Solid Core, 22 AWG)

Digital Multimeter - Basic

Digital Multimeter - Basic

Solder Lead Free - 100-gram Spool

Solder Lead Free - 100-gram Spool

Weller WLC100 Soldering Station

Weller WLC100 Soldering Station


Wire Strippers - 30AWG (Hakko)

3 Retired
Diagonal Cutters

Diagonal Cutters


Flush Cutters - Hakko

17 Retired

Suggested Reading

If you aren’t familiar with the following concepts, we recommend checking out these tutorials before continuing.

How to Solder: Through-Hole Soldering

This tutorial covers everything you need to know about through-hole soldering.

Connector Basics

Connectors are a major source of confusion for people just beginning electronics. The number of different options, terms, and names of connectors can make selecting one, or finding the one you need, daunting. This article will help you get a jump on the world of connectors.

How to Power a Project

A tutorial to help figure out the power requirements of your project.

Working with Wire

How to strip, crimp, and work with wire.

How to Use a Multimeter

Learn the basics of using a multimeter to measure continuity, voltage, resistance and current.

Hardware Overview

The power supply's pinout is shown below. The connector's molding will have numbers associated with the output to help identify the connection. You will also notice that the connector is polarized with the two chamfered corners.

Molex Connector Pinout with Labels

Pinout Table

The following table describes the molex connector's pinout and what color the wire may look like.

Molex Pinout 12V/5V Power Supply Notes
1 +12V "Red"
2 N/C May Not Be Not Connected
3 GND "Yellow"
4 +5V "Black (or White)"

Hardware Hookup

Cut the cable about 1-2 inches from the molex connector.

Cut cable

Cut into sheath with the flush cutter. Pull it back just enough so that you have enough room to work with the wires. Be careful not to cut yourself!

Cut Sheath

Strip the power supply's three wires. The wires are stranded so feel free to tin the wires by adding solder to the tips.

Tin Wires

Then cut and strip a piece of hookup wire. Solder it to the ground wire.

Refrence Ground Wire

Braid the wire and insert into a barrel jack connector. Secure the wires in the screw terminal with a Phillips head. Feel free to add some heat shrink or electrical tape to the connection at this point.

Tighten Screw Terminals

Test the Output

Power the power supply and test with a multimeter to verify the voltages. Usually power supplies are center positive so make sure that the wires were inserted correctly. Adjust as a necessary for your system.

Test outputs

Label the Output

Using a Sharpie, clearly label the barrel jack connector's voltage relative to the output. Feel free to add an additional barrel jack when not in use.

Label Barrel Jacks

Power Your Circuit!

Connect the power supply to your circuit and power it up! I personally use the power supply as a tool for basic testing. Usually the 12V side is connected to an Arduino's barrel jack. The 5V output is used for more power hungry loads such as the the RGB LED Matrix or a few meters of addressable (WS2812B, APA102, etc) LEDs.

RGB LED Matrix 32x64 Powered with the 12V/5V (2A) Power supply

Arduino Mega 2560 and 32x64 RGB LED Matrix Powered by the 12V/5V Power Supply


Certain power supplies have a lot of noise. While 12V/5V power supply works great with a microcontroller and a LED strip, it may not work as well when you attach a capacitive touch sensor to the system. The power supply lacks proper filtering and causes the potentiometer to have a lot of latency. You can try to add additional circuitry to fix it since the current power supply has a lot of noise. However, it would be easier to use two separate power supplies or a more robust power supply such as a Meanwell.

PWM Lighting Controller

Example PWM Lighting Controller from the Touch Potentiometer Hookup Guide

Resources and Going Further

Now that you've successfully got your 12V/5V power supply up and running, it's time to incorporate it into your own project!

For more information, check out the resources below:

Need some inspiration for your next project? Check out some of these related tutorials that uses the 12V/5V (2A) power supply.

RGB Panel Hookup Guide

Make bright, colorful displays using the 32x16, 32x32, and 32x64 RGB LED matrix panels. This hookup guide shows how to hook up these panels and control them with an Arduino.

Large Digit Driver Hookup Guide

Getting started guide for the Large Digit display driver board. This tutorial explains how to solder the module (backpack) onto the back of the large 7-segment LED display and run example code from an Arduino.

How to Build a Remote Kill Switch

Learn how to build a wireless controller to kill power when things go... sentient.

Building a Safe Cracking Robot

How to crack an unknown safe in under an hour.

Or check out some of these blog posts about power supplies