Maker Pro
Maker Pro

Help with 4510 bidirectional visitor counter

Limerickr

Mar 17, 2014
1
Joined
Mar 17, 2014
Messages
1
I have a project to create a bi-directional visitor counter, it is starting at 99 but isn't counting up or down, anyone have an idea of why!?

kpsZJn7.jpg


ZmMXMEG.jpg


I have 2 de-bouncing circuits feeding into 2 4510 ic's then into 2 4511 ic's.
 

Arouse1973

Adam
Dec 18, 2013
5,178
Joined
Dec 18, 2013
Messages
5,178
Vss of U2 is connected to the reset pin of U1, is this correct? Also what are you doing with PE, I can't see this on your circuit. What is all the fancy logic gates on the input for.
Adam
 

KrisBlueNZ

Sadly passed away in 2015
Nov 28, 2011
8,393
Joined
Nov 28, 2011
Messages
8,393
That schematic is poorly drawn. I've highlighted some obvious issues I noticed.

attachment.php


The path I've marked with red lines may not be wrong, but the way it has been drawn makes me suspect that the diagram hasn't been checked very carefully and that makes me suspect it has other "real" errors. The connections I've marked with red ovals are at least missing connection dots, and look like they could be wrong as well.

All of the gate ICs have different circuit references - the four NAND gates are marked U10A, U11A, U12A and U13A, instead of U10A~D. This is another clue that the schematic has issues. In other words, I have little confidence in that diagram. Can you fix it up and re-post it please. Also, the pin functions are barely readable and there are no pin numbers on the ICs. If you only have a printout of it, just make the corrections using a pen and white-out.

U8A is not needed. A signal that's the opposite of U13A's output is already available on U12A's output, and you can use that instead of wasting an inverter.

If you've connected your components so they should work, ignoring the diagram, a possible problem is a race condition between the outputs of U6A and U8A. The counters are clocked from U6A and the up/down inputs are fed from U8A. The counter requires that the up/down input is stable for a certain minimum length of time (called the setup time) before the active edge on the clock signal. If both signals change at exactly, or almost exactly, the same time, the behaviour of the counter is not defined. Look at the timing diagrams in the data sheet and Google setup and hold times, and race condition, for more information.

I haven't checked the connections to the counters because I suspect there are errors in the schematic and because the pin functions are barely readable.

P.S. Welcome to Electronics Point :)
 

Attachments

  • ZmMXMEG.jpg
    ZmMXMEG.jpg
    44.3 KB · Views: 487
Top