Hoping someone may be able to give me a steer. I have constructed a function generator (from a design on Youtube using the XR2206 IC). The generator works extremely well and puts out pretty accurate sine/square/triangle waveforms. I would like, if possible, to add a 'frequency counter' feature to the project.
The square wave signal generated by the XR2206 (@ about 2.5V) is fed to a 74HC14 schmitt trigger and it's output passed to an arduino nano (see attached sub-circuit diagram) which is coded to display the frequency on a seven segment display and, as I say, it works very well. Switching the input to use the Schmitt trigger/nano setup with an external signal instead of a signal generated by the XR2206 is straight forward but I struggle to think of a with a way of getting the voltage of the external signal to be sufficient, but not excessive for the 74HC14 whilst maintaining the signal integrity. For example, the signal could come from a mobile device in the mV range or from another source at a voltage in excess of 7V (the maximum input voltage for the 74HC14) so I need to be able to identify the voltage of the signal and then amplify or attenuate it accordingly to a level acceptable to the 74HC14. To complicate things, I would need to ensure any external sine waves were converted to square waves. Am I looking to do the impossible? All the ways I have considered (comparators & opamps etc.) would, I suspect, have a significant effect on the integrity of the signal?. I would really appreciate your thoughts.

The square wave signal generated by the XR2206 (@ about 2.5V) is fed to a 74HC14 schmitt trigger and it's output passed to an arduino nano (see attached sub-circuit diagram) which is coded to display the frequency on a seven segment display and, as I say, it works very well. Switching the input to use the Schmitt trigger/nano setup with an external signal instead of a signal generated by the XR2206 is straight forward but I struggle to think of a with a way of getting the voltage of the external signal to be sufficient, but not excessive for the 74HC14 whilst maintaining the signal integrity. For example, the signal could come from a mobile device in the mV range or from another source at a voltage in excess of 7V (the maximum input voltage for the 74HC14) so I need to be able to identify the voltage of the signal and then amplify or attenuate it accordingly to a level acceptable to the 74HC14. To complicate things, I would need to ensure any external sine waves were converted to square waves. Am I looking to do the impossible? All the ways I have considered (comparators & opamps etc.) would, I suspect, have a significant effect on the integrity of the signal?. I would really appreciate your thoughts.

Last edited by a moderator:



