Go Down

Topic: Read a freqency from an analog pin (Read 6633 times)previous topic - next topic

majenko

#30
Nov 14, 2012, 08:04 pm

Can make for me a correct program with this library?

Yes, if you pay me.  £100/hour.  Will it do what you want?  Who knows?  We still don't really know what you want it to do.  Do you really know what you want it to do?

florin

#31
Nov 14, 2012, 08:20 pm
I want to read frequency. It's simple.

majenko

#32
Nov 14, 2012, 08:23 pm
What do you want to read frequency using?  What is the form of the signal?  What is the range of frequencies you are interested in?  What do you want to do with those frequencies when you have read them?

florin

#33
Nov 14, 2012, 09:38 pm
A microphone read frequences. If sound is below, blink  a led. If sound is sharpen , blink another led. That is all.

AWOL

#34
Nov 14, 2012, 09:42 pm
What amplification have you got between the microphone and the Arduino?
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

KeithRB

#35
Nov 14, 2012, 10:49 pm
It is not that simple. A microphone reads *all* frequencies. If you know there is only *one* frequency, you can amplify the signal to clip and become a square wave and use the pulse measurement technique mentioned earlier. If the signal is buried in noise, you might have to use an FFT to resolve it.

majenko

#36
Nov 14, 2012, 10:51 pm

A microphone read frequences. If sound is below, blink  a led. If sound is sharpen , blink another led. That is all.

You still haven't answered our questions.

What are you getting the signal with?

What is the format of the signal
- Oscilloscope traces would be best, or describe the signal in detail

What frequencies are you interested in?
- Is the signal a single frequency (sine wave), and what is the minimum / maximum frequency?
- Is the signal a composite signal, and you are interested in a "peak" frequency within the background noise?  If so, what is the minimum / maximum frequency?

Cybernetician

#37
Nov 15, 2012, 04:28 am
Quote
I don't need the full code. I want only a line , wich read frequency...

Try this
http://interface.khm.de/index.php/lab/experiments/frequency-measurement-library/
http://www.arduinoos.com/wordpress/?p=1022
From Idea To Invention

florin

#38
Nov 15, 2012, 01:13 pm
The microphone is connected to Analog 0. Max frequency is 20 Mhz. I separe in 2: "<1Mhz" and ">1Mhz" . Then i have 2 LED's. If first conditional is true, blink first led. If second condisitonal is true, blink the second led.  XD

AWOL

#39
Nov 15, 2012, 01:38 pmLast Edit: Nov 15, 2012, 01:42 pm by AWOL Reason: 1
Quote
The microphone is connected to Analog 0. Max frequency is 20 Mhz. I separe in 2: "<1Mhz" and ">1Mhz"

Everything will go in the <1MHz category.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

fungus

#40
Nov 15, 2012, 01:48 pm

The microphone is connected to Analog 0. Max frequency is 20 Mhz. I separe in 2: "<1Mhz" and ">1Mhz" . Then i have 2 LED's. If first conditional is true, blink first led. If second condisitonal is true, blink the second led.  XD

You have a microphone that works up to 20mHz? How much did it cost you?
No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

AWOL

#41
Nov 15, 2012, 01:49 pm
Quote

You have a microphone that works up to 20mHz?

Normally, that would be a seismometer, and we would say "down to"
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

majenko

#42
Nov 15, 2012, 02:20 pm

Quote

You have a microphone that works up to 20mHz?

Normally, that would be a seismometer, and we would say "down to"

I think he means megahertz, not millihertz

florin

#43
Nov 15, 2012, 02:24 pm
Values are fictive. I want to separe 2 frequences. (frequences from microphone)

Erni

#44
Nov 15, 2012, 02:27 pm
Take a look at this, a library and examples:

http://www.avdweb.nl/arduino/hardware-interfacing/frequency-period-counter.html

Go Up

Please enter a valid email to subscribe