I am new to the Arduino, so just looking for direction. I need to use the RPM signal from my motorcycle as an output for an Engineering project, however that output needs to be a steady analog signal from 0-3 volts. I have built a few electrical circuits to do this but they are too laggy and unreliable so Id like to give it a shot with the Arduino. The RPM signal comes from the the pickup rotor, which varies based on RPM, and id like to do a little math in the Arduino to convert the frequency to an analog signal (IE if input is 0 Hz output is 0 volts and if the input is 300 Hz then output is 3 volts etc).
Is there anything that is already written to read frequency from the analog input that I could hack up? I couldn't find anything when I searched but maybe im not searching the right stuff.
Also, I'm not concerned with the amplitude in the least bit so just the frequency is the important part.