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-06-2011, 01:40 PM   #31 (permalink)
EcoModding Apprentice
 
Join Date: Jan 2010
Location: Newark, DE
Posts: 143

'91 CRX - '91 Honda CRX DX
90 day: 34.91 mpg (US)
Thanks: 0
Thanked 14 Times in 14 Posts
Quote:
Originally Posted by msc View Post
Of course this would be a pointless exercise that adds two chips unless the second interrupt is put to good use.
I like to think the VSS is "good use", though I suppose it could be moved over to the new interrupt expander setup. Keeping the VSS and injector(s) on interrupts lets the non-time-critical code (such as variable calculations, display rendering, button handling and whatever else people come up with) run amok without affecting the accuracy of those core measurements.

Quote:
Originally Posted by msc View Post
Since you are working on a general re-rendering of the concept you might try and add DPFI support. It would be a significant contribution and you would be a hero to a number of people with throttle body injection.
I'll see what I can do.

Quote:
Originally Posted by msc View Post
Adding support for a second injector would require a second set of injector calibration values and summing the output of both injectors for total fuel flow.
Yeah, the software side seems pretty easy: A check-what-changed code snippet that triggers the appropriate chunk(s) of code in the interrupt. I've pretty much already written the chunk(s), I would just need a few additional variables to differentiate the two injectors.

Quote:
Originally Posted by msc View Post
On another topic. If you want to really keep the inductive kick of the injector away from the MCU you can give the input side of the opto it's own ground wire back to near where you pick up the injector signal, presumably at the ECU.
Yeah, I thought about that. The ground line you get on the Arduino's headers is uninterrupted back to the negative external power terminal, which would presumably be connected to a ground wire near the ECU. A second wire might help with noise rejection (not really a problem afaik), but I don't think the shared ground is going to cause problems protection-wise.

  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 04-08-2011, 11:13 AM   #32 (permalink)
EcoModding Apprentice
 
Join Date: Jan 2010
Location: Newark, DE
Posts: 143

'91 CRX - '91 Honda CRX DX
90 day: 34.91 mpg (US)
Thanks: 0
Thanked 14 Times in 14 Posts
I thought of an alternative circuit design for the interrupt expander last night. Each input would have 1 bit of a D-latch and an XOR gate. The data input to the latch would be the signal you want to watch, and the latched output would go to one of the XOR inputs. The other XOR input would be the raw signal. That way, the XOR would go true any time the input doesn't match the data in the latch, which would trigger the interrupt. When the interrupt gets triggered, part of the routine would clock the D-latch which would make the data and input match up again. That would make the XOR go false and clear the interrupt signal until the input changes again. It's still two chips, but those two chips could serve multiple inputs. A 74HC86 quad XOR and a 74HC373 octal D-latch costs about a dollar together and would serve 4 inputs. Add another XOR chip and it would serve eight (if there were enough free pins on the Arduino).
After looking around a bit, I found some IO expanders use this same setup to drive their interrupt outputs. Using a single-chip IO expander would be nice, but they're all serial interfaced which is probably too time consuming for an interrupt routine.
  Reply With Quote
Old 04-20-2011, 02:22 PM   #33 (permalink)
EcoModding Apprentice
 
Join Date: Jan 2010
Location: Newark, DE
Posts: 143

'91 CRX - '91 Honda CRX DX
90 day: 34.91 mpg (US)
Thanks: 0
Thanked 14 Times in 14 Posts
Current code, as posted in the Release Two Workspace (/Fork name TBD) thead:
http://dl.dropbox.com/u/9882625/MPGshield_0.3.pde
  Reply With Quote
Old 06-03-2011, 05:39 PM   #34 (permalink)
EcoModding Apprentice
 
Join Date: Jan 2010
Location: Newark, DE
Posts: 143

'91 CRX - '91 Honda CRX DX
90 day: 34.91 mpg (US)
Thanks: 0
Thanked 14 Times in 14 Posts
I had been busy with school, so not much progress, but here's the current state of things:
  Reply With Quote
The Following User Says Thank You to bobski For This Useful Post:
FalconFour (06-24-2011)
Old 06-24-2011, 03:25 PM   #35 (permalink)
EcoModding Lurker
 
FalconFour's Avatar
 
Join Date: Sep 2010
Location: Fresno, CA
Posts: 78

LEAF - '11 Nissan LEAF
Thanks: 4
Thanked 9 Times in 7 Posts
Holy... frickin'... lover of Jesus. WOW. That is one SERIOUS pro setup you've got there in that video. Yikes. Makes me feel kinda insignificant here with my most elaborate logic device being my Arduino (programming it to decode whatever logic I need to read), and my most elaborate analog device being my $50 kit digital oscilloscope based on an ATmega64. My breadboard setup is a modded Radio Shack Electronics Learning Lab (modded with an LCD, internally wired to 14 breadboard rows)... that's why I'm leaving all the monitoring and calculation code in MPGuino alone in V2, because I don't have the equipment to test any changes to that part! =P Heck, I'm even having trouble figuring out how I can test the data display routines outside the car if all I can show is "0"

So are you planning on building a new "device" for MPGuino (the hardware side, that is), or just working on software?
  Reply With Quote
Old 06-24-2011, 06:58 PM   #36 (permalink)
EcoModding Apprentice
 
Join Date: Jan 2010
Location: Newark, DE
Posts: 143

'91 CRX - '91 Honda CRX DX
90 day: 34.91 mpg (US)
Thanks: 0
Thanked 14 Times in 14 Posts
Eheh... Thanks. NKC has had a deal on the two (DS1052E and DG1022) for some time now, so I convinced my parents to pick up the bill as a graduation present. I've been wanting a decent oscilloscope since I was like 10 or 11 years old. But yeah, I had one of those same oscilloscope kits before this (128x64 display, 3 switches, 7 pushbuttons, PCB front and rear panels). I pretty much learned surface-mount soldering on that kit. It's affordable and decent as a basic scope if you have nothing else, but you can do so much more with a decent commercial bench scope.
Yes, I'm building new hardware. The above hardware is very similar to the MPGuino, but I wouldn't say it's "for MPGuino". Now that the basic framework is laid out, I'm leaning toward a design with a graphic display. Code-wise, it's pretty much just a matter of including the glcd library and writing the code to draw the display pages. Hardware-wise, graphic LCDs that are compatible with the glcd lib take up way more IO lines than character displays, so a mega-style Arduino board is probably a necessity. There are serial-controlled graphic displays out there, but it seems that would require pretty heavy modification of glcd, which is beyond my present abilities.
  Reply With Quote
Old 03-29-2015, 11:48 PM   #37 (permalink)
EcoModding Apprentice
 
Join Date: Oct 2014
Location: Marysville, wa
Posts: 221

97 Civic HX sedan VX trans - '98 Honda Civic LX + HX + VX
90 day: 41.9 mpg (US)
Thanks: 23
Thanked 42 Times in 24 Posts
I am jumping up and down in my seat. I am a complete Arduino dummy but download a sketch you shared, hit upload and it LOADED!!!!!

I am now going to assemble the hardware on a breadboard for further testing!

YOU ROCK!

Edit: I should have read more, I assumed this was the MPGuino.

I'm totally lost. I have an Arduino Uno and truly have no clue how to get the MPGuino code loaded on it.

I must be confusing the Uno with other hardware.
__________________
1998 LX with a full HX swap + VX transaxle.






Last edited by firehawk618; 03-29-2015 at 11:57 PM..
  Reply With Quote
Old 03-30-2015, 12:38 AM   #38 (permalink)
EcoModding Apprentice
 
Join Date: Jan 2010
Location: Newark, DE
Posts: 143

'91 CRX - '91 Honda CRX DX
90 day: 34.91 mpg (US)
Thanks: 0
Thanked 14 Times in 14 Posts
Quote:
Originally Posted by firehawk618 View Post
I should have read more, I assumed this was the MPGuino.
Nope. This was my re-hash of the MPGuino.

Quote:
Originally Posted by firehawk618 View Post
I have an Arduino Uno and truly have no clue how to get the MPGuino code loaded on it.

I must be confusing the Uno with other hardware.
Could be. I haven't looked at it in quite a while, but one of my complaints about MPGuino was that it's not compatible with the Arduino IDE. IIRC, the creator ditched the Arduino bootloader to free up space in flash and (I think?) make it less prone to bricking itself (re-writing its flash while in use). I can understand and respect that, but it means you need a dedicated ISP programmer to get new code onto the board.
The Uno (and subsequent boards) replaced the FTDI USB-serial chip with a second native-USB AVR processor which acts as a programmer and/or serial comm chip. I'm not sure whether or not that second chip will satisfy the requirements of a dedicated programmer.

Anyway, good luck and feel free to play with the code I posted.
  Reply With Quote
The Following User Says Thank You to bobski For This Useful Post:
firehawk618 (03-30-2015)
Old 03-30-2015, 12:48 AM   #39 (permalink)
EcoModding Apprentice
 
Join Date: Oct 2014
Location: Marysville, wa
Posts: 221

97 Civic HX sedan VX trans - '98 Honda Civic LX + HX + VX
90 day: 41.9 mpg (US)
Thanks: 23
Thanked 42 Times in 24 Posts
Quote:
Originally Posted by bobski View Post
Nope. This was my re-hash of the MPGuino.

Could be. I haven't looked at it in quite a while, but one of my complaints about MPGuino was that it's not compatible with the Arduino IDE. IIRC, the creator ditched the Arduino bootloader to free up space in flash and (I think?) make it less prone to bricking itself (re-writing its flash while in use). I can understand and respect that, but it means you need a dedicated ISP programmer to get new code onto the board.
The Uno (and subsequent boards) replaced the FTDI USB-serial chip with a second native-USB AVR processor which acts as a programmer and/or serial comm chip. I'm not sure whether or not that second chip will satisfy the requirements of a dedicated programmer.

Anyway, good luck and feel free to play with the code I posted.
Wow thank you for a quick response! It seems getting any help with MPguino these days is very hard.

If I follow the schematic below will this work with your code?

If not is there a schematic somewhere I can use with your code?

Thanks again!
Attached Thumbnails
Click image for larger version

Name:	MPGuino_Schematic.GIF
Views:	46
Size:	30.5 KB
ID:	17255  
__________________
1998 LX with a full HX swap + VX transaxle.





  Reply With Quote
Old 03-30-2015, 01:02 AM   #40 (permalink)
EcoModding Apprentice
 
Join Date: Jan 2010
Location: Newark, DE
Posts: 143

'91 CRX - '91 Honda CRX DX
90 day: 34.91 mpg (US)
Thanks: 0
Thanked 14 Times in 14 Posts
Page 3: link.
Don't bother with the I2C stuff (attached to analog 4 and 5), it's not used for anything important.

  Reply With Quote
The Following User Says Thank You to bobski For This Useful Post:
firehawk618 (03-30-2015)
Reply  Post New Thread


Thread Tools




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