Skip to content

QtCreator QML based OBDII connected Mercedes gauge cluster. Uses a PCAN hardware device to poll engine data and render the OEM styled gauages.

Notifications You must be signed in to change notification settings

drewmo/qt-qml-mercedes-dash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QtCreator QML based OBDII connected Mercedes gauge cluster. Uses a PCAN hardware device to poll engine data and render the OEM styled gauages.

Raspberry Pi based Digital Gauge Cluster

Mercedes Gauage Cluster Render Image

Projects used to setup Ubuntu for development and cross compiling:

Project info

Originally I was going with a setup like @joshellissh was using for his digital cluster gauage (V1), but I needed to rebase my project to QtCreator QML. The main reason is I needed to be able to render a vertical style cluster gauge and QML supported rotating the display out of the box. I worked from the example project included with QtCreator to customize the gauage to my needs.

Setup steps on Buster Lite:

initial_turbo=60
disable_splash=1
boot_delay=0
  • Add quiet fastboot to /boot/cmdline.txt
  • Copy contents of linux/network_interfaces from repo into FILE /etc/network/interfaces
  • Add contents of linux/.xinitrc from repo into file ~/.xinitrc
  • Add contents of linux/.bash_profile from repo into file ~/.bash_profile
  • Copy contents of linux/pidgc.service from repo into file /etc/systemd/system/pidgc.service
  • sudo systemctl enable pidgc.service
  • sudo /sbin/ip link set can0 up type can bitrate 500000
  • sudo adduser pi dialout
  • Disable unused services once everything is done. This decreases boot time substantially:
    • sudo systemctl disable ssh
    • sudo systemctl disable hciuart
    • sudo systemctl disable nmbd # If you have samba installed
    • sudo systemctl disable smbd # If you have samba installed
    • sudo systemctl disable systemd-timesyncd
    • sudo systemctl disable wpa_supplicant
    • sudo systemctl disable rpi-eeprom-update
    • sudo systemctl disable raspi-config
    • sudo systemctl disable networking
    • sudo systemctl disable dhcpcd

Now when you reboot the system should start into startx and run Chromium with http://localhost:8080.

About

QtCreator QML based OBDII connected Mercedes gauge cluster. Uses a PCAN hardware device to poll engine data and render the OEM styled gauages.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published