Page 1 of 1

Convert frequency to voltage

Posted: Mon Dec 02, 2019 4:55 am
by ratter
Hi
I need to build a pwm signal to voltage convertor for a turbo speed sensor to communicate with my data logger
the sensor creates a 5 volt pwm signal possibly up to 6000 Hz and I need to convert this signal to a analog 05 volts
I will most likely be using a Arduino Nano board (unless somebody recommends something different) but are not very good at coding, so any help or recommendations would be appreciated

Re: Convert frequency to voltage

Posted: Mon Dec 02, 2019 5:42 am
by LAV1000
Look for converter pwm to dc, like this one for instance:
http://henrysbench.capnfatz.com/henrys- ... converter/

Re: Convert frequency to voltage

Posted: Mon Dec 02, 2019 7:12 am
by ratter
Thank you for the link
I'm relatively new to this stuff, with that set up in the link, is that using the Arduino to create a pwm?
I'll have a pwm signal from a speed sensor and want to convert that to 0-5v

Re: Convert frequency to voltage

Posted: Mon Dec 02, 2019 8:37 am
by theonewithin
ratter wrote: Mon Dec 02, 2019 7:12 am Thank you for the link
I'm relatively new to this stuff, with that set up in the link, is that using the Arduino to create a pwm?
I'll have a pwm signal from a speed sensor and want to convert that to 0-5v
Read the link....


If you can't understand it then there is little hope you will be able to get what you want.

Re: Convert frequency to voltage

Posted: Mon Dec 02, 2019 11:01 am
by JHolland
If you are only sending the signal into the Arduino then you may only need the RC. You need to determine what frequency range you need to measure and how quickly the turbo will accelerate and decelerate to determine the time constant.

Re: Convert frequency to voltage

Posted: Mon Dec 02, 2019 11:18 am
by JHolland
I think that you may be going about this the wrong way - converting to analogue will give a poor response, you should really use an input capture channel to measure the period.

Re: Convert frequency to voltage

Posted: Mon Dec 02, 2019 11:20 pm
by ratter
The data logger only accepts a 0-5v signal

Re: Convert frequency to voltage

Posted: Mon Dec 02, 2019 11:22 pm
by ratter
I should mention, I'm open to suggestions for a better way, but I'm not going to learn unless I ask questions :)

Re: Convert frequency to voltage

Posted: Tue Jan 21, 2020 11:00 pm
by brenyw
If you are using a nano then it's pretty simple,, you can just use it to measure the frequency then output a proportional voltage to one pin. You measure the frequency by either measuring the period or counting the pulses over time, or a combination of the 2 depending on the frequency involved. The only tricky bit is getting a clean pulse to measure and running the nano from a good voltage supply.