Thanks for posting what you have so far! I am interested in OBD1 and 2 communication. Among my list of projects I am trying to do something similar.
I hope you have success,
Mark
Thank you cyclegadget. I have made progress. I am trying to clean up the serial aspect of this, and that is why I am asking programming questions in this thread:
http://arduino.cc/forum/index.php/topic,77772.0.htmlI didn't think it was cross-posting since I am only asking about the serial aspect of it.
Here is my spaghetti mess of code that works! (ardl_test3) Now it is meant for my vehicle which uses A034.ds
ardl_restart is an attempt to use only arduino commands. But it wastes time waiting on serial data. BUT it can get readings and move them out in 119 ms.
ardl_restart2 is an attempt to make better use of serial available. It works, but it takes about 6 seconds to get a lock and get new readings.
ardl_restart* have the calculations and display stripped out of them to focus on optimizing the data collection.
As I have mentioned before, I am moving to a 644p or 32u4, but I will try to keep an atmega328p version always available.
Once I have the serial loops worked out, I want to make an ALDL library. That way my vehicle is not hard coded into the code. That way others can add/update definitions.