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


Reply
 
Submit Tools LinkBack Thread Tools
Old 07-11-2008, 06:48 PM   #101 (permalink)
EcoModding Lurker
 
Join Date: Jun 2008
Location: ohio
Posts: 27

The Civic - '99 Civic
90 day: 40.41 mpg (US)
I wonder why I cant get mine to display anything but OBD-II ISO9141-2. My serial monitor just shows "initialization"


(Support Ecomodder.com & get rid of these annoying ads!)      
 

Last edited by tom43571; 07-11-2008 at 07:04 PM.
  Reply With Quote
Old 07-12-2008, 12:21 AM   #102 (permalink)
EcoModding Lurker
 
Join Date: Jun 2008
Location: USA
Posts: 32

N8sPony - '98 Mustang
bleh, plugged it up in the car tonight and turns out I suck, lol. Best as I can tell, I'm going to have to get some transistors to drive the lines, but I still don't know how I'm going to get it to read back the data, because the pulsein() Idea I had isn't working worth crap.I'm going to look into getting samples of some driver chips so I can cheat, lol. I dunno, I think I'm way out of my league on this one, but I'm gonna keep trying. I REALLY wish I had an O-scope to see if the car's responding....

Last edited by n8thegr8; 07-12-2008 at 01:16 AM.
  Reply With Quote
Old 07-12-2008, 09:49 AM   #103 (permalink)
EcoModding Apprentice
 
cmags's Avatar
 
Join Date: Apr 2008
Location: Marietta, GA
Posts: 134

Scoob - '05 Impreza Outback Sport SE
90 day: 25.28 mpg (US)
Well, I think it was posted here before, but here it is again with a direct link to the trunk: Revision 4: /trunk

You might be able to look over their code for some of the basics... GL!
  Reply With Quote
Old 07-14-2008, 03:27 PM   #104 (permalink)
OBDuino coder
 
Magister's Avatar
 
Join Date: Jun 2008
Location: Montréal, QC
Posts: 93

Titine - '07 Elantra GL
I tested in my car but after sending the 0x33 at 5 bauds it seems I get no answer from the ECU. I should bring a scope in the car :-/
__________________
  Reply With Quote
Old 07-15-2008, 02:43 PM   #105 (permalink)
OBDuino coder
 
Magister's Avatar
 
Join Date: Jun 2008
Location: Montréal, QC
Posts: 93

Titine - '07 Elantra GL
My interface is finally completed, I rewired it with 28AWG instead of 22 (what I had around), it's nicer

On my bench I tested the output of the ISO line of the MC33290 with a scope when I send the 0x33 and it's ok. I am wondering if the 2 grounds in the car are connected or not (pin 1 and 2 of the OBD2 connector). I will do a test with the MC ground on pin 1.
Else I will take an inverter and a scope in the car to test signals.
__________________
  Reply With Quote
Old 07-15-2008, 11:21 PM   #106 (permalink)
EcoModding Lurker
 
Join Date: Jun 2008
Location: USA
Posts: 32

N8sPony - '98 Mustang
nice, I wish I had a scope, then I could compare the signals from my usb adapter with those from my arduino. I've all but stopped messing with it atm, because I really am stuck and school's creepin up. bleh.
  Reply With Quote
Old 07-17-2008, 12:57 AM   #107 (permalink)
EcoModding Lurker
 
Join Date: Jun 2008
Location: ohio
Posts: 27

The Civic - '99 Civic
90 day: 40.41 mpg (US)
Wow, nice work on the diagrams magister
  Reply With Quote
Old 07-17-2008, 10:17 AM   #108 (permalink)
OBDuino coder
 
Magister's Avatar
 
Join Date: Jun 2008
Location: Montréal, QC
Posts: 93

Titine - '07 Elantra GL
Quote:
Originally Posted by tom43571 View Post
Wow, nice work on the diagrams magister
Thanks

I made some wiki page on the project too
opengauge - Google Code
__________________
  Reply With Quote
Old 07-17-2008, 02:16 PM   #109 (permalink)
OBDuino coder
 
Magister's Avatar
 
