Jump to content
ELFORUM - Forumul electronistilor
Guest Catalin Stoica

Limitator frecventa

Recommended Posts

Guest Catalin Stoica

Buna ziua.

 

Am nevoie de un limitator de frecventa.

Datele sunt urmatoare: Am un senzor MAP(manifold absolut pressure)senzorul emite frecventa(square wave 50% duty cycle) intre 70Hz si 170Hz.

 

Limitatorul trebuie sa permita trecerea semnalului pana in 155Hz iar peste sa emita doar 155Hz(+- maxim 5%).

Alimentarea senzorului este la 5V curent continuu.

 

Am incercat cu filtru clasic(rezistenta,condensator)nu a functionat,

Dupa am incercat cu un microcontroler(Arduino).Cu aparatul de masura am verificat si emite frecventa dar calculator considera ca este ceva nereinregula cu semnalul. 

 

Limitator frecventa? Vreo idee despre ce este de facut?

Multumesc.

 

Postez si codul folosit:

 
 
#include <FreqMeasure.h>
 
void setup() {
  Serial.begin(57600);
  FreqMeasure.begin();
}
 
double sum=0;
int count=0;
 
void loop() {
  if (FreqMeasure.available()) {
    // average several reading together
    sum = sum + FreqMeasure.read();
    count = count + 1;
    if (count > 1) {
      float frequency = FreqMeasure.countToFrequency(sum / count);
      Serial.println(frequency);
      sum = 0;
      count = 0;
      if (frequency < 155) { tone(9,frequency);}
      else { tone(9,155);}
    }
  }
}
 
 
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.Terms of Use si Guidelines