OBDuino

Short description: Open source trip computer design

OBDuino is an open source trip computer design based on the Arduino platform. An OBDuino may be assembled and customised by an electronics hobbyist; it displays information such as instantaneous fuel economy (e.g. miles per gallon, L/100 km or kilometres per litre), engine tuning parameters etc. on an LCD.

OBDuino utilises the On-Board Diagnostics interface found in most modern cars.

## Contents

* 1 Features
* 2 Design
* 3 Project
* 4 Variations
* 5 Related alternatives
* 6 See also
* 7 References
* 8 External links

## Features

* Most OBD-II PIDs or derived values may be displayed. Common values include
* Fuel: cost, used or remaining, wasted while idling, consumption, measured in mpg or l/100 km
* Engine: load, RPM
* Temperatures: coolant, air intake
* Vehicle speed
* Tank distance
* Remaining distance that can be travelled on the current tank of fuel
* Throttle position
* Battery voltage
* CAN status, for CAN protocol only, display TX and RX error
* Displays instantaneous values, average, maximum and minimum values calculated per trip, per outing, or per tank of fuel
* Menu system for configuring parameters
* Relatively cheap compared to commercial alternatives
* Customisable and extendable

OBDuino does not display or reset engine fault codes (which are available over the OBD interface).

## Design

The key components of the design are:

* A microcontroller. One of the various AVR-based Arduino kits is typically used for this, although one of several Atmel AVR microcontrollers may be used directly in a custom OBDuino circuit.
* An interface to the car's management system, using the On-Board Diagnostics (OBD) connector found in most modern cars. This requires a cable and a circuit.[1] There are several variations of this circuit depending on the particular OBD protocol implemented:
1. ISO 9141/ISO 9141-2/ISO 14230, using Freescale MCZ33290EF
2. CAN, using MCP2515 and MCP2551
3. Generic (SAE J1850 PWM & VPW/ISO 9141/ISO 9141-2/ISO 14230/CAN protocols), using an ELM327 from ELM Electronics. Although this gives a more versatile trip computer compatible with most modern vehicles, the ELM327 chip adds significant cost to the circuit and requires a significant supporting circuit for different protocols. It removes the complexity of interpreting the various OBD protocols.
4. STN1110 which is software compatible with the ELM327. Unfortunately, this IC is not pin-compatible with the ELM327, therefore the circuit would require some changes.
* An LCD and three input buttons. A typical LCD is 2 rows x 16 characters or 4x20 character, based on the HD44780, with a circuit based on the mpguino circuit.[2]
* Microcontroller code. This is a C++ program based on the Arduino framework, called a Sketch in Arduino terminology. This is loaded on the microcontroller over a USB or serial interface using the free Arduino integrated development environment.

Many Arduino-based projects have either custom printed circuit boards available which include the AVR microcontroller (removing the need for an Arduino board), or extension boards that contain the extra circuit and that plug directly into the standard Arduino circuit board. No such PCBs are available for the OBDuino as of September 2009.

## Project

The OBDuino project was started in 2008 based on the MPGuino project, with the desire to simplify wiring to the vehicle, instead of using the standard OBD-II socket that does not directly wire to the vehicle's fuel injection system and digital vehicle speed sensor, and to access the wide range of engine management data available using OBD.

The project is centred on the discussion forum[3] on ecomodder.com and the wiki and code hosting[4] provided by Google code, project is released under the GPL license.

The main OBDuino thread[3] on the eccomoder forum was started by jmonroe on 1 June 2008 as a fork of MPGuino discussions.

Magister posted an OBDuino announcement[5] to the Arduino forum on 4 December 2008.

As of September 2009, the OBDuino32K code credits these developers:

> Main coding/ISO/ELM: Frédéric (aka Magister on ecomodder.com)
>  LCD part: Dave (aka dcb on ecomodder.com), optimized by Frédéric
>  ISO Communication Protocol: Russ, Antony, Mike
>  Features: Mike, Antony
>  Bugs & Fixes: Antony, Frédéric, Mike

The 32K in the obduino32K name differentiates the code targeted at the Atmega328 with 32k flash memory (i.e. Arduino 2009) version from the Atmega168 16k (Arduino 2008) version.

## Variations

* An OBDuino variant[6] is described in the book Practical Arduino (2009) by Jonathan Oxer and Hugh Blemings.[7] Based on the Arduino Mega, the OBDuino is extended to log GPS and OBD data to a USB stick.
* A Graphical OBD MPGuino[8] graphs values such as miles per gallon and OBD-II PIDs, etc., on a 128*64 pixel LCD.
* OBDuino author Magister is working on a commercial prototype with a CAN-only protocol.[9]

## Related alternatives

