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

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 02-08-2013, 12:20 PM   #1 (permalink)
EcoModding Lurker
 
Join Date: Feb 2013
Location: Denmark
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Obduino and J1850 PWM

Hi guys,

I have a problem getting the Obduino code working with my 2000 Ford Focus.

I'm using the Sparkfun obd2 uart (elm327) to interface the obd2 port and it seems to initialize fine and returns the right protocol, but after that i get nothing, just pid not supported.

I already have a Scangauge that works perfectly, so i know the data is available, but i can't figure out how to get the Arduino to read it.

I've spent a couple of weeks on the project so far, looking through the net and trying different code, but so far nothing is working. I'm starting to go crazy here, so any help is appreciated.

  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 02-18-2013, 04:20 PM   #2 (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
Remove this part in the code and retry

Quote:
// ask protocol
elm_command(str, PSTR("ATDPN\r"));
// str[0] should be 'A' for automatic
// set header to talk directly to ECU#1
if(str[1]=='1') // PWM
elm_command(str, PSTR("ATSHE410F1\r"));
else if(str[1]=='2') // VPW
elm_command(str, PSTR("ATSHA810F1\r"));
else if(str[1]=='3') // ISO 9141
elm_command(str, PSTR("ATSH6810F1\r"));
else if(str[1]=='6') // CAN 11 bits
elm_command(str, PSTR("ATSH7E0\r"));
else if(str[1]=='7') // CAN 29 bits
elm_command(str, PSTR("ATSHDA10F1\r"));
__________________
2013 Hyundai Sonata Hybrid
  Reply With Quote
Old 02-25-2013, 08:25 AM   #3 (permalink)
EcoModding Lurker
 
Join Date: Feb 2013
Location: Denmark
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
That doesn't seem to make a difference.
  Reply With Quote
Old 02-25-2013, 10:13 AM   #4 (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
In this case you have to display some debug code here and there, display the PID00 and PID20 on the LCD for instance.

__________________
2013 Hyundai Sonata Hybrid
  Reply With Quote
Reply  Post New Thread


Thread Tools




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