12v Relay issue

Hi there!

I'm trying to turn on/off a 12v solenoide valve with my arduino Uno with a relay.

I used a very simple "blink" code that just puts Pin6 in high every 3 seconds.

My relay led turns on and off every 3 seconds, there is the click. But the power doesn do to my valve.

I checked the valve it's working well.

I feel that I'm missing one obvious thing but I cannot figure it out.

Could anyone help me?

Thank you everyone for the awsome comunity here!

Yohann

My wiring:

Well those pictures don't appear! Without some idea of the hardware we can't comment or help.

Should be better now.

The photos are a bit blurred so it's not easy to check the connections as I'm unfamiliar with the eight relay board. Can you clarify: there are three connections on the relay board (top right hand side, adjacent to the 2nd relay from the top ) that look to be labelled 'Low', 'Com'(common?) & 'High'. I am guessing this is some sort of board enable connection but I can see that there is a connection from 'High' to either the 'AREF' pin or the 'GND' pin on your Arduino. The 'Low' looks to be connected to 'IOREF' pin which I understand is conneted to the Arduino 5 volt rail. Can you explain why you need those connections please as it appears the relay board is (presumably) powered by an independant 12 volt supply?

The photo with labels is much better and confirms that most connections look OK. However, the two connections from Arduino GND and 5V still puzzle me as they are not clearly visible on the relay board. can you explain those two connections?

I updated the picture so the top right corner is more clear.

If I dont connect the Ardhui GND to the COM and the 5V to the HIGH, nothing happens on the relay. Only if I do so, the led of the RelayN°5 blinks.

I presume 'nothing happens on the relay. ' means it does not click?
I would have expected that you would need to connect the Arduino GND pin to the relay board 'DC-' input, i.e. connecting the 12 volt supply ground (negative pin) and Arduino GND pin together on the relay board. I would expect the Arduino to relay board 5v connection is not needed.
If I were building this, I would use a breadboard and a DPDT relay powered by a 12 volt supply switched by a mosfet that is switched on by pin 6. I'm assuming the valve has an internal 12 volt solenoid?

Umm. Right now, you have the contacts connected across the device, but no power to that circuit. The relay contacts have no connection to the power connections to those relay boards. They are truly floating. To power that device, you need to run power from +source to relay NO or NC, then wire from relay COM to device red, then from device black to -source.

Again, the photo is too blurred to see but I'm guessing the red & black wire to the valve are connected to the output contacts of the relay and the 12v supply is fed to the output sides of all 8 relays?

Did you get a data sheet or instructions with the relay board?

That was it indeed.

Now that I connect the pump with 12v as well as the relay everything works. Seems obvious now that it's wired but not obvious few minutes ago. Thank you very much !!

I'm uploading a picture of the wiring since I didn't find anything on Google.

Thank yo uvery much for your help guys, super apreciated ! #love

:+1: :+1: :+1:

i find that drawing a circuit diagram is helpful to understand what's wrong. Have you tried Tinkercad?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.