Hi all,
I'm trying to build a battery-powered, button-actuated solenoid controller circuit.
Here's the circuit schematic:

This whole circuit works fine on a big breadboard. But, when I miniaturize it onto a 2" x 2" solderable breadboard, it breaks. The relay chatters endlessly. When I hold the button, it continuously opens/closes at a high frequency instead of staying open.
I'm using this DC buck-boost converter from Amazon. And this relay module. As well as a momentary SPST button to control the triggering.
(Interestingly, the miniaturized circuit works fine with a 12V 1A solenoid but only chatters with a 12V 2A solenoid.)
I'm pretty certain I have some stability issues and need decoupling capacitors in a place(s). (I'm certainly not using any best practices here. The first version of the miniaturized circuit used zero capacitors.)
How I can fix the chatter?
My plan was to rebuild the circuit and:
I was planning to put basically everything on the +/- buses with the decoupling capacitor across that. I'm not sure if I should breakout the post-relay solenoid wires and, before rejoining with the bus, insert a decoupling capacitor there too?
ChatGPT suggested a simple resistor/capacitor debouncer on the SPST button but I have a hunch that it's not bouncing (it hasn't shown any bouncing behavior when I've used it elsewhere).
Appreciate any feedback here!
I'm trying to build a battery-powered, button-actuated solenoid controller circuit.
Here's the circuit schematic:

This whole circuit works fine on a big breadboard. But, when I miniaturize it onto a 2" x 2" solderable breadboard, it breaks. The relay chatters endlessly. When I hold the button, it continuously opens/closes at a high frequency instead of staying open.
I'm using this DC buck-boost converter from Amazon. And this relay module. As well as a momentary SPST button to control the triggering.
(Interestingly, the miniaturized circuit works fine with a 12V 1A solenoid but only chatters with a 12V 2A solenoid.)
I'm pretty certain I have some stability issues and need decoupling capacitors in a place(s). (I'm certainly not using any best practices here. The first version of the miniaturized circuit used zero capacitors.)
How I can fix the chatter?
My plan was to rebuild the circuit and:
- establish a common ground with the source batteries + post-converter ground
- add a 470uF electrolytic decoupling capacitor across the post-converter Vout + and -
I was planning to put basically everything on the +/- buses with the decoupling capacitor across that. I'm not sure if I should breakout the post-relay solenoid wires and, before rejoining with the bus, insert a decoupling capacitor there too?
ChatGPT suggested a simple resistor/capacitor debouncer on the SPST button but I have a hunch that it's not bouncing (it hasn't shown any bouncing behavior when I've used it elsewhere).
Appreciate any feedback here!