Académique Documents
Professionnel Documents
Culture Documents
pic-microcontroller.com /temperature-controlled-fan-using-pic-16f877a/
By Microchip 11/9/2015
Engineer
You might have come across several applications where we need to control a specific device based on analog
parameter. This Embedded system works in a similar concept where we are about to control the speed of a DC
motor using based on the external temperature. The rise in temperature will result in increase in speed of the motor
and vice versa. These type of Temperature controlled fan systems can generally be used to maintain temperature of
a room or object automatically.
CALIBRATION:
1/2
We are using a 10 bit ADC and Vcc as Vref to the ADC module of the Controller. So in order to determine the step
size we have to divide the Vref by our resolution that is 2^10 ( 1024 ).
We obtain a change of 10mV with each rise or fall in temperature from the sensor. And value in the ADC register will
alter by two steps with each degree change in the sensor since two increments of step size i.e 4.833mV * 2 =
9.96mV which is approximately equal to 10mV. So in order to obtain the original value we have to divide the
contents in the ADC register by 2
2/2