That color is mandated by the national electrical code. Green wires are used for grounding and should only be connected to other green wires.
What Is The Red Wire For When Installing A Light Fixture
Does the red wire connect to black or white. Typically a ceiling fan is wired so the fan motor has power all the time by the black wire and the light of the ceiling fan is controlled by the wall switch through the red wire. Black white and bare. One of the conducting wires the neutral is white. White wires are always neutral in 110 volt circuits but can be used as the second hot wire or switch leg in 240 volt applications and three way switches respectively. Some sheathed cable includes a fourth red wire which makes it useful for wiring. The ground wire also connects to the switch but the white wire gets spliced to the circuit neutral wire and bypasses the switch.
The most common home wiring uses non metallic sheathed cable with three wires in it. How to replace an electrical outlet 0000. Usually though you see a red wire only when the outlet is a 240 volt one or when its controlled by a switch. When there is a separate red and black wire in the ceiling fan box this usually means that one of the wires is controlled by a wall switch. You can connect a red wire to another red wire or to a black wire. The cable has a black wire which connects directly to the circuit and a red wire which connects to the switch.
As hot wires can be connected to each other a black wire can be connected to a red wire. By convention the other is usually black but it could be red. Red electrical wire indicates the secondary live wires in a 220 volt circuit used in some types of switch legs and in the interconnection between smoke detectors that are hard wired into the power system.