I've found some interesting electronic projects which I wanna build, but I'll need a frequency meter for at least 1MHz. Sadly, I don't own one, but I found on the web that an Arduino UNO could do it.
My problem is that AVR's and other microcontrollers like 0V-5V logic levels as inputs, so it would be nice to create an 5V rectangular wave from the input wave.
I found that a simple
Schmitt-trigger could do it, but sadly, I could not get one, and I'd like to use a wider voltage range than 5V.
That's what I've got so far(as a plan):
opamp in peak value detector configuration, then use a voltage divider to divide it by 2. (I don't know that I can or can't use a voltage divider with opamp output. If not, use another opamp to divide it by 2)
opamp in comparator config, compare the original signal to (peak value)/2. I think that if I feed 5V to the comparator's Vcc, then I should have a nice 5V rectangular wave as output.
Am I right?