24V 5A 3-state capacitive touch switch (not a dimmer, without relay)

Jon Chandler

Joined Jun 12, 2008
1,619
You may be right. Or the diode is installed backwards. Or there's a bad connection on the breadboard. Two of those should be trivial to troubleshoot given a basic understanding of the chip.
 

LesJones

Joined Jan 8, 2017
4,509
Re post #280. I did wonder about the same thing as the capacitor would slow the rising edge down. If this was the case then I would expect the counter to be in state 3 with the reset pin high. If a diode was added from the power on reset then a pulldown resistor would also be required on the reset pin or it would be left in a floating state.

Les.
 

MisterBill2

Joined Jan 23, 2018
27,684
Re post #280. I did wonder about the same thing as the capacitor would slow the rising edge down. If this was the case then I would expect the counter to be in state 3 with the reset pin high. If a diode was added from the power on reset then a pulldown resistor would also be required on the reset pin or it would be left in a floating state.

Les.
There is already a 10K pull-down resistor, the diode will need to be between the capacitor and the reset pin, with the resistor between the rest and common.
My analysis was based on the circuit being as shown. I was not guessing as to any possible wiring errors. Not second-guessing anybody. CMOS logic can be rather picky about rise times and even pulse widths and input voltages. Consider what the internal logic of the 4017 is doing and see that it is not simple. It may possibly be that the "3" output is reset to 0 before the counter string reset can be activated. Internal IC logic can be rather complex.
It might even be that the supply bypass capacitor between V+ and common (Vdd and Vss) at the IC must be present with this breadboard.
 

sghioto

Joined Dec 31, 2017
8,634
Couple of other options for the POR that will isolate the reset pulse from pin #7
Transistor version draws less current and R1 may not be needed.
1680440661120.png
 

MisterBill2

Joined Jan 23, 2018
27,684
In a "wired or" arrangement, such as this one for having either source deliver a reset command, there is often a requirement to isolate the sources of the rising edge signal. This circuit is one of those that requires such isolation.

And now that I consider it, the possibility is that the 5volts source rises quite slowly.
 

Thread Starter

oslosl

Joined Jan 13, 2023
270
Breadboard and connections doublechecked. Everything works, except reset on output 3 (pin 7). 4017 still counts to 10. Pin 7 goes from 0 to 2.8v at count 3, or 2.1v at pin 15. At count 4 it goes back to 0v.
 

Attachments

Last edited:

LesJones

Joined Jan 8, 2017
4,509
What was the supply voltage to pin 16 of the 4017 when you took the readings ? 2.8 volts is neither a logic high or low if the supply was 5 volts. I think the circuit may be oscillating due to the slight delay caused by the capacitor.

Les.
 
Last edited:

MisterBill2

Joined Jan 23, 2018
27,684
R2 in post #291, is not required, the capacitor should discharge during any reasonable power off time. Also, the pull down resistor can be greater than 10K ohms, 27 K should work as well.
 

sarahMCML

Joined May 11, 2019
699
R2 in post #291, is not required, the capacitor should discharge during any reasonable power off time. Also, the pull down resistor can be greater than 10K ohms, 27 K should work as well.
You're right, it doesn't need it now that it has the pull down resistor. Somehow I missed that when I added the mod to the original circuit!
 

Thread Starter

oslosl

Joined Jan 13, 2023
270
What was the supply voltage to pin 16 of the 4017 when you took the readings ? 2.8 volts is neither a logic high or low if the supply was 5 volts. I think the circuit may be oscillating due to the slight delay caused by the capacitor.

Les.
It sometimes svings between 4.5 and 5v.
 

sarahMCML

Joined May 11, 2019
699
Better, but it counts to 4 and sometimes miss a press. Still 2.8v on pin 7 at count 3.

Confused, should I try another type of 4017 ?
If there is nothing else connected to any parts of that circuit, you either have a leaky capacitor or a defective 4017. Try changing one or the other! Or maybe your breadboard is faulty? Move the circuit to a different section and rebuild it.
 
Top