This speedometer is a custom-built device created using the Arduino Mega 2560 microcontroller, a TFT display shield, and an IR sensor. It is designed to calculate the RPM (revolutions per minute) of the motor's rotating shaft. Serving as an integral component of the vehicle dashboard, this speedometer offers crucial information about the motor's performance.
Credits: Microcontrollers Explained
-
Install version 1.0.1 of the SdFat library by Bill Greiman (does not work with the latest version)
- Open the SdFatConfig.h file (using Notepad or any text editor), which you'll find inside the path libraries/SdFat/src.
- Modify
#define ENABLE_SOFTWARE_SPI_CLASS 0to#define ENABLE_SOFTWARE_SPI_CLASS 1.
-
Install MCUFRIEND_kbv library by David Prentice
- Open the MCUFRIEND_kbv.cpp file (using Notepad or any text editor), which you'll find inside the path libraries/MCUFRIEND_kbv.
- Make changes as per the file provided in this repository under the same name.

