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

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 07-10-2008, 01:32 AM   #81 (permalink)
EcoModding Lurker
 
Join Date: Jun 2008
Location: USA
Posts: 32

N8sPony - '98 Ford Mustang
Thanks: 0
Thanked 0 Times in 0 Posts
ok, so I got a serial adapter finally, and started testing my code. The function for converting the hex commands to binary works beautifully, while the function for converting the binary values returned into decimal worked, but the values were off by an order of magnitude, and in reviewing the algorithm, I realized it was stupid, lol. I'll iron that out at work tomorrow, and then once that's tested and working, I can throw it in my car and see if it can talk.

EDIT: got the binary to decimal conversion working as well now, I'm going to try to test it in my car tonight after I get back from the gym to see what I get


Last edited by n8thegr8; 07-10-2008 at 08:14 PM..
  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 07-10-2008, 08:39 PM   #82 (permalink)
EcoModding Lurker
 
Join Date: Jun 2008
Location: ohio
Posts: 41

The Civic - '99 Honda Civic
90 day: 40.41 mpg (US)
Thanks: 1
Thanked 0 Times in 0 Posts
I hooked it up today and tried it. LED 13 flickered and then it powerd up. The only thing to display on the screen are several pixels in the bottom right of the 16x2 LCD. The differenced between my obdguino and the schematic are that I used a 511 ohm resistor (only thing I could find) instead of a 510 and a 2n3904 (had one handy) instead of a 2n3906. If any of this would make the difference let me know and I will go to radio shack.
Attached Thumbnails
Click image for larger version

Name:	screenpic1.jpg
Views:	472
Size:	28.4 KB
ID:	1130  

Last edited by tom43571; 07-10-2008 at 10:11 PM..
  Reply With Quote
Old 07-10-2008, 09:03 PM   #83 (permalink)
EcoModding Lurker
 
Join Date: Jun 2008
Location: ohio
Posts: 41

The Civic - '99 Honda Civic
90 day: 40.41 mpg (US)
Thanks: 1
Thanked 0 Times in 0 Posts
I loaded the code from r24 with the LCD4bit library and the display lit up the entire bottom row rather than just the bottom right corner. This time the backlight did not come on.
Attached Thumbnails
Click image for larger version

Name:	screenpic2.jpg
Views:	76
Size:	29.4 KB
ID:	1131  

Last edited by tom43571; 07-10-2008 at 09:24 PM..
  Reply With Quote
Old 07-10-2008, 11:25 PM   #84 (permalink)
EcoModding Lurker
 
Join Date: Jun 2008
Location: ohio
Posts: 41

The Civic - '99 Honda Civic
90 day: 40.41 mpg (US)
Thanks: 1
Thanked 0 Times in 0 Posts
I uploaded the mpgguino code and it displays perfectly when plugged into the wall and the OBD so I know I have all of my wiring correct. I dont know if any of this helps but I think I am the only one that has it going and I just want to let everyone know what it is doing.

Last edited by tom43571; 07-10-2008 at 11:39 PM..
  Reply With Quote
Old 07-11-2008, 12:25 AM   #85 (permalink)
EcoModding Apprentice
 
cmags's Avatar
 
Join Date: Apr 2008
Location: Marietta, GA
Posts: 139

Scoob - '05 Subaru Impreza Outback Sport SE
90 day: 25.28 mpg (US)
Thanks: 0
Thanked 0 Times in 0 Posts
I've got a working MPGuino, and when I uploaded the OBDuino rev 32 code I got this exact same thing:


