Relay Malfunctions with Manual Override Switch

Hi,

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
G

Sounds very strange.

Fritzing , not preferred.

Either a proper circuit diagram or a photograph of your setup clearly showing the connections.

I don't know how to make a circuit diagram and my pic wont be clear. I have a bunch of other wires and sensors hooked up that don't affect the circuit. My guess is I might need transistors some where but I'm not sure where or the rating.

geoffism00: I don't know how to make a circuit diagram and my pic wont be clear. I have a bunch of other wires and sensors hooked up that don't affect the circuit. My guess is I might need transistors some where but I'm not sure where or the rating.

Where is the fritzing diagram ?

OK i found it.

First thought no supply for 12v shown and no detail for the relay board ,Link please.

But it appears that the relays are designed for 5 V from the markings but share the same supply as the 12v solenoids.

Also how is the arduino powered.

This is the exact relay and 12v from a wall wort plugs directly into the arduino's 2.1mm jack and is 2amps.

http://www.amazon.com/Channel-optocoupler-Compatible-Atomic-Market/dp/B00TMFVVG6/ref=sr_1_8?ie=UTF8&qid=1456782075&sr=8-8&keywords=2+channel+relay

I thought you connected 12v to common on relay then 12v from toggle to NC and solenoid power and the 5v just activates the relays.

Photo

It seems attatchments no longer work.

The link you provided shows 12 V relays, they will not operate from 5V corrrectly, even if you have the solenoid supply connected correctly with 12 V, and i suspect you do not ,they require a 12 v voltage on the coil.

The arduino cannot supply this.

I tried to post a circuit diagram based on your fritz.

E

I got it to work as soon as i removed one of the other solenoids (link below). I think the relay activates on 5volts but will run 12v appliances because of the octocoupler.

If i remove this

http://www.ebay.com/itm/1-4-U-S-Solid-Replacement-Solenoid-Valve-for-RO-Water-Purifying-Systems-/272121783596?hash=item3f5bb8e52c:g:uDwAAOSwo0JWMwrC

everything works like its suppose too but I don't have another one to test to see if it works with it.

You have still not provided details of the power supply connections.

They are rather important.

The fact that removing one of the solenoides makes it work would indicate this.

I’m not really quite sure what other details you are looking for its a 12v 2 am wall wort that plugs into the arduino’s 2.1mm power jack. It’s how I power VIN with 12v which is what I use to power the solenoids.

Here is a link to my PSU

http://www.amazon.com/JACKYLED-Switching-Power-Supply-Adapter/dp/B015GRCCIO

wall wart to arduino jack should be fine. 12V to solenoid also fine PROVIDED that the connections are correct.

These are missing from your fritzing diagram.

I have converted your fritzing diagram to a circuit diagram which shows other problems but am unable to post.

Describing in words is probably pointless.

A photo of your actual setup could probably be better even if it is not a good pic.

Your fritzing diagram lacks detail as well in that its difficult to read the legend. That may be a drawback of fritzing though.

Why the ground wire on the toggle switch. That will short Vin to ground when the switch is in the off position and the left relay is active. Remove that ground wire. You don't need it. Leo..

I have a new symptom. When the toggle is in the off position the whole system shorts out and the LED lights get real dim. When the switch is in the on position the system works and there is no power drain. I reworked some of the wiring as I had the solenoids and switch on NO instead of NC. One more thing, once the system is on and has started looping I can turn the toggle off and everything still works fine but if I try and turn off or on one of the relays the lights dim.

I'll try and borrow a camera but no guarantees I don't use cell phones at the moment ($).

geoffism00: When the toggle is in the off position the whole system shorts out...

Told you in post#12 Leo..

Wawa: Why the ground wire on the toggle switch. That will short Vin to ground when the switch is in the off position and the left relay is active. Remove that ground wire. You don't need it. Leo..

I tried that but now the led on the toggle doesn't work and the toggle switch doesn't turn anything on or off. Also, even though the relay isn't active and regardless of toggle position the solenoid turns on.

Boardburner2: wall wart to arduino jack should be fine. 12V to solenoid also fine PROVIDED that the connections are correct.

These are missing from your fritzing diagram.

I have converted your fritzing diagram to a circuit diagram which shows other problems but am unable to post.

Describing in words is probably pointless.

A photo of your actual setup could probably be better even if it is not a good pic.

Your fritzing diagram lacks detail as well in that its difficult to read the legend. That may be a drawback of fritzing though.

Everything is in my diagram... both water valves, switch, relay and i don't have a 12v picture of my PSU but I put in my description. Wiring on my sketch reflex what I have but I did hook up both grounds on the relay and I am using the relay in the amazon link.

Try and post the problems I will google things that are over my head.

What is the purpose of the toggle switch. Ability to bypass the Arduino?

So the toggle has a LED. Do you have a link to the switch. Leo..

Wawa: What is the purpose of the toggle switch. Ability to bypass the Arduino?

So the toggle has a LED. Do you have a link to the switch. Leo..

Yes, its to bypass the arduino. I need an override that can activate the one solenoid manually.

Yes Yes, Here is the link http://www.ledssuperbright.com/led-toggle-switches-12v-p-344

geoffism00: Everything is in my diagram... both water valves, switch, relay and i don't have a 12v picture of my PSU but I

No its not.

Components are there but the way they are connected are not.

The power connection circuit is very important even if you get the signal pins connected correctly.