I'm working on this project for opening a lot of solenoids and to turn on/off lights. When I'm testing, everything seems fine, but in production, the Arduino resets or even behave strangely by opening solenoids or starting the buzzer randomly.
Can anyone advise, if there is something wrong with the orignal schematics. Are there any improvements that can be made in order to make this work? Is the solution I've proposed going to solve the problems?
Note, that the 24V is actualy 12V but from a different power source just to separate the spikes from solenoids.
Thank you an best Regards, Mircea