I made this project because I wanted a way to automatically control the speed of a DC fan according to the temperature read by a LM35 sensor. I had a few problems with the PWM part mainly because the fan made a disturbing noise so I had to add a simple RC filter at the output of the PWM pin on the Arduino board.

  • Before uploading, set your own min temp. and max temp.
  • I powered my arduino nano through the usb cable from my pc
  • I used an ice cube to decrease the temp. and a soldering iron to increase the temp.