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-09-2011, 10:04 PM   #681 (permalink)
OBDuino coder
 
Magister's Avatar
 
Join Date: Jun 2008
Location: Montréal, QC
Posts: 212

Titine - '13 Hyundai Sonata Hybrid
Thanks: 3
Thanked 10 Times in 8 Posts
Yeah thanks, I fried my ELM327 months ago and was not able to fully debug the code!

__________________
2013 Hyundai Sonata Hybrid
  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 04-10-2011, 03:21 PM   #682 (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
Sorry to hear your ELM327 broke. I am hoping I don't do the same to mine...

I solved my engine off/engine on problem previously mentioned, so I am good to go with the code, and will now focus on containing all my wires in proper cabling and a box.

In all, to get the code running for my 2004 Pontiac Vibe, I made three changes to r193:

1.
elm_init(): Serial.begin(38400); (was 9600)

2.
elm_init(): removed command "ATDPN" through the end of the function, which removes the ISO-9141 SET HEADER command.

3.
loop(): in the non-useECUState part, following the call to save_params_and_display(), 3 lines added, which put the ELM in a state which makes it work for me on engine restart:
elm_command(str, PSTR("ATWS\r")); //warm start
delay(1000);
elm_command(str, PSTR("ATE0\r")); //echo off

These tweaks are not meant to be general solutions. They are just what is working for me, and might help someone else too. So I wouldn't recommend modifying the code base with them without a bit more investigation (like why the SET HEADER was there, and why it doesn't work for me). I'll pass on anything I learn.

The loop() code uses a few global variables that I failed to understand, and the two halves of loop() (one for useECUState and on for not) may have diverged over time. Which is to say that my ELM warm-start solution in loop() may cause other side-effects and problems.
  Reply With Quote
Old 04-13-2011, 04:32 PM   #683 (permalink)
dar
EcoModding Lurker
 
Join Date: Apr 2011
Location: Lithuania
Posts: 16
Thanks: 0
Thanked 3 Times in 2 Posts
I used Si9243 with success. For me it was much easier to find instead of MC33290.
It's communicate with WW Passat 1.8 1999.
P.S. It is necessary to check DB9M 1(signal ground) for ground.
If no - connect 1 and 2 together.
  Reply With Quote
Old 04-14-2011, 06:32 PM   #684 (permalink)
EcoModding Lurker
 
Join Date: Apr 2011
Location: Essex, UK
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Si9243 code?

I could only get hold of a Si9243, dar can you post a link to your modded code or give me some hints as to what needs tweaking. Any tips?
Kind Regards
py7rjs
  Reply With Quote
Old 04-17-2011, 02:56 PM   #685 (permalink)
dar
EcoModding Lurker
 
Join Date: Apr 2011
Location: Lithuania
Posts: 16
Thanks: 0
Thanked 3 Times in 2 Posts
I used 187 without code modification (protocol ISO 9141).

+12V-------------------------------------------->9 Vbat
....................______...I--------------------->8 L
Pin 0 <-------I 1...8 I--I...I--1N4004 diode-->9 Vbat
Rx................I 2...7 I-----+--560R 0.5W--I
Pin <-100R--I 3...6 I----------------------+->4 K
+5V
Pin 1 <-------I 4...5 I------------------------>1 GND
Tx.................______ Si9243
Pin 0v <---------------------------------------->2 GND
GND
............dots is spacing..
I added 100R resistor and diode (1N4004) for protection.

Last edited by dar; 04-18-2011 at 02:20 PM.. Reason: Problem in the scheme's showing (with spacing)
  Reply With Quote
Old 04-17-2011, 03:42 PM   #686 (permalink)
EcoModding Lurker
 
Join Date: Aug 2010
Location: Lithuania
Posts: 74
Thanks: 3
Thanked 21 Times in 15 Posts
Yes it looks like Si9243 does not need any code modification, unlike Si9241 discussed some time ago.

Just not understand why 6 and 7 pins are connected with 560R?
  Reply With Quote
Old 04-18-2011, 02:19 PM   #687 (permalink)
dar
EcoModding Lurker
 
Join Date: Apr 2011
Location: Lithuania
Posts: 16
Thanks: 0
Thanked 3 Times in 2 Posts
For information about Si9243 -> VISHAY AN602 "Driver ICs for Automotive Diagnostic Communications Meet ISO 9141 Standards" (->google.com).
Resistor 560R 0,5W is between K-line (6) and Vbat (7) (Si9243AEY) alike 510R between 1 (Vbat) and 4 (ISO) leg of MC33290.
I'd used 560R instead of 510R, because found in few USB-KL-adapters. Sometimes there is adjustment (510R+ potentiometer 0-2000R).
I like it

Last edited by dar; 04-18-2011 at 02:52 PM..
  Reply With Quote
Old 04-25-2011, 10:31 AM   #688 (permalink)
EcoModding Lurker
 
Join Date: Feb 2011
Location: Groveland, FL
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Well, My OBDuino setup is acting weird, I updated to v193 and now all it displays is random hex values. I have checked the code and reloaded, I have also tried loading the generic (unmodified) code, I have also loaded the EEPROM Clear code and then reloaded, all to no avail. I am also getting display doubling and scrolling issues. Please assist. (I am using a MC33290 Chip and a 20x4 LCD)

EDIT: Got it working, had to disconnect everything form the 'duino and use only Arduino software to edit and upload. Still having doubling issues though, but I will search and maybe make a new thread for that. Thanks.
__________________
Code:
DiabolicJourney_SpaRky

Last edited by DJ_SpaRky; 04-26-2011 at 11:23 AM..
  Reply With Quote
Old 05-16-2011, 04:11 AM   #689 (permalink)
dar
EcoModding Lurker
 
Join Date: Apr 2011
Location: Lithuania
Posts: 16
Thanks: 0
Thanked 3 Times in 2 Posts
Hello,
Now i'm trying to add SdCard support, but there are some problems.
1. Then used Obduino32k (ver. 194) with (// define useSDcard) - i get many errors ( as, "364: error 'byte' does not name a type", ....). Adding #include "WConstants.h solved some problems, but not all.
Then went to previous version (v.193) - withtout CDcard support (// define useSDcard)- it is posible to compile and upload. (Now trying in the car).
2. But then trying Obduino32k with SDcard support (both version 193, 194), compilation goes O.K. ( Binary sketch size: 30050 bytes (of a 32256 byte maximum)), but I can't to upload to arduino.
Whitch version of "FileLogger" library is used?
Thanks for answers.
  Reply With Quote
Old 05-16-2011, 04:34 AM   #690 (permalink)
EcoModding Lurker
 
Join Date: Aug 2010
Location: Lithuania
Posts: 74
Thanks: 3
Thanked 21 Times in 15 Posts
I used arduino_22
FileLogger was V0.6

Is your arduino version same?

did you uncomented
#include <FileLogger.h>?


Last edited by eimix; 05-16-2011 at 04:42 AM..
  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