BNSS - IoT & Robotics Training

OBJECTIVE

The objective is to learn how to control high-power devices using a relay by sending a digital signal from a microcontroller. This involves using a relay module to safely switch high-power devices on and off with low-voltage control signals.

MODULES REQUIRED

SCHEMATIC DIAGRAM

ARDUINO CODE
JavaScript
int relay = 13; // Plug the relay into Digital Pin 13


void setup() {
  pinMode(relay, OUTPUT);
}


void loop() {
  digitalWrite(relay, HIGH); // Turn the relay on
  delay(1000); // Wait 1 second
  digitalWrite(relay, LOW); // Turn the relay Off
  delay(1000); // Wait 1 second
}

INSTRUCTIONS

WORKING

IOT Projects

CONTROL RELAY USING DIGITAL SIGNAL

/ /

CONTROL RELAY USING DIGITAL SIGNAL

OBJECTIVE

The objective is to learn how to control high-power devices using a relay by sending a digital signal from a microcontroller. This involves using a relay module to safely switch high-power devices on and off with low-voltage control signals.

MODULES REQUIRED

SCHEMATIC DIAGRAM

ARDUINO CODE
JavaScript
int relay = 13; // Plug the relay into Digital Pin 13


void setup() {
  pinMode(relay, OUTPUT);
}


void loop() {
  digitalWrite(relay, HIGH); // Turn the relay on
  delay(1000); // Wait 1 second
  digitalWrite(relay, LOW); // Turn the relay Off
  delay(1000); // Wait 1 second
}

INSTRUCTIONS

WORKING