Frequency convertor

[date=2022-04-12 timezone="Europe/London"

Hi , In my project I have to measure the frequency of a vibrating belt and I am confused with the coding stuff. Initially I make a coding for Temperature sensor that gave me results back in voltage:
How can I convert this voltage sensor into frequency?


Frequency measurements MUST have a time somewhere in the measurement. Your program has NO time, as you know.
Frequency can be computed if you know the time it takes for the belt to complete one complete cycle of movement. Is the belt frequency stable or is it varying from time to time?
You might use two IR sensors. One to trigger on the maximum upward movement of the belt and the second triggering on the maximum downward movement of the belt. Keep track of the time when each sensor detects the belt. The time difference will let you compute the frequency.
Good luck with the design and program.

1 Like

Confusion :upside_down_face:

Do you want the belt length converted to full-laps/seconds ?

Or, since the belt is flapping around like a caught fish in a boat, are you concerned with the flap frequency?

If the latter, investigate FFT on Arduino.

I have to vibrate the belt and this would cause an initial sound spike which then decays over a few seconds. My target is measure that frequency of vibrating belt with the help of optical sensor. And desired frequency range is 10khz-5khz.

Strange! Are you measuring the fundamental frequency or are you including the various overtones, as well?

Just the fundamental frequency. Accuracy can be 1% as well. I just need help with how to write a basic code of measuring with the help of Optical sensor

Hello afnan786
Post a picture of the belt hardware and data sheet of the sensor in use.
Have a nice day and enjoy coding in C++.
Дайте миру шанс!

This seems to be a solution in search of a problem. Power transmission belts vibrate at different frequencies based on the amount of power being transmitted at that instant. This does cause variations in the power being transmitted, but looking at a stationary belt will give NO clue as to what is going on.
Belt temperature is also a factor. Variations in the amount of power being transmitted will also affect the belt vibration.
Perhaps the OP could enlighten us on the theory behind the device design.

I am just trying to build a design concept that can measure resonance frequency of a belt with the help of Photodetector. I already got a coadding that is measuring the temperature sensor with the help of photodetector and giving result back in voltages. Is there any way that I can convert that voltage to frequency in that coding?

#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
int analogInput = 0;
float vout = 0.0;
float vin = 0.0;
float R1 = 100000.0; // insert exact resistance value R1 (100K)
float R2 = 10000.0; // enter exact value of resistance R2 (10K)

int value = 0;

void setup(){
pinMode(analogInput, INPUT);
lcd.begin(16, 2);
lcd.print("Sensor Output");
Serial.begin(9600);
}
void loop(){
value = analogRead(analogInput);

vout = (value * 5.0) / 1024.0;
// insert the output in volts between 5.0V and GND of your Arduino instead of 5.0V

vin = vout / (R2/(R1+R2));
if (vin<0.09) {
vin=0.0;
}
lcd.setCursor(0, 1);
lcd.print("V= ");
lcd.print(vin,11);
delay(500);
}

But is that belt transmitting power at the time of measurement? In any case, you need to be able to separate the fundamental frequency for all others.

Hi Everyone,

I am trying to create a design concept that can measure the resonant frequency of the vibrating belt in the industry to measure its tension. I am using Arduino Uno, TSL257-TF for Converting optical signals into electrical signals. By now I am able to measure the temperature by using simple code and give results back in voltage for testing purposes. But now I want to convert that voltage into frequency and after searching I looked at AD654 VFC which can help me, but I am not sure how can I connect this with my Arduino so it can convert incoming voltage into frequency.
Also what changes i have to do in my coding after connecting this AD654?

That circuit converts voltage to frequency. It doesn't take frequency converting it volt.

Please post a block diagram telling the setup. Schematics would of course be interesting.

Surely interesting but it tells nothing about what Youre up to.

Adding links to datasheets of special circuit attracts more helpers...

Hi Everyone
It’s just a silly question. But can anyone suggest to me how can I connect TC9400 with this schematic diagram? Basically, I am trying to convert my voltage into the frequency with the help of TC9400 which contain 14 pins.
Atm I am getting my results back in voltage . Frequency accuracy is just about 1% accurate require atm.


The very first suggestion is to get rid of that PP3 battery and place it in a fire alarm.
Aren't there any application notes for that circuit?

Thanks for the picture but it doesn't work to magnify it. Could You post a link to that datasheet?

What are You talking about? Post a block diagram showing the big picture.

I just want to know how can i connect TC9400 with this circuit.

You need quite some more advice than where to apply the copper wires. That's an advanced circuit, not a Plug & Play device.

Not being familiar with that circuit I can only tell You to read the PDF You posted.

I have merged the three topics about this project.

I appreciate that the topics were not duplicates, but it seems that each provides valuable context for the next and that there is a tendency for duplication in the resulting discussion.

Best wishes for success with your project @afnan786

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