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

Add a Comment

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *