A Professional Manufacturer of Smart Interactive Screens For More Than 10 Years
In this manual, you will learn how to connect Raspberry Pi to Bluetooth OBD-
II adapter and display real-time engine data to the car aftermarket host!
Representative of OBD --
This standard connector has been licensed in the US since 1996.
Now you can think of OBD-II as an on-
Board-level computer system responsible for monitoring vehicle engines, transmissions and emission control components.
Vehicles that meet the OBD-
The II standard will have a data connector within about 2 feet of the steering wheel.
The OBD connector is officially called the SAE J1962 diagnostic connector, but the DLC, OBD port, or OBD connector is also called the SAE connector.
It has 16 pin positions that look like this: pyOBD (aka pyOBD-II or pyOBD2)
Is an open source OBD-II (SAE-J1979)
Fully compatible scantool software written in Python.
It is designed to interface with low level
Cost ELM 32 x OBD-
II diagnostic interfaces such as ELM-USB.
It basically allows you to talk to your car ECU, display fault codes, display measurements, read status tests, etc.
I took out a branch of the pyOBD software from their GitHub repository and used it as the basis for my program.
Program will be connected via OBD-
II interface, display available meters according to a specific vehicle, and display real-time engine data to the automotive aftermarket head unit in an interactive GUI.
Before you start, you need to install a Raspbian that has access to the network.
We will do this with a console cable connection, but you can also do this easily with a direct HDMI/TV console or ssh 'ing.
You can succeed in any case!
Note: do not type ''for the command line instruction below, just to indicate that it is the command to be entered.
Run before proceeding: install these components using the command: Next, download OBD-
Pi software directly from GitHub. (
Use command: vehicle installation is quite simple. 1.
Plug the USB Bluetooth dongle into the Raspberry Pi with the SD card. 2. Insert the OBD-
(2) The Bluetooth adapter is inserted into SAE J196216 (OBD Port)connector. 3.
Connect the RCA cable to the back of the aftermarket host and insert the other end into the Raspberry Pi. 4.
Install 2A car power/switch or mini USB car charger. 5.
Finally, turn the key to the ON position and navigate the head unit to the auxiliary input. 6.
Enter your login credentials and run: 7.
Start the Linux Bluetooth stack BlueZ.
Pairing trust your ELM327 Bluetooth adapter and connect to: Dev.
You should see the notification "serial port to/dev/rfcomm0 ". Note: Click the Bluetooth icon in the lower right corner (Desktop)
Configure your device.
Right-click on the Bluetooth device and Open Connect to: Dev. 8.
Open the terminal and run: cycle on the meter display using the left and right arrow keys.
To exit the program, just press Control and C or Alt and Esc.
If you want to record data run: the data file for the record will be saved under:/home/username/pyobd-
Pi/log/enjoy safe driving!