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.
3.3V
connected to RFID-RC522 VCC (3.3V)5V
connected to 5V relay VCCGND
connected to 5V relay GND, RFID-RC522 GND, and 9V battery (-)Vin
connected to 9V battery (+)A0
connected to 5V relay InD13
connected to RFID-RC522 SCKD12
connected to RFID-RC522 MISOD11
connected to RFID-RC522 MOSID10
connected to RFID-RC522 SDAD9
connected to RFID-RC522 RSTVCC (3.3V)
connected to Arduino UNO 3.3VRST
connected to Arduino UNO D9GND
connected to Arduino UNO GNDSCK
connected to Arduino UNO D13MISO
connected to Arduino UNO D12MOSI
connected to Arduino UNO D11SDA
connected to Arduino UNO D10VCC
connected to Arduino UNO 5VGND
connected to Arduino UNO GNDIn
connected to Arduino UNO A0Normally Open
connected to LED bulb AC / Bombillo AC (+)Common terminal
connected to AC source (-)+
connected to 5V relay Normally Open-
connected to AC source (+)+
connected to LED bulb AC / Bombillo AC (-)-
connected to 5V relay Common terminal+
connected to Arduino UNO Vin-
connected to Arduino UNO GNDvoid 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.