Arduino OBD-II UART Adapter Library & Examples
Arduino OBD-II 串口适配器库文件及例程中文翻译
From:github.com/stanleyhuangyc/ArduinoOBD#arduino-obd-ii-uart-adapter-library—examples
文件压缩包下载地址:
https://codeload.github.com/stanleyhuangyc/ArduinoOBD/zip/master
声明:本人翻译能力有限,请大家尽量看原文,由于参考本文而引起的各种意外,与本人无关,如不同意请勿看此文。
(C)2012-2013 Stanley Huang
Arduino OBD-II串口适配器是一个以提供的开源的Arduino库为基础,用来连接OBD-II与UART串口进行数据传输的产品。除了提供OBD-II的数据访问外,它还对Arduino及其附属设备提供了电源(可以通过OBD-II端口转换和调节)。本适配器也可以通过串行UART接口用于其他嵌入式系统。
产品地址: http://www.arduinodev.com/hardware/obd-kit/
关于库文件
在当前版本的库中,有一下 OBD-II PID被定义:
Vehicle speed(PID_SPEED) //车速
Engine RPM(PID_RPM) //发动机每分钟转速
Throttleposition (PID_THROTTLE) //节流阀位
CalculatedEngine load (PID_ENGINE_LOAD) //理论发动机负荷
Absolute Engineload (PID_ABS_ENGINE_LOAD) //绝对发动机负荷
Engine coolanttemperature (PID_COOLANT_TEMP) //发动机冷却液温度
Intaketemperature (PID_INTAKE_TEMP) //进气温度
Intake MAP(PID_INTAKE_PRESSURE)//进气压力
MAF flowpressure (PID_MAF_FLOW)//最低听阈流动压
Fuel pressure(PID_FUEL_PRESSURE) //燃油压力
Fuel level(PID_FUEL_LEVEL) //燃油油位
Barometricpressure (PID_BAROMETRIC)//气压
Ignition timingadvance (PID_TIMING_ADVANCE)//点火提前时间
Engine runningtime (PID_RUNTIME)//发动机运行时间
Vehicle runningdistance (PID_DISTANCE)//车辆运行距离
由汽车ECU提供的其他定义可以被添加到OBD-II PID。
目录描述
libraries/OBD – Arduino用于OBD-II适配器的库
samples/rpm_led - a simplest example sketch implementing a RPM indicator with the pin 13 LED on Arduino board
samples/dashboard_1602 - an example sketch showing a set of vehicle data with a LCD1602 shield
samples/dashboard_4884 - a sketch providing extensive display of vehicle data with a LCD4884 shield
samples/dashboard_oled - a sketch providing extensive display of vehicle data with a OLED module
samples/obdtest - OBD-II适配器的一个测试程序
obdlogger – 一个完整的OBD-II和GPS数据记录器 (http://obd.arduinodev.com)