This sounds like a ceiling fan that also has a light attached to it. The black and white wires are used for the incoming supply voltage. The green is the ground wire. The blue wire is most likely the wire that goes to the lamp portion of the ceiling fan. The black and blue wires are separated from each other in the fixture so that the fan motor and the light can be independently switched. In these types of installations a three wire cable is strung from the fan switch box to the fixture box.
For independent switching, the junction box should be a two gang box. From the power source in the switch box, the white wires all connect together. The incoming black connects to the top of the two switches in the two gang box. Bottom of the first switch to the black in the three wire cable, Bottom of the second switch to the red wire of the three wire cable.
At the fixture junction box, incoming white wire to the fan white wire. Incoming black wire to the fan black wire and incoming red wire to the fan blue wire. If wired this way the light and fan motor can be individually switched on and off.
If there is only one switch box, at the fan junction point connect the black and blue wires together to the incoming black wire. White to white wires together and green wire to the ceiling junction boxes ground terminal. In this configuration the switch will turn on both the fan and light at the same time.
Connect the black wire from the ceiling box to the black wire on the light. Connect the white wire from the ceiling box to the white wire on the light. The yellow and green striped wires from the light are likely the ground wires, secure these to the green or bare copper wire in the ceiling box. Cap off or tape the red wires from the ceiling box, as they are likely for a separate function and are not needed for the light fixture.
To wire a ceiling fan with a light, you will need to connect the fan's wires to the corresponding wires in your ceiling. Typically, you will connect the fan's black wire to the ceiling's black or red wire, the white wire to the white wire, and the green or bare wire to the ceiling's grounding wire. For the light, you will connect its wires in a similar manner. It's important to follow the manufacturer's instructions and turn off the power before starting the installation.
To wire a ceiling fan with a light switch, follow these steps: Turn off the power to the circuit at the breaker box. Install the ceiling fan bracket to the ceiling. Connect the fan wires to the corresponding wires in the ceiling box (usually black to black, white to white, and green to ground). Connect the light kit wires to the corresponding wires in the ceiling box (usually blue to black and white to white). Install the fan blades and light kit. Install the light switch and connect the wires (usually black to black, white to white, and ground to ground). Turn the power back on and test the fan and light switch. For a visual guide, refer to the diagram below: Diagram of ceiling fan wiring with light switch
Normally red or black is the hot wire and green is the ground. However someone may have used the green wire as the neutral wire which is normally white. Just connect the black wire from the light to the red wire and the white wire from the light to the green wire and see if it works. If not you have to pull the wires out of the ceiling box and see how they wired it.
To wire a ceiling fan, first turn off the power to the circuit. Then, connect the fan's wires to the corresponding wires in the ceiling using wire nuts. Typically, you'll connect the black wire to black, white to white, and green or bare wire to the ground wire. Secure the connections with electrical tape and install the fan according to the manufacturer's instructions.
The short answer is wire color to color. black to black, white to white, green or bare to green of bare.
To install a ceiling light fixture, first turn off the power to the fixture at the circuit breaker. Remove the old fixture and disconnect the wires. Connect the new fixture's wires to the corresponding wires in the ceiling, usually black to black, white to white, and green or copper to the ground wire. Secure the fixture to the ceiling and turn the power back on to test the light.
The standard ceiling fan wiring colors are black, white, and green. The black wire is for the fan motor, the white wire is for the neutral connection, and the green wire is for the ground connection.
To wire a ceiling fan with a light, first turn off the power to the circuit. Then, follow the instructions provided with the fan to connect the wires from the fan to the corresponding wires in the ceiling. Typically, you will connect the black wire to the black wire, the white wire to the white wire, and the green or bare wire to the ground wire. Make sure to secure the connections with wire nuts and test the fan before turning the power back on.
Ceiling fan wires typically come in three colors: black, white, and green. The black wire is for the fan's motor, the white wire is for the neutral connection, and the green wire is for grounding the fan.
To properly wire a ceiling fan with 4 wires, you will need to connect the black wire to the fan's black wire, the white wire to the fan's white wire, the green wire to the fan's green wire, and the blue wire to the fan's blue wire. Make sure to follow the manufacturer's instructions and turn off the power before starting the installation.
To connect a green, black, and white wire in an electrical circuit, you should connect the green wire to the ground terminal, the black wire to the hot terminal, and the white wire to the neutral terminal. Make sure to follow proper safety precautions and consult an electrician if needed.