Circuit Documentation
Summary
The circuit in question appears to be a control system that integrates various components including an NFC/RFID reader, a real-time clock (RTC), an OLED display, a relay module, a button switch, a magnetic lock, and a microcontroller unit (MCU). The system is powered by a switching power supply that provides both 12V and 5V outputs. The NFC/RFID reader is likely used for identification purposes, the RTC for timekeeping, the OLED display for user interface, the relay to control the magnetic lock, and the button switch as a manual input device. The MCU serves as the central processing unit, interfacing with the various peripherals.
Component List
NFC/RFID Reader
- Description: A device that can read from and write to NFC or RFID tags.
- Pins: GND, VCC, SDA, SCL
12V Relay
- Description: An electromechanical switch that allows a low-power circuit to control a high-power circuit.
- Pins: NO (Normally Open), COM (Common), NC (Normally Closed), IN (Input), DC- (Ground), DC+ (Power)
RTC DS3231
- Description: A highly accurate I2C real-time clock with an integrated temperature-compensated crystal oscillator (TCXO) and crystal.
- Pins: 32K, SQW, SCL, SDA, VCC, GND
OLED 1.3"
- Description: A small display for visual output.
- Pins: GND, VCC, SCL, SDA
Switching Power Supply 12V 5V
- Description: A power supply unit that provides both 12V and 5V outputs.
- Pins: L (Line), N (Neutral), GND (Ground), -5V, +12V, COM (Common), +5V
Magnetic Lock
- Description: An electromagnetic lock system.
- Pins: S (Signal), GND (Ground)
Button Switch (Door)
- Description: A push-button switch that may be used as a manual input or trigger.
- Pins: VCC, GND
T8_S3 (MCU)
- Description: A microcontroller unit that serves as the brain of the circuit, interfacing with all other components.
- Pins: Multiple GPIOs, GND, 3V3, 5V
Power Outlet (IL)
- Description: A standard power outlet for providing AC power to the circuit.
- Pins: N (Neutral), L (Line), GND (Ground)
USB Power
- Description: A USB power source.
- Pins: + (VCC), - (GND)
Wiring Details
NFC/RFID Reader
- GND connected to system ground.
- VCC connected to 5V power rail.
- SDA connected to MCU I2C data line.
- SCL connected to MCU I2C clock line.
12V Relay
- NO connected to the magnetic lock.
- COM connected to +12V power rail.
- NC not connected in this circuit.
- IN controlled by a GPIO pin on the MCU.
- DC- connected to system ground.
- DC+ connected to 5V power rail.
RTC DS3231
- GND connected to system ground.
- VCC connected to 5V power rail.
- SDA connected to MCU I2C data line.
- SCL connected to MCU I2C clock line.
OLED 1.3"
- GND connected to system ground.
- VCC connected to 5V power rail.
- SDA connected to MCU I2C data line.
- SCL connected to MCU I2C clock line.
Switching Power Supply 12V 5V
- L connected to power outlet line.
- N connected to power outlet neutral.
- GND connected to power outlet ground.
- -5V connected to USB power ground.
- +12V connected to relay COM.
- COM connected to magnetic lock ground.
- +5V connected to 5V power rail.
Magnetic Lock
- S connected to relay NO.
- GND connected to power supply COM.
Button Switch (Door)
- VCC controlled by a GPIO pin on the MCU.
- GND connected to system ground.
T8_S3 (MCU)
- Multiple GPIOs used for controlling and interfacing with other components.
- GND connected to system ground.
- 3V3 not connected in this circuit.
- 5V connected to 5V power rail.
Power Outlet (IL)
- N connected to power supply neutral.
- L connected to power supply line.
- GND connected to power supply ground.
USB Power
- + (VCC) connected to 5V power rail.
- - (GND) connected to system ground.
Documented Code
No code was provided for the microcontroller(s) in the circuit. The documentation of the code would typically include descriptions of the functions, algorithms, and the overall logic used to control the circuit's behavior. It would also detail how the MCU interfaces with each component, the protocols used (e.g., I2C for communication with the RTC, OLED, and NFC/RFID reader), and any interrupt routines or time-critical operations.