Git Product home page Git Product logo

obd1scanner's Introduction

OBD1Scanner

This device reads the data stream from GM OBD1 vehicles communicating at 8192 baud, with the 12-Pin ALDL connector. This is sometimes also referred to as "OBD 2.1". Using this project, a simple "dataStream" can be defined to provide a "mapping" of all the byte positions for each available sensor reading on the vehicle. The one provided in this project is specifically for a 1994 Chevy S-10 Pickup. The dataStream was created based off the A100.ads binary. Other ".ads" definition files can be found here

Electronics Overview

The heart of this scanner is an arduino UNO microcontroller paired with a simple three-transistor circuit. More information on how the circuit works can be found here. All credit for this circuit goes to these people. I also created a custom PCB, however, this is untested.

Code Overveiew

The basic approach of this project revolves around the dataStream. This defines all byte mappings of each sensor so the program can properly decode them. Once a dataStream is defined, we must construct a command. A command is a five byte long message sent to the vehicle to initiate a conversation. The first byte is the message ID, the second is the length, then the mode type, an unknown value, and finally the two's compliment checksum of the entire command.

//message ID, length, mode type, unknown, 2's compliment checksum
unsigned char mode1Cmd[] = {0xF4, 0x57, 0x01, 0x00, 0xB4};

Finally, we can simply pass the command, it's length, and a buffer to the "getAldlData()" function, process the data, and display it over the serial monitor with software serial.

unsigned char rawDataStream1[DATA_STREAM_LEN];
unsigned char rawDataStream2[DATA_STREAM_LEN];

// Not recommended to call both mode1 and mode2 commands consecutively, but it does work.
getAldlData(mode1Cmd, mode1CmdLength, rawDataStream1);
processMode1Data(rawDataStream1, &stream1);
displayData1(&stream1);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.