Using a Relay on Arduino

preview_player
Показать описание
This video is about using a relay on Arduino. #arduino #arduinouno #robotics #programming
Рекомендации по теме
Комментарии
Автор

Visit us at www.wizardofwestla.com
I want to thank everyone for being a subscriber!!
Here is the code that was used.


//optional screen
//libraries
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd= LiquidCrystal_I2C(0x27, 20, 4);

int triggerPin =2;


void setup() {
// put your setup code here, to run once:
lcd.init();
lcd.backlight();

pinMode(2, OUTPUT);

}

void loop() {
// put your main code here, to run repeatedly:
lcd.setCursor(0, 0);
lcd.print("Activate . ");

digitalWrite(triggerPin, HIGH);
delay(1000);
lcd.setCursor(0, 0);
lcd.print("Deactivate . ");
digitalWrite(triggerPin, LOW);
delay(1000);
}

TheWizardofWestLA
Автор

Youngneer 5v Relay Board Raspberry Arduino Relay Module 1 Channel Opto-Isolated High or Low Level Trigger

TheWizardofWestLA