Go Back   EcoModder Forum > EcoModding > Instrumentation > OpenGauge / MPGuino FE computer
Register Now
 Register Now
 

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 01-30-2016, 11:13 PM   #421 (permalink)
halos.com
 
Join Date: Oct 2009
Location: Oklahoma City, OK
Posts: 528

ECONORAM - '07 Dodge RAM 1500 QC SLT flex-fuel
90 day: 18.16 mpg (US)

the Avenger - '08 Dodge Avenger SXT
90 day: 27.06 mpg (US)
Thanks: 385
Thanked 94 Times in 80 Posts
Send a message via Yahoo to ECONORAM
Quote:
Originally Posted by t vago View Post
Longtime supporters/followers of MPGuino will recognize that the first 4 listed modes will enable my fork of MPGuino to emulate the Red/Green LED hack mentioned on the MPGuino code hacks page, where a red LED was set up to light if instant fuel economy was worse than tank average fuel economy, and a green LED was set up to light if instant fuel economy was better than tank average fuel economy.
Would this type of LED work? 5MM RED/GREEN BI-COLOR LED, 3-LEAD | All Electronics Corp.

__________________
  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 01-31-2016, 05:42 PM   #422 (permalink)
MPGuino Supporter
 
t vago's Avatar
 
Join Date: Oct 2010
Location: Hungary
Posts: 1,788

iNXS - '10 Opel Zafira 111 Anniversary

Suzi - '02 Suzuki Swift GL
Thanks: 817
Thanked 701 Times in 450 Posts
Quote:
Originally Posted by josemapiro View Post
That's good news, but will have to take into account the various resistance values which each brand uses that in my case are the image below.
All I did was to add a fuel level adjust parameter, much like the existing fuel tank capacity parameter. Upon sensing that the user adjusted the fuel level adjust parameter, MPGuino adjusts the internal fuel used value by the fuel level adjust parameter. It's fairly simple.

Quote:
Originally Posted by ECONORAM View Post
That LED should work well. I like the fact that both LEDs being on would result in a yellow light output.
  Reply With Quote
Old 02-01-2016, 03:31 PM   #423 (permalink)
EcoModding Apprentice
 
Join Date: Dec 2012
Location: Portugal
Posts: 197
Thanks: 93
Thanked 70 Times in 64 Posts
Quote:
Originally Posted by t vago View Post
All I did was to add a fuel level adjust parameter, much like the existing fuel tank capacity parameter. Upon sensing that the user adjusted the fuel level adjust parameter, MPGuino adjusts the internal fuel used value by the fuel level adjust parameter. It's fairly simple.
The fuel adjustment is done by inserting a new value manually or is done automatically through a sensor?
I apologize but did not get to understand the workings.

Thanks
Josť Rodrigues
  Reply With Quote
Old 02-07-2016, 03:41 AM   #424 (permalink)
The brake pedal is evil
 
Join Date: Jan 2013
Location: California__ Awsome: Yes
Posts: 387

Denny's Detector - '08 Mercury Grand Marquis

Taserface - '17 Chevy Volt
Thanks: 5
Thanked 52 Times in 48 Posts
Is the Tinkerkit LCD code broken? When I try to compile for the leonardo, I get a compile error on Ardunio 1.6.6.
Code:
Arduino: 1.6.6 (Windows 7), Board: "Arduino Leonardo"



C:\Users\H-man\Documents\Arduino\sketch_feb07a\sketch_feb07a.ino: In function 'void USART_UDRE_vect()':

C:\Users\H-man\Documents\Arduino\sketch_feb07a\sketch_feb07a.ino:4219:6: warning: 'USART_UDRE_vect' appears to be a misspelled signal handler [enabled by default]

 {

      ^

C:\Users\H-man\Documents\Arduino\sketch_feb07a\sketch_feb07a.ino: In function 'void serialTransmitEnable()':

sketch_feb07a:6489: error: 'UCSR0B' was not declared in this scope

 }

   ^

