View Single Post
Old 01-17-2017, 10:50 AM   #100 (permalink)
t vago
MPGuino Supporter
 
t vago's Avatar
 
Join Date: Oct 2010
Location: Hungary
Posts: 1,808

iNXS - '10 Opel Zafira 111 Anniversary

Suzi - '02 Suzuki Swift GL
Thanks: 831
Thanked 709 Times in 457 Posts
Quote:
Originally Posted by Daox View Post
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 View Post
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).
Attached Thumbnails
Click image for larger version

Name:	20170117 - oscillation.jpg
Views:	272
Size:	193.1 KB
ID:	21192  
  Reply With Quote
The Following User Says Thank You to t vago For This Useful Post:
Daox (01-17-2017)