Straight Throught Cable Color Code Wiring Diagram

This article shows a Straight Through or straight Cable Color Code with  Wiring Diagram , In computer networking field, Straight Through Cables are used to connect different networking devices with each other. You have to use a Straight Through Cable while connecting a

  • Router to Switch
  • PC to Switch

Majority of patch cables used in networking world these days are Straight Through Cables.
UTP (unshielded twisted pair) cables are used to make Straight Through Cables. Following is diagram of how UTP cable looks like

Both end of these UTP cables are truncated at RJ45 (Registered Jack 45) connector.
We can see from above diagram of UTP cables that there are eight small wires in it, these eight small wires are twisted in four pairs. Each pair has different color scheme. In traditional 10/100 Mbps networks only two pair of wires are used for sending and receiving, while in new gigabit standard all four pairs are used for data transmission.
To understand how these types of cables work, it's important to have sound understanding of Straight Cable Color Code.

Standards of Straight Cable color code :

There are two color coding standards for straight through cables, these are EIA/TIA 568A & 568B. These color coding standard tell which color is connected to which end. We now look at details of these wiring standards.

T568A Color coding Standard

This color coding standard is not widely used these days. Below is diagram of straight  cable color coding based on 568A  standard.

straight through cable color code wiring diagram a

Next we illustrate sending and receiving pins in 568A color coding standard.

Pin No   Wire Color Transmitting/Receiving
1       White/Green Transmitting
2               Green Transmitting
3         White/Orange Receiving
4                 Blue -
5          White/Blue -
6              Orange Receiving
7        White/Brown -
8              Brown -

 T568B Color coding Standard

This is the most widely used color coding standard of current era. Almost all  Straight through cable these days are following T568B color coding standard. Below is straight through cable color code and  wiring diagram that is using 568B standard.

straight through cable color code wiring diagram b

Next we illustrate sending and receiving pins in 568B color coding standard

Pin No Wire Color Transmitting/Receiving      
1        White/Orange Transmitting
2             Orange Transmitting
3      White/Green Receiving
4                 Blue -
5        White/Blue -
6                Green Receiving
7     White/Brown -
8              Brown -

It's called straight through cable since all wires are connected at same pins on both sides of wires. You can see that in both figures of 568A as well as in 568B.
There is not much difference between 568A and 568B, you can see from above diagrams that only green and orange pairs are swapped, rest combination remains same.
An important point to remember is that whether you use 568A or 568B, make sure both ends of wire is following same standard. Which means if one end of wire has 568A standard, other end must also have 568A and vice versa.

Automatic Medium-Dependent Interface Crossover (Auto-MDIX)

Today's devices are getting intelligent, due to introduction of Auto-MDIX standard. With Auto-MDIX, devices can automatically adjust sending and receiving pins. So any wire can be used for connecting same or different devices.

Are You Interested in a :

Crossover Cable Color Code Wiring Diagram

look for a Crossover cable color code with wiring diagram  for rj45 Crossover Cable or Cross Cable is type of Ethernet Cable that is used to connect similar type of networking devices, in contrast to Straight Through Cable which is used to connect different devices. For instance, you need cross cable if you are connecting

  • PC to PC
  • Switch to Switch
  • Router to Router

To understand Crossover Cable working, it's important to understand the crossover cable color code i.e. pattern in which wires are connected to RJ-45 connector. We start by looking at the diagram.

Crossover Cable Wiring Diagram

We can see in above diagram that left side is following 568B color coding and Right end is following 568A color coding.

Crossover Cable Color Code TIA 568B

Following Table illustrates TIA 568B color coding scheme which is applied on left end of cable in Crossover Cable Wiring Diagram.

Pin No Wire Color       Transmitting/Receiving
1        Orange/White       Transmitting
2          Orange               Transmitting
3       Green/White       Receiving
4          Blue                    -
5      White/Blue                    -
6       Green               Receiving
7      White/Brown            -
8       Brown                    -

Crossover Cable Color Code TIA 568A

This color coding standard is applied on right end of cable in Crossover Cable Wiring Diagram .

Pin No   Wire Color Transmitting/Receiving
1        White/Green Transmitting
2         Green         Transmitting
3      White/Orange Receiving
4            Blue              -
5     White/Blue              -
6       Orange         Receiving
7     White/Brown      -
8       Brown              -

To make a crossover cable one end of UTP cable has to follow either TIA 568 A or B Color coding, while other end must have different color coding. In short, both ends must have different color coding schemes. Use following guide lines while making cross cable.

  • If one end of cable has 568A color coding then other end must follow 568B color coding. 
  • If one end of cable has 568B color coding then other end must follow 568A color coding.

This is different than straight through cable in which both end of cable must have same color coding standard at both end.

Why to Use different oF crossover cable color coding

As in UTP there are eight wires twisted together in four pairs. In Fast Ethernet pin 1 and 2 of RJ-45 connector are reserved for transmission while pin 3 and 6 of RJ-45 connector are reserved for receiving. As pin 1 is transmitting so it cannot be connected to pin 1 at other end since that too is transmission mode. It follows that pin 1 should be connected to pin 3, which is in receiving mode.
To sum up pin 1 and 2 from device A are connected to pin 3and 6 of device B, while pin 3 and 6 of device A are connected to pin 1 and 2 of device B.
It's named crossover cable since wires are cross connected at both ends of RJ-45 connectors

Automatic Medium-Dependent Interface Crossover (Auto-MDIX)

It's important to have good understanding of color coding schemes in crossover and straight through cable but today almost all networking devices support Auto-MDIX, by which devices can automatically detect which cable is required and switch to it automatically. So if you are connecting similar devices and you only have straight through cable, you can use it.

GFCI Outlet Wiring Diagram

The pic below shows the electrical outlet GFCI wiring diagram and step how to wiring multiple outlet gfci  (round-fault circuit interrupter) with color code

What is GFCI Outlet ?

What is GFCI so it means “ground-fault circuit interrupter” which works mainly as to protect human or device also from connected to electric shock from electrical power. It is also called Residual Current Device (RCD) that shuts off an electrical power circuit detecting that undesirable path is following by electricity like through water or any living thing.

Also we have to define GFCI from NEC as “a device or instrument as shown below works for protection of any connected personnel which disturb the function of electricity to some circuit or another device”.

Purpose of GFCI :

Ground Fault Circuit Interrupter GFCI is a device which secure person from electric shocks from faulty currents in the electrical devices we use in our daily lives. It works by comparing the input current on the ungrounded side (red-wire) to the output current on the neutral side (black-wire).

GFCI Outlet Wiring Diagram :

In the GFCI mainly two wires connect as also shown in a diagram, the current flowing from the source and coming back are some due to current laws. So GFCI designed as checking the difference between the current leaving and returning through current transformer of the GFCI to protect device exceeds 5mA. The wiring diagram also shown below as follow;

gfci outlet wiring diagram electrical installation

This shows 2-wire 14 gauge cable with grand wire having supply of power supply and connected GFCI. So, the solid-state-circuitry opens the switching contacts and de-energizes the circuitry as shown in the figure2 also. This will happens when GFCI is in on-conditions and when it fails to work the switching contacts remain closed and the device still giving the power with zero protection as to us. So also dangerous when fails. While damages occurs from voltage sparks from lighting and other transients.

 GFCI and light switch Wiring Diagram :

We are now studying wiring of GFCI and how it connects to light the bulb as also shown in figure below;

gfci outlet electrical wiring diagram with light 2 way switch

SO there is a power supply supplying power to the circuit while black wires shows ground currents and white shows the non-grounded wires or called HOT wires. While green wires are for removing faulty currents to ground for device protection. As 2-wire cable with ground connect to the other side of GFCI so connected both the protective sides of GFCI to the device for protection of both a device and a person using it from any circumstances and shock from electricity as shown above in the figure above.

Multiple GFCI Outlet Wiring Diagram :

We have two types of wirings as single wiring as discussed above and another one is multiple GFCI wiring and we also attach the diagram to show how the wiring is done by designer or electrical engineer.

multiple gfci electrical outlet wiring diagram

We applied power supply either 230V/50Hz or 120V/60Hz where white is neutral and black is called “Hot” wire or calls non-grounded wire which connected to one terminal of GFCI while earthed-ground also shown in green wire which will protect our device from any non-relevant faults from power supply as given. GFCI is able to measure the fault current and sense the ground fault which is actually interrupted by GFCI.

Multiple GFCI  Outlet Wiring Diagram :

multiple gfci outlet wiring diagram electrical

The above diagram shows the GFCI wiring to Multiple Outlet as in white while the pictures are same.  One side of the GFCI connected to the ground (neutral wire as shown white in the diagram) and another side to the high potential (hot wire shown as black in the diagram) shows as in black color.  The socket of GFCI indicates as one pair in each for protection of any circumstances because of any switching-impulse withstand voltage or any switching-impulse withstand voltage while the timing for short-duration power frequency withstand voltage is from zero to 60 seconds. 

Conclusion on GFCI protection:

Press the test feature of the GFCI protection device to ensure it works. These are excellent devices when properly wired. However, never assume a GFCI protection device is operational unless you test it. The good process is to check a GFCI is to use a circuit tester that has its own GFCI test button and plug in the tester and push its test button. If the power goes off, the GFCI is working. Press the reset button to restore power as shown in figure1 also.

Are You Interested in article :

Electrical cable Wiring Diagram Color code

 Look for a house Electrical wire color code guide: This article describes the new electrical cable color code wiring diagram ac and dc in United States,uk,Canada,Europe for single phase or three phase
In Electrical engineering, different wires have different color codes. This makes it easy to differentiate and identify each wire .In diagram the live wire has a different color from the neutral wire and the earth wire. It is also useful for separating the three phases for three phase connections. And most importantly, it is good for safety purpose. The properties of one wire could be different from the properties of another and misplacing connections could be fatal to personnel handling the connections. The color coding convention in Europe is different from that of the United States, canada , united kingdom and australia.

Electrical Wire Color Codes In Europe :

In Europe, the standard used is specified by the IEC (International Electrotechnical Commission). The wiring standard was initially published as IEC 60446 but in 2010, it was merged into IEC 60445.

electrical cable color code wire diagram in europe live phase neutral

 - For single phase wiring, the new European color code use

  •  Brown color for live cable,
  •  Blue color for neutral cable 
  • Striped green and yellow color for the earth/ground cable.
 - For three phase wires color code:

  • Brown color is used for line 1, 
  • Black color is used for line 2 
  • Grey color is used for line 3.
 The new European color code takes account of proper phase rotation. The new standard was adopted to prevent people from confusing the protective earth wire with other electrical wires. It also protects people that have red-green color blindness.  In the old IEC color code, all lines in the three-phase supply were black or brown and that caused so much confusion.

The United Kingdom now use the new IEC color code format. The United Kingdom used its own color code till 2004. In March, 2004, the UK adopted the IEC color code.  

Electrical Cable Wiring diagram in the United States :

There are two color codes available in the United States for different voltages. For 120/208/240 V single phase, the live cable is lack or red, the neutral cable is white colored while the protective earth can be green, bare or striped green and yellow in color.  For three phase 120/208/240 V, the first phase is colored black, the second phase is colored red while the third phase is colored blue.

electrical cable color code wire diagram in europe live phase neutral

For 277/480 V AC power, the neutral power is colored gray while the earth is colored green, bare and striped green and yellow. The phase 1 is colored brown, phase 2 is colored orange, the phase 3 is colored yellow. The 277/480 V AC systems are usually used for industrial equipment and motors.

electrical cable color code wire diagram usa live  neutral

Bottom Line

The color code convention for each region should be followed. It will prevent electrical shocks due to wrong identification and inappropriate connections. When you are faced with a tangle of wires and you need to do or repair some wiring, take note of the house electrical color coding wiring of that country.

Uk electrical  power cable color code wiring diagram :

