simply control solenoid with arduino and relay module
|simply control solenoid with arduino and relay module
This video was meant to roughly illustrate how to control a solenoid (on/off) using a relay module and arduino upload the code below. Make any changes you want…
#define solenoidSignal 3
#define SECOND 1000
void setup() {
pinMode(solenoidSignal, OUTPUT);
}
void loop() {
digitalWrite(solenoidSignal, HIGH);
delay(2*SECOND);
digitalWrite(solenoidSignal, LOW);
delay(2*SECOND);
}
simply control solenoid with arduino and relay module
simply control solenoid with arduino and relay module
One Comment
I connected the24 v solenoid with the relay.. the relay goes on working but the solenoid valve is turning on and off with the relay…please help