Help with digital counter circuit

AlbertHall

Joined Jun 4, 2014
12,347
Morning Albert,

With the resistor connected it now reads 15.6v on the right terminals which then drops to 11.2v when the left button is pressed.

The press also still operates normally :)
In that case an opto-coupler will do the job nicely. Connect the 12k resistor to whichever of the button terminals is positive. Make R1 in your circuit 220k.
upload_2017-9-12_10-4-2.png
 

AlbertHall

Joined Jun 4, 2014
12,347
Hi Albert thanks for this!!!

Just to confirm that the 12k and the 220k will basically be connected in series?
No. Sorry we now have two R1s.
In your circuit there is an R1 connected to the original SW2 - that resistor should be 220k.

EDIT: And remove the 12k test resistor from the button terminals and connect the opto-coupler via a 12k resistor to the button terminals.
 

Thread Starter

Mike Baker

Joined Aug 31, 2017
148
Hi Albert, i made the opto-coupler, fitted it and wired it up and now it doesn't work at all! the counter just stays at 000 and does nothing when the triggers are pressed?
 

AlbertHall

Joined Jun 4, 2014
12,347
Hi Albert, i made the opto-coupler, fitted it and wired it up and now it doesn't work at all! the counter just stays at 000 and does nothing when the triggers are pressed?
OK.
Make sure that pin 2 of the coupler is connected to the negative of the two switch terminals.
Make sure that pin 4 of the coupler is connected to the 0V of your circuit.
 

Thread Starter

Mike Baker

Joined Aug 31, 2017
148
ive taken some readings from the coupler.

across pins 1 and 2 im getting the 15.6v

across pins 4 and 5 im getting 0v

when the buttons are pressed getting 0v across 1 & 2 and 0v across 4 & 5.
 

AlbertHall

Joined Jun 4, 2014
12,347
ive taken some readings from the coupler.

across pins 1 and 2 im getting the 15.6v

across pins 4 and 5 im getting 0v

when the buttons are pressed getting 0v across 1 & 2 and 0v across 4 & 5.
Both of those readings are incorrect.

Between pins 1 & 2 you get ≈2V, and 0V when the button is pressed. The readings suggest that either pins 1 & 2 are connected the wrong way round - pin 1 should be positive of pin 2 - or the coupler is damaged. Check that pin 2 is positive of pin 1. If not swap the wires.

Between pins 4 & 5 you should have 9V when there is no voltage between pins 1&2. Again 0V in this condition suggests either incorrect connection to the counter circuit or a faulty coupler. If the coupler is in a socket, unplug it and you should get 9V between pins 4 & 5 if it correctly connected.
 

Thread Starter

Mike Baker

Joined Aug 31, 2017
148
Success! its all working. It was a bad connection between the main board and the coupler.

Id just like to say thanks so much for all your help Albert.... I couldn't have done it without you :)
 
Top