| Author |
Message |
factus10
Joined: Jun 20, 2007 Posts: 158 Location: Buffalo, NY
|
|
|
Back to top
|
|
 |
gubbeper

Joined: Oct 10, 2005 Posts: 50 Location: Sweden
|
Posted: Mon Oct 13, 2008 7:18 am Post subject:
|
 |
|
Nice! Let us know if it's any good! _________________ /Per
I'm on Twitter |
|
|
Back to top
|
|
 |
goodrevdoc

Joined: Sep 11, 2006 Posts: 288 Location: Philadelphia, PA
Audio files: 1
|
Posted: Mon Oct 13, 2008 4:14 pm Post subject:
|
 |
|
Wow! this is great. I was just looking around today for one of these. Planning to make a combination voltage input/freq. counter on the output for tuning VCO's. I found some solutions here and there, but nothing as cheap and easy as this. And you get to build it too. I'm ordering one!
-justin |
|
|
Back to top
|
|
 |
urbanscallywag

Joined: Nov 30, 2007 Posts: 317 Location: sometimes
|
Posted: Mon Oct 13, 2008 6:33 pm Post subject:
|
 |
|
<nitpick>
That's not a frequency counter! Frequency has a rate and a direction. How are you supposed to measure negative frequencies?
</nitpick>
A "real" frequency measuring device (not what is more commonly known as a frequency counter, a "problem" started by HP I've heard) requires an IQ detector. That way you can measure the direction as well as repetition rate of the input signal. This is just something they cover in school to emphasize negative frequencies.
This project does seem neat if works as advertised.
What may be even cooler would a "real" frequency measurement of a through zero oscillator.  |
|
|
Back to top
|
|
 |
nuxie1
Joined: Oct 15, 2008 Posts: 3 Location: Australia
|
Posted: Wed Oct 15, 2008 6:25 pm Post subject:
|
 |
|
Just saw this forum come up in my server logs. Just thought I'd come and say hello, and thanks for the interest. Unfortunately I've had to raise the discounted price to $24 due to extra costs in shipping and packaging and an unstable aussie dollar.
You're right in that its not a true frequency counter, the microcontroller is simple counting rising edges each second and displaying a frequency based on that. However for the price I think it is quite useful for many frequency display applications.
For those who have bought one (or more), please let me know how you find it either here or by emailing me directly. I welcome any feedback. And I'd love to see it mounted and used with other equipment, make sure to post up some photos are email me with them!
Cheers. _________________ www.nuxieshop.com |
|
|
Back to top
|
|
 |
factus10
Joined: Jun 20, 2007 Posts: 158 Location: Buffalo, NY
|
Posted: Wed Oct 15, 2008 7:25 pm Post subject:
|
 |
|
If you want to make this a 'true' frequency counter it'd be relative simple to front-end it with a zero crossing detector. You'd need to touch the counting code since most zero crossing detectors put out a pulse for both transitions (pos to neg, neg to pos). Or just divide what the display shows by 2.
Actually, this circuit might do the trick easily. _________________ Nothing succeeds like excess. |
|
|
Back to top
|
|
 |
urbanscallywag

Joined: Nov 30, 2007 Posts: 317 Location: sometimes
|
Posted: Wed Oct 15, 2008 10:32 pm Post subject:
|
 |
|
Hello nuxie1,
Unfortunately a very large portion of people, even a large portion of engineers wouldn't think twice about calling this a frequency measuring device, so that's why I had to turn on nitpick mode.
I was wondering how well the repetition counter works as SNR decreases. Do you get multiple triggers from noise? I guess this is a question to ask someone who builds this into their modular.  |
|
|
Back to top
|
|
 |
urbanscallywag

Joined: Nov 30, 2007 Posts: 317 Location: sometimes
|
Posted: Wed Oct 15, 2008 10:35 pm Post subject:
|
 |
|
| factus10 wrote: | If you want to make this a 'true' frequency counter it'd be relative simple to front-end it with a zero crossing detector. You'd need to touch the counting code since most zero crossing detectors put out a pulse for both transitions (pos to neg, neg to pos). Or just divide what the display shows by 2.
Actually, this circuit might do the trick easily. |
This is not a 'true' frequency counter. You need an I-Q detector to measure frequency. |
|
|
Back to top
|
|
 |
nuxie1
Joined: Oct 15, 2008 Posts: 3 Location: Australia
|
Posted: Thu Oct 16, 2008 2:51 am Post subject:
|
 |
|
| urbanscallywag wrote: |
I was wondering how well the repetition counter works as SNR decreases. Do you get multiple triggers from noise? I guess this is a question to ask someone who builds this into their modular.  |
I believe for the ATTiny the counter input low is 1.5V max, and high min of 3V.
Any positive edge that crossed this threshold during a clock cycle will add to the count. So if the noise is high enough, then you will get incorrect readings. But, with noise that high there may be more serious problems than an inaccurate frequency reading
Cheers. _________________ www.nuxieshop.com |
|
|
Back to top
|
|
 |
factus10
Joined: Jun 20, 2007 Posts: 158 Location: Buffalo, NY
|
Posted: Thu Oct 16, 2008 10:27 am Post subject:
|
 |
|
| urbanscallywag wrote: | | This is not a 'true' frequency counter. You need an I-Q detector to measure frequency. |
This may be true enough. As device for counting a number of events of a particular sort occurring in a set period of time, it looks suitable to my needs. _________________ Nothing succeeds like excess. |
|
|
Back to top
|
|
 |
BananaPlug

Joined: Jul 04, 2007 Posts: 307 Location: Philly
Audio files: 5
|
Posted: Thu Oct 16, 2008 11:15 am Post subject:
|
 |
|
| Anybody know how wide the 16x2 display is? |
|
|
Back to top
|
|
 |
urbanscallywag

Joined: Nov 30, 2007 Posts: 317 Location: sometimes
|
Posted: Thu Oct 16, 2008 4:27 pm Post subject:
|
 |
|
| factus10 wrote: | | urbanscallywag wrote: | | This is not a 'true' frequency counter. You need an I-Q detector to measure frequency. |
This may be true enough. As device for counting a number of events of a particular sort occurring in a set period of time, it looks suitable to my needs. |
Agreed, a repetition counter is probably all that's needed for 99% of modular applications. Just trying to share a little insight on a common misconception in the engineering world.  |
|
|
Back to top
|
|
 |
nuxie1
Joined: Oct 15, 2008 Posts: 3 Location: Australia
|
Posted: Thu Oct 16, 2008 4:31 pm Post subject:
|
 |
|
| BananaPlug wrote: | | Anybody know how wide the 16x2 display is? |
The actual blue display part is 63.5mm by 13mm.
The outer black bezel is 72mm by 25mm.
The green PCB is 80mm by 36.5mm.
Cheers. _________________ www.nuxieshop.com |
|
|
Back to top
|
|
 |
guitarfool

Joined: Feb 26, 2007 Posts: 161 Location: Maryland
Audio files: 8
|
Posted: Thu Oct 16, 2008 7:47 pm Post subject:
|
 |
|
| nuxie1 wrote: |
The actual blue display part is 63.5mm by 13mm.
The outer black bezel is 72mm by 25mm.
The green PCB is 80mm by 36.5mm.
Cheers. |
Ah, good to know that - although I figured it to be about that size from the photo. It will fit nicely on a double-width Moog/Dotcom panel. Glad I ordered 2 of them already, seeing as how they're going fast.
Oh, and welcome to our little world, BTW  |
|
|
Back to top
|
|
 |
urbanscallywag

Joined: Nov 30, 2007 Posts: 317 Location: sometimes
|
Posted: Fri Oct 17, 2008 11:24 pm Post subject:
|
 |
|
| nuxie1 wrote: | So if the noise is high enough, then you will get incorrect readings. But, with noise that high there may be more serious problems than an inaccurate frequency reading  |
You're right. In communications zero crossing detectors are useless because the input signal could have a 10dB SNR. You are absolutely right that an audio signal with that much noise has problems.  |
|
|
Back to top
|
|
 |
Scott Stites
Janitor


Joined: Dec 23, 2005 Posts: 4127 Location: Mount Hope, KS USA
Audio files: 96
|
Posted: Sat Oct 18, 2008 11:22 am Post subject:
|
 |
|
I like a good nitpick as much as the next guy, but obviously in a very practical sense, this is a frequency counter. It's practical in the same sense that referring to most synth VCOs as an oscillator is not technically correct either. People generally get what you're talking about, as opposed to being totally confused when you start pointing stuff like that out.
I can't imagine the response I would elicit at work if I started declaring that the device on my bench and the device my company manufactures really isn't a frequency counter.
"The SINAD meter isn't working with today's build. I should have 40 dB, but it's near zero."
"Are you sure? What's your notch frequency?"
"1 kHz".
"What's your counter read?"
"My what?"
"Your counter".
"I don't know. I don't have one. I could let you know the number of accumulated events per second, however".
"Uhh..."
"But, sadly, not the direction".
"Is there anybody else there besides you?"
We do, however, call our function generators "function generators" and our oscillators "oscillators", though generic tissue paper is often mistaken as "Kleenex".
Cool project, BTW. _________________ My Site |
|
|
Back to top
|
|
 |
urbanscallywag

Joined: Nov 30, 2007 Posts: 317 Location: sometimes
|
Posted: Sat Oct 18, 2008 12:14 pm Post subject:
|
 |
|
You will have a hard time explaining single sideband modulation without negative frequencies.
Like I said I pointed it out because its emphasized in school once complex modulation is commonplace. Just because many people call a device a frequency counter (again apparently this was an error on the part of HP many years ago) doesn't mean its correct.
Good enough for rock'n'roll? Certainly.  |
|
|
Back to top
|
|
 |
Scott Stites
Janitor


Joined: Dec 23, 2005 Posts: 4127 Location: Mount Hope, KS USA
Audio files: 96
|
Posted: Sat Oct 18, 2008 2:55 pm Post subject:
|
 |
|
I'd have to agree to disagree, then. We cover complex modulation in the same box (DMR, P25, Tetra protocols as well as arbitrary waveforms and modulation, LSM, C4FM, QPSK, things of that nature) in addition to the standard analog functions such as FM, AM and its cousins, USB and LSB. Rarely, if ever, do we discuss "negative frequencies", or use "frequency counters" to measure the quality, accuracy and purity of complex signals. There are meters, eye and constellation diagrams and plots built in (and built for) specifically those purposes. For sideband measurments, generally I'll use a spectrum analyzer to measure the frequency of a side band, upper or lower, or, for more accuracy, set the receiver to the frequency of the suppressed carrier and measure the error, which should tranlate to the modulating frequency plus any error the transmitter may have (and by factoring in the timebase/aging of the reference oscillator of the measurment equipment, unless, of course, it's synced to GPS or WWV master clock). For complex signals, I'd feel comfortable measuring DQPSK mod accuracy on a constellation chart, but feel it would be a bit overkill for my modular, even if it did have a TZ oscillator.
We use frequency counters to measure the frequency of non-complex signals, RF and AF, usually CW to check the accuracy of the unit, hence the name. We use them to measure....frequency of non-complex, unmodulated signals. The same RF generator that generates simple FM and AM is also used to generate the complex signals, so, again, we need to count the frequency of the carrier in order to determine its accuracy. I'm not sure what you'd prefer to call it, but "frequency counter" is not the mouthful any other definition would certainly impart. I'd reserve that definition for the rare occasion one feels the need or urge to measure "negative" frequencies. _________________ My Site |
|
|
Back to top
|
|
 |
urbanscallywag

Joined: Nov 30, 2007 Posts: 317 Location: sometimes
|
Posted: Sat Oct 18, 2008 3:27 pm Post subject:
|
 |
|
| Sorry I've offended some around here with some trivia. |
|
|
Back to top
|
|
 |
blue hell
Site Admin

Joined: Apr 03, 2004 Posts: 24506 Location: The Netherlands, Enschede
Audio files: 298
G2 patch files: 320
|
Posted: Sat Oct 18, 2008 4:31 pm Post subject:
|
 |
|
| urbanscallywag wrote: | | Sorry I've offended some around here with some trivia. |
Don't worry you got me thinking .. what are negative frequencies?
I've always understood them as a mathematical concept and not as a physical reality, but apparently there are devices that can measure frequency and display a minus sign to the left of it?
But how can a backwards running sine be distinguished from a forwards running one (assuming the measurement is started at some arbitrary time after the signal started running)? _________________ Jan
also .. could someone please turn down the thermostat a bit.
 |
|
|
Back to top
|
|
 |
Scott Stites
Janitor


Joined: Dec 23, 2005 Posts: 4127 Location: Mount Hope, KS USA
Audio files: 96
|
Posted: Sat Oct 18, 2008 6:53 pm Post subject:
|
 |
|
Oh, it takes more than that to offend me.
It's just that bit of trivia perplexed me, and I've been in the test equipment field for twenty years. That's the first time I've ever heard anyone say a frequency counter...ain't. And rare is it that I've ever heard HP accused of getting anything wrong from the start (they were like the Moog of test equipment, baby). I don't work for them (or Agilent), BTW. Just a grudging admirer....
Jan, negative frequencies are measured in NegaHertz. Should they ever come into contact with positive frequencies, all matter will cease to exist. _________________ My Site |
|
|
Back to top
|
|
 |
urbanscallywag

Joined: Nov 30, 2007 Posts: 317 Location: sometimes
|
Posted: Sat Oct 18, 2008 9:43 pm Post subject:
|
 |
|
Complex signals and negative frequencies are some of the most non-intuitive and confusing things I've come across. They are much more useful in communications (Scott goes over a lot of this in his post here) than in synthesizers, so lucky us.
Suppose I have a through zero oscillator (especially useful in JH's FS1A). It has 2 outputs, an in-phase (cosine) and quadrature (sine) output. These "two" oscillators make a complex sinusoid, which really does have a frequency (positive or negative), not just a repetition rate (ducks! ).
The input signal into the FS1A ("made" complex by the dome filter) is fed into a balanced modulator along with the complex sinusoid from the quadrature/through zero oscillator. If the frequency of the quadrature oscillator is negative the input signal is shifted down (down converted) by the magnitude of the frequency. If the frequency is positive it is shifted up (up shifted) by the magnitude of the frequency.
If you've looked at the FS1A you see that you can get up and down shifts at the same time through different outputs. This is because you can change signs on the signal summation to change between down and up converting. But by having a quadrature/through zero oscillator you are able to smoothly sweep between shifting up and shifting down.
So that's one example of how negative frequencies play a role in synthesizers. I don't think there are many. If there are errors above please let me know! |
|
|
Back to top
|
|
 |
mono-poly

Joined: Jul 07, 2004 Posts: 937 Location: Rotterdam, Netherlands
Audio files: 2
|
Posted: Sun Oct 19, 2008 3:30 am Post subject:
|
 |
|
| And orderd one. |
|
|
Back to top
|
|
 |
blue hell
Site Admin

Joined: Apr 03, 2004 Posts: 24506 Location: The Netherlands, Enschede
Audio files: 298
G2 patch files: 320
|
Posted: Sun Oct 19, 2008 7:47 am Post subject:
|
 |
|
| urbanscallywag wrote: | | It has 2 outputs, an in-phase (cosine) and quadrature (sine) output. |
Yes then it's clear, a quadrature signal can easily be seen to run forwards or backwards. _________________ Jan
also .. could someone please turn down the thermostat a bit.
 |
|
|
Back to top
|
|
 |
factus10
Joined: Jun 20, 2007 Posts: 158 Location: Buffalo, NY
|
Posted: Sun Oct 19, 2008 9:27 am Post subject:
|
 |
|
Well, I'm glad that's all sorted out then. Because all I want to do is tune my synth without relying on hearing beat frequencies  _________________ Nothing succeeds like excess. |
|
|
Back to top
|
|
 |
|