Interface LED to normally open (NO) terminal of relay to Arduino. Develop an Arduino sketch to toggle LED every 3 seconds through relay.

Here i am using online IDE Tinkercad . If you don't know what is tinkercad then refer my blog HERE or else you can use offline IDE also.

Code :-

void setup() 

{

  pinMode(11, OUTPUT);

}

void loop()

{

  digitalWrite(11, 1);

  delay(1000);

  digitalWrite(11, 0);

  delay(1000);

}

Output :-



Comments

Popular Posts

3 Develop an interfacing circuit and a sketch to display decimal data on 7-Segments. The 3- digit number is sent over serial communication.

Interface switch , arduino and do following: ** SW1 : when press, transmit “Good Morning ” ** SW1 : when open, transmit “Bad Morning "