Skip to main content

Relay Control LED

This demo will show you how to use Relay. Actually, Relay is an electronic switch that can be controled by an IO.

Relay is mainly used for weak power control strong power. For example, use your Arduino to control a lamp, you need a Realy. Here we'll use relay to control a LED.

Hardware Required:

  • Arduino

  • Relay

  • LED

  • 220ohm resistor


Connect Relay to D2 of Arduino.


Open Arduino IDE, click File -> Sketchbook -> relay_led.

Upload the code, you can find the led blink.

Tech Support & Product Discussion

Thank you for choosing our products! We are here to provide you with different support to ensure that your experience with our products is as smooth as possible. We offer several communication channels to cater to different preferences and needs.

Loading Comments...