(Except that you have the LCD upside down in this pic

Gotta be something in the initialization code. Did you see that dcb updated his initialization code w/ Yoshi's suggestion for his v0.67? Maybe that's worth a shot. I'll read through the code later to see if anything stands out.

This definitely doesn't have to do with the 511ohm vs 510ohm resistor. Where do you see that its 511ohms? Did you measure that? Because the gold stripe on the resistor indicates 5% tolerance (+/- 25ohms), so you most likely have a 510ohm resistor that's actually quite w/in spec. 510ohm should be green-brown-brown (51 * 10^1).

The difference between a 2n3904 and 2n3906, however, is a big one. The 3904 is an NPN transistor, and the 3906 is PNP. These run in reverse polarity to eachother, so I would change that out for the correct one.

Last edited by cmags; 07-11-2008 at 12:49 AM.. Reason: Resistor & Trasnsistor info
  Reply With Quote
Old 07-11-2008, 12:44 AM   #86 (permalink)
EcoModding Lurker
 
Join Date: Jun 2008
Location: ohio
Posts: 41

The Civic - '99 Honda Civic
90 day: 40.41 mpg (US)
Thanks: 1
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by cmags View Post
I've got a working MPGuino, and when I uploaded the OBDuino rev 32 code I got this exact same thing:
(Except that you have the LCD upside down in this pic

Gotta be something in the initialization code. Did you see that dcb updated his initialization code w/ Yoshi's suggestion for his v0.67? Maybe that's worth a shot. I'll read through the code later to see if anything stands out.

I saw that he updated the mpguino code and I loaded it onto my obdguino. It looks great especially the large instant MPG. I didnt realize that the LCD was upside down until I finally got some words to display.
  Reply With Quote
Old 07-11-2008, 12:53 AM   #87 (permalink)
EcoModding Lurker
 
Join Date: Jun 2008
Location: USA
Posts: 32

N8sPony - '98 Ford Mustang
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by tom43571 View Post
I saw that he updated the mpguino code and I loaded it onto my obdguino. It looks great especially the large instant MPG. I didnt realize that the LCD was upside down until I finally got some words to display.
so do you have it reading the data from the OBDII port correctly? or are you just trying to get the lcd working? because that would be awesome if you had it working! I'm still wiring on a male serial port onto my arduino to hook up with my already built cable, so no test tonight, tomorrow for sure though!
  Reply With Quote
Old 07-11-2008, 01:23 AM   #88 (permalink)
EcoModding Lurker
 
Join Date: Jun 2008
Location: ohio
Posts: 41

The Civic - '99 Honda Civic
90 day: 40.41 mpg (US)
Thanks: 1
Thanked 0 Times in 0 Posts
I was just trying to be sure the LCD was working properly. The LCD works correctly but when the obduino code is loaded, it only displays the picture I had in post 82.
  Reply With Quote
Old 07-11-2008, 01:27 AM   #89 (permalink)
EcoModding Lurker
 
Join Date: Jun 2008
Location: ohio
Posts: 41

The Civic - '99 Honda Civic
90 day: 40.41 mpg (US)
Thanks: 1
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by cmags View Post
This definitely doesn't have to do with the 511ohm vs 510ohm resistor. Where do you see that its 511ohms? Did you measure that? Because the gold stripe on the resistor indicates 5% tolerance (+/- 25ohms), so you most likely have a 510ohm resistor that's actually quite w/in spec. 510ohm should be green-brown-brown (51 * 10^1).

The difference between a 2n3904 and 2n3906, however, is a big one. The 3904 is an NPN transistor, and the 3906 is PNP. These run in reverse polarity to eachother, so I would change that out for the correct one.
Thanks for the info. I just didnt want to go buy a 2n3906 because I have to buy them in packs of 10 but I will change it out tomorrow. I couldnt find a 510 ohm resistor so I wired a 470 and a 41 in series.
  Reply With Quote
Old 07-11-2008, 10:10 AM   #90 (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
I soldered my freeduino yesterday, I still have to wire the LCD display then I will start testing. I did a copy/paste of the mpguino LCD code and made minor mods to it so I don't know why it does not work :-/

You can plug a laptop on the *duino serial port, set your terminal at 115200 to see what's happening?

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


Tags
obd2



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 - 2024, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com