I have 12v from my arduino plugged into my breadboard. From the breadboard I have a diode between ground and 12v then 12v running to a 2channel relay to power 2 solenoids and another 12v wire to a 12v toggle switch so I can active one of the solenoids manually.
When I turn the Arduino on the relay’s 2 led lights are illuminated but not fully and one of the solenoids click on and off and the other just turns on. The strange part is when I turn the 12v toggle switch on and then start the arduino then wait a second and flip the toggle switch off everything works likes its suppose too. Also, when I disconnect 12v from the relay everything works fine regardless of the toggle switch’s position. Although the relays do turn on and open all the way and then turn back off when it’s “working properly”. This could be part of the problem.
What am I doing wrong? I’m fairly certain its not in the code since disconnecting wiring helps. I did the best I could to make a fritzing diagram.
Thanks in advance