Skip to content

Latest commit

 

History

History
59 lines (42 loc) · 1.75 KB

File metadata and controls

59 lines (42 loc) · 1.75 KB
description title keywords image slug last_update
Relay Control LED
Relay Control LED
Arduino
Arduino_Boards_Projects
/Relay_Control_LED
date author
2/15/2023
jianjing Huang

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 & 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.