Hope you all are doing well.
This is my another video on STM32F407. In this video, I will show you that how the speedometer works!! The process starts with 12-bit ADC (Analog to Digital converter) values which will generate by a varying potentiometer (starts with 0 to 4095) and controller plot that value on a scale of 0-100 as shown in a screen (Dimension:320x240). In ADC I take 20 sample per reading to decrease the fluctuation of a needle and get the precise output. Same phenomena apply on vehicles controller takes the analog reading from the sensor which is attached to front wheels and plot it in a digital speedometer.
Thanks for watching,