Hello,
To add to the previous post, if you need to control a fan to cool the MCU itself, the internal temperature sensor is ideal. However, for general cooling of the inside of the enclosure, where other major heat dissipating components are present, you would either need to predict the internal temperature rise of the MCU above the surrounding ambient, and make allowance, or minimize the self heating of the MCU - maybe a combination of both.
For negligible self heating, the MCU would need to operate in a low power mode for the majority of the time, and the temperature would need to be measured immediately after wake-up.
I also agree with the previous post, that you would be prediminantly measuring the temperature of the board, and that the major heat dissipating components should be kept well away from the MCU.
I presume you would use a simple on/off control scheme (with hysteresis), rather than proportional control.
Regards,
Mac
Message Edited by bigmac on 2007-03-2001:40 PM