I am working on a project that uses a 2 channel5v switching relay to change direction of a motor, based on arduino sensors. It was working fine then suddenly stopped, I have tested the motor, power supply, and relay and they all work individually.
The relay lights indicating a switch turns on at the right moments, however, there's no clicking sound. It seems like the output side isnt getting any power. I have tested the system with a 2nd relay and that also doesn't work. Has anyone encountered this issue before?
Well, I'm not surprised that the project doesn't work. The Arduino is unpowered according to your schematic
All joking aside: I see you're driving the relay coils from the 5V pin on the Arduino. You probably (???) power the Arduino through its barrel jack - if so, with what voltage? The same as your 12V laptop supply? This is exactly why I asked because in all likelihood you have burned out the voltage regulator on the Arduino if you did what I suspect you did.
An Arduino board is NOT a power supply. It does NOT work as a source for energizing relay coils.
hahaha, yea I powered it from the same laptop supply using a barrel jack, so most likely the arduino is fried? I was told it can handle voltage from 5-12v. I am going to switch to powering the arduino on 5v phone charger through the usb port moving forward.
I am supplying voltage to the relay separately on the output side, so I would have to supply the input side with 5v as well? how would I go about doing that? I am kind of newish to electronics and not fully confident with the best/easiest way to do that. TIA
As @LarryD says, it can 'handle' voltages of 7~12V but 7~9V is a safer guess, and I would add to this that this is only true/reliable if the Arduino only has to power itself and maybe one or two low-power sensors. Once you start drawing significant current (and the 75~250mA a relay coil draws, depending on the type used) is way beyond what you should let the Arduino supply if you feed it through its barrel jack.
So yeah, I would recommend to split things up, and that's pretty simple:
Keep your 12V laptop supply for the 12V components.
Get a 12V --> 5V DC-DC buck converter. Connect it to the 12V supply and connect its output to the 5V pin on your Arduino and the Vcc/5V pins on all modules that use 5V. This includes the control-side of the relay board. So the Arduino gets its power along with the rest of the devices from the 5V DC-DC converter.
so going the 5v pin route, it would be quite difficult to connect the arduino to the computer for troubleshooting and testing the system, right? and i wouldn't be able to use the serial monitor feature of IDE.