The input to the PIC will be from a hall effect sensor >>https://www.farnell.com/datasheets/34203.pdf. The sensor is used to calculate speed from a toothed gear. The gear has 26 teeths.
My question is:
1) How to calculate the speed of the rotating gear. I want the speed to be in mph. fyi, the speed of the gear is constantly changing.
2) after ive calculated the speed how to send it to the displays thru the I2C. I have no idea what is I2C so any explanation is welcomed.