Arduino Mega 2560 Smart Home System with Ethernet, RFID, and Touchscreen Control
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino Mega 2560 microcontroller interfaced with several peripheral modules including an Ethernet module (W5500), an RFID reader (RC522), and a touchscreen display (ST7796). The circuit is designed to leverage the capabilities of these modules for various functionalities such as network communication, RFID reading, and touch-based user interface.
Component List
Arduino Mega 2560
- Description: A microcontroller board based on the ATmega2560.
- Pins: IOREF, RESET, 3V3, 5V, GND, VIN, A0-A15, D0-D53, AREF, SDA, SCL
Module Ethernet W5500
- Description: An Ethernet module based on the W5500 chip.
- Pins: NC, INT, RST, GND, 5V, SCK, SS, MOSI, MISO, 3.3V
RFID-RC522
- Description: An RFID reader module.
- Pins: VCC (3.3V), RST, GND, IRQ, MISO, MOSI, SCK, SDA
ST7796 3.5ips Module Touchscreen
- Description: A 3.5-inch touchscreen display module.
- Pins: VCC, GND, LCD_CS, LCD_RST, SOI(MOSI), SCK, LED, SOO(MOSI), CTP_SCL, CTP_RST, CPT_SDA, LCD_RS, CPT_INT, SD_CS
Comment
- Description: Placeholder for comments in the circuit.
- Pins: None
Wiring Details
Arduino Mega 2560
3V3 connected to:
- Module Ethernet W5500 (3.3V)
- RFID-RC522 (VCC (3.3V))
GND connected to:
- ST7796 3.5ips Module Touchscreen (GND)
- RFID-RC522 (GND)
- Module Ethernet W5500 (GND)
D21/SCL connected to:
- ST7796 3.5ips Module Touchscreen (CTP_SCL)
D20/SDA connected to:
- ST7796 3.5ips Module Touchscreen (CPT_SDA)
D2 PWM connected to:
- Module Ethernet W5500 (INT)
D3 PWM connected to:
- Module Ethernet W5500 (RST)
D4 PWM connected to:
- RFID-RC522 (RST)
D5 PWM connected to:
- ST7796 3.5ips Module Touchscreen (CPT_INT)
D6 PWM connected to:
- ST7796 3.5ips Module Touchscreen (LCD_RS)
D7 PWM connected to:
- ST7796 3.5ips Module Touchscreen (CTP_RST)
D8 PWM connected to:
- ST7796 3.5ips Module Touchscreen (LCD_RST)
D9 PWM connected to:
- ST7796 3.5ips Module Touchscreen (LCD_CS)
D10 PWM connected to:
- Module Ethernet W5500 (SS)
D52 connected to:
- Module Ethernet W5500 (SCK)
- ST7796 3.5ips Module Touchscreen (SCK)
- RFID-RC522 (SCK)
D50 connected to:
- Module Ethernet W5500 (MISO)
- ST7796 3.5ips Module Touchscreen (SOO(MOSI))
- RFID-RC522 (MISO)
5V connected to:
- ST7796 3.5ips Module Touchscreen (VCC)
- ST7796 3.5ips Module Touchscreen (LED)
- Module Ethernet W5500 (5V)
D53 connected to:
- RFID-RC522 (SDA)
D51 connected to:
- Module Ethernet W5500 (MOSI)
- ST7796 3.5ips Module Touchscreen (SOI(MOSI))
- RFID-RC522 (MOSI)
Module Ethernet W5500
3.3V connected to:
- Arduino Mega 2560 (3V3)
INT connected to:
- Arduino Mega 2560 (D2 PWM)
RST connected to:
- Arduino Mega 2560 (D3 PWM)
GND connected to:
- Arduino Mega 2560 (GND)
SCK connected to:
- Arduino Mega 2560 (D52)
- ST7796 3.5ips Module Touchscreen (SCK)
- RFID-RC522 (SCK)
SS connected to:
- Arduino Mega 2560 (D10 PWM)
MOSI connected to:
- Arduino Mega 2560 (D51)
- ST7796 3.5ips Module Touchscreen (SOI(MOSI))
- RFID-RC522 (MOSI)
MISO connected to:
- Arduino Mega 2560 (D50)
- ST7796 3.5ips Module Touchscreen (SOO(MOSI))
- RFID-RC522 (MISO)
5V connected to:
- Arduino Mega 2560 (5V)
RFID-RC522
VCC (3.3V) connected to:
- Arduino Mega 2560 (3V3)
RST connected to:
- Arduino Mega 2560 (D4 PWM)
GND connected to:
- Arduino Mega 2560 (GND)
SCK connected to:
- Arduino Mega 2560 (D52)
- Module Ethernet W5500 (SCK)
- ST7796 3.5ips Module Touchscreen (SCK)
MISO connected to:
- Arduino Mega 2560 (D50)
- Module Ethernet W5500 (MISO)
- ST7796 3.5ips Module Touchscreen (SOO(MOSI))
MOSI connected to:
- Arduino Mega 2560 (D51)
- Module Ethernet W5500 (MOSI)
- ST7796 3.5ips Module Touchscreen (SOI(MOSI))
SDA connected to:
- Arduino Mega 2560 (D53)
ST7796 3.5ips Module Touchscreen
VCC connected to:
- Arduino Mega 2560 (5V)
GND connected to:
- Arduino Mega 2560 (GND)
LCD_CS connected to:
- Arduino Mega 2560 (D9 PWM)
LCD_RST connected to:
- Arduino Mega 2560 (D8 PWM)
SOI(MOSI) connected to:
- Arduino Mega 2560 (D51)
- Module Ethernet W5500 (MOSI)
- RFID-RC522 (MOSI)
SCK connected to:
- Arduino Mega 2560 (D52)
- Module Ethernet W5500 (SCK)
- RFID-RC522 (SCK)
LED connected to:
- Arduino Mega 2560 (5V)
SOO(MOSI) connected to:
- Arduino Mega 2560 (D50)
- Module Ethernet W5500 (MISO)
- RFID-RC522 (MISO)
CTP_SCL connected to:
- Arduino Mega 2560 (D21/SCL)
CTP_RST connected to:
- Arduino Mega 2560 (D7 PWM)
CPT_SDA connected to:
- Arduino Mega 2560 (D20/SDA)
LCD_RS connected to:
- Arduino Mega 2560 (D6 PWM)
CPT_INT connected to:
- Arduino Mega 2560 (D5 PWM)
Documented Code
sketch.ino
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
documentation.txt