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

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 03-04-2016, 11:28 AM   #1 (permalink)
マット
 
M_a_t_t's Avatar
 
Join Date: Nov 2015
Location: Indiana
Posts: 718

The Van - '95 Chevy Astro Cl V8 Swapped
Team Chevy
90 day: 7.84 mpg (US)

The new bike - '17 Kawasaki Versys X 300 abs
Motorcycle
90 day: 71.94 mpg (US)

The Mercury - '95 Mercury Tracer Trio
Team Ford
90 day: 34.35 mpg (US)

Toyota - '22 Toyota Corolla Hatchback
90 day: 40.11 mpg (US)
Thanks: 131
Thanked 258 Times in 188 Posts
Mpguino code help

I've wired up my arduino like this and go to download the code and it comes up with error messages. I know how to code a little but not something this extensive. I decided to use the older version because the schematic was simpler and the more up to date one didn't have any functions that I really needed. I was hoping someone who already knew how the code worked could fix it for me. I really just want the instant and tank mpg, miles left in tank would be nice but I don't really need it. Thanks for any help.
Matt

  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 03-04-2016, 11:29 AM   #2 (permalink)
マット
 
M_a_t_t's Avatar
 
Join Date: Nov 2015
Location: Indiana
Posts: 718

The Van - '95 Chevy Astro Cl V8 Swapped
Team Chevy
90 day: 7.84 mpg (US)

The new bike - '17 Kawasaki Versys X 300 abs
Motorcycle
90 day: 71.94 mpg (US)

The Mercury - '95 Mercury Tracer Trio
Team Ford
90 day: 34.35 mpg (US)

Toyota - '22 Toyota Corolla Hatchback
90 day: 40.11 mpg (US)
Thanks: 131
Thanked 258 Times in 188 Posts
code http://opengauge.googlecode.com/svn/...no/mpguino.pde

  Reply With Quote
Old 03-04-2016, 05:45 PM   #3 (permalink)
MPGuino Supporter
 
t vago's Avatar
 
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
Can you post the error messages that you're getting?
  Reply With Quote
Old 03-04-2016, 10:53 PM   #4 (permalink)
マット
 
M_a_t_t's Avatar
 
Join Date: Nov 2015
Location: Indiana
Posts: 718

The Van - '95 Chevy Astro Cl V8 Swapped
Team Chevy
90 day: 7.84 mpg (US)

The new bike - '17 Kawasaki Versys X 300 abs
Motorcycle
90 day: 71.94 mpg (US)

The Mercury - '95 Mercury Tracer Trio
Team Ford
90 day: 34.35 mpg (US)

Toyota - '22 Toyota Corolla Hatchback
90 day: 40.11 mpg (US)
Thanks: 131
Thanked 258 Times in 188 Posts
Here is the copy and paste version. and again thank you.
Unrelated question: how do you get your vehicle to show up in the signature area of your posts?
Matt

Arduino: 1.6.7 (Windows 7), Board: "Arduino/Genuino Uno"

mpguino:524: error: 'prog_char' was not declared in this scope

