Hi there,
I have an Arduino Uno with 2 outputs both connected to relays as shown in the follwoing diagram. https://tronixstuff.files.wordpress.com/2010/04/examp3p1.jpg
I have programmed the Uno to turn on both relays at the same time (after the push of a button) but then turn off one relay after 1200ms and the other 6500ms after that.
Once the first output goes low, it causes the other output to become low as well.
Now, if I disconnect the first output connection so it's floating, it doesn't affect the second output (which now runs for the full duration).
I would have thought that the flyback diode and the transistor would prevent any reverse current flow, but that is the only thing that I could cause an issue like this.
Any help would be appreciated.
Problem solved.
I changed the first relay from pin 13 to pin 10 just to try something different.
The result was that both outputs remained on for the duration that they were suppose to.
I am unsure why this would be an issue.
Problem still lingers. It worked fine the first couple of tests and now both outputs switch low when only one should.
I have tried another Arduino Uno just in case it was the board, but the problem still persists.
Where is your code?
Please put your code in its own window as seen in other posts. This can be done by placing [code] and [/code] around the code or use the </> icon. This makes it easier for others to read.
How to use this forum
Weedpharma
weedpharma:
Please put your code
.... and a circuit schematic. Mobile phone photo of a hand-drawn pic is cool as long as it's legible.
(edit: By which I mean your actual circuit, not the tronixstuff one you based it on, which shows only one relay and no switch.)