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

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 06-30-2010, 02:14 AM   #931 (permalink)
EcoModding Lurker
 
JellyBeanDriver's Avatar
 
Join Date: Jun 2010
Location: So. Cal
Posts: 92
Thanks: 2
Thanked 15 Times in 13 Posts
Quote:
Originally Posted by mjspiess View Post
Every now & then the speed will jump all over messing up the mpg calculations. I've calibrated it and what-not, but it still does it... I was hoping a software update would fix this.
What type of sensor generates your VSS signal?

__________________
1992 Geo Metro, 1.0L 5spd, 435,000 miles on the original engine and trans!
- knuckles/hubs/brakes/13" wheels from a 2000 Metro
- running 175 70R13
- averaging 51.7 MPG, 56.9MPG best tank.
- self built MPGuino
- http://www.dschmidt.com/MPGuinoJBD.html
  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 06-30-2010, 02:31 AM   #932 (permalink)
EcoModding Lurker
 
Join Date: Nov 2009
Location: Lansing, MI 48917
Posts: 70

The Blue Bomber - '95 Geo Metro
90 day: 52.09 mpg (US)
Thanks: 3
Thanked 8 Times in 6 Posts
I have the VSS wire from MPG directly to ECU wiring harness...so whatever sensor the ECU is using to get/deliver speed feedback.
  Reply With Quote
Old 07-07-2010, 01:25 AM   #933 (permalink)
EcoModding Lurker
 
JellyBeanDriver's Avatar
 
Join Date: Jun 2010
Location: So. Cal
Posts: 92
Thanks: 2
Thanked 15 Times in 13 Posts
Quote:
Originally Posted by mjspiess View Post
I have the VSS wire from MPG directly to ECU wiring harness...so whatever sensor the ECU is using to get/deliver speed feedback.
Just recognized your username over at geometroforum. Your signal is reed switch generated. I wonder if you're suffering from contact bounce.
Dave
__________________
1992 Geo Metro, 1.0L 5spd, 435,000 miles on the original engine and trans!
- knuckles/hubs/brakes/13" wheels from a 2000 Metro
- running 175 70R13
- averaging 51.7 MPG, 56.9MPG best tank.
- self built MPGuino
- http://www.dschmidt.com/MPGuinoJBD.html
  Reply With Quote
Old 07-07-2010, 01:42 AM   #934 (permalink)
EcoModding Lurker
 
Join Date: Nov 2009
Location: Lansing, MI 48917
Posts: 70

The Blue Bomber - '95 Geo Metro
90 day: 52.09 mpg (US)
Thanks: 3
Thanked 8 Times in 6 Posts
Yeah & vice versa haha I figured I'd get a little more feedback over here so gave it a try... So is this where the resister in line fixes it or something like that? It's really inconsistant...there's no way of foreseeing it happening until it happens. Sometimes it lasts a few seconds & others several minutes.
  Reply With Quote
Old 07-07-2010, 02:14 AM   #935 (permalink)
EcoModding Lurker
 
JellyBeanDriver's Avatar
 
Join Date: Jun 2010
Location: So. Cal
Posts: 92
Thanks: 2
Thanked 15 Times in 13 Posts
Anyone have a 'newbie' site or instructions on how to use the .CPP file in the repository to program into an ATMega328 that already has the bootloader installed? I don't see that I can use the .CPP file directly with Arduino 0018

I come from the Microchip MPlab environment, do all my programming in assembly. This Arduino IDE is really foreign.

Oh, I also have a Duemilanov if that helps at all.
__________________
1992 Geo Metro, 1.0L 5spd, 435,000 miles on the original engine and trans!
- knuckles/hubs/brakes/13" wheels from a 2000 Metro
- running 175 70R13
- averaging 51.7 MPG, 56.9MPG best tank.
- self built MPGuino
- http://www.dschmidt.com/MPGuinoJBD.html
  Reply With Quote
Old 07-07-2010, 08:36 AM   #936 (permalink)
EcoModding Lurker
 
Join Date: Mar 2010
Location: McCordsville, IN
Posts: 33

Sedan - '95 Honda Civic DX
90 day: 50.67 mpg (US)

Optima SX - '12 Kia Optima SX
90 day: 33.28 mpg (US)
Thanks: 1
Thanked 5 Times in 2 Posts
Quote:
Originally Posted by JellyBeanDriver View Post
Anyone have a 'newbie' site or instructions on how to use the .CPP file in the repository to program into an ATMega328 that already has the bootloader installed? I don't see that I can use the .CPP file directly with Arduino 0018

I come from the Microchip MPlab environment, do all my programming in assembly. This Arduino IDE is really foreign.

Oh, I also have a Duemilanov if that helps at all.

The CPP file was to get away from the Arduino platform. You have to use the PDE if you ahve the Arduino. Keep in mind though that the PDE is no longer being updated either. Maybe DCB will chime in.
__________________
  Reply With Quote
Old 07-07-2010, 09:28 AM   #937 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location: ÿ
Posts: 5,038

pimp mobile - '81 suzuki gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Volkswagen Golf TDI
90 day: 53.56 mpg (US)
Thanks: 158
Thanked 269 Times in 212 Posts
re: cpp, It's complicated I don't care to explain it much, though I will volunteer:

I currently use:
gcc (whatever came w/arduino0016)
I run it from wine under ubuntu 32

it gets burned using avrdude from a shell and a usbtinyISP connected to a homemade chip clip

I also have specific fuse settings for the 328 and re-read them and the code after burning for validation.

Most of it I picked up from turning on the verbose logging settings in arduino, and lots of searching avrfreaks.net and some arduino.cc and had to use avrstudio under windows to figure out some of the fuses as well.
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote
Old 07-08-2010, 01:29 AM   #938 (permalink)
EcoModding Lurker
 
JellyBeanDriver's Avatar
 
Join Date: Jun 2010
Location: So. Cal
Posts: 92
Thanks: 2
Thanked 15 Times in 13 Posts
Quote:
Originally Posted by dcb View Post
re: cpp, It's complicated I don't care to explain it much, though I will volunteer:
Thanks for the quick reply! This helps. I downloaded WinAVR and installed it. Going to go through the manual and see if I can force my brain to learn some new things.
__________________
1992 Geo Metro, 1.0L 5spd, 435,000 miles on the original engine and trans!
- knuckles/hubs/brakes/13" wheels from a 2000 Metro
- running 175 70R13
- averaging 51.7 MPG, 56.9MPG best tank.
- self built MPGuino
- http://www.dschmidt.com/MPGuinoJBD.html
  Reply With Quote
Old 07-08-2010, 11:07 AM   #939 (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
*warning* untested as I do not have an MPGuino

If you have installed WinAVR and it's in your PATH, then open a command prompt and copy/paste:

this should compile the .cpp file to a .elf, it's one line only so make sure the copy/paste works well!
Code:
avr-gcc -mmcu=atmega328p -I. -fno-tree-loop-optimize -morder1 -funsigned-char -funsigned-bitfields -fshort-enums -fpack-struct -ffunction-sections -fdata-sections -fno-split-wide-types -Wl,--relax,--gc-sections -fno-inline-small-functions -mcall-prologues -gstabs -DF_CPU=20000000 -Os -Wall -Wstrict-prototypes -std=gnu99 -Wa,-adhlns=mpguino.lst -o mpguino.elf mpguino.cpp -L.
this transform the .elf to a .hex
Code:
avr-objcopy -O ihex -R .eeprom mpguino.elf mpguino.hex
check the size of the executable against the chip specs (optional step)
Code:
avr-size -C --mcu=atmega328p mpguino.elf
burn fuses, change "usbasp" with your programmer. Also double check the fuse value but I think they are correct for a 328p
Code:
avrdude -p atmega328p -c usbasp -U lock:w:0x3f:m -U efuse:w:0xfc:m -U hfuse:w:0xd4:m -U lfuse:w:0xdf:m
burn the .hex to the chip
Code:
avrdude -p atmega328p -c usbasp -U flash:w:mpguino.hex
it's ready
__________________
2013 Hyundai Sonata Hybrid
  Reply With Quote
The Following User Says Thank You to Magister For This Useful Post:
JellyBeanDriver (07-09-2010)
Old 07-09-2010, 01:59 AM   #940 (permalink)
EcoModding Lurker
 
JellyBeanDriver's Avatar
 
Join Date: Jun 2010
Location: So. Cal
Posts: 92
Thanks: 2
Thanked 15 Times in 13 Posts
Quote:
Originally Posted by Magister View Post
*warning* untested as I do not have an MPGuino

If you have installed WinAVR and it's in your PATH, then open a command prompt and copy/paste:
Thanks! I went through the motions and generated both .elf and .hex files, but I see in the .cpp file some includes for .h files that are in the Arduino package and also in the WinAVR package.

There was a lot of warnings when the .cpp file was compiled but oddly no errors for missing .h files so somehow they're path'd

I own an Atmel AVRISP MKII, dug it out, downloaded AVR Studio, installed it and found that AVR Studio supports AVR GCC !! The IDE is pretty nice (compared to using the command line) and has a built in simulator.

When I created a project and loaded 'mpguino.cpp' in AVR Studio I could build the program and the resulting warning messages matched that from the dos prompt AVR-GCC stuff you wrote above.


Attached is the output log from the build.

Are all these errors normal?

Attached Files
File Type: txt MPGuinoBuildErrors.txt (9.4 KB, 43 views)
__________________
1992 Geo Metro, 1.0L 5spd, 435,000 miles on the original engine and trans!
- knuckles/hubs/brakes/13" wheels from a 2000 Metro
- running 175 70R13
- averaging 51.7 MPG, 56.9MPG best tank.
- self built MPGuino
- http://www.dschmidt.com/MPGuinoJBD.html
  Reply With Quote
Reply  Post New Thread




Similar Threads
Thread Thread Starter Forum Replies Last Post
My kingdom for a giant, heated workspace MetroMPG The Lounge 14 12-12-2010 10:08 AM
Motorcycle manufacturers beginning to release MPG info MetroMPG Motorcycles / Scooters 1 04-03-2008 06:23 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