int Heaters = 6;
int LowLevel = 3;
int HighLevel = 2;
int LowPress = 13;
int HighPress = A2;
int WaterSolenoid = 5;
int PowerLED = 1;
int ReadyLED = A0;
void setup() {
// put your setup code here, to run once:
pinMode(Heaters, OUTPUT);
pinMode(LowLevel, INPUT);
pinMode(HighLevel, INPUT);
pinMode(WaterSolenoid, OUTPUT);
pinMode(PowerLED, OUTPUT);
pinMode(ReadyLED, OUTPUT);
digitalWrite(PowerLED,HIGH);
digitalWrite(WaterSolenoid,HIGH);
digitalWrite(Heaters,HIGH);
}
void loop() {
// put your main code here, to run repeatedly:
if (digitalRead(LowLevel)==LOW){
digitalWrite(Heaters,LOW);
digitalWrite(ReadyLED,LOW);}
else {digitalWrite(Heaters,HIGH);
digitalWrite(ReadyLED,HIGH);}
}
guys this really simple code makes my relay Board Buzz whenever i connect the power Supply to it i need Help please with it quick
i connect positive from the supply to JD-VCC and ground to ground and 5V to VCC in the relay Board
what's Wrong ? I need the most simple solution
No devices Connected I'm Simulating All Sensors with normal Wires
Connecting them with each other Simulating them working
I"M NOT CONNECTING REAL SENSORS
--> if you don't have a pull down resistor, when your switch is not active you have a floating input (since you don't use the built in pullup) and can't really trust what you read there.... so you'll get HIGH and LOW and your loop will very quickly turn on and off your relays...