How to connect and read a 30v input freq

I need to convert a 24-30v input frequency to a readable Hz in the arduino, would a simple voltage divider work for this?

Please describe the signal: AC or DC, from what sort of source.

If DC, 0 to 30V, a 10K/2K voltage divider should work fine. If AC, 30V peak to peak, then you need to think about protecting the input from negative voltages.

What frequencies do You have in mind?
In case of AC, use an optocoupler, a diode and a resistor.

Its an AC signal at 24-30V and at 200-400Hz. Its a sensor output off of a transmission and turbine engine. I am trying to make a tool that translates the output freq to RPM on a digital display.

Peak to peak, amplitude or rms?

The distinctions make a big difference, for example, 110VAC (rms) household in North America is about 280 to 300 V peak to peak.

Honestly I am not certain, I would have to run the machine and check it, but I believe it is PtP. Thanks for the replies everyone, I am new to this stuff.

If you have access to an oscilloscope, it would help a lot to see a picture of the trace on screen, with calibrated markings.

I think I would use a diode to rectify the AC, a voltage divider to get it down to < 5V and a comparator. Connect a pot to the comparator's - input and feed the output to an Arduino digital pin (possibly an external interrupt pin).

That sounds like my best option currently, I will do some testing on the output and update what i plan to do. It may be a while as I am currently away from home for a few weeks, I am just trying to get a plan in place for when I get back and can start tinkering.

No problem using an opto coupler at that frequency. A serie diode and a resistor. Controller input declared as INPUT_PULLUP.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.