* Scangauge[10] is a commercial trip computer using the OBD interface. In addition to the trip-computer-style features in OBDuino, the Scangauge also includes features for displaying and resetting engine fault codes.
* The mpguino[2] is another Arduino-based trip computer, and is mainly limited to fuel usage measurement. It may be used in any vehicle which has an electric fuel injection system and digital vehicle speed sensor. The mpguino links directly to these sensors so it doesn't require an OBD2 interface. It can report instant and tank MPG, remaining miles till the tank is empty etc. The mpguino is available in kit form from several suppliers.[11][12]
* The SuperMID[13] is an enthusiast/hobbyist trip computer, designed originally for the Toyota Prius, although it may be used in any vehicle which has an electric fuel injection system and digital vehicle speed sensor.[14] The SuperMID interfaces directly to the engine ECU or sensors, rather than using a standard OBDII connector.
* Bruce D. Lightner's entry[15] won[16] a 2004 Circuit Cellar design contest. Lightner's design uses an AVR microcontroller connected to an OBD-II interface to drive an analogue gauge displaying fuel consumption in mpg. This only implements the SAE J1850 VPW variant of the OBD-II protocol suite (so it only works with mostly GM cars that use VPW).
* An OBD II Car Computer design[17] is described by NerdKits using their AVR-based microcontroller kit. This implements the SAE J1850 VPW variant of the OBD-II protocol suite (so it only works with certain cars that use VPW) and displays RPMs, Coolant Temperature, Vehicle Speed and Percent Throttle on an LCD. This is partly derived from Bruce D. Lightner's design.
* OBD2-LCD is an AVR based OBD-II trip computer, designed by Florian Schäffer. It implements the ISO 9141 and ISO 14230 (KW 2000) OBD-II variants, with design and code published[18] and available in kit form. The new kit[19] supports CAN (ISO 15765) too.

## See also

* Arduino
* Trip computer
* Carputer
* On-Board Diagnostics
* OBD-II PIDs
* ELM327 very common chip used in OBD interfaces

## References

1. ↑ "OBDuinoInterface - opengauge - OBDuino OBD2 cable and Interfaces - Open Source Fuel Efficiency Instrumentation - Google Project Hosting". http://code.google.com/p/opengauge/wiki/OBDuinoInterface.
2. ↑ 2.0 2.1 "MPGuino". EcoModder. http://ecomodder.com/wiki/index.php/MPGuino.
3. ↑ 3.0 3.1 "OBD MPGuino gauge - Fuel Economy, Hypermiling, EcoModding News and Forum". EcoModder.com. http://ecomodder.com/forum/showthread.php/obd-mpguino-gauge-2702.html.
4. ↑ "code project". http://code.google.com/p/opengauge/wiki/OBDuino32K.
5. ↑ "OBDuino, onboard diagnostic for your car - Arduino Forum". Arduino.cc. http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1228426438.
6. ↑ "OBDuino Mega - Fuel Economy, Hypermiling, EcoModding News and Forum". EcoModder.com. http://ecomodder.com/forum/showthread.php/obduino-mega-10300.html.
7. ↑ Oxer, Jonathan; Blemings, Hugh (2009). "Chapter 15: Vehicle Telemetry Platform". Practical Arduino: Cool Projects for Open Source Hardware. Apress. pp. 295–382. https://archive.org/details/practicalarduino00oxer_016.
8. ↑ "Graphical OBD MPGuino - Arduino Forum". Arduino.cc. http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1222013546.
9. ↑ "OBDuino - Monitor your fuel consumption and retrieve OBD2 data and trouble codes". Obduino.ca. http://obduino.ca.
10. ↑ "Trip Computer + Digital Gauges + ScanTools". ScanGauge. http://www.scangauge.com/.
11. ↑ "MPGuino". Spiffie.org. http://spiffie.org/kits/mpguino/.
12. ↑ "MPGuino". Fundamentallogic.com. http://store.fundamentallogic.com/ecom/index.php?products_id=463.
13. ↑ "SuperMID M-1" (in ja). PriusDIY. November 13, 2005. http://priusdiy.fc2web.com/NENPIKEI.html. (English tr.)
14. ↑ Yoshi (June 1, 2007). "Fuel Efficiency Forum - Fuel Economy Gauge?". Gas Savers. http://www.gassavers.org/showpost.php?p=54244&postcount=14.
15. ↑ Lightner, Bruce D. (June 30, 2004). "AVR 2004 Design Contest - Entry A3805". Circuit Cellar. http://www.circuitcellar.com/AVR2004/wabstracts/A3805abstract.pdf.
16. ↑ Lightner, Bruce D. (2005). "A Fuel-Consumption Gauge for Your GM Car". Circuit Cellar. http://www.lightner.net/lightner/bruce/Lightner-183.pdf.
17. ↑ "OBDii for KPW protocol". Nerdkits.com
18. ↑ "OBD2-LCD". Blafusel.de. http://www.blafusel.de/obd/obd2lcd_4en.html.
19. ↑ "OBD2-LCD D". Blafusel.de. http://www.blafusel.de/obd/obd2lcd_d.html.

[1]

## External links

* STN1110 emulates ELM327
* Atmel AT90CAN microcontroller like ATmega328 with CAN support
* OBD II ScanTool, Linux-based open source
* OBD interface chips from ELM Electronics

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/OBDuino. Read more

|

1. ↑ Lightner, Bruce D. (21 January 2020). "Fuel-Consumption Gauge for Your GM Car". AVR 2004 Design Contest. https://circuitcellar.com/design-contest/fuel-consumption-gauge-for-your-gm-car/.

Retrieved from "https://handwiki.org/wiki/index.php?title=Engineering:OBDuino&oldid=2542563"