Arduino UNO Based RFID and IR Sensor Controlled Servomotor System
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit integrates an Arduino UNO microcontroller with a Servomotor SG90, an FC-51 IR Sensor, and an RFID-RC522 module. The Arduino UNO serves as the central processing unit, controlling the servomotor based on inputs from the IR sensor and communicating with the RFID reader module. The servomotor is powered by the Arduino's 5V output, while the IR sensor and RFID module are connected to the 3.3V and GND lines for power. Communication between the Arduino and the RFID-RC522 is established via the SPI interface.
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.
Servomotor SG90
- A small and lightweight servo motor capable of precise control
- It operates on 4.8V to 6V and offers good performance for simple automation projects.
Sensor FC-51 IR
- An infrared proximity sensor designed for obstacle detection
- It includes a photodiode for IR detection and an integrated circuit for signal processing.
RFID-RC522
- An RFID reader module that operates at 13.56 MHz
- It supports communication via SPI and can be used for contactless communication and identification.
Wiring Details
Arduino UNO
- 3.3V connected to RFID-RC522 VCC (3.3V)
- 5V connected to Servomotor SG90 VCC and Sensor FC-51 IR VCC
- GND connected to Servomotor SG90 GND, Sensor FC-51 IR GND, and RFID-RC522 GND
- D13 (SCK) connected to RFID-RC522 SCK
- D12 (MISO) connected to RFID-RC522 MISO
- D11 (MOSI) connected to RFID-RC522 MOSI
- D10 (SS) connected to RFID-RC522 SDA
- D9 connected to RFID-RC522 RST
- D7 connected to Sensor FC-51 IR OUT
- D6 connected to Servomotor SG90 SIG
Servomotor SG90
- SIG connected to Arduino UNO D6
- VCC connected to Arduino UNO 5V
- GND connected to Arduino UNO GND
Sensor FC-51 IR
- OUT connected to Arduino UNO D7
- GND connected to Arduino UNO GND
- VCC connected to Arduino UNO 5V
RFID-RC522
- VCC (3.3V) connected to Arduino UNO 3.3V
- RST connected to Arduino UNO D9
- GND connected to Arduino UNO GND
- IRQ (Not connected)
- MISO connected to Arduino UNO D12
- MOSI connected to Arduino UNO D11
- SCK connected to Arduino UNO D13
- SDA connected to Arduino UNO D10
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 include specific functionality. It should be populated with the necessary setup and loop code to control the servomotor, read the IR sensor, and communicate with the RFID-RC522 module.