01-31-2016, 12:13 AM
|
#421 (permalink)
|
halos.com
Join Date: Oct 2009
Location: Oklahoma City, OK
Posts: 528
Thanks: 385
Thanked 94 Times in 80 Posts
|
Quote:
Originally Posted by t vago
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.
__________________
|
|
|
Today
|
|
|
Other popular topics in this forum...
|
|
|
01-31-2016, 06:42 PM
|
#422 (permalink)
|
MPGuino Supporter
Join Date: Oct 2010
Location: Hungary
Posts: 1,807
iNXS - '10 Opel Zafira 111 Anniversary Suzi - '02 Suzuki Swift GL
Thanks: 829
Thanked 708 Times in 456 Posts
|
Quote:
Originally Posted by josemapiro
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
|
That LED should work well. I like the fact that both LEDs being on would result in a yellow light output.
|
|
|
02-01-2016, 04: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
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
|
|
|
02-07-2016, 04:41 AM
|
#424 (permalink)
|
The brake pedal is evil
Join Date: Jan 2013
Location: Arizona
Posts: 401
Thanks: 5
Thanked 57 Times in 52 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.
|
|
|
02-07-2016, 07:15 PM
|
#425 (permalink)
|
MPGuino Supporter
Join Date: Oct 2010
Location: Hungary
Posts: 1,807
iNXS - '10 Opel Zafira 111 Anniversary Suzi - '02 Suzuki Swift GL
Thanks: 829
Thanked 708 Times in 456 Posts
|
Quote:
Originally Posted by H-Man
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.
|
|
|
02-08-2016, 03:41 AM
|
#426 (permalink)
|
The brake pedal is evil
Join Date: Jan 2013
Location: Arizona
Posts: 401
Thanks: 5
Thanked 57 Times in 52 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.
|
|
|
The Following User Says Thank You to H-Man For This Useful Post:
|
|
02-08-2016, 08:49 AM
|
#427 (permalink)
|
MPGuino Supporter
Join Date: Oct 2010
Location: Hungary
Posts: 1,807
iNXS - '10 Opel Zafira 111 Anniversary Suzi - '02 Suzuki Swift GL
Thanks: 829
Thanked 708 Times in 456 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 05:33 PM..
Reason: ICSP, not ISP. Also, clarification
|
|
|
02-08-2016, 12:43 PM
|
#428 (permalink)
|
The brake pedal is evil
Join Date: Jan 2013
Location: Arizona
Posts: 401
Thanks: 5
Thanked 57 Times in 52 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.
Last edited by H-Man; 02-08-2016 at 12:53 PM..
|
|
|
02-09-2016, 02:37 PM
|
#429 (permalink)
|
The brake pedal is evil
Join Date: Jan 2013
Location: Arizona
Posts: 401
Thanks: 5
Thanked 57 Times in 52 Posts
|
Okay. Running the board off a USB PSU instead of a computer made it display.
|
|
|
The Following User Says Thank You to H-Man For This Useful Post:
|
|
02-09-2016, 05:19 PM
|
#430 (permalink)
|
MPGuino Supporter
Join Date: Oct 2010
Location: Hungary
Posts: 1,807
iNXS - '10 Opel Zafira 111 Anniversary Suzi - '02 Suzuki Swift GL
Thanks: 829
Thanked 708 Times in 456 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 05:33 PM..
Reason: ICSP, not ISP
|
|
|
|