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: Cedar Rapids, IA
Posts: 1,766

The Karen-Mobile - '05 Dodge Magnum SXT
Team Dodge
90 day: 26.72 mpg (US)

Fiat Dakota - '00 Dodge Dakota SLT RWD Quad Cab
90 day: 16.67 mpg (US)

The Red Sled - '01 Dodge Durango SLT 4WD
90 day: 16.96 mpg (US)
Thanks: 799
Thanked 681 Times in 437 Posts
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.

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:	222
Size:	193.1 KB
ID:	21192  
The Fiat Dakota

The Karen-mobile

The Red Sled
  Reply With Quote
The Following User Says Thank You to t vago For This Useful Post:
Daox (01-17-2017)