I am new to the Arduino Programming Enviroment and I am trying to impliment a gear shift indicator for a Formula Student Race Car.
My idea is to measure the frequency of the wheel rotating and the frequency of the engine rotating and then using the pre known gear ratios have the arduino calculate which gear the car is in and display it on the dash as a series of LED lights (one for each gear).
I thought of using the internal timer to time a pre defined period and to count how many revolutions of both engine and wheel occour within that alloted time, thus giving the RPM’s of both and then impliment a look up table which will compare the ratio calulated to the pre defined ratios given for each gear.
The problem I have is that I dont know how to program this.
Any assistance would be great.