Skip to content

maximus5684/dash_pi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DashPi

A full vehicle dashboard application framework for the Raspberry Pi.

Requirements

Hardware

Software

  • Raspbian Jessie with no GUI

See the docs folder for further information on system setup.

Installation

Power Supply Configuration

To configure the DCDC-USB power supply for automotive PC applications you will need to set the following jumpers:

  • CONFIG jumpers
    • 0 OFF
    • 1 OFF
    • 2 ON
    • 3 OFF
    • 4 OFF
    • 5 ON
    • 6 OFF
    • 7 ON

This will configure the power supply for Automotive mode, 5V output, and a 5 second shutdown signal delay with a 60 second shutdown wait time. For more information on jumper configuration, see the manual.

If, instead, you want to use a 12V-to-5V micro USB adapter, like I did, omit the jumper in position 5. This will set the power supply for 12V output.

Basic Steps (OS-independent)

  • Remove factory stereo head unit
  • Install amplifier within cable-reach of Raspberry Pi
    • Connect wiring harness to factory speaker outputs
    • Connect constant power input to battery
    • Connect ground to nearby metal chassis mounting point
    • Connect turn-on wire to ignition signal from old head unit
  • Solder header pins onto, at least, pins 13 and 14 of the HifiBerry DAC+
    • Warning: According to HifiBerry, this will void your warranty
  • Put together Raspberry Pi, Raspberry Pi Touch Monitor, and HifiBerry DAC+
  • Install DCDC-USB power supply
    • Connect constant power input to red input wire
    • Connect ground to black input wire
    • Connect ignition signal to white input wire
    • Connect black output wire to micro-USB cable negative
    • Connect yellow output wire to micro-USB cable positive
    • Connect two-pin remote power switch connector to pins 13 and 14 (BCM 27 and GND)
      • Most shutdown scripts use pins 5 and 6 (BCM 3 and GND) but these are used for configuration of the Hi-Fi Berry DAC+

Basic Steps - Raspbian Jessie

  • Install stock Raspbian Jessie on RPi
  • Update everything (apt-get, rpi-update)
  • Install newer version of PulseAudio to fix drop-out bug (at least v6.0)
  • Configure for use as Bluetooth A2DP sink with Super-Simple-Raspberry-Pi-Audio-Receiver-Install
  • To install the shutdown script, run install_scripts/install_shutdown_listener.sh
  • Install sfml-pi
  • Build and install Dash Pi
    • cd dash_pi
    • mkdir build && cd build
    • cmake ..
    • make
  • Configure RPi to launch Dash Pi on boot

Basic Steps - Raspbian Stretch

  • Install stock Raspbian Stretch on RPi
  • Update everything (apt-get, rpi-update)
  • Install prereqs with install_scripts/install_prereqs.sh
  • To install the shutdown script, run install_scripts/install_shutdown_listener.sh
  • To set up bluetooth streaming, run install_scripts/install_bluetooth_raspbian_stretch.sh
  • Reboot
  • Build and install Dash Pi
    • cd dash_pi
    • mkdir build && cd build
    • cmake ..
    • make
  • Configure RPi to launch Dash Pi on boot

Usage

TODO

License

See the LICENSE file for various licenses for code from the following projects which were re-used in whole or part for this project:

The primary project is licensed under the GNU GPLv3.

Acknowledgements

Most icons created by Alex Auda Samora from Noun Project. Used under Creative Commons.