Hi , I have purchased an Arduino Uno kit. I would like it to activate the arduino relay which I also purchased but the relay activation must happen at a certain frequency from a signal wire eg 30Hz and keep the relay activated until it reaches a Frequency of for example 50 Hz ...at this point the relay must be deactivated and remain deactivated at 50 and above Hz. I would like this function to occur at these everytime I hit the frequency of 30Hz . How would I code my arduino to do this.
What is producing the signal that varies between 30Hz and 50Hz?
Are those the limits to the frequency or can it be lower and higher?
It is much easier to give useful advice if you describe the project you are trying to create.
...R
If I were the OP I'd change the title of this thread to something like "How to measure input signal frequency". That the Uno has to operate a relay is totally incidental to the problem of measuring an input frequency. Once the frequency can be detected, the toggling of the relay is trivial.