fanIR is an Arduino sketch that implements a remote control system for a floor fan.
The system uses an infrared remote for communication. The control is managed by a finite state machine. A servo is used to rotate the fan’s main switch.
The source code is available on GitHub. There is also a tutorial on the repo’s wiki.