Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: Anyone knows how can I convert the mileage to digital values?

  1. #1
    Newbie e1fnd's Avatar
    Join Date
    Jun 2003
    Location
    Malaysia
    Posts
    6

    Anyone knows how can I convert the mileage to digital values?

    Hi... I am a newbie here... I have been refering to your forums and examples for the past 8 months.... Just a quick question... I am in the midst of developing a mileage calculator software... A few ideas I have... but none would be 100% accurate but mere estimation..... Is there a method where i can grab the values of the car's mileage to the carputer?

    Hope anyone has any idea ...

  2. #2
    Low Bitrate
    Join Date
    Jun 2003
    Posts
    70
    Are you interfacing to the ECU?

  3. #3
    Newbie e1fnd's Avatar
    Join Date
    Jun 2003
    Location
    Malaysia
    Posts
    6
    That's what I heard ... need to interface the ECU... but I have no idea on the schematics and converting it to digital.... Is there a way u could recommend?

  4. #4
    Low Bitrate
    Join Date
    Jun 2003
    Posts
    70
    I'd start off by seeing if anyone else has done the same - have a good google.

    If that fails, see if your car has a standard OBDII interface as that might greatly simplify things by defining standards etc.

    If your car was an Impreza, either I or a friend could give you guidance, but as it isn't then I'm sort of stabbing in the dark.

    FWIW, I'm going to interface to my ECU through a serial port connected to the car's OBDII connector using a Max232 chip to convert TTL to RS232 levels. The hardware is simple, it's the interrogation of the ECU that will be fun.

    Or you could put a webcam pointing at your odometer, then OCR the resulting picture

    Cheers,
    Nick.

  5. #5
    C4M
    C4M is offline
    Maximum Bitrate C4M's Avatar
    Join Date
    Apr 2002
    Location
    Sydney, Australia
    Posts
    824
    Do you have a GPS? This is how mine calculates distance travelled (although I didn't write the code, so don't ask me *how* it works!)

    C!
    http://carpc.riposte.net
    I reserve all rights in connection to each post I author, without exception.

  6. #6
    FLAC aoLhaTer's Avatar
    Join Date
    Mar 2003
    Location
    Rohnert Park, CA
    Posts
    1,122
    Originally posted by chiark
    Or you could put a webcam pointing at your odometer, then OCR the resulting picture
    lol
    i like that one

  7. #7
    Variable Bitrate
    Join Date
    Aug 2002
    Location
    longview washington
    Posts
    425
    go find a vehicle speed sensor off a older ford or otehr fuel injected beastie and a analog to digtal converter and use a rs 232 converter to run it into a comm port
    i have some info on making a stand alone digispeedo but i don't think it would be too hard to adapt to computer .. but what do i know i just think up stuff i can't code to save my life
    WINNER!!!!
    run-on sentance comp 2002!!
    :)

  8. #8
    GTC
    GTC is offline
    Low Bitrate
    Join Date
    May 2003
    Location
    Canada
    Posts
    93
    Might want to check out Vetronix.com (I think that's the spelling). They provided and ODBII interface called the "CarPort" with usb or com port interface (can't remember which) that connected to the Clarion AutoPC (Windows CE Radio), which was based on standard i/o ....

    I don't know that they sell the device anymore, but you can sometimes pick them up on eBay, and they may have information on their website ...

    GTC

  9. #9
    Variable Bitrate
    Join Date
    Feb 2002
    Posts
    411
    OOh.. be careful. Any commercial hardware for interfacing with the computer will be severely protected from doing any damage to the ECU. Just because the scanner port is there doesn't mean you should be randomly hooking up your carputer to it. A glitch to the wrong pin could kill the computer. We've lost enough ECUs just trying to use them correctly at my local tuner shop, it would really suck to have it happen on the street instead of a track or garage.
    Old School MP3CAR.com member!

  10. #10
    FLAC DodgeCummins's Avatar
    Join Date
    Oct 2000
    Location
    DFW area
    Posts
    1,386
    I can't think of the name but...

    You get a magnet, and a matching weight to put somewhere on the driveshaft, (or for you FWD cars on one of the axle shafts) then a simple reed relay (or other more sensitive sensor) closes every revolution.

    Add up the revolutions, multiply by the distance traveled by the tire in one revolution...you have distance...

    Not pretty but that is how the tachometer in my truck works...and the speedo on my bicycle.

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •