Go Back   EcoModder Forum > EcoModding > Instrumentation
Register Now
 Register Now

Reply  Post New Thread
Submit Tools LinkBack Thread Tools
Old 12-26-2015, 10:18 PM   #1 (permalink)
EcoModding Lurker
Join Date: Mar 2011
Location: Hesperia, California
Posts: 2

Stormtrooper - '03 Kia Rio Base
90 day: 27.77 mpg (US)

Stratus - '01 Dodge Stratus SE
Thanks: 0
Thanked 0 Times in 0 Posts
mpGuino weird issue

2003 Kia rio, havent calc the gal/hr yet, mph spot on out of the box (8204 i believe)

Built my mpGuino, worked perfect for 200 miles, did a tank reset, now the miles per hour are acting funny. Before the tank reset, speed worked perfectly (tested to 90mph). Now if I cross over 80, it starts counting back down, so at 90 on the speedo the guino shows I am doing 70. Worked fine before.

I am using FalconFour's firmware, slightly modified by myself. Here is the code I modified, my edits in BOLD

ignitionState = digitalRead(ignitionPin);
current.update(instant); //use instant to update current
tank.update(instant); //use instant to update tank

// new line of code to wake up and shut down dispay with ignition, connected to pin 11

if (ignitionState != HIGH)
OCR1A = brightness[0];
if (ignitionState == HIGH)
OCR1A = brightness[brightnessIdx];

if (instant.vssPulses == 0 && instant.injPulses == 0 && holdDisplay
== 0
) {
if (elapsedMicroseconds(lastActivity)
> parms[currentTripResetTimeoutUSIdx] && lastActivity
!= nil
) {
// analogWrite(BrightnessPin,brightness[0]);
// OCR1A = brightness[0]; //nitey night

lastActivity = nil;
else {
if (lastActivity == nil) {//wake up!!!
// OCR1A = brightness[brightnessIdx];
// analogWrite(BrightnessPin,brightness[brightnessIdx]);
lastActivity = loopStart;
tank.loopCount = tankHold;
else {
lastActivity = loopStart;
tankHold = tank.loopCount;
Maybe I can get some input on another issue I am having to the arduino experts here. I want the ignition to reset my trip, overiding the timeout. I tried replacing some of the if/else statements, namely the underlined lines above with ignitionState != HIGH and ignitionState == HIGH, but the current display was broken after, so the code above was improvised with the above. All features work fine except the speed is counting down over 80, which did not happen before I did the tank reset. Could a zener/resistor have popped, or the board itself, or could it be a code issue? Any help would be greatly appreciated.

Some pictures of how I built/installed it for those that are curious. Still need to wire up buttons and click the cover in.

have pictures but need 5 posts to show... I had at least 5 from the last one I did, guess they got reset some how.

  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

Reply  Post New Thread

Thread Tools

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com