Arduino OBD-II Adapter Library & Sketches
(C)2012-2018 Freematics.com
OBD-II Adapter for Arduino is a product that works as a vehicle OBD-II data bridge for Arduino (literally all embedded platforms) with open-source Arduino library provided. Besides providing easy-to-use OBD-II data access, it also integrates 9-DOF motion sensor and voltmeter for measuring vehicle battery power. The adapter draws power from OBD-II port and convert it to 5V for powering attached device.
Related Products
About the library
Most commonly use PIDs are defined in OBD library as followings.
Engine
PID_RPM β Engine RPM (rpm)
PID_ENGINE_LOAD β Calculated engine load (%)
PID_COOLANT_TEMP β Engine coolant temperature (Β°C)
PID_ABSOLUTE_ENGINE_LOAD β Absolute Engine load (%)
PID_TIMING_ADVANCE β Ignition timing advance (Β°)
PID_ENGINE_OIL_TEMP β Engine oil temperature (Β°C)
PID_ENGINE_TORQUE_PERCENTAGE β Engine torque percentage (%)
PID_ENGINE_REF_TORQUE β Engine reference torque (Nm)
Intake/Exhaust
PID_INTAKE_TEMP β Intake temperature (Β°C)
PID_INTAKE_PRESSURE β Intake manifold absolute pressure (kPa)
PID_MAF_FLOW β MAF flow pressure (grams/s)
PID_BAROMETRIC β Barometric pressure (kPa)
Speed/Time
PID_SPEED β Vehicle speed (km/h)
PID_RUNTIME β Engine running time (second)
PID_DISTANCE β Vehicle running distance (km)
Driver
PID_THROTTLE β Throttle position (%)
PID_AMBIENT_TEMP β Ambient temperature (Β°C)
Electric Systems
PID_CONTROL_MODULE_VOLTAGE β vehicle control module voltage (V)
PID_HYBRID_BATTERY_PERCENTAGE β Hybrid battery pack remaining life (%)
Additional defines can be added to access other OBD-II PIDs.
Directory Descriptions
libraries - all Arduino libraries needed for OBD-II adapter and kits
samples - several simple sketches for testing purpose
nanologger - OBD-II data logger working with 128x64 monochrome OLED display (for Arduino Nano)
megalogger - OBD-II and GPS data logger based on 320x240 TFT LCD display (for Arduino MEGA)
megaloggerHD - OBD-II and GPS data logger based on 480x320 TFT LCD display (for Arduino MEGA)
tester - a testing sketch for OBD-II communication and capability
utilites - useful utility source code for development