Temperature based fan speed control using arduino uno and lm35

In this post, we will make a temperature based fan control using arduino and lm35. LM35 is temperature sensor, whose output is analog (linear). Arduino uno has six channle of adc (A0-A5)
and adc is of 10-bit

Stuff required:
  • Arduino UNO
  • LM35
  • LCD 16*2
  • POT 10k
  • Motor driver (L293D)
  • DC motor

Circuit Diagram

Resolution = Vref/((2^n)-1)  = 5000 (in mV)/1023   [2^10-1]

that comes out to be, 4.887 millivolts

For temperature calculation, Voltage (in millivolts)/10    [Sensitivity is 10mV per degree Celsius]

Source Code:

Download source code from link below


Watch the Video:







[original story: FunWithElectronics]