User avatar
BirchJD
Posts: 162
Joined: Tue Nov 13, 2012 7:43 pm

Reading OBDII Trouble Codes & Descriptions Using Python On A Raspberry Pi

Sat Apr 28, 2018 4:47 am

I have written a Python script to read trouble codes from a car ECU and look up a human readable description for the codes. I will OpenSource the Python script on GitHub a bit later today here:
https://github.com/BirchJD?tab=repositories

Following are some videos about the project:

Reading OBDII Trouble Codes & Descriptions Using Python On A Raspberry Pi
https://youtu.be/3HDXC85-MFU

Using a Raspberry Pi to Talk OBDII to an ECU Via an ELM327 Device
https://youtu.be/NvYXtQmOYDw

Brief Overview of CAN BUS Preparation For ODBII
https://www.youtube.com/watch?v=JHP_yXznV2Q
http://www.newsdownload.co.uk/

User avatar
BirchJD
Posts: 162
Joined: Tue Nov 13, 2012 7:43 pm

Re: Reading OBDII Trouble Codes & Descriptions Using Python On A Raspberry Pi

Sun Apr 29, 2018 8:48 pm

The Raspberry Pi OBDII Python script is now communicating and getting all valid PID data using a Python Class. Source code will be updated on GitHub.

https://youtu.be/JOTc_qhx6rQ
http://www.newsdownload.co.uk/

User avatar
BirchJD
Posts: 162
Joined: Tue Nov 13, 2012 7:43 pm

Re: Reading OBDII Trouble Codes & Descriptions Using Python On A Raspberry Pi

Sat May 05, 2018 10:46 am

The OBDII Python application now has the start of a GUI added. The next update should have most of the GUI complete and a custom Raspberry Pi device to run on.

Open Source Raspberry Pi OBDII Python Application - Start Of GUI Coding
https://youtu.be/fXxJ4rSZiI8
http://www.newsdownload.co.uk/

User avatar
BirchJD
Posts: 162
Joined: Tue Nov 13, 2012 7:43 pm

Re: Reading OBDII Trouble Codes & Descriptions Using Python On A Raspberry Pi

Thu May 17, 2018 7:37 pm

http://www.newsdownload.co.uk/

Rumee
Posts: 1
Joined: Mon Oct 15, 2018 7:40 am

Re: Reading OBDII Trouble Codes & Descriptions Using Python On A Raspberry Pi

Mon Oct 15, 2018 7:52 am

How can i get data from OBD2 to raspberry pi without using GUI.

I want to only script like below..
Attachments
Capture.PNG
Capture.PNG (130.29 KiB) Viewed 3604 times

User avatar
BirchJD
Posts: 162
Joined: Tue Nov 13, 2012 7:43 pm

Re: Reading OBDII Trouble Codes & Descriptions Using Python On A Raspberry Pi

Mon Oct 15, 2018 11:55 am

Rumee,

In GitHub you can view the commits to the project:

https://github.com/BirchJD/PiOBDII/commits/master

Get the code at one of the early commits, I think it was the second commit when I was just pulling back trouble codes.

Jason
http://www.newsdownload.co.uk/

nobhobbor
Posts: 11
Joined: Tue May 21, 2019 6:14 am

Re: Reading OBDII Trouble Codes & Descriptions Using Python On A Raspberry Pi

Tue Jun 18, 2019 11:29 pm

i would like to build an OBD2 reader and am curious about what hardware is recommended. does this program have touch screen interface? is it ok to ask for hardware suggestion? can it send a audio alert when a error code is detected?

User avatar
BirchJD
Posts: 162
Joined: Tue Nov 13, 2012 7:43 pm

Re: Reading OBDII Trouble Codes & Descriptions Using Python On A Raspberry Pi

Mon Jun 24, 2019 12:33 pm

You just need an "ELM327 OBDII" device, search on eBay, there are lots of them and very cheap. This either connects to the USB, via WiFi or BlueTooth.

As for sending an audio alert, if you can program in Python, you can implement features like that.

The finished project with touch screen can be viewed on a video here:
https://www.youtube.com/watch?v=yTRAhubZhsU

My source code is OpenSource, you can find it here:
https://github.com/BirchJD/PiOBDII
http://www.newsdownload.co.uk/

Tim Miller
Posts: 1
Joined: Sat Aug 03, 2019 4:00 am

Re: Reading OBDII Trouble Codes & Descriptions Using Python On A Raspberry Pi

Sun Aug 11, 2019 1:35 pm

BirchJD wrote:
Mon Jun 24, 2019 12:33 pm
You just need an "ELM327 OBDII" device, search on eBay, there are lots of them and very cheap. This either connects to the USB, via WiFi or BlueTooth.

As for sending an audio alert, if you can program in Python, you can implement features like that.

The finished project with touch screen can be viewed on a video here:
https://www.youtube.com/watch?v=yTRAhubZhsU

My source code is OpenSource, you can find it here:
https://github.com/BirchJD/PiOBDII

Thank you for your suggestions. I've bought one ELM327 OBD2 that connects via Bluetooth thanks to recommendations and useful advice from this post https://obdsolaris.com/elm327-definite-guide/
I think you guys should try out one for this case.

Return to “Python”