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

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 04-04-2011, 02:58 PM   #671 (permalink)
EcoModding Lurker
 
Join Date: Aug 2010
Location: Lithuania
Posts: 74
Thanks: 3
Thanked 21 Times in 15 Posts
Posted new version on googlecode (v190).

spfautsch pid cache not included
(not working with vehicles not supporting MAF and working with MAP only)
current pid caching works in all cases.

  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 04-05-2011, 06:22 AM   #672 (permalink)
EcoModding Lurker
 
Join Date: Mar 2011
Location: Denmark
Posts: 11
Thanks: 2
Thanked 0 Times in 0 Posts
You did it! :-)

Quote:
Originally Posted by eimix View Post
It could be nice, but RPM is 4digit some others also 4 digits.
So this could be done only in screen #4 (first bignum), or in both, but additional info would be disabled in screen #5.
Hi guys,

I have just seen that you have implemented two of my suggestions (Configurable BigNum font and configurable BigNum PID). Great!!! I can't wait to get home and test these two. Thanks!

Keep up the good work!

TT
  Reply With Quote
Old 04-05-2011, 06:42 AM   #673 (permalink)
EcoModding Lurker
 
Join Date: Aug 2010
Location: Lithuania
Posts: 74
Thanks: 3
Thanked 21 Times in 15 Posts
Quote:
Originally Posted by Bix View Post
Has anyone had a look at the vishay SI9241? http://www.datasheetcatalog.org/data...shay/70013.pdf

Would this chip be compatible with this project, or perhaps some slight mod to get it working?
I read few thread in various forums about IC for ISO 9141
and it looks possible to use other ICs:

Different ISO Serial Chips - MyRollingRoad & South West Mitsubishi EVO Forums
and home build one:
prj.perquin.com

For SI9241 CS pin control I can make some changes to OBDuino and output HIGH on one pin if transmitting (initialization or sending pid request) and LOW if receiving (always if not transmitting). Or oposit if needed.

As i see there is few pins unused left

But testing in real and troubleshooting would be your job.
  Reply With Quote
Old 04-05-2011, 09:14 AM   #674 (permalink)
EcoModding Lurker
 
Join Date: Aug 2010
Location: Lithuania
Posts: 74
Thanks: 3
Thanked 21 Times in 15 Posts
SD card logging imposible

SD card logging imposible with standart SD.h library (FAT16/FAT32).

With simple initialization and one string file write it uses ~10kbytes, now OBDuino32K uses ~27-28kbytes, and there is only 2-3kbytes left.

Move to OBDuino64K or 128K?

Update:
even with this small one:
arduino-filelogger - Arduino library to log data into SD cards - Google Project Hosting

needs 3.5kbytes flash memory (+537bytes SRAM)

Current code should be optimized to 25k

Last edited by eimix; 04-05-2011 at 09:20 AM..
  Reply With Quote
Old 04-07-2011, 11:35 PM   #675 (permalink)
EcoModding Lurker
 
Join Date: Oct 2010
Location: Oregon
Posts: 4

Vibe - '04 Pontiac Vibe
90 day: 33.97 mpg (US)
Thanks: 0
Thanked 0 Times in 0 Posts
#defines to build for ELM?

Hello,

My first post here. Many thanks to those who are sharing their work. This is my first use of OBD, etc.

I have an arduino up and running with the latest OBDuino32K code, connected to an ELM and to my 2004 Pontiac Vibe. It reports via the arduino and the LCD that the car's OBD protocol is ISO 9141-2, so basic car-ELM-Arduino communication is going I believe.

But no engine operation parameters are being reported (like RPM, etc.). All values on the LCD just sit at zero. I think maybe I am confused about what compile-time #defines I should set.

