Hello Folks, I have a pump, solenoid valve and a Arduino uno connected to same 12v line. the uno is part of a water flow meter. when the pump or solenoid is turned on, it creates a voltage spike on the line and uno freaks out. either it shows garbage data on ssd1309 or just hangs. I have tried to use 12v dc-dc iso power supply from Ali express (link below) but it does not stop the spike. when I power the water flow meter from a external battery bank, it works perfect. so I put a battery bank between the main 12v supply and the water flow meter but I had the same issue. Please suggest how can I stop this from happening.
[https://www.aliexpress.com/item/400...//www.aliexpress.com/item/4001069352009.html)
[https://www.aliexpress.com/item/400...//www.aliexpress.com/item/4001069352009.html)