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

What is Tinkercad ? How to use Tinkercad ?

Receive the data between 0 to 9 serially using arduino.