Count down timer for my soccer club

Thread Starter

chrischrischris

Joined Feb 18, 2012
317
Thanks. Yes it is finally coming together.

But it's only been possible with the help from members of this forum. Thanks everyone (especially Bill and elec_mech).
 

Wendy

Joined Mar 24, 2008
23,797
Your 4027 is driving a LED directly. If you look at the design you got the time base from you will find a transistor is used to drive my design, this is to prevent loading the chip exactly the way you have, they are not designed to do this. CMOS in general are fairly fragile, they work great if you follow the rules, and I love going outside the rules, but when it matters you have to be very conservative.



I'll study it some more. Just printed out the schematic.
 
Last edited:

Thread Starter

chrischrischris

Joined Feb 18, 2012
317
Thanks Bill.
As I was driving into work today I was wondering if it was the LEDs that I added to my circuit boards that have been causing me all the problems. I was "guessing" to use transistors - just hadn't tried it yet. Thanks for confirming.

Interesting that now that I've increased the driving voltage of my circuits from 5V to 12V there has been quite a few abnormalities appearing. My scores have not been increasing in a regular fashion but a bit all over the place. The count-down timer when re-set has been jumping around at random. My clock when forwarded to change the time "flies" at a zillion miles an hour.

0.1uF capactors - they seem to fix a multitude of sins - trial and error in my case.

I did find however that most of my problems were around the "LEDs" that I added. So reply confirms my suspicions. Ta.
 

Thread Starter

chrischrischris

Joined Feb 18, 2012
317
Bill I inserted a BC547 to drive the LED however the 4027 is still warm.

I have connected:

C to 12V,
E to a 680Ω resistor - which is connected to the LED connected to GND
B connected to pin 1 of the 4027.

Should I connect a resistor between the 4027 and B of the NPN (say 10K) - to get 1/10 currrent at base?
 

Wendy

Joined Mar 24, 2008
23,797
No, a common collector, which is shown in my design, will draw through the base-emitter the current through the emitter divided by the β of the transistor. It is possible you have other current paths I haven't spotted yet. I am up because I have trouble sleeping during the day.

You will note on my design I go for very high values, CMOS is many, many megohms input resistance (actually much more) and a few hundred ohms output resistance. The catch is it has absolutely no drive to speak of at all.

So if you have an LED and transistor arrangement, with 10ma going through the collector emitter and the gain is 50, you would have around 0.2ma through the base (or 200µa). A super gain transistor drops 1.2V on the BE, but draws substantially less current.

I have a standard illustration in my library of electronics just for this...



In this design the resistor/LED will drop the input voltage of the base of the transistor minus the 0.6VDC drop of the base-emitter. I use this a lot.
 

Thread Starter

chrischrischris

Joined Feb 18, 2012
317
Bill, I found where the heat in the 4027 was coming from.
I got a spare socket, soldered wires to each of the 16 legs, put the IC on this new socket and each wire to the socket on the board. Then I started pulling out all the ones that were going to ground.

I found that when I pulled out 15, it cooled down. 15 is Q1 which gives out a 0.5hz signal (that I wasn't using). I also grounded pin 14 - q1. Since I'm not using that side of the IC, I disconnected pins 13, 14 & 15(clock1).

I had originally grounded it because at one stage elec_mech suggested I ground all unused inputs in CMOS ICs. I "assumed" these were inputs. Oops. Problem now solved.
 

elec_mech

Joined Nov 12, 2008
1,500
I had originally grounded it because at one stage elec_mech suggested I ground all unused inputs in CMOS ICs. I "assumed" these were inputs. Oops. Problem now solved.
Sorry I haven't had as much time as I'd like lately to look this over. On the CD4027, since you're not using the first J-K flip flop, ground pins 9-13. Leave pins 14 and 15 unconnected. Disconnect pin 2 from ground and leave unconnected. Disconnect pin 1 from pin 13.

Is the 555 still getting hot? If you remove the LEDs, does it still get hot?

Are you still having issues with the display going crazy if reset is activated? I assume by this you mean that instead of going to zero, the display picks a number at random and holds it there. Is that correct or is something else happening?

How about the "flying time" and scores not increasing as expected?
 

Thread Starter

chrischrischris

Joined Feb 18, 2012
317
Hi elec_mech.
Suggestions on the 4027 - I thought that was the case. I am only using one of the 2 flip flops, so your suggestions make perfect sense. I'll make the mods tomorrow.

As for the 555's, yes they are getting a "little" warm. Nothing excessive however. It's just I'm a little paranoid as all the other components are dead cold. I think the 555 is getting a bit warm with the LED - again I'll check again tomorrow (disconnect and see the result).

As for the random displays, I found that this was being caused when I pressed a button on the remote control that signalled the receiver, that gave a pulse to one of the circuits. Placing a 0.1uF across ground and each of these receiver relays outputs seemed each time to fix the problem. A well placed capacitor seems to make a world of difference. So they are all now working smoothly now.

Next - making the "dots" for the time (i.e. 45:00). Then I'll adjust the PWM for the correct light intensity. I then want to still see if I can tap off the 24V and with the 12V voltage regulator I breadboarded (via an LM317) if I can run the circuits (without numbers jumping). I'll let you now if there are any problems.
 

Wendy

Joined Mar 24, 2008
23,797
A little heat is OK, unavoidable as a matter of fact. It does represent inefficiencies, but at the same time it can be lived with.

Over the years (decades?) techniques have evolved for much greater efficiencies. It is easy to forget how far it is has improved sometimes.
 

Thread Starter

chrischrischris

Joined Feb 18, 2012
317
Is the 555 still getting hot? If you remove the LEDs, does it still get hot?
Bill, I took your advice and added a BC547 to drive the LED on the circuit.

Elec_mech, I also took your advice and checked to temperature of the 555's. I added a transistor between each of the LEDs on one of the 555s. Heat's gone. However, on the other 555 adding a transistor didn't remove the heat. The heat however is ever so slight - maybe not worth worrying about:

 

Attachments

Thread Starter

chrischrischris

Joined Feb 18, 2012
317

elec_mech

Joined Nov 12, 2008
1,500
Unless Bill disagrees, I'd add a base resistor between the 555 and the transistor. This might help with the heat. Right now you're feeding it all the current the 555 can provide (potentially).

I'm trying to look up a simple test you can perform to determine which pin is which on a transistor. I cheat and use a transistor checker from RadioShack I bought many years ago.

Does your meter have a transistor checker on it? It would have 3 or 6 (NPN and PNP) holes for transistors. From what I'm reading, you put the base lead in the base hole and put the other two in one orientation and check the hfe value. Turn the transistor around (base in same hole, other two pins in opposite holes from before) and measure the hfe again. The higher hfe value corresponds to the correct orientation as labeled on the holes. I'd check your meter manual to be safe. Info I found: http://www.edaboard.com/thread106051.html, post #8 specifically.

Where did you purchase them? If at an online components distributor, then they should have the correct datasheet posted. Alternately, search for the datasheet of the specific manufacturer and whole part number on the transistor. Take a clear picture of the transistor and we can help too.
 

Thread Starter

chrischrischris

Joined Feb 18, 2012
317
I pointed out the 2N2222, however it would account also for others - BC547, 2907, etc.

From literature I've read, it seems that both NPN and PNP are CBE from left to right (flat facing, and pins down). Maybe someone just has got the pictures mixed up.

I've just looked up a data sheet (fairchild brand):
http://www.fairchildsemi.com/ds/PN/PN2222A.pdf
Pins are EBC.
http://www.onsemi.com/pub_link/Collateral/P2N2222A-D.PDF
Pins are BCE

So its a bit confusing.
I do think I have a transistor tester on my meter. I'll try your suggestion above.
 

elec_mech

Joined Nov 12, 2008
1,500
Do note that the part numbers of the two datasheets you provided are different. P2N2222A vs PN2222A / MMBT2222A / PZT2222A.

What is the full part number printed on the transistors in question?
 

Thread Starter

chrischrischris

Joined Feb 18, 2012
317
Hard to find the exact spec sheets.
The 2N2222s are actually 2N2222-331. The only one I can find is 2N2222:

1. 2N2222 (TO93 case - NPN)
Spec sheet shows EBC
http://www.datasheetarchive.com/ind...keywords=2N2222+to92&database=user-highscore#

However, is I look up another NPN I have it is BC547 PH1011. Closest I can find is BC547:

2. BC547 PH 1011 (TO93 case - NPN)
Spec sheet shows CBE
http://pdf1.alldatasheet.com/datasheet-pdf/view/11551/ONSEMI/BC547.html

This is where I'm getting confused. Is there a convention for reading CBE from left to right for a NPN and EBC for a PNP also reading from left to right? Above in the NPN I can see it's either way. Why don't they put a "dot" or something to indicate say "C"?
 

Thread Starter

chrischrischris

Joined Feb 18, 2012
317
Ok, so there isn't any set convention with direction of BCE or ECB. Someone didn't really think that one out very well.

Nice link. I'll check it out and see if I can work out what they are (against what the data sheets that I find say) and see if the 2 match up.
 

Wendy

Joined Mar 24, 2008
23,797
Like I said, there are, but the problem is this is an international part. So there is always someone (some country) that wants to do it differently.
 
Top