{"product_id":"freematics-obd-uart-adapter-v1","title":"Freematics OBD UART Adapter V1","description":"\u003cp\u003eThis product works as a vehicle \u003ca href=\"https:\/\/en.wikipedia.org\/wiki\/OBD-II\" target=\"_blank\"\u003eOBD-II\u003c\/a\u003e data bridge for Arduino, providing OBD-II data access with Arduino library as well as power supply for Arduino board and its attached devices.\u003c\/p\u003e\n\u003cp\u003e\u003cb\u003eFeatures:\u003c\/b\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eAccess to all standard \u003ca href=\"http:\/\/en.wikipedia.org\/wiki\/OBD-II_PIDs\" rel=\"noopener\" target=\"_blank\"\u003eOBD-II PIDs\u003c\/a\u003e with extended \u003ca href=\"https:\/\/www.sparkfun.com\/datasheets\/Widgets\/ELM327_AT_Commands.pdf\" rel=\"noopener\" target=\"_blank\"\u003eELM327 AT command-set\u003c\/a\u003e\n\u003c\/li\u003e\n\u003cli\u003eReading and clearing vehicle diagnostic trouble codes (engine \u0026amp; powertrain only)\u003c\/li\u003e\n\u003cli\u003eMeasuring car battery voltage\u003c\/li\u003e\n\u003cli\u003eSupplying power for host device (5V up to 2.1A)\u003c\/li\u003e\n\u003cli\u003eSerial UART data interface compatible with both 3.3V and 5V micro-controllers\u003c\/li\u003e\n\u003cli\u003e\n\u003ca href=\"https:\/\/github.com\/stanleyhuangyc\/ArduinoOBD\" rel=\"noopener\" target=\"_blank\"\u003eArduino library and example sketches\u003c\/a\u003e available\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003ch2\u003eCompatibility\u003c\/h2\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cp\u003eThe adapter plugs into the OBD port usually located under the steering column or slightly to the left of it. To check if your vehicle is OBD-II certified, open your hood and find the sticker that looks like this:\u003c\/p\u003e\n\u003cp\u003e\u003ca href=\"https:\/\/blog.freematics.com\/wp-content\/uploads\/2012\/03\/obd_sticker.gif\" rel=\"shadowbox[sbpost-576];player=img;\"\u003e\u003cimg alt=\"obd_sticker\" class=\"size-full wp-image-3384 aligncenter\" height=\"222\" src=\"https:\/\/blog.freematics.com\/wp-content\/uploads\/2012\/03\/obd_sticker.gif\" width=\"330\"\u003e\u003c\/a\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eVehicles using following vehicle protocols are supported.\u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eCAN 500Kbps\/29bit\u003c\/li\u003e\n\u003cli\u003eCAN 500Kbps\/11bit\u003c\/li\u003e\n\u003cli\u003eCAN 250Kbps\/29bit\u003c\/li\u003e\n\u003cli\u003eCAN 250Kbps\/11bit\u003c\/li\u003e\n\u003cli\u003eKWP2000 Fast\u003c\/li\u003e\n\u003cli\u003eKWP2000 5Kbps\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eThe OBD-II Adapter is compatible with all Arduino range including Arduino UNO, Arduino Leonardo, Arduino Micro, Arduino Nano, Arduino Mini, Arduino Pro Mini, Arduino MEGA 1280\/2560\/ADK.\u003c\/p\u003e\n\u003cp\u003ePlease be noted this product is designed for cars with 12V battery. This version of OBD-II adapter comes with no built-in MEMS sensor.\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003ch2\u003eGetting Started\u003c\/h2\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cp\u003e\\The adapter inserts into the OBD port of a vehicle normally located under the steering column. A cable coming out from the adapter splits into two sets of 2-pin Dupont connectors with one for power (VCC\/GND) and one for data (Rx\/Tx). They are connected to Arduino to provide both power supply and data connection. Your Arduino setup will look tidy in car with only one cord.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003ePower Lines:\u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eRed: VCC (connecting to Arduino's 5V\/VCC)\u003c\/li\u003e\n\u003cli\u003eBlack: GND (connecting to Arduino's GND)\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003eData Lines:\u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eWhite: Rx (connected to Arduino’s serial Tx)\u003c\/li\u003e\n\u003cli\u003eGreen: Tx (connected to Arduino’s serial Rx)\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cem\u003eNote: Arduino UNO or Nano only has one hardware serial which is also used by USB serial. Avoid using serial output if the adapter is connected to hardware serial. Arduino Leonardo, Mega, Due do not have this limit.\u003c\/em\u003e\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003ch2\u003eThe Library\u003c\/h2\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cp\u003e\u003ca href=\"https:\/\/github.com\/stanleyhuangyc\/ArduinoOBD\/tree\/master\/libraries\/OBD2UART\" target=\"_blank\"\u003eA dedicated Arduino library\u003c\/a\u003e is developed and maintained regularly, providing a set of easy-to-use APIs to retrieve realtime data from a vehicle.\u003c\/p\u003e\n\u003cp\u003eThe library provides easy-to-use APIs for configuring the adapter and accessing vehicle's OBD-II PIDs through \u003ca href=\"https:\/\/www.sparkfun.com\/datasheets\/Widgets\/ELM327_AT_Commands.pdf\" target=\"_blank\"\u003eELM327 AT command-set\u003c\/a\u003e. Following are some useful APIs:\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cspan class=\"pl-en\"\u003esetBaudRate\u003c\/span\u003e - set adapter serial baudrate\u003c\/li\u003e\n\u003cli\u003e\n\u003cspan class=\"pl-en\"\u003eread\u003c\/span\u003e - read specified OBD-II PID and return parsed value\u003c\/li\u003e\n\u003cli\u003e\n\u003cspan class=\"pl-en\"\u003eclearDTC\u003c\/span\u003e - clear diagnostic trouble code\u003c\/li\u003e\n\u003cli\u003e\n\u003cspan class=\"pl-en\"\u003egetVoltage\u003c\/span\u003e - measure and return car battery voltage\u003c\/li\u003e\n\u003cli\u003e\n\u003cspan class=\"pl-en\"\u003egetVIN\u003c\/span\u003e - retrieve Vehicle Identification Number\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eHere is an example code of a simplest engine RPM indicator, which uses the pin 13 LED (built in every Arduino board) to indicate whether the engine is above 5000rpm.\u003c\/p\u003e\n\u003cpre\u003e#include \u0026lt;OBD2UART.h\u0026gt;\n\nCOBD obd;\n\nvoid setup()\n{\n  \/\/ we'll use the debug LED as output\n  pinMode(13, OUTPUT);\n  \/\/ start communication with OBD-II adapter\n  obd.begin();\n  \/\/ initiate OBD-II connection until success\n  while (!obd.init());\n}\n\nvoid loop()\n{\n  int value;\n  \/\/ save engine RPM in variable 'value', return true on success\n  if (obd.readPID(PID_RPM, value)) {\n    \/\/ light on LED on Arduino board when the RPM exceeds 3000\n    digitalWrite(13, value \u0026gt; 3000 ? HIGH : LOW);\n  }\n}\u003c\/pre\u003e\n\u003cp\u003eThe complete source code of the library and examples is hosted on \u003ca href=\"https:\/\/github.com\/stanleyhuangyc\/ArduinoOBD\/tree\/master\/libraries\/OBD2UART\" target=\"_blank\"\u003eGitHub\u003c\/a\u003e.\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003ch2\u003eComparison\u003c\/h2\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cp\u003eThe following table lists the differences among all Freematics OBD-II adapter models.\u003c\/p\u003e\n\u003ctable width=\"100%\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003cth\u003eFeatures \\ Models\u003c\/th\u003e\n\u003cth\u003e\u003ca href=\"https:\/\/freematics.com\/pages\/products\/arduino-obd-adapter\/\"\u003eOBD-II I2C Adapter\u003c\/a\u003e\u003c\/th\u003e\n\u003cth\u003e\u003ca href=\"https:\/\/freematics.com\/store\/index.php?route=product\/product\u0026amp;product_id=30\"\u003eOBD-II UART Adapter V1\u003c\/a\u003e\u003c\/th\u003e\n\u003cth\u003e\u003ca href=\"https:\/\/freematics.com\/store\/index.php?route=product\/product\u0026amp;path=20\u0026amp;product_id=83\"\u003eOBD-II UART Adapter V2\u003c\/a\u003e\u003c\/th\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eConnection Interface\u003c\/td\u003e\n\u003ctd\u003eI2C\u003c\/td\u003e\n\u003ctd\u003eSerial UART\u003c\/td\u003e\n\u003ctd\u003eSerial UART\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAdditional Interface\u003c\/td\u003e\n\u003ctd\u003eN\/A\u003c\/td\u003e\n\u003ctd\u003eN\/A\u003c\/td\u003e\n\u003ctd\u003emicroUSB\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eMEMS Sensor\u003c\/td\u003e\n\u003ctd\u003eMPU-6050\u003c\/td\u003e\n\u003ctd\u003eN\/A\u003c\/td\u003e\n\u003ctd\u003eMPU-6050\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eVoltmeter\u003c\/td\u003e\n\u003ctd\u003eYes\u003c\/td\u003e\n\u003ctd\u003eYes\u003c\/td\u003e\n\u003ctd\u003eYes\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eMax. Output Power\u003c\/td\u003e\n\u003ctd\u003e2A\u003c\/td\u003e\n\u003ctd\u003e2A\u003c\/td\u003e\n\u003ctd\u003e2.1A\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eStandby Mode Power\u003c\/td\u003e\n\u003ctd\u003e10mA\u003c\/td\u003e\n\u003ctd\u003e5mA\u003c\/td\u003e\n\u003ctd\u003e6mA\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003ch2\u003eFAQ\u003c\/h2\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eQ: What is this product used for?\u003c\/strong\u003e\u003cbr\u003eA: The most straight-forward use of this product is for making Arduino possible to access vehicle data easily. The OBD-II data, together with other data from GPS or all kinds sensors, can be logged and stored on SD\/TF card with Arduino and that makes an open-source vehicle data logger (check out the \u003ca href=\"https:\/\/arduinodev.com\/hardware\/#logger_kits\" target=\"_blank\"\u003edata logger kits\u003c\/a\u003e). More extensively, many interesting interaction applications requiring car data can be made.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eQ: How is the adapter powered?\u003c\/strong\u003e\u003cbr\u003eA: The adapter gets power from the 12V DC output from the OBD-II port.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eQ: Does my Arduino needs power from somewhere in the car?\u003c\/strong\u003e\u003cbr\u003eA: The adapter provides regulated 5V output for powering Arduino and other devices, so no extra power cord is needed.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eQ: Do I need a CAN bus shield to use with the adapter?\u003c\/strong\u003e\u003cbr\u003eA: Definitely no. The adapter retrieves data from CAN bus, like a CAN bus shield does and convert the more complicated CAN bus interface to simple serial UART interface which Arduino and most embedded systems are easy to access. The data connection is provided by adapter’s data connector (Rx and Tx).\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eQ: How do I connect the adapter with my Arduino?\u003c\/strong\u003e\u003cbr\u003eA: The adapter works with all models of Arduino with the dedicated Arduino library and is connected with Arduino by connecting adapter’s Tx to Arduino’s Rx (D0) and adapter’s Rx to Arduino’s Tx (D1). If you want to connect and disconnect the adapter with your Arduino effortlessly, it’s recommended to use a common I\/O breakout shield or use an Arduino board with breakout pins for Rx\/Tx\/VCC\/GND.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eQ: Is the power provided by the adapter always available in car?\u003c\/strong\u003e\u003cbr\u003eA: This depends on whether the OBD-II port of your car still has power after ignition is off. Actually it is so with most cars.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eQ: What’s the maximum frequency of data polling?\u003c\/strong\u003e\u003cbr\u003eA: The OBD-II PIDs are polled one after another. The time for a polling depends on the speed of car’s ECU computer and how busy the computer is in different status. With a typical modern car with CAN bus, the time can be as low as 20ms. In other word, up to 50 times of data polling can be done in one second.\u003c\/p\u003e","brand":"Freematics","offers":[{"title":"Default Title","offer_id":67873882374444,"sku":null,"price":60.0,"currency_code":"AUD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0684\/1879\/7868\/files\/DSC0100-900x600.jpg?v=1794802767","url":"https:\/\/shop.freematics.com\/products\/freematics-obd-uart-adapter-v1","provider":"Freematics Store","version":"1.0","type":"link"}