MPG Cruise Control Algorithm - Page 5 - Fuelly Forums

Click here to see important news regarding the aCar App

Go Back   Fuelly Forums > Fuel Talk > General Fuel Topics
Today's Posts Search Click Here to Login
Reply
 
Thread Tools Display Modes
 
Old 04-15-2009, 03:58 PM   #41
Registered Member
 
Join Date: Mar 2009
Posts: 1,139
Country: United States
The LUT would just be an "on the paper" estimate, so it can be pretty sparse, with a control loop finding the exact value. As I wouldn't want to compute different ones for each model of car, I can't get very specific anyway. While speed changes are pretty slow, so is the OBDII update rate, so I thought a table to get in the ballpark would enhance performance a bit. I guess I could have it cache values for future use. I can always interpolate the entries if needed to strike a compromise. That's the method of fuzzy logic controllers in a nutshell: LUT with a hack to interpolate.

I don't think any system not incorporating a GPS would be worth actually building. Maybe not even that.

I hear you on the space concerns. I'm writing a project with a LUT right now for an AVR tiny12 and that sucker has very little onboard. Fortunately the table is only 18x2, since the data range required is pretty small.
__________________

__________________


Main Entry: co de pen dence - see codependency
co de pen den cy
Pronunciation: \kō-di-ˈpen-dən(t)-sē\
Function: noun
Date: 1979

: a psychological condition or a relationship in which a person is controlled or manipulated by another who is affected with a pathological condition (as an addiction to alcohol or heroin) ; broadly : dependence on the needs of or control by another
GasSavers_maximilian is offline   Reply With Quote
Old 05-15-2009, 07:18 AM   #42
Registered Member
 
Join Date: Mar 2009
Posts: 1,139
Country: United States
I was thinking some about the particulars of implementing this and I think inferring the grade from the velocity and throttle data may not be sufficiently responsive, especially given the low ODB update rate. I know when I was using the ScanGauge I'd anticipate incline changes and then just fine tune it with the instantaneous mpg readout. If that's true, it'd imply adding an inclinometer. In theory all one needs is the incline and velocity to control throttle, but it'd need to be calibrated for each vehicle. Weight changes would show up in the changes in velocity, so that'd be no problem.

All in all, a lot of work. Better to wait for a Google Android device I want and then explore this via software. I keep trying to challenge that conclusion and failing. Oh well.
__________________

__________________


Main Entry: co de pen dence - see codependency
co de pen den cy
Pronunciation: \kō-di-ˈpen-dən(t)-sē\
Function: noun
Date: 1979

: a psychological condition or a relationship in which a person is controlled or manipulated by another who is affected with a pathological condition (as an addiction to alcohol or heroin) ; broadly : dependence on the needs of or control by another
GasSavers_maximilian is offline   Reply With Quote
Old 06-12-2009, 07:14 AM   #43
Registered Member
 
Join Date: Mar 2009
Posts: 1,139
Country: United States
After reading oneinchsidehop's great observation that a constant throttle seems to handle minor hill variations well, I can drastically simplify the basic algorithm. In fact, it gets so simple there's no need for pseudo code:

Stay at a constant throttle unless the speed goes too low or too high, then just maintain those limits.

