With OBDII data streaming into Arduino Mega the time had come to drive and actual stepper motor. An initial attempt was made to use AVR446 (Linear speed control of stepper motor) ported to GCC. While the AVR446 library did drive the stepper motor the motor's behavior was not adequate. This was a direct result of the blocking nature of AVR446. In other words, each command received by the stepper motor driver had to be carried out to completion before a new command could be transmitted and acted upon. ... read more
Since most OBDII scanners use the ELM327 or a clone having a functional library to support development would be beneficial. A good start on and ELM327 library was found under the Loguino project at this location: http://ay60dxg.com/projects/blog/2012/10/28/arduino-elm327-library/.
While it was a good start, the library did not function correctly. Modifications were made and an update copy of the library has been posted. An example is included that will work with an Arduino Mega or similar.
The Classic Gauge has been under way for over six months now. Initially the project started with a more mechanical approach that proved unsatisfactory. The executive decision was made to abandon the brute force mechanical approach and switch to a gentler approach: OBDII data acquisition to analog display via a GM stepper motor driven needle.
A nice Arduino OBD-II UART adapter was found here: http://www.arduinodev.com/. ... read more