sketch_feb07a:6489: error: 'TXEN0' was not declared in this scope

 }

                   ^

sketch_feb07a:6489: error: 'UDRIE0' was not declared in this scope

 }

                                  ^

C:\Users\H-man\Documents\Arduino\sketch_feb07a\sketch_feb07a.ino: In function 'void serialTransmitDisable()':

sketch_feb07a:6496: error: 'UCSR0B' was not declared in this scope

 }

   ^

C:\Users\H-man\Documents\Arduino\sketch_feb07a\sketch_feb07a.ino: In function 'void serialTransmitByte(uint8_t)':

sketch_feb07a:6503: error: 'UDR0' was not declared in this scope

 }

   ^

C:\Users\H-man\Documents\Arduino\sketch_feb07a\sketch_feb07a.ino: In function 'int main()':

sketch_feb07a:8544: error: 'UBRR0H' was not declared in this scope

   UCSR0A &= ~(1 << U2X0);

   ^

sketch_feb07a:8545: error: 'UBRR0L' was not declared in this scope

   UCSR0B = 0; // disable serial uart pins

   ^

sketch_feb07a:8546: error: 'UCSR0A' was not declared in this scope

   UCSR0C = (1 << UCSZ01)| (1 << UCSZ00); // set for 8 data bits, no parity, and 1 stop bit

   ^

sketch_feb07a:8546: error: 'U2X0' was not declared in this scope

   UCSR0C = (1 << UCSZ01)| (1 << UCSZ00); // set for 8 data bits, no parity, and 1 stop bit

                    ^

sketch_feb07a:8547: error: 'UCSR0B' was not declared in this scope

 #ifdef useBufferedSerialPort

   ^

sketch_feb07a:8548: error: 'UCSR0C' was not declared in this scope

   serialBuffer.init();

   ^

sketch_feb07a:8548: error: 'UCSZ01' was not declared in this scope

   serialBuffer.init();

                  ^

sketch_feb07a:8548: error: 'UCSZ00' was not declared in this scope

   serialBuffer.init();

                                 ^

exit status 1
'UCSR0B' was not declared in this scope

  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.
__________________
Getting sensor data off of a pre OBDII Toyota ECU via TDCL.
All of this is on E10: Project E is my current focus.

  Reply With Quote
Old 02-07-2016, 06:15 PM   #425 (permalink)
MPGuino Supporter
 
t vago's Avatar
 
Join Date: Oct 2010
Location: Hungary
Posts: 1,788

iNXS - '10 Opel Zafira 111 Anniversary

Suzi - '02 Suzuki Swift GL
Thanks: 817
Thanked 701 Times in 450 Posts
Quote:
Originally Posted by H-Man View Post
Is the Tinkerkit LCD code broken? When I try to compile for the leonardo, I get a compile error on Ardunio 1.6.6.
Yah, the Tinkerkit LCD code does not have support for serial output. You'll need to turn off serial output via

Code:
//#define useSerialPortDataLogging true		// Ability to output 5 basic parameters to a data logger or SD card
//#define useBufferedSerialPort true			// Speed up serial output
I stopped development on getting the TinkerKit LCD board, due to lack of perceived interest. If you want serial output, I can try to figure out how to get it to work.
  Reply With Quote
Old 02-08-2016, 02:41 AM   #426 (permalink)
The brake pedal is evil
 
Join Date: Jan 2013
Location: California__ Awsome: Yes
Posts: 387

Denny's Detector - '08 Mercury Grand Marquis

Taserface - '17 Chevy Volt
Thanks: 5
Thanked 52 Times in 48 Posts
I had tried with serial output commented out before and I had gotten a blank screen so I assumed that it was needed for something.
I bought 4 of the modules off of amazon for cheap and it beats soldering.
__________________
Getting sensor data off of a pre OBDII Toyota ECU via TDCL.
All of this is on E10: Project E is my current focus.

  Reply With Quote
