How to controll A.C. 230V fan speed with arduino..??

how to control single phase ac fan using arduino,
any body have circuit diagram and sample code pls post if u have.

ATmega328 based remote controlled AC FAN circuit

Note-the PCB is only $1. If it were me I would order the PCB , the Triac, and the remote. I have everything else.