Skip to content

Born as a project for my bike, ESP32-bike-inclinometer, allows you to check in real time the lateral and vertical inclination of the vehicle.

Notifications You must be signed in to change notification settings

EmaBixD/ESP32-bike-inclinometer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Born as a project for my bike, ESP32-bike-inclinometer, allows you to check in real time the lateral and vertical inclination of the vehicle.

preview

Requierements

  • DOIT ESP32 DEVKIT V1
  • MPU6050
  • GC9A01

finished product

Setup

  • Be sure to change the following settings within the User_Setup.h file to the C:\Users\name\Documents\Arduino\libraries\TFT_eSPI directory.

folder image

#define GC9A01_DRIVER

#define 1 image

#define TFT_MOSI 23 // In some display driver board, it might be written as "SDA" and so on.
#define TFT_SCLK 18
#define TFT_CS   22  // Chip select control pin
#define TFT_DC   16  // Data Command control pin
#define TFT_RST  4  // Reset pin (could connect to Arduino RESET pin)

#define 2 image

Libraries

This code requires followings libraries (and relatives dependencies) to run:

  • TFT_eSPI
  • Adafruit_MPU6050

Code is not optimized at all. If you find a way to do it better, please, let me know in comments 🤗

About

Born as a project for my bike, ESP32-bike-inclinometer, allows you to check in real time the lateral and vertical inclination of the vehicle.

Resources

Stars

Watchers

Forks