SIMPLE CAR INSTRUMENT CLUSTER

ARDUINO NANO  WITH RASPBERRY PI-4  POWERED BY QT5



Several month, I used arduino-Realdash with Android tablet to be used as my car instrument cluster and works nicely as you can see on:

Arduino-Realdash

The software looks good but it has some limitation and the Android tablet has some problem, it has no reliable bluetooth connection and usb connection is opten disconnect, so I try to search what software to develop the instrument cluster application. Fortunatelly I found the opensource development software that I try for the first time is pretty hard to understand. 

Qt | Cross-platform software development for embedded ...


QT is using c++ and QML language to provide some good function and library to try, there is so many example program to try, and the most interesting point is QT can be run on several plaform, say it Raspberry pi4.

Learning from zero knowledge of C++ & QML(I prefer using Visual Basic before), after learning more, then finally I'm able to try some examples and now I'm able to build my simple instrument cluster.

I need some input and help from all friends with have interest in building an instrument cluster, please discuss here about the QT instrument cluster.

Here the target I want to achieve as this pic:



Here is the step by step to build my  instrument cluster.

BUILDING STEPS

1. Build Arduino nano as signal source

As I don't have a good OBD2 interface to connect to car  and also my vehicle has no some signal provided that I need for the instrument cluster 

the signals :

These signals provided by OBD2-ECU

1. Speed    

2. RPM      

3. MAF   

4. GPS coordinate ( is not provided on my car)

5. Fuel Level (provided as Fuel level sensor on the car combination meter)

6. Coolant Temperature (provided as temperature sensor on the car combination meter) 

some signals provided as 12V level Signal on the car combination meter

7. Turn Left/Right  signal 

8. check Engine signal  

9. Oil Pressure signal  

10. Park Brake signal 

11. Seat Belt signal 

12. Door open signal

13. High beam signal 

 Those signals will be gathered on an Arduino nano and will be sent directly to future Instrument-Cluster.

and the steps :

    - create pcb as schematic diagram

    (wait for update)

    - assembly pcb with needed components

    (wait for update)

    - testing and load arduino sketch 

    (wait for update)


2. Prepare Raspberry PI-4 ( as a display-computer and using 12.3 inch lcd display via hdmi)

Development tool: a PC running Ubuntu 20.04, using Open QT 5.15.0 as a development IDE software

Car Instrument cluster system: Raspberry Pi4B 4GB Ram, 32GB Micro SD Running RASPIOS Buster

Steps:

    - learn about rarspberry pi 4, goto the site as follows RASPBERRY PI GETTING STARTED

    - download raspberrry pi software : RASPIOS-BUSTER

    - install image above as following instruction : INSTALL GUIDE

    - install QT library on Raspberry Pi-4 as following instruction  :  

    A modern guide for cross-compiling Qt (with QtWebEngine) for HW accelerated OpenGL with         EGLFS on Raspbian

    

3. Prepare Display

(wait for update)


4.Develop an Instrument Cluster Application Using QT5 and Deploy QT5 instrument cluster application

(wait for update)



Komentar

  1. Assalamu alaykum wa rohmatullohi wa barokatuh. Have not you tried Arduino Mega instead of Arduino Nano?

    BalasHapus
  2. Waalaikum Salam Warohmatullohi wabarokatuh, I planned to replace arduino nano with Mega, and I prepare it, when I load the ino to the Mega, it works but it has difference with the signals, I'm using Serial port to comunicate between Raspi4 to Arduino Mega, in arduino I'm using Realdash-CAN protocol with 8byte frame, so the receved signal on display is chaos :)

    BalasHapus
    Balasan
    1. una placa ESP32 para este proyecto

      Hapus
    2. Assalamu alaykum wa rohmatullohi wa barokatuh. Ramadhan mubarak brother. I wanted you ask favor, if you don't mind. Can i have your realdash can mcp2515.xml file please. I'm using your realdash can mcp2515 sketch for arduino but i'm getting how to set up xml file. So, i wanted to do it with learning your xml, if you dont mind. Thank you.

      Hapus
    3. I mean, i'm not getting how to set up.

      Hapus

Posting Komentar