Announcement

REXYGEN forum has been moved. This one is closed.
Head over to the new REXYGEN Community Forum at https://forum.rexygen.com.

Looking forward to meeting you there!
 

#1 2016-01-12 07:18:47

soxso2011
Member
From: India
Registered: 2015-11-25
Posts: 37

Frequency Measurement of a voltage signal

Please suggest a method to measure frequency of input signal, which block will be used and how to integrate with raspberry pi.

Offline

#2 2016-01-12 11:33:01

jaroslav_sobota
Administrator
Registered: 2015-10-27
Posts: 535

Re: Frequency Measurement of a voltage signal

Please specify the amplitude and frequency ranges of the voltage signal. How often does the frequency change? What is the source of the signal? If you have some screenshot or sample data, upload it here.

Offline

#3 2016-01-12 13:42:35

soxso2011
Member
From: India
Registered: 2015-11-25
Posts: 37

Re: Frequency Measurement of a voltage signal

Amplitude Range 0 to 3.5 V Square wave
Frequency range  2Hz to 250 Hz
This is the output of Flame scanner used for flame detection in Thermal Boilers.

Offline

#4 2016-01-14 18:32:03

jaroslav_sobota
Administrator
Registered: 2015-10-27
Posts: 535

Re: Frequency Measurement of a voltage signal

Find the enclosed example on processing the pulses. It consists of one quick task for counting the pulses (sampling rate 2ms = 500Hz) and another task at sampling rate of 100ms for converting the counter value to frequency and providing real-time data trend. It works nice on my Raspberry Pi2.

The main idea is counting pulses and comparing it to a delayed signal. The more the signal is delayed, the smoother values you get. On the other hand, the signals get delayed... Set the delay to fit your application.

Remember to use e.g. voltage divider, the GPIOs of the Raspberry Pi can handle only 3.3V!

Download all 3 files and put them in one folder. The freq_exec.mdl file is the project main file.

Offline

#5 2016-03-01 07:50:13

soxso2011
Member
From: India
Registered: 2015-11-25
Posts: 37

Re: Frequency Measurement of a voltage signal

It works very well !
Thanks smile

Offline

#6 2016-03-01 08:34:53

jaroslav_sobota
Administrator
Registered: 2015-10-27
Posts: 535

Re: Frequency Measurement of a voltage signal

Glad I could help. Thanks for your feedback!

Offline

Board footer

Powered by FluxBB