In this project I made a temperature controlled fan using a PIC microcontroller along with a thermistor circuit to vary voltage from a range of 4.9V to 0.1V
I was able to use the microcontroller to implement an Analog to Digital converter to output a PWM signal using the miconcontroller's 8 bit timer. The PWM signal width depends on the ADC value read by the thermistor circuit. The PWM signal width varies the speed of the fan starting from low to high based on the temperature of the thermistor.
The higher the temperature on the thermistor the higher the voltage that will drop through the gain amplifier.
The voltage from the gain amplifier will be read into the micro controller and trigger a PWM signal that controls the fan speed.
When the micro controller reads a low voltage it will trigger a PWM signal with a low duty cycle. On the other hand, when the micro controller reads a high voltage it will trigger a PWM signal with a high duty cycle.
I used the MPLab IDE with a PicKit 3.0 to run the program in my circuit.
Circuit hooked up on breadboard and connections to fan
PWM signal reading at 90F
PWM signal reading at 125F