C6 Tech/Performance LS2, LS3, LS7, LS9 Corvette Technical Info, Internal Engine, External Engine, Tech Topics, Basic Tech, Maintenance, How to Remove & Replace
Sponsored by:
Sponsored by:

OBDII data format for Arduino data logger

Thread Tools
 
Search this Thread
 
Old Mar 21, 2013 | 03:10 PM
  #1  
Memphomaniac's Avatar
Memphomaniac
Thread Starter
Instructor
 
Joined: Apr 2008
Posts: 164
Likes: 1
Default OBDII data format for Arduino data logger

I am in the process of doing some research to build a data logger using an Arduino microcontroller. I want the data logger to be able to collect data from the following sources:
  • OBDII connector
  • GPS module
  • 3-axis accelerometer
  • fast-responding oil pressure sensor
I expect to be able to read at least the following parameters from the OBDII connector:
  • engine RPM
  • vehicle speed
  • throttle position
  • wheel position
  • selected gear
  • oil temperature
I'm doing this because I think data loggers are way too expensive for what they do. I can buy all of the parts mentioned here for about $300. Of course, there will be a lot of work in developing the code, but that's fun for me. I will be storing the acquired data on a memory card, and plan to have the capability to build the data into a video along with a GoPro video, showing track position, etc.

My question is related to the format of the OBDII port data. I have a 2006 ZO6. I haven't been able to find specific information to tell me if the data port only uses the CAN bus, or if the SAE J1850 VPW protocol is used, or if it is a combination of the two. If anyone knows, and further if anyone has any detailed documentation on the data format for my model year, I would be most grateful if I could obtain this info.

Thanks for any help!
Reply
Old Mar 21, 2013 | 04:36 PM
  #2  
nullpointer's Avatar
nullpointer
Drifting
10 Year Member
 
Joined: Mar 2011
Posts: 1,823
Likes: 42
From: East Aurora NY
Default

Originally Posted by Memphomaniac
I am in the process of doing some research to build a data logger using an Arduino microcontroller. I want the data logger to be able to collect data from the following sources:
  • OBDII connector
  • GPS module
  • 3-axis accelerometer
  • fast-responding oil pressure sensor
I expect to be able to read at least the following parameters from the OBDII connector:
  • engine RPM
  • vehicle speed
  • throttle position
  • wheel position
  • selected gear
  • oil temperature
I'm doing this because I think data loggers are way too expensive for what they do. I can buy all of the parts mentioned here for about $300. Of course, there will be a lot of work in developing the code, but that's fun for me. I will be storing the acquired data on a memory card, and plan to have the capability to build the data into a video along with a GoPro video, showing track position, etc.

My question is related to the format of the OBDII port data. I have a 2006 ZO6. I haven't been able to find specific information to tell me if the data port only uses the CAN bus, or if the SAE J1850 VPW protocol is used, or if it is a combination of the two. If anyone knows, and further if anyone has any detailed documentation on the data format for my model year, I would be most grateful if I could obtain this info.

Thanks for any help!
Very cool project, I thought about doing this a while ago. Are you going to open source the design / source code?
Reply
Old Mar 21, 2013 | 07:43 PM
  #3  
Memphomaniac's Avatar
Memphomaniac
Thread Starter
Instructor
 
Joined: Apr 2008
Posts: 164
Likes: 1
Default

Originally Posted by nullpointer
Very cool project, I thought about doing this a while ago. Are you going to open source the design / source code?
Well, the first step will be to get something working. I would probably make the design and code available to others, but I may also want to sell the product to people who don't want to fool with stuff like this. After all, I have to consider what I'll do in retirement
Reply
Old Mar 24, 2013 | 01:21 AM
  #4  
laz51's Avatar
laz51
Instructor
10 Year Member
 
Joined: Apr 2008
Posts: 118
Likes: 1
From: Austin Texas
Default

Here is a thread where some guys were sniffing a holden monaro which is essentially a GTO. Might be a good start. They even have some data of reading and writing to the bus.

http://holden.carmodder.com/gm-lan-s...c21e8e9996a1b7
Reply
Old Mar 24, 2013 | 12:14 PM
  #5  
Memphomaniac's Avatar
Memphomaniac
Thread Starter
Instructor
 
Joined: Apr 2008
Posts: 164
Likes: 1
Default

Originally Posted by laz51
Here is a thread where some guys were sniffing a holden monaro which is essentially a GTO. Might be a good start. They even have some data of reading and writing to the bus.

http://holden.carmodder.com/gm-lan-s...c21e8e9996a1b7
Thanks for the link.

Since my original post, I've discovered that the 2006 cars use both high speed GMLAN, which is on the correct CAN-bus pins, and a slower speed Class 2 bus. Fortunately, the class 2 bus only talks to devices that I don't really care about, like door, radio, HUD, etc. The GMLAN talks to the units I mostly care about (engine, transmission, etc). I have ordered the CAN-bus shield which only uses CAN, so I'll be testing this soon.
Reply
Old Apr 6, 2013 | 12:32 AM
  #6  
Memphomaniac's Avatar
Memphomaniac
Thread Starter
Instructor
 
Joined: Apr 2008
Posts: 164
Likes: 1
Default

I've got some hardware and software now that reads CAN-bus codes for vehicle speed, RPM, and throttle position. I've added a GPS module and a 3-axis accelerometer. I just need to get an oil pressure transducer now, and package everything inside a neat little box. All data gets written to a micro SD card as a CSV. If anyone is interested in getting a low-cost (around $300) data logger, let me know. I'll post pics when I get it looking more track ready.

