Results 1 to 9 of 9

Thread: distance travelled

  1. #1
    Newbie
    Join Date
    Jul 2009
    Posts
    2

    distance travelled

    i want to build a device that i can connect to the obd2 interface, to enable me to record the distance travelled, i know i can see this by reseting the trip counter but, but i want to seperate business from pleasure. i was looking at maybe using a picmicro, having two push button switches, one for business and one for pleasure, when i get in the car i press which ever button and it will record the mileage. not sure how i would retrieve this info????
    all help appreciated

  2. #2
    VENDOR - ScanTool Vitaliy's Avatar
    Join Date
    Dec 2006
    Posts
    587
    If this is for tax or business purposes, you also need to be able to enter a short description of the trip. E.g., "meeting with a client", "checking rental property", etc. No?
    You cannot send me a private message using this forum. Use my email instead: vitaliy[@]scantool.net.
    — Did you know that MP3Car sells OBD-2 interfaces? Get your OBDLink for only $84.99!
    — Need to look up a diagnostic trouble code? Try the most up-to-date, free DTCsearch.com!

  3. #3
    Variable Bitrate
    Join Date
    Oct 2008
    Posts
    346
    For tax purposes there are many existing solutions.
    See: http://www.accredis.co.uk/

  4. #4
    licensed to kill - FKA kev000
    Auto Apps:loading...
    tripzero's Avatar
    Join Date
    Aug 2006
    Location
    16.40618, 120.61106
    Posts
    2,471
    afiak, you can't get this from standard obd-II. I have written code to keep track of that via GPS though. However, it's not as accurate as getting it straight from the car...
    Former author of LinuxICE, nghost.
    Current author of nobdy.

  5. #5
    VENDOR - OBDPros
    Join Date
    Mar 2006
    Posts
    359
    Quote Originally Posted by kev000 View Post
    afiak, you can't get this from standard obd-II. I have written code to keep track of that via GPS though. However, it's not as accurate as getting it straight from the car...
    You could derive this by requesting the speed from OBD II every minute (pid 0d) and continually adding the distance travelled in that interval. distance travelled would be speed/60 in this case added every minute.

    for greater accuracy request the speed every second and integrate...

    Thanks
    Paul

  6. #6
    Mo' Programming Mo' Problems
    Auto Apps:loading...
    Sonicxtacy02's Avatar
    Join Date
    Sep 2004
    Location
    Woodbridge, VA
    Posts
    7,778
    Blog Entries
    32
    my vehicle maintenance plugin for RR does this. You have 3 mileage calculators. Total, trip, and waypoint calculation. All thats needed is a gps connection to RR. If you wish to do something standalone yourself, i can share my code for distance calculation
    NOVA, MD, DC Monthly Meets Here
    Ride Runner and Centrafuse 3 plugin creator
    mp3Car.com Senior Tech Blogger (Want a product reviewed? Contact me.)
    Find my plugins on the MP3Car App Store!
    Follow Me on Twitter or Facebook
    Live mp3Car Facebook Chat

  7. #7
    Newbie
    Join Date
    Jul 2009
    Posts
    2

    odometer

    this info is allready computed by the car, it must be doing this via the information from the vehicle speed. the accredis is what i am trying to do but without the information being sent to various servers. No it is not for tax purposes, it is purely for my own information. I think the idea of polling the can bus to request the speed once a second, for the duration of the journey maybe an idea.

  8. #8
    North of the land of Hey Huns
    Auto Apps:loading...

    Join Date
    Jun 2004
    Location
    Westminster, MD
    Posts
    1,920
    Speed is usually read into the ecu as pulses from a magnetic pickup in the transmission. If you count the pulses not only do you get speed but you get 100% accurate measurement of how often the wheels have turned. Deriving distance from speed is inaccurate but the more samples per second you get the more accurate it is.
    Quote Originally Posted by mitchjs
    stop with the REINSTALLS, what do you think we got some lame-o installer!!!
    RevFE - Super fast, modular frontend. Most powerful skinning engine in existence. Strong enough for an i7 made for a fitpc.
    Just a shame I can't justify a carpc to use it on anymore.

  9. #9
    VENDOR - ScanTool Vitaliy's Avatar
    Join Date
    Dec 2006
    Posts
    587
    Quote Originally Posted by malcom2073 View Post
    Deriving distance from speed is inaccurate but the more samples per second you get the more accurate it is.
    Based on my experience, requesting speed over OBD-II and integrating is an extremely accurate method of measuring the distance.

    Vitaliy
    You cannot send me a private message using this forum. Use my email instead: vitaliy[@]scantool.net.
    — Did you know that MP3Car sells OBD-2 interfaces? Get your OBDLink for only $84.99!
    — Need to look up a diagnostic trouble code? Try the most up-to-date, free DTCsearch.com!

Similar Threads

  1. RRPDC - RoadRunner park distance control extension plugin
    By Robby BMW in forum RR Released Plugins
    Replies: 149
    Last Post: 06-11-2011, 02:15 PM
  2. police laptop\radio frequency
    By jdogg1583 in forum Hardware Development
    Replies: 63
    Last Post: 03-31-2008, 05:32 PM
  3. distance via gps, help, urgently needed
    By Dj-[NRG] in forum Software & Software Development
    Replies: 3
    Last Post: 08-06-2007, 10:48 PM
  4. Replies: 2
    Last Post: 07-07-2006, 05:38 PM
  5. Voice Doesn't Always Announce Distance
    By skeeter007 in forum Map Monkey
    Replies: 24
    Last Post: 12-22-2004, 04:47 PM

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
  •