HCP Home and Car computer project

For necessity, curiosity, and experimentation I’m approached to this new world of programming with Raspberry Pi and the first project that I made is a car computer called HCP.

You can downlaoad the preset OS with all already installed at the end of this page.

This project is based on Raspbia OS so the first things that you should do is download and istall it on your Pi if you don’t know how to di this step go to my Home page at this link.The initial project was to use him as bluetooth ad2p reciever, for the one whom he/she didn’t know it is the technology that allows us to connect our smartphone with Bluetooth gadets and to feel therefore our music through best speakers of those of our telephones.
Convinced of my idea I have begun to program my raspberry in such way that was able you do all of this, to ended project I thought about transporting it from my room to my car and here that then I began to think also use it as navigator. I began then to install Navit, a very valid and compatible system of navigation with raspberry. The fantastic surprise of the perfect operation both of Navit and Bluetooth system brought me to the final installation of raspberry on my car. A mini-computer that with the simple installation of some softwares it goes to compete with the more adjourned computer of edge of the new cars it was for me something exceptional, but I wanted more and here that then I also installed KODI.
KODI is a program of reading of multimedia file that allows us to watch movie, video, to listen to music to visualize images everything from a usb stick or directly from the memory of our pc (in this case of the raspberry) besides with a connection internet through of add on we are able to connect to the contained whole streaming of the web, in short as to have a television that allows you to watch your preferred movies and to discover thousand of it of others through internet.
With the installation of KODI my project to use raspberry as a computer using raspbian, to transmit my music through Bluetooth, use him as a navigation systemin my car and besides to be able to connect it to the tv to watch all my tv series, all the film and everything I want was finally complete.

You can download the software at the end of this page. In the OS that I give you I’ve already configured a VNC server and you can use it just download in your pc VNC vewer and connect to Raspberry using the hostname raspberrypi.local! (Raspberry need a internet connection to work with VNC).
In a few days I will pubblish some photo and maybe some videos of my work.

If you don’t like use a OS already programmed now I will show you how to build my project.
So follow me and lets start with the first step: install Navit!

How to install NAVIT and create a navigation sistem.

One of the most interessant think that you can do with Raspberry Pi is create a navigation sistem and now I explain you hou to do it.
First think that you have to do isinstall Raspbian OS and open the terminal, after this update sistem with:
1) sudo apt-get update
2) sudo apt-get upgrade
Now you are ready to install Navit!
Start with open this file when you can find all the comand that you need
You have to simply copy and pase all the command in the terminal in sequence and the biggest part of this project is already done!


Download File

In this file you can configure Navit to read GPS’s signal from GPS module but Ican find more simple and useful use a GPS usb dongle so inthe last commands you have to put your GPS USB address instead of “ttyAMA0″ you can find GPS USB address with listing usb device using command ” dmesg | greep -i usb”.
If you have any problem contact me please, I will pubblish a video tutorial soon.
In my project I modified xml file to make Navit more functional and also beautiful you can find all xml file in the link below.
Copy and paste xml folder in first Navit folder and xml file in the second Navit folder. To configure vehicle option and the source of GPS (if you use usp device)follow the instruction on this page.
For more information go to the Navit wiki with this link.
In my project I edit the xml file of navit to make useful and mabye nice the graphical part of the navigator I give you the basic xml in this file:


Download File

and in this folder you will find all part of html that I edit:


Download File

For use my configuration yoou need to copy and paste the firts file in the second Navit folder and also you have to copy and paste the xml folder (you find it in the file xml.rar ) in the first Navit folder.

Navit offers you only the maps about a little part of the world, If you need another map can you take it in the Navit web page at this link. Select the area that you want and download it (go to predefinite area and selected what you want)!


After the download you need to go to the second Navit folder in /home/pi/navit/navit and enter in the maps folder, after this you have to copy the map’s downloaded and called osm_bbox_11.3,47.9,11.7,48.2.bin, repalce the existing file and you have done! To run Navit go in the second Navit folder and start it with the file called navit (it’sthe only file with a little airplane as icon).

How to create a bluetooth streaming system.

First of all you need a bluetooth usb dongle v.4.0 after this we begin installing Raspbian OS. When you installed Raspbian open your terminal and start with commands:
sudo apt-get update
sudo apt-get upgrade
Now we are ready to start the project! All the packages that you need are bluez pulseaudio-module-bluetooth python-gobject python-gobject-2 bluez-tools so install all of this with sudo apt-get install bluez pulseaudio-module-bluetooth python-gobject python-gobject-2 bluez-tools.
Now we are going to enable A2DP in our Bluetooth configuration with the following command:
sudo nano /etc/bluetooth/audio.conf
This will open the text editor nano with that config file you have to add the follow text:
CTRL+O and ENTER to save and then CTRL+X to exit nano. Now we must edit Pluse deamon configuration so write in the terminal:
sudo nano /etc/pulse/daemon.conf
Search the line with: resample-method = speex-float-3If the line doesn’t have a ; in front of it, please put a ; for disable the command, it looks like:
; resample-method = speex-float-3And then add the following line below that.
resample-method = trivialNow let’s actually save the script that allowsyou to streaming audio through bluetooth.
First check to see if a udev/ directory exists. Do sudo ls –la /usr/lib/udev . If it doesn’t exist go ahead and create it like so: sudo mkdir /usr/lib/udev after that you createthe directory do:
sudo nano /usr/lib/udev/bluetooth
And copy and paste all this document in the terminal:


Download File

Save and exit,and go to modify the permissions of the file to make it executable.
Run in the terminal:
sudo chmod 774 /usr/lib/udev/bluetooth
After this you are able to playing Bluetooth audio via A2DP!

How to install KODI and create a media center

We begin installing Raspbian or Openelec, the choice depends on what you wants to do. If you want to use Raspberry Pi as computer whita media center you must istall Raspbian but if you want to use Raspberry only for media center I recommend to install Openelec and everything is already installed. If you choose to install Raspbian open the terminal and write:
1) sudo apt-get update
2)sudo apt-get upgrade
(to update the OS)
3)sudo apt-get install kodi
(to install media center)
Now you can find the program in the new section sound & videos in the menù.
If you want to create a dekstop link follow the instruction on the .txt file below! (it solve also the problem with black screen on exit that you may have)


Download File

I leave you atorrent file with preset OS, all that you need is download and install it on a micro SD card with 64gb storage. You need a 64 gb SD card because I made a backup of mine and I already add all Europe maps in Navit. If you want you can download it here: