Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino UNO RFID Access Control System with LED Indicators and I2C LCD Display

View and Edit Project In Cirkit DesignerImage of Arduino UNO RFID Access Control System with LED Indicators and I2C LCD Display

Circuit Documentation

Summary

This circuit involves an Arduino UNO microcontroller interfacing with an RFID-RC522 module, a 16x2 I2C LCD, and two LEDs (one red and one green). The Arduino UNO controls the LEDs and communicates with the RFID module and the LCD display. The LEDs are used to indicate different states, while the RFID module is used for reading RFID tags, and the LCD displays relevant information.

Component List

Arduino UNO

RFID-RC522

16x2 I2C LCD

LED: Two Pin (green)

LED: Two Pin (red)

Wiring Details

Arduino UNO

RFID-RC522

16x2 I2C LCD

LED: Two Pin (green)

LED: Two Pin (red)

Code Documentation

Arduino UNO Code

void setup() {
  // Initialisation des broches des LEDs comme sorties
  pinMode(2, OUTPUT); // LED rouge
  pinMode(3, OUTPUT); // LED verte
}

void loop() {
  // Allumer la LED rouge et éteindre la LED verte
  digitalWrite(2, HIGH);
  digitalWrite(3, LOW);
  delay(1000); // Attendre 1 seconde

  // Éteindre la LED rouge et allumer la LED verte
  digitalWrite(2, LOW);
  digitalWrite(3, HIGH);
  delay(1000); // Attendre 1 seconde
}

This code initializes the pins connected to the red and green LEDs as output pins. In the main loop, it alternates between turning the red LED on and the green LED off, and vice versa, with a delay of one second between each state change.