Raspberry Pi Car Stereo

Internet connected car stereo with obd 2 and remote start.

Please mind the mess! I am still working on this.

So when I went looking for information on building a Raspberry Pi based stereo for my truck I came across this blog by Christian Brauweiler. He has a write up on how to setup your Pi as a stereo in German which I have outlined below.

I started using a Raspberry Pi Zero W with the HDMI connected to my television. I then purchased a 7″ touchscreen from a seller on eBay. Unfortunately the screen I received would not power up. The seller said perhaps the screen was bad, so I was sent a new screen. It too would not power up. So the seller has sent me a new control board. Unfortunately it hasn't arrived in time. Due to this, I have swapped the Raspberry Pi Zero with a Raspberry Pi 3 and an official Raspberry Pi 7″ touchscreen.

I also have been hampered in this project by both GPS and Nova refusing to grab a signal. I have moved my entire project next to a window yet still no GPS lock, and no cellular signal. I am working on the Cellular signal part, but I have been unable to complete the cellular integration because of the lack of connectivity. I will continue to update this project as I make progress.

The first step is to apply an image to your SD card. I used this image of Raspbian Jessie Lite from April of 2017. I have been using Etcher on Windows to copy images to SD cards and love it.

Next we need to fetch the carPc install script built by Andrei.

Install the pre built carpi project with:

wget https://download.christian-brauweiler.de/RaspberryPi/CarPC/current_carpc.zip

unzip the file with

unzip current_carpc.zip

install the provided software with

 ./install_carpc.sh

That process takes 15-30 minutes.

Once it is done install the hologram sdk with:

curl -L hologram.io/python-install | bash

If you are like me and receive some errors try reinstalling pip with this:

sudo easy_install -U pip

Now, if you are using a USB gps you will need to make a few changes.

Edit /boot/config.txt with:

sudo nano /boot/config.txt

at the end of the file add:

enable_uart = 1

next we need to modify the gps daemon to read from the serial gps device.

sudo nano /etc/default/gpsd

find the line:

DEVICES="/dev/ttyUSB0"

and change it to

DEVICES="/dev/ttyS0"

Since I wanted the ability to play videos, mp3s, bluetooth audio, etc from the Raspberry pi, I chose to utilize a USB Sound card. This allows me to take a male to male 3.5mm audio cable from the Si4703 to the audio in on the sound card, then from the audio out on the sound card to my truck speakers. (Not installed yet – Will probably need to provide an amplifier)

Now, if you are using a USB Sound card like I mention above, you will need to configure it to be the primary audio device like this.

Create a new file, /etc/asound.conf like this:

sudo nano /etc/asound.conf

Now add this to the file:

pcm.!default  {
   type hw card 1
}
ctl.!default {
   type hw card 1
}

Navit GPS Map:

So now we need to provide a map for use with the built in Navit GPS software. Navit may not be everyones first choice for GPS navigation, but it is compiled with this version of Kodi, which allows the Navigation button in Kodi to display the application. So, we will need to get a map for our area from the Navit-Project website. I selected the predefined area of North America without Alaska or Hawaii and the file was nearly 4GB. Take the file and copy it to your Raspberry Pi into the /home/pi/.navit/ folder with a filename of map1.bin.

Source: Raspberry Pi Car Stereo


About The Author

Muhammad Bilal

I am highly skilled and motivated individual with a Master's degree in Computer Science. I have extensive experience in technical writing and a deep understanding of SEO practices.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top