edit

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

Circuit:

Connect Relay to D2 of Arduino.

Code:

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

Upload the code, you can find the led blink.

Tech Support

Please do not hesitate to contact techsupport@seeed.cc if you have any technical issue. Or submit the issue into our forum.