Fan speed would need to be controlled by a pull chain or in some newer fans a wireless remote.
Ceiling fan dimmer switch wiring diagram.
Ceiling fan wiring diagram with single switch.
The neutral from the source is spliced directly to the white wire on the fan kit and the cable.
This wiring arrangement allows for lowering the lights with a dimmer and controlling the fan with the built in pull chain.
Switched lines and neutral connect to a 3 wire cable that travels to the light fan outlet box in the ceiling the fan control switch usually connects to the black wire and the light kit switch to the red wire of the 3 way cable in this diagram the black wire of the ceiling fan is for the fan and the blue wire.
This setup allows you to dim the light in the fixture and also switch the fan off and on from a separate switch.
From there two wires run to the ceiling fan.
Ceiling fan wiring diagram light dimmer this ceiling fan wiring configuration is quite common in bedrooms.
The source is at the ceiling outlet box and 3 wire cable runs from there to the switch box.
The hot source is connected directly to the bottom terminal on the switch.
A dimmer switch as the name suggests lets you control the intensity of the light produced from the light to which it is connected such as a ceiling fan with a built in lighting fixture.
Line voltage enters the switch outlet box and the line wire connects to each switch.