Last edited by Memphomaniac; Apr 6, 2013 at 12:14 PM.
Reply
Old Apr 30, 2013 | 05:26 PM
  #7  
joshua.lyon's Avatar
joshua.lyon
3rd Gear
 
Joined: May 2011
Posts: 3
Likes: 0
From: DFW Area TX
Default

You mentioned that the class 2 communicates with the door, radio, HUD, etc... have you looked into the class 2 bus any further?

It would be particularly interesting if you could do climate control from an embedded device... the concept being you could replace the Climate Controls (HVAC) and Head Unit with a large portrait touchscreen device and integrate the climate control into software.

Tesla Setup - note the integrated climate controls at the bottom of the screen.
Reply
Old Apr 30, 2013 | 07:37 PM
  #8  
Memphomaniac's Avatar
Memphomaniac
Thread Starter
Instructor
 
Joined: Apr 2008
Posts: 164
Likes: 1
Default

Originally Posted by joshua.lyon
You mentioned that the class 2 communicates with the door, radio, HUD, etc... have you looked into the class 2 bus any further?
Unfortunately, I cannot find any data on the GMLAN nor the Class 2 interface regarding the proprietary PID's. Apparently, to get this data, you have to give GM a big bag of gold, and sign a non-disclosure agreement. So, I've decided to just use the standard CAN PID's for my purposes (RPM, Speed, Throttle position, and oil temperature). I would like to get steering wheel angle, but I haven't found it yet.
Reply

Get notified of new replies

To OBDII data format for Arduino data logger

Corvette Stories

The Best of Corvette for Corvette Enthusiasts

story-0

Top 10 Most Explosive Corvettes Ever Made: Power-to-Weight Ratio Ranked!

 Joe Kucinski
story-1

150 hp to 1,250 hp: Every Corvette Generation Compared by the Specs That Matter

 Joe Kucinski
story-2

8 Coolest Corvette Pace Cars (and Replicas) of All Time

 Verdad Gallardo
story-3

Top 10 Corvette Engines RANKED by Peak Torque (70+ Years of Muscle!)

 Joe Kucinski
story-4

Corvette ZR1X Will Be Pacing the Indy 500, And Could Probably Race, Too!

 Verdad Gallardo
story-5

Top 10 Corvettes Coming to Mecum Indy 2026!

 Brett Foote
story-6

Top 10 C9 Corvette MUST-HAVES to Fix These C8 Generation Flaws!

 Michael S. Palmer
story-7

10 Revolutionary 'Corvette Firsts' Most People Don't Know

 Joe Kucinski
story-8

5 Reasons to Upgrade to an LS6-Powered Corvette; 5 Reasons to Stay LT2

 Michael S. Palmer
story-9

2027 Corvette vs The World: Every C8 vs Its Closest Competitor

 Joe Kucinski




All times are GMT -4. The time now is 07:39 AM.

story-0
Top 10 Most Explosive Corvettes Ever Made: Power-to-Weight Ratio Ranked!

Slideshow: The 10 most explosive Corvettes ever built based on power-to-weight ratio.

By Joe Kucinski | 2026-05-20 07:23:03


VIEW MORE
story-1
150 hp to 1,250 hp: Every Corvette Generation Compared by the Specs That Matter

Slideshow: From C1 to C8 we compare every Corvette generation by the numbers.

By Joe Kucinski | 2026-05-12 16:54:12


VIEW MORE
story-2
8 Coolest Corvette Pace Cars (and Replicas) of All Time

Slideshow: Some Corvette pace cars became collectible legends, while others perfectly captured the look and attitude of their era.

By Verdad Gallardo | 2026-05-11 09:50:51


VIEW MORE
story-3
Top 10 Corvette Engines RANKED by Peak Torque (70+ Years of Muscle!)

Slideshow: Ranking the top 10 Corvette engines by torque output.

By Joe Kucinski | 2026-05-05 11:58:09


VIEW MORE
story-4
Corvette ZR1X Will Be Pacing the Indy 500, And Could Probably Race, Too!

Slideshow: A Corvette pace car nearly matching IndyCar speeds sounds exaggerated, until you look at the numbers.

By Verdad Gallardo | 2026-05-04 20:03:36


VIEW MORE
story-5
Top 10 Corvettes Coming to Mecum Indy 2026!

Among a rather large group of them.

By Brett Foote | 2026-05-04 13:56:44


VIEW MORE
story-6
Top 10 C9 Corvette MUST-HAVES to Fix These C8 Generation Flaws!

Slideshow: the top 10 things Corvette owners want in the C9 Corvette

By Michael S. Palmer | 2026-04-30 12:41:15


VIEW MORE
story-7
10 Revolutionary 'Corvette Firsts' Most People Don't Know

Slideshow: 10 Important Corvette 'firsts' that every fan should know.

By Joe Kucinski | 2026-04-29 17:02:16


VIEW MORE
story-8
5 Reasons to Upgrade to an LS6-Powered Corvette; 5 Reasons to Stay LT2

Slideshow: Should you buy a 2020-2026 Corvette or wait for 2027?

By Michael S. Palmer | 2026-04-22 10:08:58


VIEW MORE
story-9
2027 Corvette vs The World: Every C8 vs Its Closest Competitor

Slideshow: 2027 Corvette lineup vs the world.

By Joe Kucinski | 2026-04-24 16:12:42


VIEW MORE