View Single Post
Old 06-28-2008, 07:09 PM   #371 (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
Glad the Mrs. is doing ok. It soulds like your display issues are an order of operations thing and not a hardware glitch per-se. Like you might need to bounce the power to the whole unit after you program it. Shouldn't affect in-car operation as long as you adjust your setup so the LCD is powered and connected to the duino before or at the same time the duino is powered up.

So about the metro vss thing, Keep me honest here:

I tried an experiment where I do a bunch of analogReads on the vss pin while at the end of the loop and keep track of the min and max reading each half second.

I was getting min=0 and max=~630 which translates into 0 and 3.08 volts respectively, a solid LOW and HIGH in atmega land if I am not mistaken. So this leads me to believe that we have a 9 volt drop on the 100k resistor and are running 90 microamps through the pin. I don't know if it cares about current or voltage or what, only saw voltage where below .2 is LOW and above .7 is HIGH on an input pin on the datacheet. I also saw that they reccomend max of 50k for a pullup resistor. But our 100k is attached to 12-0 volts, not 5, so there ya go.

I have not seen the behavior on the saturn, but I believe the saturn uses a hall efect->ecu->speedo to make a nice signal the speedo (and we) can use. I believe the metro actually uses a physical switch in the speedometer head. So it may be addressable by adding some debouncing to the vss signal.

To confound (or possibly explain) this, when I ran my "do a bunch of analog reads" trick, I never observed the half speed displayed issue. I am wondering if the analog reads add just enough capacitance to the input signal to clean it up or what?

__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote