Car Inclinometer ESP32

This is a low-cost DIY car pitch and roll indicator with a circular TFT display. It uses an MPU6050 3-axis gyroscope and accelerometer, a rechargeable battery, and an independently mounted sensor that can be positioned regardless of the display orientation.

Disclaimer : For Educational Purpose Only.

Buy a ready to use version ๐Ÿ‘‡๐Ÿ‘‡

Buy from AliExpress link ๐Ÿ‘‰ Click here

Parts required for DIY build:

1. ESP32 S3 Supermini
AliExpress➡️ Buy Option 1  Buy Option 2
 
2. 1.28" GC9A01 display
AliExpress➡️ Buy option 1  Buy option 2 

3. MPU6050 (6DOF Accelerometer Gyroscope)

AliExpress➡️ Buy option 1  Buy option 2 

4. Lipo battery 3.7v
AliExpress➡️ Buy Option 1  Buy Option 2

5. SPDT switch

AliExpress➡️ Buy Option 1  Buy Option 2

Circuit Diagram
Note: This project works on any ESP32 but this board has a built-in battery charger.
Source Code:
I've uploaded the source code in my drive


Required libraries :
i) lvgl (please use v8.3.11, otherwise the code won't compile)
ii) LovyanGFX (latest)

New to Arduino / ESP programming ? 
Follow this PDF guideline for step by step process


If you face any issue send me an email with subject "car inclinometer" to abid.business01@gmail.com

Comments

  1. I used to build HeathKit and Radio Shack 2m Radios, etc. As a kid these are the coolest.

    ReplyDelete
  2. Ciao assemblato usando schermo tondo normale e funziona perfettamente, il solo problema che riscontro e la calibrazione del sensore. bisogna posizionarlo in una specifica posizione o c'รจ un sistema di calibrazione?

    ReplyDelete
    Replies
    1. Auto calibration in 3 seconds after powering on.

      Delete
  3. Would it be possible to incorporate a piece of code that would light up an LED or trigger an audible alarm (PIEZO?) when the vehicle tilts beyond the 40 mark?

    ReplyDelete
    Replies
    1. That's an easy task if you just upload the ino file to any AI and ask to to that.

      Delete
    2. OK... I’m going to give AI a go... at my age it’s not going to be easy, but a new experience is always motivating... ( ๐Ÿ˜ )

      Delete
  4. Hi Abid. I just finished building two of these and am having the same issue with both. ESP32 boots fine and displays graphics but moving the assembly doesn't change the display. No tilt or roll indications. The program appears to have compiled and uploaded correctly. I've triple checked the wiring. Red LED stays lit on the motion PCB. Also, I haven't yet installed the battery (awaiting delivery) so I'm powering only using the USB-C connector. That shouldn't make a difference, correct? Thanks for any assistance you can provide.

    ReplyDelete

Post a Comment