My car has always been missing something. Since it is an older car, it does not have the technology of a newer car. When driving in new areas, or following direction, I always appreciate visual navigation, but my car does not have any type of GPS. The simple solution is to get a phone mount and have directions on your phone. That works fine, but I think I can make something better.
Even before I got my car, I've been interested in tapping into car data buses and monitoring internal sensor values. This project was also an opportunity for me to dive into this try to get blend a navigation system with real-time engine data.
The Hardware
The parts I used for this project include a Raspberry Pi 4, a cheap LCD screen from AliExpress, a buck converter, and a handmade K-Line serial adapter.
The Wiring
![]()
Opening the dash to access car wiring
To power everything, I tapped into the 12V line for the radio. This has the benefit of turning on with the accessories, and staying on until the key is pulled out of the ingnition. Importantly, it is not directly connected to the battery, so it won't drain the battery. The LCD screen takes 12V directly, so I just spliced it in directly to the radio's 12V. The Raspberry Pi needs 5V, so I needed a buck converter to reduce the 12V to 5V. A cheap 3A module seems to get the job done just fine.
The screen was just plug and play with the Pi. It uses HDMI for the display, and a USB device for the touchscreen. I bought some short adapters to try to make the fitment in the vehicle cleaner.
The K-Line adapter for engine data was plugged into the diagnositics port under the steering wheel, so I made some longer wires to route behind the dash up to where the Pi is mounted.
![]()
The Raspberry Pi tucked away under the dashboard
Decoding the Engine Data
The Engine Control Unit (ECU) in my car exposes a K-Line interface in the diagnostics port. K-Line is a half-duplex serial protocol that operates at 12V logic levels. Because of these higher-voltage logic levels, the Raspberry Pi cannot talk to the ECU directly; it needs a translation device. Luckily, I am not the first to attempt this so I found some diagrams online that use a single MC33660 chip. I bought a pack of 5 chips and some little PCBs to solder them onto.
![]()
A MC33660 wiring diagram I found online
Once the Raspberry Pi can receive data from the ECU, it needs to be able to decode valuable information. The Subaru Select Monitor (SSM) protocol has been mostly reversed-engineered throughout the years, so extracting sensor data from it wasn't too hard. I asked AI to create a python script that would run on the Raspberry Pi to decode engine RPM, vehicle speed, coolant temperature, gas level, and a few more. Unfortunately, I really wanted to get my current gear to display on the Raspberry Pi, but the ECU does not have that information. Luckily, we can use a little bit of math to figure it out. Each gear has a distinct gear ratio, which is simply the engine RPM divided by the vehicle speed. I went for a small drive to gather data and try to find numbers for these distinct gear ratios.
![]()
Data I gathered show RPM, speed, gear ratio, which can be used to calculate current gear
![]()
Zoomed-in view of a full acceleration through all 5 gears