looking for 3 digit frequency counter using PICAXE
- Craig Kendrick Sellen
- Posts: 32
- Joined: Thu Jan 25, 2007 1:01 am
- Location: Carbondale Pennsylvania USA
- Contact:
Re: looking for 3 digit frequency counter using PICAXE
Greetings Craig,
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!
The circuit is not a frequency counter, but it does haveCraig 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 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!
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.
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.
More Freq Counters
There are more Freq Counter projects on the web than you can count. Take a look at This Page.
- Craig Kendrick Sellen
- Posts: 32
- Joined: Thu Jan 25, 2007 1:01 am
- Location: Carbondale Pennsylvania USA
- Contact:
displays
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.
To the one on the web, whats the PIC# and what software does it use?
I can tell you this.
There are common cathodes and common anodes on the displays. Thats why there PNP's or NPN's.
To the one on the web, whats the PIC# and what software does it use?
Re: displays
Greetings Craig,
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!
Good to know. The OP was discussing this circuit.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.
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!
Re: displays
Greetings Craig,
"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!
Found this following the previous link (here)Craig Kendrick Sellen wrote: To the one on the web, whats the PIC# and what software does it use?
"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!
Who is online
Users browsing this forum: No registered users and 36 guests