Join Date: Jun 2008
Location: Montréal, QC
Posts: 93

Titine - '07 Elantra GL
I tested with a scope in my car and when I send the 0x33, all the timings are correct on the K line, but the ECU does not answer, the bus is always high and I see no start bit (active low) coming

I am starting to wonder if my car answer to the slow init or if I need the fast init or the iso init sequence
__________________

Last edited by Magister; 07-17-2008 at 02:16 PM. Reason: smileys :)
  Reply With Quote
Old 07-20-2008, 02:09 AM   #110 (permalink)
EcoModding Apprentice
 
Join Date: Jul 2008
Location: N.C. / USA
Posts: 109
Under "MAF Sensor" in the list of constants...someone needs to change "4.54" grams per pound to "454" !! This decimal point is lost!
I didn't check the others, but they look OK at a glance. -whitevette

Last edited by whitevette; 07-20-2008 at 02:19 AM.
  Reply With Quote
Old 07-21-2008, 08:18 PM   #111 (permalink)
EcoModding Lurker
 
Join Date: Jun 2008
Location: ohio
Posts: 27

The Civic - '99 Civic
90 day: 40.41 mpg (US)
Anybody having any luck?
  Reply With Quote
Old 07-30-2008, 05:02 PM   #112 (permalink)
EcoModding Lurker
 
Join Date: Jun 2008
Location: USA
Posts: 32

N8sPony - '98 Mustang
sorry I've been out of the loop for a while, I ordered parts today to build a logic analyzer so that I can compare what my (working) usb obd reader does compared to my arduino and adjust accordingly (only like $10 in parts). I'm also thinking I'm going to have to ditch the pulseIn method and setup the analog comparator manually

off topic, the logic analyzer should also come in handy in getting my arduino to control my zune, which is the only thing I'm lacking with my integration setup compared to when I was using an ipod, woot!
  Reply With Quote
Old 07-30-2008, 07:39 PM   #113 (permalink)
EcoModding Apprentice
 
cmags's Avatar
 
Join Date: Apr 2008
Location: Marietta, GA
Posts: 134

Scoob - '05 Impreza Outback Sport SE
90 day: 25.28 mpg (US)
$10 in parts for a logic analyzer?? Do you have a schematic/part list for this? (Damn, and I *just* received an order from Mouser...)
  Reply With Quote
Old 07-30-2008, 11:30 PM   #114 (permalink)
EcoModding Lurker
 
Join Date: Jun 2008
Location: USA
Posts: 32

N8sPony - '98 Mustang
here's the site: http://www.geocities.com/ted_rossin/...#LogicAnalyzer

Schematic: http://www.geocities.com/ted_rossin/...heapLogicA.jpg

parts list from mouser invoice (sans the max243, which I ordered as a sample from maxim):

ORDERED STOCK NUMBER SHIPPED PRICE EXTENDED
-----------------------------------------------------------------
1 152-3309 1 1.190 1.19
Kobiconn D-Sub Conne
9C R/A PCB PLUG

1 71-CCF07-G-1K 1 0.020 0.02
Vishay/Dale 1/4WATT
1/4watt 1Kohms 2%

1 71-CCF07-J-47K 1 0.020 0.02
Vishay/Dale 1/4WATT
1/4watt 47Kohms 5%

2 140-50N5-220J-TB-RC 2 0.060 0.12
Xicon Class 1 Cerami
50V 22pF NPO

1 520-HCA2000-20X 1 0.400 0.40
ECS HC-49/U Micropro
20MHz 20pF

4 80-C322C104M5U5HA 4 0.120 0.48
Kemet Conformally Co
50volts 0.1uF 20%

1 579-PIC16F87304SP 1 7.460 7.46
Microchip PICmicro -
7KB 192 RAM 22 I/O

ended up about 16$ after shipping. It's an rs232 based logic analyzer that displays and logs data on your pc. You'll also need a pic programmer if you don't have one already. Dunno how well it works but I figure it's worth a shot. you can do one cheaper with a parallel port, but my lappy's only got serial.
  Reply With Quote
Old 07-31-2008, 11:58 PM   #115 (permalink)
OBDuino coder
 
Magister's Avatar
 
Join Date: Jun 2008
Location: Montréal, QC
Posts: 93

Titine - '07 Elantra GL
guys, I am busy these weeks but will re-start to work on it next week!
__________________
  Reply With Quote
Old 08-06-2008, 01:47 PM   #116 (permalink)
OBDuino coder
 
Magister's Avatar
 
Join Date: Jun 2008
Location: Montréal, QC
Posts: 93

Titine - '07 Elantra GL
I re-did some test and I don't know where to continue now

I checked that my car use only K line and not L, which is ok, I also have the CAN pins but as it's a 07 it should work with the "old" iso protocol.

I added init for ISO14230 fast and slow but it changes nothing.

I monitored the output of my circuit and I rightly output on the OBD2 plug, timing for the 5 bauds init is right to the millisecond according to my scope.

However my ECU never answer something, the K line is always high and the ECU never pull it down to start to send someting (a start bit), I monitored with the scope in the car!

I re-checked our hardware design and it seems ok AFAIK.

I will try to find some help on the avrfreaks forum maybe?
__________________
  Reply With Quote
Old 08-08-2008, 04:04 PM   #117 (permalink)
OBDuino coder
 
Magister's Avatar
 
Join Date: Jun 2008
Location: Montréal, QC
Posts: 93

Titine - '07 Elantra GL
Ok' I tried ISO9141 and ISO14230 and tried with an address from 0x01 to 0x7F without success.

It seems my car (Elantra 2007) is CAN only


CAN is also used for the electric power steering, etc.

And there is no VSS on my car anyway so I can not use the MPGuino!
There is only a WSS, a right front wheel speed sensor.

I may let the ISO OBDuino in the hand of someone else and start again with a AT90CAN or an ELM327
__________________
  Reply With Quote
Old 08-08-2008, 04:17 PM   #118 (permalink)
dcb
Master EcoModder
 
dcb's Avatar
 
Join Date: Feb 2008
Location: 3rd rock
Posts: 1,292

pimp mobile - '81 gs 250 t
90 day: 96.29 mpg (US)
no vss? That is hard to imagine, wss sounds suitable, might need a transistor to make it useable by the guino or something.

If you can decypher the can protocol on the atmega168 then that would simplify things quite a bit. CAN IS the standard for new cars for the short term anyway. the 327 would be a nice generic chip too, but someone mentioned it was slow?
  Reply With Quote
Old 08-08-2008, 05:45 PM   #119 (permalink)
OBDuino coder
 
Magister's Avatar
 
Join Date: Jun 2008
Location: Montréal, QC
Posts: 93

Titine - '07 Elantra GL
Yes it seems the Elantra does not have VSS!!

The 327 by default works at 9600 bauds but can be set to 38400 bauds which is better.

I am taking a look at CAN spec but OMG it looks like more complicated :-/

I may take an ELM327 and interface it directly to the arduino (tx and rx) for the AT commands, and with a MCP2551 (The MCP2551 is a high-speed CAN transceiver, fault-tolerant device that serves as the interface between a CAN protocol controller and the physical bus) for CAN.
__________________
  Reply With Quote
Old 08-08-2008, 06:48 PM   #120 (permalink)
dcb
Master EcoModder
 
dcb's Avatar
 
Join Date: Feb 2008
Location: 3rd rock
Posts: 1,292

pimp mobile - '81 gs 250 t
90 day: 96.29 mpg (US)
WSS should be fine, my vss on the saturn is technically a left wheel speed sensor (it senses the speed on the left axle).
  Reply With Quote
Reply

Tags
obd2

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
MPGuino release one workspace dcb OpenGauge / MPGuino FE computer 753 Today 10:50 AM
All New Nissan Models to Feature Fuel Efficiency Gauge MetroMPG General Efficiency Discussion 7 11-18-2008 05:57 PM
Just some quick info on Scangauge vs. MPGuino NoCO2 OpenGauge / MPGuino FE computer 0 05-20-2008 05:47 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.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 RC5
All content copyright EcoModder.com