The United Kingdom and Europe use the same color coding while the United States has its own color coding convention. Indicator lights on panel boxes usually use this same color coding convention. It must also be noted that older connections may use different color codes

 Uk electrical  power cable color code wiring diagram
 -  single phase wiring, the united kingdom color code :
  •  Brown color for single phase
  •  Blue color for neutral cable 
  • Green with Yellow Stripe for the earth/ground cable.
 - three phase wires  :
  • Phase 1 - Brown
  • Phase 2 - Black
  • Phase 3 - Grey
Canadian electrical cable color code wiring diagram :

Canadian electrical cable color code wiring diagram

- Single phase canadian color code
  • Single Phase 1 - Black or Red (2nd hOT)
  • Neutral - White wire
  • Ground - Green with Yellow Stripe
- Tree Phase canadian color code :
  • Phase 1 - Red wire
  • Phase 2 - Black wire
  • Phase 3 - Blue wire
  • Neutral - White wire
  • Ground - Green with Yellow Stripe

Are You Interested in article :

Trailer Light Wiring Diagram 4 Pin,7 Pin Plug

This article shows wiring diagram for trailer light plug 4 ,7 pin connector and step how to wire a trailer harness with color code ,there are some intricacies involved in wiring a trailer. Some trailers come with different connectors for cars and some have different wiring styles. If you follow our trailer wiring diagrams, you will get it right. Some connectors are 4-pin while some are 7-pin.

4 pin trailer light wiring diagram :

4-Pin Connectors

4-pin connectors are the standard used for most trailers. Many trailers have three circuits. The circuits are for left and right brake lights and running lights. Three wires are for the trailer while the last wire is the ground wire. The ground wire should be run from the frame of the vehicle to the trailer. There must be a very consistent metal to metal contact for the ground wire. So, do not run the wire from the bumper or the hitch of the car. The 4-pin standard flat style connector has four contacts with a male pin on the vehicle side for the ground.

Wiring the 4-pin connector

You will need a volt meter and a cutting plier to splice the wires. Turn on the running lamps of your vehicle. Probe the wiring to determine which of the wire that leads to the taillight is for the running lamp. Splice this wire and bring it to the vehicle end of the connector. The connection diagram below will tell you the exact place to place the wire. Repeat the process above for the left turn signal and the right turn signal lights

4 pin trailer plug  light wiring diagram color code

Thir is standard color code for a trailer light 4 wire :

  • Brown wire:  Tail light and marker light
  • Green wire :  Right Turn Signal
  • Yellow wire:  Lift Turn Signal
  • White wire :  Trailer Ground

7 pin trailer light wiring diagram :

7-Pin Connectors

7-pin connectors are needed because some trailers need extra connections due to the fact that they have multiple circuits. There are pins for electric trailer brakes, auxiliary power and reverse lights.

7 pin trailer plug  light wiring diagram color code

Thir is standard color code for a trailer light  7wire 
  • White wire :  Trailer Ground
  • Brown wire:  Tail light and marker light
  • Green wire :  Right Turn Signal
  • Yellow wire:  Lift Turn Signal
  • Blue wire    :  Trailer  Brake
  • red wire      : Auxiliary Power

Extra Notes

  • It is good to smear some dielectric grease on the connectors so that the pins will not be corroded by moisture.
  • Ensure everything is properly tightened and fixed so you do not have a loose connection. It will also save you the stress of troubleshooting later on.
Are You Interested in article :

How To Wire An Electrical Outlet Wiring Diagram

How to wire an electrical outlet / receptacle with wiring diagram Wiring an electrical outlet / receptacle is quite an easy job. If you are fixing more than one outlet, the wiring can be done in parallel or in series.


how to wire Multiple electrical Outlet receptacle In Parallel serie  Wiring Diagram

How To Wire An Electrical Outlet :

  • Switch off the mains: You should switch off electrical power from the mains to avoid electrocution. One can’t be too careful. 
  • Run the cable from the circuit breaker to the location of the electrical outlet: Your cable should be long enough to reach each socket. The cable must also be strong enough to support the kind of load you want it to carry. 
  • Strip/peel off the cable before it enters the socket box: You can push in the cable to the box before screwing or nailing the box to the wall. Ensure the cable you feed in is long enough to reach the terminals of the socket. 
  • Connect the wires to the receptacles: The neutral, earth and live wire should be connected to the box. The earth wire is usually green/yellow while the live is usually pink/red. The neutral could be white or black. But these color schematics are subject to change depending on your country. The socket receptacles are usually marked with signs to indicate the position that each wire should go. 
  • Multiple outlets: To wire multiple outlets, follow the circuit diagrams posted in this article. 

Multiple Outlet In Serie Wiring Diagram :

For wiring in series, the terminal screws are the means for passing voltage from one receptacle to another. Any break or malfunction in one outlet will cause all the other outlets to fail.

how to wire Multiple Outlet In serie electrical Wiring Diagram

Multiple Outlet In Parallel Wiring Diagram :

When wiring receptacles in parallel, the wires are spliced to a pigtail that is connected to every outlet. The voltage at each outlet is not dependent on the other outlets.

how to wire Multiple Outlet In Parallel electrical Wiring Diagram

Electrical Outlet with light fixture wiring diagram :

electrical outlet 2 way switch wiring diagram how to wire light with receptacl

NOTE :  white wires marked with a black circle are HOT not Neutral 

Electrical outlet with to way switch in switch box wire diagram:

2 way switch with electrical outlet  wiring diagram how to wire outlet with light switch

Double outlet in one box wiring diagram :

double outlet box wiring diagram in the middle of a run in one box

Outlet controlled by switch in one box wire diagram :

wiring  outlets controlled 2 way switch  in one box diagram

Are You Interested in article :

Ceiling Fan Wiring Diagram Light Switch

This article contains the wiring diagram for a ceiling fan and a light kit. The wiring arrangements for electrical source at the switch and at the ceiling fixture. It could be a single switch wiring or double switch wiring.

Every wire connected to a switch are hot wires. The neutral wires and ground wires are not connected to the switch. Usually the hot wire to the fan in a fan/light combination kit is black while the blue wire is usually for light. Then the white wire is the neutral which is connected to source neutral at the source or with the use of a splice in the switch box. The white wire can also be used to carry current if needed. When it is used to carry current, it should be wrapped with an electrical tape to indicate it as hot. The ground wires will be green and/or bare copper.  The ground wire should be spliced open with a short piece of wire and connected to every device and outlet box with a grounding terminal.

DANGER: The mains must always be turned off before any work is started.  To avoid electrocution, the supply to the circuit must be dead. Turn the power off yourself and use a tester screwdriver to be extra sure. To be forewarned is to be forearmed. One can’t be too careful when it comes to working with electricity.

 Ceiling fan Single Switch Wiring Diagram

This wiring method is used when the power source is from the switch and one wants to control the fan and light from that single switch. The hot source is connected directly to the bottom terminal on the switch. From there, two wires run to the ceiling fan. The neutral source wire is spliced to the white cable wire in the switch box and to the white fan wire at the other end. The black cable wire is connected to the top terminal on the switch and spiced to the black and blue wires at the fan at the other end

ceiling fan wiring diagram single switch how to wire a ceiling fan light

 Ceiling  Fan and Light switch wiring diagram :

The line voltage enters the switch outlet box and the hot wire will connect to every switch. Switch hots and line neutral will connect to a 3-wire-cable that travels to the fan/light outlet box in the ceiling. The light kit will switch to the red wire of the 3-way cable and the fan control switch will connect to the black wire. 
In this diagram, the black wire of the ceiling wire is for the fan and the blue wire is for the light kit.

ceiling fan wiring diagram double switch fan and with light switch how teo wire a ceiling fan how to install

With the diagrams listed above, you can wire a ceiling fan with either a single switch or double switch.

Dimmer switch and fan speed wiring diagram :

ceiling fan dimmer switch light kit wiring diagram

Dimmer switch and speed controller wiring diagram :

ceiling fan dimmer switch spped controller wiring diagram