Controlling ceiling fan speed using Arduino
Or is it something completely different?


fairly easy to do.

approach 1 is phase based, like a typical dimmer. your arduino needs to detect zero crossing and control a triac. fairly common.

approach 2 is simpler but less common: put a mosfet inside a bridge so it can control an ac load. apply pwm to the mosfet and you are done.