The Following User Says Thank You to H-Man For This Useful Post:
t vago (02-08-2016)
Old 02-08-2016, 07:49 AM   #427 (permalink)
MPGuino Supporter
 
t vago's Avatar
 
Join Date: Oct 2010
Location: Hungary
Posts: 1,788

iNXS - '10 Opel Zafira 111 Anniversary

Suzi - '02 Suzuki Swift GL
Thanks: 817
Thanked 701 Times in 450 Posts
Looked at the tinkerkit LCD code last night, and realized a few things. First, I programmed my test platform with the ICSP programmer instead of through the USB port, so I lost the USB functionality. Second, the brightness control has stopped working. Third, in an attempt to return my test platform to normal, I managed to brick my ICSP programmer. Fourth, I had another one of the TinkerKit LCD modules sitting in my pile of clearance RadioShack purchases.

Figured that the tinkerkit LCD would make a good MPGuino, though. Maybe you can help develop it? I need to verify that the assigned fuel injector and VSS pins work as planned, for one. A small IO protoboard with the necessary resistors and Zener diodes will need to be made, as well. I made one for the 5-position switch, already.

Last edited by t vago; 02-09-2016 at 04:33 PM.. Reason: ICSP, not ISP. Also, clarification
  Reply With Quote
Old 02-08-2016, 11:43 AM   #428 (permalink)
The brake pedal is evil
 
Join Date: Jan 2013
Location: California__ Awsome: Yes
Posts: 387

Denny's Detector - '08 Mercury Grand Marquis

Taserface - '17 Chevy Volt
Thanks: 5
Thanked 52 Times in 48 Posts
I have no problem in helping develop the code, it will just be slow while I work on my BS in EE.
The trick I used was to get away from the MPGuino code was to flash a new sketch with nothing in it since I could flash that in the 7 second window you get before the code loads.
__________________
Getting sensor data off of a pre OBDII Toyota ECU via TDCL.
All of this is on E10: Project E is my current focus.


Last edited by H-Man; 02-08-2016 at 11:53 AM..
  Reply With Quote
Old 02-09-2016, 01:37 PM   #429 (permalink)
The brake pedal is evil
 
Join Date: Jan 2013
Location: California__ Awsome: Yes
Posts: 387

Denny's Detector - '08 Mercury Grand Marquis

Taserface - '17 Chevy Volt
Thanks: 5
Thanked 52 Times in 48 Posts
Okay. Running the board off a USB PSU instead of a computer made it display.
__________________
Getting sensor data off of a pre OBDII Toyota ECU via TDCL.
All of this is on E10: Project E is my current focus.

  Reply With Quote
The Following User Says Thank You to H-Man For This Useful Post:
t vago (02-09-2016)
Old 02-09-2016, 04:19 PM   #430 (permalink)
MPGuino Supporter
 
t vago's Avatar
 
Join Date: Oct 2010
Location: Hungary
Posts: 1,788

iNXS - '10 Opel Zafira 111 Anniversary

Suzi - '02 Suzuki Swift GL
Thanks: 817
Thanked 701 Times in 450 Posts
Oh, good.

Got some other good news. Apparently did not brick my ICSP programmer, after all. Also managed to re-load the TinkerKit LCD bootloader into the module, so I could program it again with just the USB cable. However, once I loaded the TinkerKit LCD with the new MPGuino code, it stopped accepting any other attempts to load the code using just the USB cable. This is kind of a big deal, with regard to future upgrades.

I am also having a problem with adding the expansion pins to the TinkerKit LCD module. When I compile the new code for the Tinkerkit LCD without support for expansion pins, it lights up the LCD display just fine. However, enabling the expansion pin support causes the LCD lights to not work. Still working on that.


Last edited by t vago; 02-09-2016 at 04:33 PM.. Reason: ICSP, not ISP
  Reply With Quote
Reply  Post New Thread


Thread Tools




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