How to controll a Delta Electronics brushless fan by arduino

If you pull the plug, no electric device can work. The fan must always be supplied its 12V operating voltage.

The timer library in the code is used for the tacho signal, that allows to determine the actual fan speed, and to control the speed by PWM and e.g. a PID controller.