Learn how to use a relay module with Arduino to switch high-voltage mains devices on and off — safely. This tutorial covers how relays work, how to wire a 5V relay module, and how to control lights, fans, and appliances from your Arduino sketch.
⚡ What you'll learn and more topics to research:
• How electromechanical relays work (coil + switch)
• Wiring a 5V relay module to Arduino (active HIGH vs LOW)
• Controlling a relay with digitalWrite()
• Flyback diode protection for safe relay switching
• Project ideas: smart switch, timer outlet, automation
📌 Part of the Arduino Prototyping Basics: Outputs series.
#Arduino #Relay #ArduinoRelay #RelayModule #ArduinoTutorial #homeautomation
arduino relay, arduino relay module, relay tutorial arduino, arduino control relay, arduino switch appliance, 5V relay arduino