Author Topic: Simple frequncy detector  (Read 4062 times)

0 Members and 1 Guest are viewing this topic.

Offline ataradovTopic starter

  • Super Contributor
  • ***
  • Posts: 11763
  • Country: us
    • Personal site
Simple frequncy detector
« on: May 11, 2015, 02:51:53 am »
Just a random idea I've been kicking around in my head.

Let's say we have a 5v level square wave with frequency of 1 Hz - 10 MHz. The goal is to design a circuit that will discriminate the frequency into a number of bins - 100 Hz, 1 kHz, 10 kHz, 100 kHz, 1 MHz, 10 MHz, or similar. It can be just one output active for a measured frequency, or all outputs active for the frequencies below a measured frequency.

The preference is to passives, but basic logic and opamps and such are OK. Any sort of programmable devices are considered cheating :)

Any ideas?
Alex
 

Offline Rerouter

  • Super Contributor
  • ***
  • Posts: 4700
  • Country: au
  • Question Everything... Except This Statement
Re: Simple frequncy detector
« Reply #1 on: May 11, 2015, 03:13:41 am »
logic chip approach would be timers in series to break out your count into BCD, or a decade counter may suit you better

have a reference crystal (e.g. 32khz clock) to act as a gate signal, at 1 second you latch in the count on the timers, then reset the timer a cycle or so later, you then use some gates to break out the timer count into the groupings,



If passives are prefered, you could use some multi-pole band-pass filters to break up the groupings, then use either some transistors, or a shmitt trigger chip or an op amp to drive an output when the signal level is strong enough, in this example, it would work better with some overlap in the middle, so you always get a reading,

« Last Edit: May 11, 2015, 03:18:27 am by Rerouter »
 

Offline Dragon88

  • Regular Contributor
  • *
  • Posts: 88
Re: Simple frequncy detector
« Reply #2 on: May 11, 2015, 03:41:36 am »
When I'm told "no microcontroller", then I think of the most complicated 7400-series based middle finger possible.  :)

First thought involves flip flips. At a rising edge of the input signal, preset a flip flop for each bin. Derive an anti-phase clock and stretch it appropriately for each bin, but only one pulse per run. If the input signal fell during a bin's period, it gets cleared. At the end of the run based on the lowest bin's clock, each higher bin must have all of the lower bins cleared, or it also gets cleared. This should leave you with a single flip flop set at the end, which corresponds to the bin in which the input signal falls.

Also fun would be analog filters and LC circuits for each bin. Like a coin sorting machine.
 

Offline Rupunzell

  • Frequent Contributor
  • **
  • Posts: 349
Re: Simple frequncy detector
« Reply #3 on: May 11, 2015, 05:01:47 am »
Bank of bandpass filters with the center frequency of interest passed to a level detector. No digits required.


Bernice
 

Offline kripton2035

  • Super Contributor
  • ***
  • Posts: 2683
  • Country: fr
    • kripton2035 schematics repository
Re: Simple frequncy detector
« Reply #4 on: May 11, 2015, 05:48:08 am »
can be done with a single fast enought microcontroler chip
or a big bank of analog filters for ten times the size on a board ...
 

Offline ataradovTopic starter

  • Super Contributor
  • ***
  • Posts: 11763
  • Country: us
    • Personal site
Re: Simple frequncy detector
« Reply #5 on: May 11, 2015, 05:50:47 am »
A bank of filters is the most obvious approach. The problem is that square wave contains a lot of harmonics, some of which will  go into the neighboring bins.

As far as counters go, it is way too complicated.  Basically using logic ICs assumes just one IC used in some clever way. It it kind of obvious how to solve this problem with complicated circuitry, and realistically MCU will be the simplest.
Alex
 

Offline ataradovTopic starter

  • Super Contributor
  • ***
  • Posts: 11763
  • Country: us
    • Personal site
