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

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 01-15-2016, 02:17 PM   #411 (permalink)
MPGuino Supporter
 
t vago's Avatar
 
Join Date: Oct 2010
Location: Hungary
Posts: 1,807

iNXS - '10 Opel Zafira 111 Anniversary

Suzi - '02 Suzuki Swift GL
Thanks: 829
Thanked 708 Times in 456 Posts
Quote:
Originally Posted by Ettore_M View Post
Thank you very much t_vago! I'll check again to see if I've done any mistake myself. I'll wait for your results!

Hector
Can you attach the exact file you used to flash your AtMega328P ? That would help even further.

  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 01-15-2016, 03:10 PM   #412 (permalink)
EcoModding Lurker
 
Join Date: Nov 2015
Location: Athens, Greece
Posts: 7
Thanks: 4
Thanked 3 Times in 3 Posts
Quote:
Originally Posted by t vago View Post
Can you attach the exact file you used to flash your AtMega328P ? That would help even further.
Yeah. Here it is.. It's your 193 code but with a few minor changes (Startup page name and inverted brightness setting for PNP driver).

I compiled it with avr-gcc for DF_CPU=20000000UL and programmed it with avrdude.

Hector
Attached Files
File Type: zip mpguino193tav.zip (45.5 KB, 40 views)
  Reply With Quote
The Following User Says Thank You to Ettore_M For This Useful Post:
t vago (01-18-2016)
Old 01-16-2016, 06:27 PM   #413 (permalink)
MPGuino Supporter
 
t vago's Avatar
 
Join Date: Oct 2010
Location: Hungary
Posts: 1,807

iNXS - '10 Opel Zafira 111 Anniversary

Suzi - '02 Suzuki Swift GL
Thanks: 829
Thanked 708 Times in 456 Posts
Quote:
Originally Posted by Ettore_M View Post
Yeah. Here it is.. It's your 193 code but with a few minor changes (Startup page name and inverted brightness setting for PNP driver).

I compiled it with avr-gcc for DF_CPU=20000000UL and programmed it with avrdude.

Hector
Well, I programmed it into my MPGuino using the latest version of the Arduino IDE, and it works normally. It's actually kind of neat to click on the middle button, and watch brightness actually go down and then cycle back to full bright.

Can you point to the circuit diagram you used to build your MPGuino? Did you blow any of the programming fuses?
  Reply With Quote
The Following User Says Thank You to t vago For This Useful Post:
Ettore_M (01-16-2016)
Old 01-16-2016, 07:39 PM   #414 (permalink)
EcoModding Lurker
 
Join Date: Nov 2015
Location: Athens, Greece
Posts: 7
Thanks: 4
Thanked 3 Times in 3 Posts
Quote:
Originally Posted by t vago View Post
Well, I programmed it into my MPGuino using the latest version of the Arduino IDE, and it works normally. It's actually kind of neat to click on the middle button, and watch brightness actually go down and then cycle back to full bright.

Can you point to the circuit diagram you used to build your MPGuino? Did you blow any of the programming fuses?
That's nice! Thank you very much. You've been really helpful and it's great to know which things works and which don't.

You're right. The fuses. What fuses settings did you use for yours? I should check it now.

Thanks!
Hector
  Reply With Quote
Old 01-16-2016, 07:41 PM   #415 (permalink)
EcoModding Lurker
 
Join Date: Nov 2015
Location: Athens, Greece
Posts: 7
Thanks: 4
Thanked 3 Times in 3 Posts
P.S. Because I didn't have at least 5 posts to be able to post a link!

I used the circuit board design from this thread:

http://ecomodder.com/forum/showthrea...ing-12722.html

I checked the board and it seems to be right. The guy's MPGuino works properly.

Hector
  Reply With Quote
The Following User Says Thank You to Ettore_M For This Useful Post:
t vago (01-18-2016)
Old 01-16-2016, 09:11 PM   #416 (permalink)
EcoModding Lurker
 
Join Date: Nov 2015
Location: Athens, Greece
Posts: 7
Thanks: 4
Thanked 3 Times in 3 Posts
t_vago! Thank you! It was indeed the fuses. THey were set wrong.
I changed them for lfuse:0xf7 hfuse:0xd9 efuse:0x07 and now it works great! Thank you all for this great project. t_vago, thanks for the great code and for the help. I'm greatful!

Hector
  Reply With Quote
The Following User Says Thank You to Ettore_M For This Useful Post:
t vago (01-16-2016)
Old 01-16-2016, 11:05 PM   #417 (permalink)
MPGuino Supporter
 
t vago's Avatar
 
Join Date: Oct 2010
Location: Hungary
Posts: 1,807

iNXS - '10 Opel Zafira 111 Anniversary

Suzi - '02 Suzuki Swift GL
Thanks: 829
Thanked 708 Times in 456 Posts
Quote:
Originally Posted by Ettore_M View Post
t_vago! Thank you! It was indeed the fuses. THey were set wrong.
I changed them for lfuse:0xf7 hfuse:0xd9 efuse:0x07 and now it works great! Thank you all for this great project. t_vago, thanks for the great code and for the help. I'm greatful!

Hector
Glad to be of help! I will include your findings in the first post of this thread, so that others won't have to go through what you did.
  Reply With Quote
Old 01-18-2016, 06:17 PM   #418 (permalink)
MPGuino Supporter
 
t vago's Avatar
 
Join Date: Oct 2010
Location: Hungary
Posts: 1,807

iNXS - '10 Opel Zafira 111 Anniversary

Suzi - '02 Suzuki Swift GL
Thanks: 829
Thanked 708 Times in 456 Posts
Quote:
Originally Posted by amnonholland View Post
Im trying to write out a 0-5v signal on the UNO pwm pin with the fuel level to go to another ext gauge.
I'm working now on adding this feature to MPGuino. As it stands right now, I've added the necessary hardware-level programming to initialize the two output pins, and I've added two parameters. Of course, it's an optional feature that is configurable from the source program by commenting out a '#define' directive at the start of the code.

Each of the two pins will be configured into a pre-defined mode. The defined modes are as follows:
  • Instant fuel economy worse than current average fuel economy (on/off)
  • Instant fuel economy better than current average fuel economy (on/off)
  • Instant fuel economy worse than tank average fuel economy (on/off)
  • Instant fuel economy better than tank average fuel economy (on/off)
  • Estimated tank fuel consumed (variable 0-5 VDC; 0VDC-empty and 5VDC-full)
  • Estimated tank fuel remaining (variable 0-5 VDC; 0VDC-empty and 5VDC-full)

Longtime supporters/followers of MPGuino will recognize that the first 4 listed modes will enable my fork of MPGuino to emulate the Red/Green LED hack mentioned on the MPGuino code hacks page, where a red LED was set up to light if instant fuel economy was worse than tank average fuel economy, and a green LED was set up to light if instant fuel economy was better than tank average fuel economy.

The remaining two modes should work for amnonholland. They enable the MPGuino hardware to generate a variable 0-5VDC signal, which is suitable as an analog input into a electrical gauge.
  Reply With Quote
The Following 2 Users Say Thank You to t vago For This Useful Post:
ECONORAM (01-26-2016), Felar (01-18-2016)
Old 01-18-2016, 06:43 PM   #419 (permalink)
MPGuino Supporter
 
t vago's Avatar
 
Join Date: Oct 2010
Location: Hungary
Posts: 1,807

iNXS - '10 Opel Zafira 111 Anniversary

Suzi - '02 Suzuki Swift GL
Thanks: 829
Thanked 708 Times in 456 Posts
Quote:
Originally Posted by Felar View Post
1. ability to do partial refuel. e.g. ability to enter an amount of gasoline received.
2. ability to disable unneeded screens. (i have to click, click, click to switch between screens i use most of the time).
I am thinking that the partial refuel feature should not be too hard to implement, after all.

Let me chew on this a bit longer, and I should have partial refuel ready before the month is out.
  Reply With Quote
Old 01-23-2016, 12:18 PM   #420 (permalink)
EcoModding Apprentice
 
Join Date: Dec 2012
Location: Portugal
Posts: 197
Thanks: 93
Thanked 70 Times in 64 Posts
Quote:
Originally Posted by t vago View Post
I am thinking that the partial refuel feature should not be too hard to implement, after all.

Let me chew on this a bit longer, and I should have partial refuel ready before the month is out.
That's good news, but will have to take into account the various resistance values which each brand uses that in my case are the image below. Another thing that must be noted is the rapid change in resistance due to movements of fuel when the car is in circulation.
Perhaps a system using the average obtained over a minute to minimize errors.
But are excellent news.


Thanks
José Rodrigues

  Reply With Quote
Reply  Post New Thread






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