I'm not 100% sure if this is a hardware problem, it may be part of my programming so I'll include the code I am running. You can see that IN4 on the relay isn't on and won't turn on regardless of which digital in the signal is supposed to be coming from. I have IN4 hooked up into digital in 2...
-The relays are supposed to turn on my water pump when my capacitors read >450... all four capacitors were reading around 600 so the sensors weren't the issue.
-When I switch the wiring from IN4 to any of the other digital ins in my code (3,4, or 5) IN4 come on and whenever I take any of the other wires from IN1, IN2, or IN3 and put it into digital in 2, their respective relays do not turn on... here you can see a video of this on my reddit cry for help...
https://www.reddit.com/r/arduino/comments/iepx1w/help_with_auto_irrigation_watering_kit_details_in/-I have tried to switch the signal for IN4 to 6 and even 7 then edited my code so that it would reflect the hardware change: this is where I may have messed up and think that it is not the hardware but rather a programing error on my part. I change
/*Watering System values*/
int IN1 = 2;
int IN2 = 3;
int IN3 = 4;
int IN4 = 5;
to
/*Watering System values*/
int IN1 = 2;
int IN2 = 3;
int IN3 = 4;
int IN4 = 6;
and this didn't work.
I started working with any of this stuff 4 months ago when I bought an arduino with the goal of building a self watering garden system and improving on it. This is version 1.0 for me so please be a little patient if there is something I overlooked. Also, any feed back, suggestions, or ideas for improvements are always very welcomed. Any assistance really would be great.