0PricingLogin
Arduino & IoT Academy · Lesson

Switch Mains Devices with a Relay

Toggle a lamp or fan from a digital pin.

Controlling Big Things

Sometimes you want your Arduino to switch a lamp or a fan, not just an LED. For mains-powered gear you reach for a relay. 💡

A Relay Is a Switch

A relay is an electrically controlled switch. A small coil current pulls a metal contact closed, connecting a totally separate, much higher-power circuit.

All lessons in this course

  1. Why You Need a Driver
  2. Speed & Direction with an H-Bridge
  3. Switch Mains Devices with a Relay
  4. Protect Against Flyback Spikes
← Back to Arduino & IoT Academy