|
 |
07-22-2009, 10:29 PM
|
#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
|
|
|
|
|
|
Advertisement
|
Sponsored links
|
07-23-2009, 09:20 PM
|
#2
|
|
VENDOR - ScanTool
Join Date: Dec 2006
Posts: 234
|
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?
__________________
— Did you know that MP3Car sells OBD-2 interfaces? Get your ElmScan 5 Compact for only $64.95!
— Need to look up a diagnostic trouble code? Try the most up-to-date, free DTCsearch.com!
|
|
|
07-24-2009, 04:16 AM
|
#3
|
|
Constant Bitrate
Join Date: Oct 2008
Posts: 179
|
For tax purposes there are many existing solutions.
See: http://www.accredis.co.uk/
|
|
|
07-24-2009, 04:35 AM
|
#4
|
|
licensed to kill
Join Date: Aug 2006
Location: Deep in the Rockies... coding in caves
Posts: 1,039
|
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...
__________________
LinuxICE - because my car already has enough windows (and because I like speed).
LinuxICE2 beta2 is released!!! get it now!
Follow OpenICE development
|
|
|
07-24-2009, 07:55 PM
|
#5
|
|
VENDOR - OBDPros
Join Date: Mar 2006
Posts: 350
|
Quote: Originally Posted by kev000 
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
|
|
|
07-24-2009, 08:09 PM
|
#6
|
|
Terminal flasher
Join Date: Sep 2004
Location: Woodbridge, VA
Posts: 6,307
|
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
__________________
03 Acura RSX Coupe
Developer of: RRFusion, MovieTimes.NET, (new)RRMail, RRShoutcast, & RRVehicle Maintenance
Currently working on: RRVehicle Maintenance
|
|
|
07-26-2009, 12:30 PM
|
#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.
|
|
|
07-26-2009, 05:36 PM
|
#8
|
|
North of the land of Hey Huns
Join Date: Jun 2004
Location: Westminster, MD
Posts: 1,038
|
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.
__________________
RevFE - Try it, you just might like it.
Carbon - Next Generation Touchscreen Browser
Come join us on IRC: irc.efnet.net #mp3car
Audiophiles make me chuckle as they pad my wallet.
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
07-27-2009, 04:06 AM
|
#9
|
|
VENDOR - ScanTool
Join Date: Dec 2006
Posts: 234
|
Quote: Originally Posted by malcom2073 
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
__________________
— Did you know that MP3Car sells OBD-2 interfaces? Get your ElmScan 5 Compact for only $64.95!
— Need to look up a diagnostic trouble code? Try the most up-to-date, free DTCsearch.com!
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:20 PM.
| |