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

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 08-01-2008, 04:56 PM   #1 (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 267 Times in 210 Posts
VSS Signal assistance?

Is anyone in a position to capture the vss signal on a reed switch car (metro, starion)? My scope is on the fritz.

Problem: The vss is too noisy on some cars, need to know what it looks like in order to filter it properly. Plain old debouncing won't work because it seems the vss pulse peak to peak duration is less than your typical debounce period (was seeing 8342 microseconds @53mph, typical debounce is like 20000 microseconds). I added a tiny bit of debounce (3ms) and was able to put a more normal vssPulsesPerMile figure in, but the instant reading is jumpy.

It isn't a problem for hall effect cars because that is not a noisy physical switch.

I wonder if there is noise from the electromechanical parts of the speedometer/odometer? I don't know if I can defeat this problem with software alone. But would appreciate any insights into how to fix this.

Anyone seen a metro ECU schematic? Maybe someone has an old one I can dissect?

__________________
WINDMILLS DO NOT WORK THAT WAY!!!

Last edited by dcb; 08-01-2008 at 05:29 PM..
  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 08-01-2008, 05:40 PM   #2 (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 267 Times in 210 Posts
Edit, ok I think I have a "debounce" strategy, for dealing with this. I have to change it so it looks for X number of milliseconds in a given state before deciding to increment the vss pulse counter. Only tricky bit is the timing of the pulses should be done on the leading edge, and not whenever the pulse settles down. I think it is doable with the event scheduler though, instead of just disabling the pin interrupt for a given amount of time I will schedule an "increment the counter" event that will get overridden with each junk pulse.
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote
Old 08-01-2008, 06:34 PM   #3 (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 267 Times in 210 Posts
Quote:
Originally Posted by dcb View Post
Is anyone in a position to capture the vss signal on a reed switch car (metro, starion)? My scope is on the fritz.
Disregard, I forgot there was an existing laptop .wav file recording of a metro vss, wanna see? It is kinda fugly


But it looks like the "wait for it to settle down" strategy should work. It looks like just waiting till there is 2 milliseconds of clean signal would do it. But it will start flaking out again above 75mph. 1 millisecond might be enough, but I can't remember the last time I went 75 Maybe I will leave changing it to 1 millisecond as an exercise for the user
__________________
WINDMILLS DO NOT WORK THAT WAY!!!

Last edited by dcb; 08-01-2008 at 06:49 PM..
  Reply With Quote
Old 08-02-2008, 07:43 AM   #4 (permalink)
Addicted
 
bbjsw10's Avatar
 
Join Date: Jul 2008
Location: Findlay,OH
Posts: 555

bbjsw10 - '91 Geo Metro Xfi
90 day: 51.06 mpg (US)
Thanks: 0
Thanked 11 Times in 7 Posts
What about this option on some cars, a add on hall effect. Put 1-2 magnets on halfshaft close to tranny and mount a hall effect like this one. Only like $3 and would put out consistent readings. Hall Effect Switch | Low Sensitivity | Manufactured by Melexis

And all you would need to know at that point is tire size to know pulse rate.
155/80-12 927 rev/mile
1 magnet = 927/mile
8 magnets = 7416/mile
You could attach magnets to large hose style clamp and strap to inner cv joint case.
__________________

Last edited by bbjsw10; 08-02-2008 at 08:20 AM..
  Reply With Quote
Old 08-02-2008, 08:36 AM   #5 (permalink)
EcoModding Lurker
 
Join Date: May 2008
Location: Marietta, Georgia
Posts: 23

4OVER4 - '85 Mitsubishi Starion ESi
90 day: 24.97 mpg (US)

Auto - '87 Mitsubishi Starion LE
90 day: 23.65 mpg (US)

Soarer - '96 Lexus SC-300
90 day: 25.27 mpg (US)
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by dcb View Post
Is anyone in a position to capture the vss signal on a reed switch car (metro, starion)? My scope is on the fritz...
I have a 'scope - but my extension cord isn't long enough to do meaningful on-the-road testing . I have an inverter - maybe I can make it all work that way and get some pictures for us. But before I do that, I'm going to put a small capacitor in parallel with the zener and see if I can filter the bounces...
  Reply With Quote
Old 08-02-2008, 03:40 PM   #6 (permalink)
Batman Junior
 
MetroMPG's Avatar
 
Join Date: Nov 2007
Location: 1000 Islands, Ontario, Canada
Posts: 21,710

Blackfly - '98 Geo Metro
Team Metro
Last 3: 70.09 mpg (US)

MPGiata - '90 Mazda Miata
90 day: 53.56 mpg (US)

Winter beater Metro - '00 Chevrolet Metro
90 day: 61.98 mpg (US)

Fancy Metro - '14 Mitsubishi Mirage top spec
90 day: 58.72 mpg (US)

Even Fancier Metro - '14 Mitsubishi Mirage top spec
90 day: 66.29 mpg (US)
Thanks: 3,442
Thanked 6,264 Times in 3,238 Posts
Quote:
Originally Posted by bbjsw10 View Post
What about this option on some cars, a add on hall effect. Put 1-2 magnets on halfshaft close to tranny and mount a hall effect like this one.
I bet dcb's already thinking along those lines for his motorbike. (He's already got the magnet/pickup installed, in the form of a bicycle computer.)

EDIT: FYI the Audiovox cruise control I added to my car came with a magnet kit for just this purpose - for older cars that may not have a VSS signal.
__________________
Latest mods: 3-cylinder Mitsubishi Mirage. EcoMods now in progress...
Ecodriving test:
Manual vs. automatic transmission MPG showdown



EcoModder
has launched a forum for the efficient new Mitsubishi Mirage
www.MetroMPG.com - fuel efficiency info for Geo Metro owners
www.ForkenSwift.com - electric car conversion on a beer budget
  Reply With Quote
Old 08-04-2008, 06:52 PM   #7 (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 267 Times in 210 Posts
Ok, I might be overthinknig the vss reed switch bit (LOL). Probably some more code changes before I'm done

But took a dive today with a SG also and mpguino vesion 0.70 and heres where it landed:

odometer: 42.5 miles
mpguino: 42.33 miles
SG: 41.7 miles

So I am liking the distance tracking pretty well, rough indications have it at 0.4% off of the odometer even with the reed switch. Still want to research it some more and retest the saturn to make sure that is still accurate. But if the trip is accurate then I have to look elsewhere for the jumpy instant mph reading.
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote
Old 08-04-2008, 07:36 PM   #8 (permalink)
Addicted
 
bbjsw10's Avatar
 
Join Date: Jul 2008
Location: Findlay,OH
Posts: 555

bbjsw10 - '91 Geo Metro Xfi
90 day: 51.06 mpg (US)
Thanks: 0
Thanked 11 Times in 7 Posts
Quote:
Originally Posted by dcb View Post
Ok, I might be overthinknig the vss reed switch bit (LOL). Probably some more code changes before I'm done

But took a dive today with a SG also and mpguino vesion 0.70 and heres where it landed:

odometer: 42.5 miles
mpguino: 42.33 miles
SG: 41.7 miles

So I am liking the distance tracking pretty well, rough indications have it at 0.4% off of the odometer even with the reed switch. Still want to research it some more and retest the saturn to make sure that is still accurate. But if the trip is accurate then I have to look elsewhere for the jumpy instant mph reading.
Looks like the Mpguino is pretty accurate , what car was this on the Saturn?
__________________
  Reply With Quote
Old 08-04-2008, 08:33 PM   #9 (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 267 Times in 210 Posts
This was on the metro, the one with the bouncy vss reed switch that has been giving a bit o'trouble (had to double the vsspulsespermile initially). I was very happy with the saturn readings, both distance and fuel consumption at last check, but I've messed with the distance code a bit since then.
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote
Old 08-12-2008, 10:01 AM   #10 (permalink)
EcoModding Lurker
 
Join Date: May 2008
Location: Marietta, Georgia
Posts: 23

4OVER4 - '85 Mitsubishi Starion ESi
90 day: 24.97 mpg (US)

Auto - '87 Mitsubishi Starion LE
90 day: 23.65 mpg (US)

Soarer - '96 Lexus SC-300
90 day: 25.27 mpg (US)
Thanks: 0
Thanked 0 Times in 0 Posts
Looks like the v.70 fixed the Starion VSS bounce! Pulses per mile = 8204! GREAT JOB and THANKS!

  Reply With Quote
Reply  Post New Thread


Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
VSS, tach, injector signal logic wikityler Instrumentation 2 07-20-2008 11:02 PM
Signal Generator dcb OpenGauge / MPGuino FE computer 26 06-27-2008 10:29 PM
Arduino-based turn signal jacket SVOboy Alternative Transportation 6 06-23-2008 10:22 AM
Opengauge/MPGuino development: Freeduino signal processing dcb OpenGauge / MPGuino FE computer 6 04-16-2008 09:40 AM
[CRXMPG Mailbag] SuperMID and VSS Issues with EF Civics SVOboy Instrumentation 0 02-03-2008 04:33 AM



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