Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

Arduino UNO RFID-Activated AC Light Control

Image of Arduino UNO RFID-Activated AC Light Control

Circuit Documentation

Summary

This circuit integrates an Arduino UNO microcontroller with an RFID-RC522 module, a 5V relay, an LED bulb designed for AC voltage, and an AC power source. The circuit is powered by a 9V battery. The Arduino UNO controls the RFID reader and the relay, which in turn controls the power to the LED bulb. The RFID-RC522 module is used for wireless communication and identification. The relay acts as an electrically operated switch that allows the Arduino to control the LED bulb with the AC power source.

Component List

Arduino UNO

  • Microcontroller board based on the ATmega328P
  • It has 14 digital input/output pins, 6 analog inputs, a 16 MHz quartz crystal, a USB connection, a power jack, an ICSP header, and a reset button.

RFID-RC522

  • A radio frequency identification (RFID) module that operates at 13.56 MHz
  • It is commonly used for contactless communication and can read and write to various RFID tags.

5V Relay

  • An electromechanical switch that allows a low-power circuit to switch a relatively high current or voltage on and off.
  • It has a coil that, when energized, creates a magnetic field that activates a switch.

LED Bulb AC / Bombillo AC

  • An LED light bulb designed for alternating current (AC) power sources.
  • It is used for illumination and can be controlled via the relay.

AC Source

  • Provides alternating current (AC) power to the circuit.
  • It is the main power source for the LED bulb.

9V Battery

  • A standard 9-volt battery used to power the Arduino UNO and the RFID-RC522 module.

Wiring Details

Arduino UNO

  • 3.3V connected to RFID-RC522 VCC (3.3V)
  • 5V connected to 5V relay VCC
  • GND connected to 5V relay GND, RFID-RC522 GND, and 9V battery (-)
  • Vin connected to 9V battery (+)
  • A0 connected to 5V relay In
  • D13 connected to RFID-RC522 SCK
  • D12 connected to RFID-RC522 MISO
  • D11 connected to RFID-RC522 MOSI
  • D10 connected to RFID-RC522 SDA
  • D9 connected to RFID-RC522 RST

RFID-RC522

  • VCC (3.3V) connected to Arduino UNO 3.3V
  • RST connected to Arduino UNO D9
  • GND connected to Arduino UNO GND
  • SCK connected to Arduino UNO D13
  • MISO connected to Arduino UNO D12
  • MOSI connected to Arduino UNO D11
  • SDA connected to Arduino UNO D10

5V Relay

  • VCC connected to Arduino UNO 5V
  • GND connected to Arduino UNO GND
  • In connected to Arduino UNO A0
  • Normally Open connected to LED bulb AC / Bombillo AC (+)
  • Common terminal connected to AC source (-)

LED Bulb AC / Bombillo AC

  • + connected to 5V relay Normally Open
  • - connected to AC source (+)

AC Source

  • + connected to LED bulb AC / Bombillo AC (-)
  • - connected to 5V relay Common terminal

9V Battery

  • + connected to Arduino UNO Vin
  • - connected to Arduino UNO GND

Documented Code

Arduino UNO Code (sketch.ino)

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

Note: The provided code is a template and does not contain any functional code to operate the circuit. The user must add the necessary code to initialize the RFID-RC522 module, read RFID tags, and control the relay to power the LED bulb.