looking for 3 digit frequency counter using PICAXE

Electronics Computer Programming Q&A
Post Reply
User avatar
Craig Kendrick Sellen
Posts: 32
Joined: Thu Jan 25, 2007 1:01 am
Location: Carbondale Pennsylvania USA
Contact:

looking for 3 digit frequency counter using PICAXE

Post by Craig Kendrick Sellen »

Image

See attachment circuit.
Is there any way this circuit can be modified to a 3 digit frequency counter? I realized the software will have to be changed. But if someone out there can do this it will be much appreaced. I also realized that the D1, Q3, RLY1 can be omited. :smile:
Bigglez
Posts: 1282
Joined: Mon Oct 15, 2007 7:39 pm
Contact:

Re: looking for 3 digit frequency counter using PICAXE

Post by Bigglez »

Greetings Craig,
Craig Kendrick Sellen wrote: See attachment circuit.
Is there any way this circuit can be modified to a 3 digit frequency counter? I realized the software will have to be changed. But if someone out there can do this it will be much appreaced. I also realized that the D1, Q3, RLY1 can be omited. :smile:
The circuit is not a frequency counter, but it does have
the bare structure for one (uC, displays, user switches).

To expand it to a third digit would require one more
display and a dedicated low-side driver transistor for
it. Unfortunately, there are no spare pins on the uC.
A work around would be to encode the two existing pins
and add a decoder IC (two bit binary decoder).

By using a larger uC (with more IO pins) all the
external ICs can be removed (only one transistor
per digit would remain, plus some Rs and Cs and
switches). A crystal timebase would be superior.

Take a look at the cover story in Nov 2007 Nuts
and Volts for a similar uC and display solution.

What frequency range do you need?
What precision do you need?

Comments Welcome!
User avatar
MrAl
Posts: 3862
Joined: Fri Jan 11, 2002 1:01 am
Location: NewJersey
Contact:

Post by MrAl »

Hello,

Apparently the OP didnt come back.

I would use one of the outputs to make the third digit, but i would
use NPN transistors, not PNP. The programming goes accordingly.
LEDs vs Bulbs, LEDs are winning.
User avatar
philba
Posts: 2050
Joined: Tue Nov 30, 2004 1:01 am
Location: Seattle
Contact:

Post by philba »

my first thought was to take one of the LED outputs for the 3rd digit. My second thought was "why are they using PNPs for low side drivers?".

Of course, if they used a similar sized PIC instead of a PICAXE, they would have plenty of outputs.
User avatar
MrAl
Posts: 3862
Joined: Fri Jan 11, 2002 1:01 am
Location: NewJersey
Contact:

Post by MrAl »

Hi again,

Phliba:

Yeah, i was wondering about those PNP's too that's why i mentioned
the NPN's instead.

I'd also double check the value of the seven resistors (now 47 ohms
each) to make sure the current works with the type of seven segment
display being used. The average current through a segment is:

I=DC*(Vdd-(VIC+VLED))/R

where

I is the average current through a segment
DC is the duty cycle (determined by programming)
Vdd is the supply to the segment driver chip
VIC is the output voltage drop of the segment driver chip
VLED is the voltage of the LED segment
R is the resistor value

With appropriate programming the duty cycle can be made as
high as 33 percent when using three digits.
LEDs vs Bulbs, LEDs are winning.
muntron
Posts: 13
Joined: Tue Feb 12, 2008 9:02 am
Location: Colorado, USA
Contact:

More Freq Counters

Post by muntron »

There are more Freq Counter projects on the web than you can count. Take a look at This Page.
Image
User avatar
Craig Kendrick Sellen
Posts: 32
Joined: Thu Jan 25, 2007 1:01 am
Location: Carbondale Pennsylvania USA
Contact:

displays

Post by Craig Kendrick Sellen »

TO ALL
I can tell you this.
There are common cathodes and common anodes on the displays. Thats why there PNP's or NPN's. :grin:

To the one on the web, whats the PIC# and what software does it use? :razz:
Bigglez
Posts: 1282
Joined: Mon Oct 15, 2007 7:39 pm
Contact:

Re: displays

Post by Bigglez »

Greetings Craig,
Craig Kendrick Sellen wrote:TO ALL
I can tell you this.
There are common cathodes and common anodes on the displays. Thats why there PNP's or NPN's.
Good to know. The OP was discussing this circuit.
I only see PNP transistors (BC557), and the LED displays
are common cathode. I'm not aware of any LED displays
with both common anode and common cathode at the
same time.

The other poster mentioned PNP and NPNs because they
would have used NPN types for the common cathode
role (which has slight advantages but requires the uC
digit data to be inverted, it's a popular arrangement).

Comments Welcome!
Bigglez
Posts: 1282
Joined: Mon Oct 15, 2007 7:39 pm
Contact:

Re: displays

Post by Bigglez »

Greetings Craig,
Craig Kendrick Sellen wrote: To the one on the web, whats the PIC# and what software does it use?
Found this following the previous link (here)
"very low component count: a PIC 16F628"

The PIC firmware for the frequency counter can be downloaded
from this link (includes hex file for all display variants and the
assembly source code).

Comments Welcome!
Post Reply

Who is online

Users browsing this forum: No registered users and 20 guests