I first just turned on
#define ELM
but then found that compilation would not complete unless I turned off
#define useECUState
( this is because the variable boolean ECUconnection is #ifdef'd out if ELM is #defined, at line appx 937 - if I force definition of variable ECUconnection, compilation completes)

But the #ifdef logic in the function
boolean verifyECUAlive(void)
suggests that ELM can be defined along with useECUState.

I left the default compile setting of
#define ISO_9141
turned on, since my car is reporting ISO 9141-2 as it's protocol.

Looking through the code hasn't cleared things up for me. I feel like I need to understand the use of and interactions between #define ELM, #define useECUState, and #define ISO_9141, but maybe I am going down the wrong path. Any suggestions? Maybe I just need to get into the code more, which would be fine.

Thanks,
Ed
  Reply With Quote
Old 04-08-2011, 03:36 AM   #676 (permalink)
EcoModding Lurker
 
Join Date: Aug 2010
Location: Lithuania
Posts: 74
Thanks: 3
Thanked 21 Times in 15 Posts
only one of #define ELM or #define ISO_9141 could be defined. other one has to be commented. if you use ELM, others has to be commented.

and for now it looks that you should comment "#define useECUState" and do not use it.

i use ISO only, i do not have ELM. btw you should try some older versions until somebody confirms that current version works with ELM fine.
  Reply With Quote
Old 04-08-2011, 06:51 AM   #677 (permalink)
EcoModding Lurker
 
Join Date: Aug 2010
Location: Lithuania
Posts: 74
Thanks: 3
Thanked 21 Times in 15 Posts
SD card logging

My previous thoughts about SD logging was a little overstated

it works with latest version

things need to be modified:

1. move LCD wires connected to 12 and 13th pins to 2 and 3rd
2. download arduino-filelogger - Arduino library to log data into SD cards - Google Project Hosting and extract into ...arduino/libraries/FileLogger

3. make SD card holder
http://www.arduino.cc/cgi-bin/yabb2/...1206874649/all
few resistors and you are done

wire to arduino
Code:
  // SCK_PIN   13 <-> SD 5 SCK    DIVIDER (1.8kOhm, 3.3kOhm) or (2.2kOhm, 3.9kOhm) or similar
  // MISO_PIN  12 <-> SD 7 DO     DIRECT
  // MOSI_PIN  11 <-> SD 2 DI     DIVIDER (1.8kOhm, 3.3kOhm) or (2.2kOhm, 3.9kOhm) or similar
  // SS_PIN    10 <-> SD 1 CS     DIVIDER (1.8kOhm, 3.3kOhm) or (2.2kOhm, 3.9kOhm) or similar
  // 3.3V         <-> SD 4 VCC    DIRECT
  // GND          <-> SD 3 GND    DIRECT
  // GND          <-> SD 6 GND1   DIRECT
4. Format SD card SD Memory Card Formatting Software | SD Memory Card | Digital AV | Consumer Products | Support | Panasonic Global or similar tool.

5. create file "data.log" in root folder and write any comment or symbol in it.

Should work

some photos of soldered SD slot:




Last edited by eimix; 04-12-2011 at 08:34 AM..
  Reply With Quote
The Following 3 Users Say Thank You to eimix For This Useful Post:
Magister (04-08-2011), TurboTorben (04-08-2011), Yuretz (09-09-2011)
Old 04-08-2011, 11:53 AM   #678 (permalink)
EcoModding Lurker
 
Join Date: Oct 2010
Location: Oregon
Posts: 4

Vibe - '04 Pontiac Vibe
90 day: 33.97 mpg (US)
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by eimix View Post
i use ISO only, i do not have ELM. btw you should try some older versions until somebody confirms that current version works with ELM fine.
Thanks.

I will both look back at comments in this thread, and at previous code versions, to decide which the last known "good" ELM version is.

I will also make at least a small effort to continue to understand ELM issues in the current version.

Then I'll post with what I find.
  Reply With Quote
Old 04-08-2011, 09:57 PM   #679 (permalink)
EcoModding Lurker
 
Join Date: Oct 2010
Location: Oregon
Posts: 4

Vibe - '04 Pontiac Vibe
90 day: 33.97 mpg (US)
Thanks: 0
Thanked 0 Times in 0 Posts
#defines to build for ELM?

I got the current code (r193) running with my ELM327 by removing the ELM header set command (ATSHxxxxxx) in elm_init(). The command for ISO 9141 is "ATSH6810F1", which I haven't interpreted yet, but when that command is sent, my PID requests stop working. An ATWS or ATZ makes it okay again.

I drove around the block a couple times and am quite happy with the way it works. I found just one problem - when I shut off the engine and restarted, the display did not re-start (the buttons still switched screens fine, etc). I had to unplug/unpower to get it started again. I haven't looked at the engine-off code to see if there might be particular ELM issues there.

Soon I will move the circuit from the breadboard to something slightly less fragile and more usable, looking forward to using it.

-Ed
  Reply With Quote
Old 04-09-2011, 06:46 AM   #680 (permalink)
EcoModding Lurker
 
Join Date: Aug 2010
Location: Lithuania
Posts: 74
Thanks: 3
Thanked 21 Times in 15 Posts
Quote:
Originally Posted by edllew View Post
I got the current code (r193) running with my ELM327
great

some time later (then you finish fixing ELM code ) - put code changes here, we will update code on google.

  Reply With Quote
Reply  Post New Thread


Tags
obd2

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
MPGuino release one workspace dcb OpenGauge / MPGuino FE computer 1061 01-17-2020 02:37 AM
Just some quick info on Scangauge vs. MPGuino NoCO2 OpenGauge / MPGuino FE computer 4 06-01-2015 05:58 PM
All New Nissan Models to Feature Fuel Efficiency Gauge MetroMPG General Efficiency Discussion 6 11-18-2008 05:57 PM
Vacuum gauge problems :( DifferentPointofView Instrumentation 3 05-15-2008 12:04 AM
Will Scan Gauge work on mine? bennelson Instrumentation 9 02-19-2008 11:04 PM



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