Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
What resistor values did you use ? To solve this problem, replace each of the lower resistors connected to the base of the transistors with two 1N4148 or similar diodes in series and add a 10k resistor between base and emitter of the transistors.
Timescope
There is already debounce built into each circuit. In alec_t's the first F-F is for debounce (increase the 100NF for longer debounce time), and in the 4017 one I showed, if you increase the capacitor on the clock pin, the debounce time is increased.
If you disconnect the relay contact from the power supply rail, does the circuit still misbehave when you activate the relay? (This might show whether it is a bounce issue or a spike/noise issue).