Quote:
Originally Posted by Daox
I agree slowing down the readings would be a good idea. There is no reason to read as fast as they will. For now, this is for testing, so I think it'll be fine. I don't see coolant temps fluctuating where I'll get any kind of oscillations. They'd really have to fluctuate a lot for that to happen. If by chance that is an issue, I'd like to know about it during testing.
|
You won't need to worry about wild temperature swings to see oscillations.
Quote:
Originally Posted by Daox
I've not delt with sleep functions. I know there are several levels of sleeping. If you guys have suggestions I'm all ears.
|
You'll likely want to have some periodic interrupt source in order to utilize sleep, and you'll probably want to use SLEEP_MODE_IDLE. I'd suggest using the timer2 overflow interrupt with a clock prescaler of 1024. That'd give you an overflow frequency of slightly over 61 Hz (that is, assuming a 16 MHz processor speed).