How to Connect a 4 Pin Connector Cable: Easy Step-by-Step Guide

Elijah Jun 01, 2026

Connecting a 4 pin connector cable correctly is a fundamental skill for anyone working with electronics, computer hardware, or DIY projects. A wrong connection can lead to device malfunction, data loss, or even permanent hardware damage, making precision absolutely critical. This guide walks you through the entire process, from identifying the pins to testing the final connection.

Before you begin, it is essential to understand the specific purpose of the 4 pin connector you are handling. These cables are not universal; they could be powering a small cooling fan, connecting a sensor to a microcontroller, or linking peripheral hardware to a computer. Taking a moment to identify the device on the receiving end will clarify the function of each wire, ensuring you do not apply voltage where signal is required.

Identifying the Pin Configuration

The most common source of confusion with a 4 pin connector is determining which pin corresponds to which function. Unlike standard USB plugs, these connectors are often keyed only by color or position, requiring careful visual inspection. You must locate the cable's documentation or trace the wiring to understand the layout before proceeding.

Correspondence of the pins on the HDMI to DVI-D to HDMI cable
Correspondence of the pins on the HDMI to DVI-D to HDMI cable

Standard Color Codes and Layouts

While specific applications vary, there are common conventions used in computer fans and sensors. Usually, the wiring follows a strict sequence regarding power, ground, and signal. You should examine the plastic housing to see if a diagram is printed, or look for a missing "key" or tab on one side, which prevents incorrect insertion.

PIN 1 Color Function
PIN 1 Red Positive Voltage (5V or 12V)
PIN 2 Yellow Data Signal or Secondary Power
PIN 3 Green Data Signal or PWM Control
PIN 4 Black Ground (GND)

Preparation and Safety

Safety is the non-negotiable first step in any electrical work. Ensure the device is completely disconnected from any power source before you touch the connector. Working on a static-free surface and wearing an anti-static wrist strap can prevent electrostatic discharge from destroying sensitive integrated circuits, especially on motherboards and microcontrollers.

Gather your tools beforehand. You will need the cable, the device, a pair of needle-nose pliers, and potentially a small screwdriver if the connector is locked in place. If you are splicing wires, a wire stripper and crimping tool will be necessary to maintain a secure, professional-grade connection rather than a fragile twist.

Connect 3.5 mm Headphone (4 pins) to Stereo audio jack | Mobile to woofer system connector cable
Connect 3.5 mm Headphone (4 pins) to Stereo audio jack | Mobile to woofer system connector cable

The Connection Process

With the device powered off, align the connector with the port. Most 4 pin connectors are designed with a specific orientation; look for a beveled corner or a missing pin on the socket. Attempting to force the connector is a common mistake that bends pins and ruins the port. If it does not fit easily, stop and double-check the alignment immediately.

Once aligned, gently press the connector straight down until it clicks into place. You should feel a firm resistance as the retaining clip snaps shut. If you are attaching a loose cable to a breadboard or terminal block, ensure the exposed wire is stripped to the correct length and twisted tightly to prevent fraying, which can cause intermittent connectivity.

Verification and Testing

After the physical connection is complete, do not immediately power the device to full capacity. If possible, use a multimeter to verify that the voltage levels match the expected output for the device. Place the probes on the corresponding pins (Red to Red, Black to Black) to ensure there are no shorts or reversed polarity.

Part 1: Connector and Pins
Part 1: Connector and Pins

Finally, power on the device and observe its behavior. Listen for unusual noises, watch for excessive heat at the connector, and check if the intended function is being fulfilled. If the device fails to operate or behaves erratically, you must disconnect the power immediately and re-evaluate the wiring to correct the issue.

4Pin 5Pin 6Pin Core Male Female Connector Car DVR  Rear View Camera Extend Cord DIY Cable For Car
4Pin 5Pin 6Pin Core Male Female Connector Car DVR Rear View Camera Extend Cord DIY Cable For Car
an electrical wiring diagram showing the different types of wires and how they are connected to each other
an electrical wiring diagram showing the different types of wires and how they are connected to each other
a person is holding a piece of white wire with colored wires attached to the end
a person is holding a piece of white wire with colored wires attached to the end
Apple Lightning adaptive cable
Apple Lightning adaptive cable
1/5 piezas Conector hembra USB Tipo-C de 2/4/6 pines con ranura para tarjeta, cable DIY, puerto de
1/5 piezas Conector hembra USB Tipo-C de 2/4/6 pines con ranura para tarjeta, cable DIY, puerto de
Câble de développement à tête unique mâle de type C, câble de bricolage avec fonction OTG,
Câble de développement à tête unique mâle de type C, câble de bricolage avec fonction OTG,
the wiring diagram shows different types of wires and connectors that are connected to each other
the wiring diagram shows different types of wires and connectors that are connected to each other
two hands holding wires connected to each other
two hands holding wires connected to each other
an image of different types of wires and connectors on a table with the text below it
an image of different types of wires and connectors on a table with the text below it
MyPc Support
MyPc Support
an electrical wiring diagram with wires and connectors
an electrical wiring diagram with wires and connectors
the diagram shows how many different components are connected to each other, and what they can be
the diagram shows how many different components are connected to each other, and what they can be
the wiring diagram for an electronic device, including two different switches and one switch box
the wiring diagram for an electronic device, including two different switches and one switch box
the wiring diagram for an invertible device with headphones and wires attached to it
the wiring diagram for an invertible device with headphones and wires attached to it
How to Crimp and Connect SPADE Connector - Quick Disconnect
How to Crimp and Connect SPADE Connector - Quick Disconnect
How to Make an Ethernet Cable! - FD500R - $24 Crimp Tool Demonstration
How to Make an Ethernet Cable! - FD500R - $24 Crimp Tool Demonstration
Crimping BNCs onto RG59
Crimping BNCs onto RG59
Prise USB femelle type-c, 4 broches, 2 broches, mâle et femelle, alimentation, ligne de données,
Prise USB femelle type-c, 4 broches, 2 broches, mâle et femelle, alimentation, ligne de données,
alguien sabe el pinout de vga a video compuesto?
alguien sabe el pinout de vga a video compuesto?
How to put on BNC Connectors
How to put on BNC Connectors
how to connect bnc connector to rg6 cable|how to connect bnc connector to coaxial cable(urdu)
how to connect bnc connector to rg6 cable|how to connect bnc connector to coaxial cable(urdu)
JST XH 2.54mm 2P 3P 4P 5P 6P Male Connector  Extension Cable Assembly
JST XH 2.54mm 2P 3P 4P 5P 6P Male Connector Extension Cable Assembly