No OBDII input required certainly is tantalizing. Having two inputs for min and max speed seems like it might be too complicated (although proper input design could avoid the max being less than the min ever). Thinking about how I drive around here in a 50 mph zone (default VT speed limit), I get a min speed of about 40 (slower than that and I'd be in serious danger of a road rage shooting) and a max speed of 60 (hills steeper than that I go into neutral and coast). +/- 10mph would be a lot in a 35 zone, so maybe the min & max could be a percentage of the set cruise speed? So that'd be +/- 20%, or ranging between 28 and 42 in a 35 zone. Still seems high, but you could always set the target below 35 I guess. Need to let this process a bit.
__________________


Main Entry: co de pen dence - see codependency
co de pen den cy
Pronunciation: \kō-di-ˈpen-dən(t)-sē\
Function: noun
Date: 1979

: a psychological condition or a relationship in which a person is controlled or manipulated by another who is affected with a pathological condition (as an addiction to alcohol or heroin) ; broadly : dependence on the needs of or control by another
GasSavers_maximilian is offline   Reply With Quote
Old 06-12-2009, 08:01 AM   #44
Registered Member
 
theholycow's Avatar
 
Join Date: Apr 2008
Posts: 6,624
Country: United States
Send a message via ICQ to theholycow Send a message via AIM to theholycow Send a message via MSN to theholycow Send a message via Yahoo to theholycow
Constant throttle is a different strategy, and has worked well for some. It's often called Driving With Load or DWL.
__________________
This sig may return, some day.
theholycow is offline   Reply With Quote
Old 06-12-2009, 08:02 AM   #45
Registered Member
 
Join Date: Mar 2009
Posts: 1,139
Country: United States
I tried it yesterday and it seemed to work pretty well. Of course I was towing a laden trailer so I need to test it under normal conditions too. Keeping my foot totally still was harder than I expected. I still did other things like coast, but I'd interrupt a basic mpg cruise algorithm similarly.
__________________


Main Entry: co de pen dence - see codependency
co de pen den cy
Pronunciation: \kō-di-ˈpen-dən(t)-sē\
Function: noun
Date: 1979

: a psychological condition or a relationship in which a person is controlled or manipulated by another who is affected with a pathological condition (as an addiction to alcohol or heroin) ; broadly : dependence on the needs of or control by another
GasSavers_maximilian is offline   Reply With Quote
Old 06-12-2009, 05:31 PM   #46
Registered Member
 
Join Date: Mar 2009
Posts: 1,139
Country: United States
Did some more testing today and it appears I don't get to 20% above my level cruise speed before switching over to coasting. 10% is more like it. A range of 20% below and 10% above seems to match things quite well. One difficulty of using such a cruise system is that the naive approach would require it be set at the correct speed and also at the correct throttle. Tricky if there aren't a lot of level stretches (like around here). A table of throttles vs level travel speeds could allow it to assume the speed at the moment of setting and look up the appropriate target throttle. Still need to think some more.

My economy is definitely improving from the constant throttle technique.
__________________


Main Entry: co de pen dence - see codependency
co de pen den cy
Pronunciation: \kō-di-ˈpen-dən(t)-sē\
Function: noun
Date: 1979

: a psychological condition or a relationship in which a person is controlled or manipulated by another who is affected with a pathological condition (as an addiction to alcohol or heroin) ; broadly : dependence on the needs of or control by another
GasSavers_maximilian is offline   Reply With Quote
Old 06-16-2009, 05:07 PM   #47
Registered Member
 
Join Date: Mar 2009
Posts: 1,139
Country: United States
Having slept on it a bit I'm satisfied with the simpler algorithm, but now that I have something that could realistically be made, I have to face the fact that I am too much of a wimp to install an aftermarket cruise with experimental circuitry on my still under warranty car. Ah well, not like I really have the time anyway.
__________________

__________________


Main Entry: co de pen dence - see codependency
co de pen den cy
Pronunciation: \kō-di-ˈpen-dən(t)-sē\
Function: noun
Date: 1979

: a psychological condition or a relationship in which a person is controlled or manipulated by another who is affected with a pathological condition (as an addiction to alcohol or heroin) ; broadly : dependence on the needs of or control by another
GasSavers_maximilian is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Not very precise mpg calculation larjerr Fuelly Web Support and Community News 4 08-20-2012 02:03 AM
Average fuel mileage line in the history graph? BDC Fuelly Web Support and Community News 1 05-06-2009 01:07 AM
91 CRX DX 5 Speed Head Gasket Confusion UfoTofU General Maintenance and Repair 2 04-26-2008 11:09 AM
Is there a website where I can look up... wehrd1 General Maintenance and Repair 3 04-18-2007 06:23 PM
Congratulations Jared!!! SVOboy General Discussion (Off-Topic) 7 08-13-2006 09:55 PM

» Fuelly iOS Apps
» Fuelly Android Apps
Powered by vBadvanced CMPS v3.2.3


All times are GMT -8. The time now is 06:51 AM.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.