char * getStr(prog_char * str){

^

mpguino:524: error: 'str' was not declared in this scope

char * getStr(prog_char * str){

^

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:14:191: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

char * parmLabels[]={"Contrast","VSS Pulses/Mile", "MicroSec/Gallon","Pulses/2 revs","Timout(microSec)","Tank Gal * 1000","Injector DelayuS","Weight (lbs)","Scratchpad(odo?)","VSS Delay ms"};

^

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:14:191: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:14:191: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:14:191: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:14:191: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:14:191: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:14:191: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:14:191: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:14:191: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:14:191: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

mpguino:276: error: 'prog_char' does not name a type

prog_char * displayFuncNames[displayFuncSize];

^

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino: In function 'void setup()':

mpguino:278: error: redefinition of 'void setup()'

void setup (void){

^

mpguino:1: error: 'void setup()' previously defined here

void setup() {

^

mpguino:282: error: 'displayFuncNames' was not declared in this scope

displayFuncNames[x++]= PSTR("Custom ");

^

mpguino:309: error: 'getStr' cannot be used as a function

LCD:rint(getStr(PSTR("OpenGauge ")));

^

mpguino:311: error: 'getStr' cannot be used as a function

LCD:rint(getStr(PSTR(" MPGuino v0.75")));

^

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino: In function 'void loop()':

mpguino:346: error: redefinition of 'void loop()'

void loop (void){

^

mpguino:6: error: 'void loop()' previously defined here

void loop() {

^

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:371:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

simpletx(",");

^

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:373:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

simpletx(",");

^

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:375:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

simpletx(",");

^

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:377:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

simpletx(",");

^

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:379:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

simpletx("\n");

^

mpguino:414: error: 'getStr' cannot be used as a function

LCD:rint(getStr(PSTR("Setup ")));

^

mpguino:421: error: 'getStr' cannot be used as a function

LCD:rint(getStr(PSTR("Tank Reset ")));

^

mpguino:424: error: 'getStr' cannot be used as a function

LCD:rint(getStr(PSTR("Current Reset ")));

^

mpguino:430: error: 'displayFuncNames' was not declared in this scope

LCD:rint(getStr(displayFuncNames[screen]));

^

mpguino:430: error: 'getStr' cannot be used as a function

LCD:rint(getStr(displayFuncNames[screen]));

^

mpguino:434: error: 'getStr' cannot be used as a function

LCD:rint(getStr(PSTR("Brightness ")));

^

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:436:23: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

LCD:rint(" ");

^

mpguino:439: error: 'displayFuncNames' was not declared in this scope

LCD:rint(getStr(displayFuncNames[screen]));

^

mpguino:439: error: 'getStr' cannot be used as a function

LCD:rint(getStr(displayFuncNames[screen]));

^

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino: At global scope:

mpguino:524: error: redefinition of 'char* getStr'

char * getStr(prog_char * str){

^

mpguino:524: error: 'char* getStr' previously defined here

char * getStr(prog_char * str){

^

mpguino:524: error: 'prog_char' was not declared in this scope

char * getStr(prog_char * str){

^

mpguino:524: error: 'str' was not declared in this scope

char * getStr(prog_char * str){

^

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino: In function 'void doDisplayBigInstant()':

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:540:62: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

void doDisplayBigInstant() {bigNum(instantmpg(),"INST","MPG ");}

^

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:540:62: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino: In function 'void doDisplayBigCurrent()':

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:541:63: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

void doDisplayBigCurrent() {bigNum(current.mpg(),"CURR","MPG ");}

^

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:541:63: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino: In function 'void doDisplayBigTank()':

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:542:60: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

void doDisplayBigTank() {bigNum(tank.mpg(),"TANK","MPG ");}

^

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:542:60: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino: In function 'void doDisplaySystemInfo()':

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:547:35: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

LCD::gotoXY(0,0);LCD:rint("C%");LCD:rint(forma t(maxLoopLength*1000/(looptime/100)));LCD:rint(" T"); LCD:rint(format(tank.time()));

^

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:547:106: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

LCD::gotoXY(0,0);LCD:rint("C%");LCD:rint(forma t(maxLoopLength*1000/(looptime/100)));LCD:rint(" T"); LCD:rint(format(tank.time()));

^

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:550:43: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

LCD::gotoXY(0,1);LCD:rint("FREE MEM: ");LCD:rint(format(mem));

^

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino: In function 'void tDisplay(void*)':

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:563:35: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

LCD::gotoXY(0,0);LCD:rint("MH");LCD:rint(forma t(t->mph()));LCD:rint("MG");LCD:rint(format(t->mpg()));

^

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:563:81: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

LCD::gotoXY(0,0);LCD:rint("MH");LCD:rint(forma t(t->mph()));LCD:rint("MG");LCD:rint(format(t->mpg()));

^

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:564:35: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

LCD::gotoXY(0,1);LCD:rint("MI");LCD:rint(forma t(t->miles()));LCD:rint("GA");LCD:rint(format(t->gallons()));

^

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:564:83: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

LCD::gotoXY(0,1);LCD:rint("MI");LCD:rint(forma t(t->miles()));LCD:rint("GA");LCD:rint(format(t->gallons()));

^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

from sketch\mpguino.ino.cpp:1:

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino: In function 'void LCD::init()':

mpguino:618: error: variable 'chars' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

static byte chars[] PROGMEM ={

^

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino: In function 'void bigNum(long unsigned int, char*, char*)':

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:910:14: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

char * r = "009.99"; //default to 999

^

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:920:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

LCD:rint(" ");

^

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:922:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

LCD:rint(" ");

^

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:924:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

LCD:rint(" ");

^

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:929:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

LCD:rint(" ");

^

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:933:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

LCD:rint(" ");

^

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino: In function 'void editParm(byte)':

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:1114:26: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

LCD:rint(" ");

^

C:\Users\Matt\Documents\Arduino\libraries\mpguino\ mpguino.ino:1120:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

LCD:rint(" OK XX");

^

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

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
  Reply With Quote
Old 03-06-2016, 07:55 PM   #5 (permalink)
MPGuino Supporter
 
t vago's Avatar
 
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
Ah. You'll need to find an obsolete version of the IDE to compile this. I don't know where one could be found.
  Reply With Quote
The Following User Says Thank You to t vago For This Useful Post:
M_a_t_t (03-07-2016)
Old 05-16-2016, 10:28 AM   #6 (permalink)
EcoModding Lurker
 
Join Date: Aug 2015
Location: New Hampshire
Posts: 31

Veen's '09 FIT - '09 Honda FIT Sport
Team Honda
Wagons
90 day: 43.41 mpg (US)
Thanks: 4
Thanked 6 Times in 5 Posts
If it's just an obsolete version you need. Generally 1.0.6 works well when 1.6.X doesn't. You can download it from the Arduino website here https://www.arduino.cc/en/Main/OldSo...eases#previous

I use Arduino and other micro-controllers a lot but have I don't have any experience with the MPGuino code base. Hopefully this helps.
  Reply With Quote
Old 05-16-2016, 06:08 PM   #7 (permalink)
Master EcoModder
 
AndrzejM's Avatar
 
Join Date: Oct 2011
Location: Poland
Posts: 840

Berta - '97 BMW 318 tds Compact
90 day: 62.03 mpg (US)

Charlie - '07 Citroen C4 Grand Picasso Exclusive
90 day: 37.58 mpg (US)

Corsa - '05 Opel Corsa C
90 day: 53.22 mpg (US)

Mruczek - '03 Audi A2
90 day: 60.61 mpg (US)
Thanks: 185
Thanked 167 Times in 117 Posts
Try not to open INO file but just copy and paste the code as a text.
__________________


Quote:
Gerhard Plattner: "The best attitude is to consider fuel saving a kind of sport. Everybody who has enough money for a strong car, can drive fast and hit the pedal. But saving fuel requires concentration, self-control and cleverness. It's a challenge with the nice effect of saving you money that you can use for other more important things."
  Reply With Quote
Old 02-04-2017, 08:16 AM   #8 (permalink)
EcoModding Lurker
 
Join Date: Feb 2017
Location: turkey
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Can you find a solution?
  Reply With Quote
Old 02-04-2017, 05:34 PM   #9 (permalink)
Master EcoModder
 
teoman's Avatar
 
Join Date: Jan 2017
Location: Istanbul
Posts: 1,245

A3 - '12 Audi A3
Thanks: 65
Thanked 225 Times in 186 Posts
Welcome Berkin

I am also interested in this, as you live close by maybe i can help you out a little bit.
  Reply With Quote
Old 02-04-2017, 06:02 PM   #10 (permalink)
MPGuino Supporter
 
t vago's Avatar
 
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
I have a version of MPGuino that is far more capable that the original v0.86 code, it supports many different Arduino platforms, and it compiles with the current Arduino IDE.

  Reply With Quote
Reply  Post New Thread


Tags
mpguino code





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