Dual Arduino Nano-Based RFID and IR Sensor Controlled Servo System with I2C LCD Display
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves two Arduino Nano microcontrollers, multiple IR sensors, servos, an RFID-RC522 module, and I2C LCD 16x2 screens. The circuit is designed to interface these components for various input and output operations, including reading RFID tags, displaying information on LCD screens, and controlling servos based on sensor inputs.
Component List
Arduino Nano
- Description: A compact microcontroller board based on the ATmega328P.
- Pins: D1/TX, D0/RX, RESET, GND, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11/MOSI, D12/MISO, VIN, 5V, A7, A6, A5, A4, A3, A2, A1, A0, AREF, 3V3, D13/SCK
Servo
- Description: A motor that can be controlled to move to a specific position.
- Pins: GND, VCC, PWM
I2C LCD 16x2 Screen
- Description: A 16x2 character LCD screen with I2C interface.
- Pins: SCL, SDA, VCC (5V), GND, VDD, VO, RS, RW, E, D0, D1, D2, D3, D4, D5, D6, D7, BLA, BLK
RFID-RC522
- Description: An RFID reader module.
- Pins: SDA, SCK, MOSI, MISO, IRQ, GND, RST, 3.3V
IR Sensor
- Description: An infrared sensor for detecting objects.
- Pins: out, gnd, vcc
Wiring Details
Arduino Nano 1
- D1/TX connected to D0/RX of Arduino Nano 2
- D0/RX connected to D1/TX of Arduino Nano 2
- GND connected to GND of RFID-RC522, I2C LCD 16x2 Screen, and Servo
- D6 connected to PWM of Servo
- D9 connected to RST of RFID-RC522
- D10 connected to SDA of RFID-RC522
- D11/MOSI connected to MOSI of RFID-RC522
- D12/MISO connected to MISO of RFID-RC522
- 5V connected to VCC (5V) of I2C LCD 16x2 Screen and VCC of Servo
- A5 connected to SCL of I2C LCD 16x2 Screen
- A4 connected to SDA of I2C LCD 16x2 Screen
- 3V3 connected to 3.3V of RFID-RC522
- D13/SCK connected to SCK of RFID-RC522
Arduino Nano 2
- D1/TX connected to D0/RX of Arduino Nano 1
- D0/RX connected to D1/TX of Arduino Nano 1
- D2 connected to out of IR Sensor 1
- D3 connected to out of IR Sensor 2
- D4 connected to out of IR Sensor 3
- D5 connected to out of IR Sensor 4
- D6 connected to PWM of Servo
- D9 connected to RST of RFID-RC522
- D10 connected to SDA of RFID-RC522
- D11/MOSI connected to MOSI of RFID-RC522
- D12/MISO connected to MISO of RFID-RC522
- GND connected to GND of RFID-RC522, I2C LCD 16x2 Screen, Servo, and all IR Sensors
- 5V connected to VCC (5V) of I2C LCD 16x2 Screen, VCC of Servo, and VCC of all IR Sensors
- A5 connected to SCL of I2C LCD 16x2 Screen
- A4 connected to SDA of I2C LCD 16x2 Screen
- 3V3 connected to 3.3V of RFID-RC522
- D13/SCK connected to SCK of RFID-RC522
Servo 1
- GND connected to GND of Arduino Nano 1
- VCC connected to 5V of Arduino Nano 1
- PWM connected to D6 of Arduino Nano 1
Servo 2
- GND connected to GND of Arduino Nano 2
- VCC connected to 5V of Arduino Nano 2
- PWM connected to D6 of Arduino Nano 2
I2C LCD 16x2 Screen 1
- GND connected to GND of Arduino Nano 1
- VCC (5V) connected to 5V of Arduino Nano 1
- SCL connected to A5 of Arduino Nano 1
- SDA connected to A4 of Arduino Nano 1
I2C LCD 16x2 Screen 2
- GND connected to GND of Arduino Nano 2
- VCC (5V) connected to 5V of Arduino Nano 2
- SCL connected to A5 of Arduino Nano 2
- SDA connected to A4 of Arduino Nano 2
RFID-RC522 1
- GND connected to GND of Arduino Nano 1
- 3.3V connected to 3V3 of Arduino Nano 1
- RST connected to D9 of Arduino Nano 1
- SDA connected to D10 of Arduino Nano 1
- MOSI connected to D11/MOSI of Arduino Nano 1
- MISO connected to D12/MISO of Arduino Nano 1
- SCK connected to D13/SCK of Arduino Nano 1
RFID-RC522 2
- GND connected to GND of Arduino Nano 2
- 3.3V connected to 3V3 of Arduino Nano 2
- RST connected to D9 of Arduino Nano 2
- SDA connected to D10 of Arduino Nano 2
- MOSI connected to D11/MOSI of Arduino Nano 2
- MISO connected to D12/MISO of Arduino Nano 2
- SCK connected to D13/SCK of Arduino Nano 2
IR Sensor 1
- out connected to D2 of Arduino Nano 2
- gnd connected to GND of Arduino Nano 2
- vcc connected to 5V of Arduino Nano 2
IR Sensor 2
- out connected to D3 of Arduino Nano 2
- gnd connected to GND of Arduino Nano 2
- vcc connected to 5V of Arduino Nano 2
IR Sensor 3
- out connected to D4 of Arduino Nano 2
- gnd connected to GND of Arduino Nano 2
- vcc connected to 5V of Arduino Nano 2
IR Sensor 4
- out connected to D5 of Arduino Nano 2
- gnd connected to GND of Arduino Nano 2
- vcc connected to 5V of Arduino Nano 2
Documented Code
Arduino Nano 1 Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Arduino Nano 2 Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}