electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software
Cheap panel mountable frequency counter
Post new topic   Reply to topic Moderators: jksuperstar, Scott Stites, Uncle Krunkus
Page 1 of 2 [33 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Goto page: 1, 2 Next
Author Message
factus10



Joined: Jun 20, 2007
Posts: 158
Location: Buffalo, NY

PostPosted: Mon Oct 13, 2008 6:47 am    Post subject: Cheap panel mountable frequency counter Reply with quote  Mark this post and the followings unread

This came up on Hacked Gadgets today:
http://nuxieshop.com/forums.html?main_page=product_info&cPath=2&products_id=5

I've ordered one. At $20, it's kind of hard to go wrong.

_________________
Nothing succeeds like excess.
Back to top
View user's profile Send private message Visit poster's website
gubbeper



Joined: Oct 10, 2005
Posts: 50
Location: Sweden

PostPosted: Mon Oct 13, 2008 7:18 am    Post subject: Reply with quote  Mark this post and the followings unread

Nice! Let us know if it's any good!
_________________
/Per
I'm on Twitter
Back to top
View user's profile Send private message Visit poster's website
goodrevdoc



Joined: Sep 11, 2006
Posts: 288
Location: Philadelphia, PA
Audio files: 1

PostPosted: Mon Oct 13, 2008 4:14 pm    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message
urbanscallywag



Joined: Nov 30, 2007
Posts: 317
Location: sometimes

PostPosted: Mon Oct 13, 2008 6:33 pm    Post subject: Reply with quote  Mark this post and the followings unread

<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. Shocked
Back to top
View user's profile Send private message
nuxie1



Joined: Oct 15, 2008
Posts: 3
Location: Australia

PostPosted: Wed Oct 15, 2008 6:25 pm    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message
factus10



Joined: Jun 20, 2007
Posts: 158
Location: Buffalo, NY

PostPosted: Wed Oct 15, 2008 7:25 pm    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Visit poster's website
urbanscallywag



Joined: Nov 30, 2007
Posts: 317
Location: sometimes

PostPosted: Wed Oct 15, 2008 10:32 pm    Post subject: Reply with quote  Mark this post and the followings unread

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. Wink

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. Smile
Back to top
View user's profile Send private message
urbanscallywag



Joined: Nov 30, 2007
Posts: 317
Location: sometimes

PostPosted: Wed Oct 15, 2008 10:35 pm    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message
nuxie1



Joined: Oct 15, 2008
Posts: 3
Location: Australia

PostPosted: Thu Oct 16, 2008 2:51 am    Post subject: Reply with quote  Mark this post and the followings unread

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. Smile


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 Smile

Cheers.

_________________
www.nuxieshop.com
Back to top
View user's profile Send private message
factus10



Joined: Jun 20, 2007
Posts: 158
Location: Buffalo, NY

PostPosted: Thu Oct 16, 2008 10:27 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Visit poster's website
BananaPlug



Joined: Jul 04, 2007
Posts: 307
Location: Philly
Audio files: 5

PostPosted: Thu Oct 16, 2008 11:15 am    Post subject: Reply with quote  Mark this post and the followings unread

Anybody know how wide the 16x2 display is?
Back to top
View user's profile Send private message Visit poster's website
urbanscallywag



Joined: Nov 30, 2007
Posts: 317
Location: sometimes

PostPosted: Thu Oct 16, 2008 4:27 pm    Post subject: Reply with quote  Mark this post and the followings unread

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. Very Happy
Back to top
View user's profile Send private message
nuxie1



Joined: Oct 15, 2008
Posts: 3
Location: Australia

PostPosted: Thu Oct 16, 2008 4:31 pm    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message
guitarfool



Joined: Feb 26, 2007
Posts: 161
Location: Maryland
Audio files: 8

PostPosted: Thu Oct 16, 2008 7:47 pm    Post subject: Reply with quote  Mark this post and the followings unread

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. Very Happy

Oh, and welcome to our little world, BTW welcome
Back to top
View user's profile Send private message Visit poster's website
urbanscallywag



Joined: Nov 30, 2007
Posts: 317
Location: sometimes

PostPosted: Fri Oct 17, 2008 11:24 pm    Post subject: Reply with quote  Mark this post and the followings unread

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 Smile

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. Laughing
Back to top
View user's profile Send private message
Scott Stites
Janitor
Janitor


Joined: Dec 23, 2005
Posts: 4127
Location: Mount Hope, KS USA
Audio files: 96

PostPosted: Sat Oct 18, 2008 11:22 am    Post subject: Reply with quote  Mark this post and the followings unread

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?" Laughing

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
View user's profile Send private message
urbanscallywag



Joined: Nov 30, 2007
Posts: 317
Location: sometimes

PostPosted: Sat Oct 18, 2008 12:14 pm    Post subject: Reply with quote  Mark this post and the followings unread

You will have a hard time explaining single sideband modulation without negative frequencies. Wink

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. Cool
Back to top
View user's profile Send private message
Scott Stites
Janitor
Janitor


Joined: Dec 23, 2005
Posts: 4127
Location: Mount Hope, KS USA
Audio files: 96

PostPosted: Sat Oct 18, 2008 2:55 pm    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message
urbanscallywag



Joined: Nov 30, 2007
Posts: 317
Location: sometimes

PostPosted: Sat Oct 18, 2008 3:27 pm    Post subject: Reply with quote  Mark this post and the followings unread

Sorry I've offended some around here with some trivia.
Back to top
View user's profile Send private message
blue hell
Site Admin


Joined: Apr 03, 2004
Posts: 24506
Location: The Netherlands, Enschede
Audio files: 298
G2 patch files: 320

PostPosted: Sat Oct 18, 2008 4:31 pm    Post subject: Reply with quote  Mark this post and the followings unread

urbanscallywag wrote:
Sorry I've offended some around here with some trivia.


Don't worry Laughing 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.
Posted Image, might have been reduced in size. Click Image to view fullscreen.
Back to top
View user's profile Send private message Visit poster's website
Scott Stites
Janitor
Janitor


Joined: Dec 23, 2005
Posts: 4127
Location: Mount Hope, KS USA
Audio files: 96

PostPosted: Sat Oct 18, 2008 6:53 pm    Post subject: Reply with quote  Mark this post and the followings unread

Oh, it takes more than that to offend me. Very Happy

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
View user's profile Send private message
urbanscallywag



Joined: Nov 30, 2007
Posts: 317
Location: sometimes

PostPosted: Sat Oct 18, 2008 9:43 pm    Post subject: Reply with quote  Mark this post and the followings unread

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. Smile

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! Smile).

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
View user's profile Send private message
mono-poly



Joined: Jul 07, 2004
Posts: 937
Location: Rotterdam, Netherlands
Audio files: 2

PostPosted: Sun Oct 19, 2008 3:30 am    Post subject: Reply with quote  Mark this post and the followings unread

And orderd one.
Back to top
View user's profile Send private message
blue hell
Site Admin


Joined: Apr 03, 2004
Posts: 24506
Location: The Netherlands, Enschede
Audio files: 298
G2 patch files: 320

PostPosted: Sun Oct 19, 2008 7:47 am    Post subject: Reply with quote  Mark this post and the followings unread

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.
Posted Image, might have been reduced in size. Click Image to view fullscreen.
Back to top
View user's profile Send private message Visit poster's website
factus10



Joined: Jun 20, 2007
Posts: 158
Location: Buffalo, NY

PostPosted: Sun Oct 19, 2008 9:27 am    Post subject: Reply with quote  Mark this post and the followings unread

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 Smile
_________________
Nothing succeeds like excess.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Moderators: jksuperstar, Scott Stites, Uncle Krunkus
Page 1 of 2 [33 Posts]
View unread posts
View new posts in the last week
Goto page: 1, 2 Next
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use