After a longish lapse I'm in my shed/workshop, making a garden light controller for my son. Amongst other sections, it includes this dark detecting circuit:
I've used the 4001 in this way for at least 3 decades, apparently successfully. But this time it didn't work as expected. When I took its output to the pin 3 clock input of a 4013 toggle FF, I didn't get reliable toggling when the darkness threshold was reached.
On examining the Schmitt's output it seems clear that this is because I'm getting unwanted pulses, typically around 1 us, just before the clean high swing. The number ranges from zero to maybe 3 or 4. Can someone tell me why please? Is it perhaps an inherent characteristic of this simple circuit that I've got away with before? Or something about the filtering I've added rather arbitrarily to the front end? Or maybe just a bad chip? (I have yet to try others; will do that this morning.)
Also, although I'd like to get to the bottom of this puzzle (especially as I still have large stocks of 20-year old 4001s ), I'd welcome any suggestions on better ways of achieving my aim: reliably toggle an output when it gets dark.