Re: Simple frequncy detector
« Reply #6 on: May 11, 2015, 05:52:27 am »
can be done with a single fast enought microcontroler chip
or a big bank of analog filters for ten times the size on a board ...
I agree. But it is like chess problems, practically useless, so we might as well throw all of them away.
Alex
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22434
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Simple frequncy detector
« Reply #7 on: May 11, 2015, 06:24:10 am »
"Light Organ"
(plus some other things)

Think I forgot to actually put a frequency sweep into it, to show how the lights detect each frequency range.  But suffice it to say, that's what it does.

You could also use a chain of missing pulse detectors.  Only takes a few discretes if you need cheap and dirty.

Digital counting with one counting register, one latch register, and a mess of magnitude comparators, would give the best accuracy.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline Kalvin

  • Super Contributor
  • ***
  • Posts: 2145
  • Country: fi
  • Embedded SW/HW.
Re: Simple frequncy detector
« Reply #8 on: May 11, 2015, 07:40:57 am »
How about two or three LM311 or AD650 F/V-converters, two or three divide-by-10 or divide-by-100 prescalers and few window comparators. Log-amplifiers may help with setting the window comparators. Few logic gates for resolving the outputs. This solution is not as nice and accurate as all-digital using FPGA or microcontroller.
 

Offline Rerouter

  • Super Contributor
  • ***
  • Posts: 4700
  • Country: au
  • Question Everything... Except This Statement
Re: Simple frequncy detector
« Reply #9 on: May 11, 2015, 09:49:23 am »
10Mhz may be a stretch, but i think i have it beat for simplicity,

Each stage is an RC filter that gets killed by the diode if it doesn't charge above the trigger voltage before the falling edge of the signal,

You use the potentiometers to adjust the exact frequency at which each stage turns off / on, allowing you to really narrow down the transistion point,

The op amps can be replaced with something like a hex schmitt trigger, which would work better for high frequencies,

The main limitation of this design is you may want to buffer the input signal, as it really needs to slam hard to ground to drain through the diodes to be effective at the higher frequencies,
 

Offline Kalvin

  • Super Contributor
  • ***
  • Posts: 2145
  • Country: fi
  • Embedded SW/HW.
Re: Simple frequncy detector
« Reply #10 on: May 11, 2015, 11:29:46 am »
10Mhz may be a stretch, but i think i have it beat for simplicity,

Each stage is an RC filter that gets killed by the diode if it doesn't charge above the trigger voltage before the falling edge of the signal,

You use the potentiometers to adjust the exact frequency at which each stage turns off / on, allowing you to really narrow down the transistion point,

The op amps can be replaced with something like a hex schmitt trigger, which would work better for high frequencies,

The main limitation of this design is you may want to buffer the input signal, as it really needs to slam hard to ground to drain through the diodes to be effective at the higher frequencies,

Using cascaded divide-by-10 dividers might help with the higher frequencies. Also, each stage would be identical in component values. Just an idea without any deeper analysis.
 

Offline KJDS

  • Super Contributor
  • ***
  • Posts: 2442
  • Country: gb
    • my website holding page
Re: Simple frequncy detector
« Reply #11 on: May 11, 2015, 11:53:26 am »
Have a set of monostables.

If the monostable resets before the next pulse is in, then the input period is shorter than the set time on the monostable. It's an approach I used years ago when I wanted to lock and internal frequency reference to either 1MHz, 5MHz or 10MHz input and needed to know what frequency was coming in.

Offline Kalvin

  • Super Contributor
  • ***
  • Posts: 2145
  • Country: fi
  • Embedded SW/HW.
Re: Simple frequncy detector
« Reply #12 on: May 11, 2015, 01:03:03 pm »
 

Offline ataradovTopic starter

  • Super Contributor
  • ***
  • Posts: 11763
  • Country: us
    • Personal site
Re: Simple frequncy detector
« Reply #13 on: May 11, 2015, 04:30:19 pm »
NE567/SE567/LMC567!
That's the stuff I'm talking about! :)
Alex
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf