Code Monkey home page Code Monkey logo

aldl160-arduino's Introduction

aldl160-arduino

Arduino work on reading ALDL 160 baud data A resource I found useful for exploring more about ALDL: https://www.techedge.com.au/vehicle/aldl160/aldl_sw.htm

HARDWARE

alt text alt_text

Arduino NANO, NPN transaitor, 10k resistor

  • Digital pin 2 connected to collector of transistor (configured with internal pullup resistor)

  • Base of transitor connect to ALDL port E with a resistor in series

  • Ground connected to Emiter of transistor, ALDL port A, and ground of the Arduino.

  • Optionally add an I2C header connected to 5V, GDN, A4 & A5 to attach a display.

SOFTWARE

Quick summary:

  • Attach an interrupt to pin 2 on change
  • If LOW (inverted by transitor) then note millis
  • If HIGH, compare duration between change. < 2000us = 0; >2000us = 1
  • Assemble bits into 9 bit bytes.
  • 0x1FF (9 1s in a row) is the sync character
  • Data until next sync is messages in format 0x0XX where XX is a data message per the ECM spec

DECODING ECM MESSAGES

IN PROGRESS

HISTORY

I have a 1990 GMC with a 5V 160 baud ALDL diagnostics port. After receiving a "service engine" light I set out the path of building a USB cable and using WinALDL (https://winaldl.joby.se/) to diagnose what was going on. (Code 32, EGR, had to replace a solenoid). After exploring the data in WinALDL I realized RPM and speed was reported by the ECM and I thought that would be useful display. I have a bunch of Arduinos and ESP32s kicking around and several 1602 and OLED displays.... I figured I must be able to connect a ucontroller to the data pin and extract that data on a display in near real-time.

ACKNOWLEDGEMENTS

I studied lots of source code repos and websites for inspiration:

aldl160-arduino's People

Contributors

sedgett avatar

Watchers

 avatar

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.