If all youve got is two black wires sticking out off the ceiling or wall then get your multimeter out and see if youve got 240v across the terminals or 110v if youre in usa etc. Take the two blacks and wire nut them together with a pigtail.
Electrical Basics Wiring A Basic Single Pole Light Switch
2 black and 2 white wires in ceiling box. Now go up to your light box. If thats not obvious to you then dont touch it and get a com. The fixture box you are referring to has one 2 wire cable providing the line or power in two 2 wire cables that take power to other locations and one 2 wire that is used for the switch which explains why you see a white wire attached to the other black wires. Assuming you have 2 wall switches in the room the two whites go together with the white on the fan. The blue controls the fan separate ie. However if you need to rewire a light switch or a plug socket you may occasionally come across two black wires.
Connect the two white wires from the light fixture to the white wire located in the electrical box by twisting an orange wire nut onto all three wires. Take your white that is in the same cable as your always hot black and wire nut it with your other white. Black means hot white signifies neutral and green indicates ground. 1 black goes to the black on the fan and the other black goes to the blue on the fan. I know that the wires coming out of the junction box should be one black one white and one green or copper. But the junction box in another room has a pair of each and each set 1 black 1 white 1 copper.
One of the rooms in my house is like that. The more lightbulbs the more wires. Its own switch from the fan. Some setups will also have a blue wire which powers the lights on your fan. The other set of blackwhite wires in the ceiling box is used to send power through the wall switch from the hotblack wire and back to the light. The united states has strict codes relating to home wiring including clearly defined colors on the outer casing of the wires.
The pigtail will go to the copper coloured screw on your light. There should be a white copper or green and black wire coming out of the ceilings electrical box. The white wire is your neutral wire the copper wire is the grounded wire and the black wire powers the fan. Each lightbulb socket must have a separate black and white wire to supply electricity to the lightbulb. The white wire of that second set is actually used. Why does my ceiling fan outlet have two black wires two white wires and two copper wires.