Arduino Mega 2560-Based Access Control Panel with RFID and Keypad
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit integrates various components including an Arduino Mega 2560, a 4x4 Membrane Matrix Keypad, an LCD Display, an RFID-RC522 module, two stepper motors, an MB102 Breadboard Power Supply Module, a Trimmer Potentiometer, and a Passive Buzzer. The Arduino Mega 2560 serves as the central microcontroller unit, interfacing with the input devices (keypad, RFID reader), output devices (LCD, buzzer, stepper motors), and power management modules. The circuit is designed to perform tasks that require user input, data display, identification via RFID, and motion control through stepper motors.
Component List
- Arduino Mega 2560: A microcontroller board based on the ATmega2560 with numerous digital and analog I/O pins.
- 4X4 Membrane Matrix Keypad: An input device with 16 buttons arranged in a 4x4 grid.
- LCD Display (16 pin): A liquid crystal display capable of showing alphanumeric characters.
- RFID-RC522: An RFID reader/writer module for contactless communication using radio frequency.
- Stepper Motor One: Two instances of a stepper motor that can be precisely controlled for position and speed.
- MB102 Breadboard Power Supply Module 3.3V/5V: A power supply module that provides both 3.3V and 5V outputs.
- Trimmer Potentiometer: A variable resistor with a range of 10k Ohms, used for adjusting voltage levels.
- Passive Buzzer: An output device that can generate simple tones when provided with a signal.
Wiring Details
Arduino Mega 2560
- Digital Pins:
- D2 PWM: Connected to RFID-RC522 RST.
- D4 PWM: Connected to Stepper Motor One IN1.
- D5 PWM: Connected to Stepper Motor One IN2.
- D6 PWM: Connected to Stepper Motor One IN3.
- D7 PWM: Connected to Stepper Motor One IN4.
- D9 PWM: Connected to Stepper Motor Two IN1.
- D10 PWM: Connected to Stepper Motor Two IN2.
- D11 PWM: Connected to Stepper Motor Two IN3.
- D12 PWM: Connected to Stepper Motor Two IN4.
- D22: Connected to RFID-RC522 SCK.
- D23: Connected to RFID-RC522 SDA.
- D24: Connected to RFID-RC522 MISO.
- D25: Connected to RFID-RC522 MOSI.
- D33: Connected to Passive Buzzer +VCC.
- D38-D53: Connected to 4X4 Membrane Matrix Keypad.
- Power Pins:
- GND: Common ground with various components.
- 5V: Not directly connected in the provided net list.
4X4 Membrane Matrix Keypad
- Row Pins (R1-R4): Connected to Arduino Mega 2560 pins D52, D50, D48, D46 respectively.
- Column Pins (C1-C4): Connected to Arduino Mega 2560 pins D44, D42, D40, D38 respectively.
LCD Display (16 pin)
- Control Pins:
- RS: Connected to Arduino Mega 2560 D43.
- E: Connected to Arduino Mega 2560 D45.
- Data Pins:
- DB4-DB7: Connected to Arduino Mega 2560 pins D47, D49, D51, D53 respectively.
- Power Pins:
- VDD: Connected to 5V supply from MB102 Power Supply Module.
- VSS: Connected to GND.
- VO: Connected to Trimmer Potentiometer wiper.
- A: Connected to 5V supply from MB102 Power Supply Module for backlight.
- K: Connected to GND for backlight.
RFID-RC522
- Communication Pins:
- SDA: Connected to Arduino Mega 2560 D23.
- SCK: Connected to Arduino Mega 2560 D22.
- MOSI: Connected to Arduino Mega 2560 D25.
- MISO: Connected to Arduino Mega 2560 D24.
- Control Pin:
- RST: Connected to Arduino Mega 2560 D2 PWM.
- Power Pins:
- VCC (3.3V): Connected to 3.3V supply from MB102 Power Supply Module.
- GND: Connected to GND.
Stepper Motor One (Two Instances)
- Control Pins (IN1-IN4): Each stepper motor's IN1-IN4 pins are connected to Arduino Mega 2560 pins D4-D7 PWM and D9-D12 PWM respectively.
- Power Pins (+/-): Connected to 5V and GND respectively.
MB102 Breadboard Power Supply Module 3.3V/5V
- Output Pins:
- 3.3V: Provides power to RFID-RC522.
- 5V: Provides power to LCD Display and stepper motors.
- Input Pins:
- VCC: Not specified in the net list.
- GND: Common ground with various components.
Trimmer Potentiometer
- Pins:
- Leg1: Connected to 5V supply from MB102 Power Supply Module.
- Wiper: Connected to LCD Display VO for contrast adjustment.
- Leg2: Connected to GND.
Passive Buzzer
- Signal Pin:
- S output signal: Not specified in the net list.
- Power Pins:
- +VCC: Connected to Arduino Mega 2560 D33.
- GND: Connected to GND.
Documented Code
Arduino Mega 2560
File: 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 with empty setup() and loop() functions. Actual implementation details need to be added based on the specific requirements of the circuit's operation.