This kit contains basic components needed to put up a device that can read vehicle data and display it on a OLED display module. You can place it anyway on your dashboard that you feel comfortable or make a enclosure for it.
The kit consists of:
- Arduino OBD-II Adapter
- Arduino Nano (compatible)
- I2C OLED display module (1.3″ 128×64 white pixels)
- Wires needed for connecting all parts
- Ready-to-go Arduino sketches available
The Arduino OBD-II Adapter provides OBD-II connectivity for the Arduino Nano. It also provides power for the Nano and its attached components. The OBD-II adapter is capable of outputting filtered and regulated DC 5V up to 2A. So there is no need for additional power cable.
All the parts can be connected with wires as following diagram and no soldering is needed.
Connecting OBD-II to Arduino Nano
The OBD-II adapter provides power for Arduino and serial UART connection.
- TxD (green line) <-> Arduino D0 (RxD)
- RxD (white line) <-> Arduino D1 (TxD)
- 5V (red line) <-> Arduino 5V
- GND (black line) <-> Arduino GND
Connecting Arduino with I2C OLED module
The OLED module can be powered by either 3.3V or 5V. It has 4 pins at the back.
Pins to to wire:
- VCC <-> Arduino 3.3V
- GND <-> Arduino GND
- SDA <-> Arduino SDA (A4)
- SCL <-> Arduino SCL (A5)
Connecting Arduino with microSD breakout board (optional)
Arduino Nano features ATMega328P micro-controller which has 1KB EEPROM for persistent data storage. For logging larger amount of data, you can attach a microSD breakout board to Arduino Nano or use another kit.
The microSD breakout board is connected with Arduino via SPI interface, provided at ICSP connector on Arduino Nano. The wiring between the microSD breakout board and Arduino is like this:
- VCC -> Arduino ICSP 2 (VCC)
- GND -> Arduino ICSP 6 (GND)
- MOSI -> Aruino ICSP 4 (MOSI)
- MISO -> Arduino ICSP 1 (MISO)
- SCK -> Arduino ICSP 3 (SCK)
- CS-> Arduino D10
If you don’t know how to compile and download a sketch to Arduino, please visit official Arduino website for tutorials.
If you do, then read on. Before loading the sketch in Arduino IDE, you need to install the OBD-II library for your Arduino IDE which you need to access OBD-II data via the OBD-II adapter. If you don’t know how to do this, please referto this guide.
At the moment, we provide 2 Arduino sketches which work out-of-box with a connected kit. Simply compile and download the sketch to the Arduino Nano via USB and that’s all. Of course, you can spend some time later to read and tweak the code.
The sketch of NanoLogger display a set of live data on the OLED screen. It also logs data if a microSD or SD card module if attached.
The sketch of NanoTimer will turn your kit into Performance Box like device. It displays live speed (from OBD-II) of the vehicle and the time used for reaching speed of 60km/h, 100km/h, 200km/h and distance of 400m. Measuring is started automatically (when vehicle starts moving).