Ceiling fans should never be mounted to regular plastic or fiberglass light fixture boxes.
Electrical normal ceiling fan connection.
The ground and neutral wires simply get tied together as you d expect.
The ceiling mounted electrical junction box must be approved for the weight of the ceiling fan.
Most electrical ground wires are.
Mount your bracket onto the ceiling and hang the fan on the bracket.
Connect the green wire to your household ground wire copper bare wire.
The source is at the switches and the input of each is spliced to the black source wire with a wire nut.
Ul approved ceiling fan boxes are required by code this is for your safety and protection.
As you can see it s a simple connection that feeds power to both the fan and optional light kit.
To connect your ceiling fan to existing wires make sure that you have the right fan hardware and cut off the electricity leading to those wires.
From the switches 3 wire cable runs to the ceiling outlet box.
This wiring diagram illustrates the connections for a ceiling fan and light with two switches a speed controller for the fan and a dimmer for the lights.
And you re going to hook this up to the ceiling fan by taking your neutral and wire nutting them together.
Lastly connect the blue wires together or the blue wire to the black wire for lights.
Taking your ground wire and wire nutting those together.
Once you do that it s just a matter of connecting the right wires together and properly screwing your fan into the ceiling.
The following will assist you with your electrical question.