This circuit is simplest electronic regulator that can use for fan, lamps or any other dimmable electric devices.
It is similar to commercial electronic fan regulators.
The triac don't need to heatsink because the ceiling fan consume low power(lower than 100W).
Parts list:
Triac BT136...