How to control a Ceiling Fan? (edit!)

it can be done. here is a project that used a PIC, but could substitute an arduino: