This circuit is designed to interface an Arduino UNO with a fingerprint sensor, an I2C LCD screen, a 12V solenoid lock, and a single-channel 12V relay. The Arduino UNO acts as the central controller, managing the input from the fingerprint sensor and outputting status information to the LCD screen. The relay is used to control the power to the solenoid lock, which acts as an electronic lock mechanism. The system is powered by a 12V 5Ah battery, which also supplies power to the relay and the solenoid lock.
5V
and GND
pins are used to power the fingerprint sensor, relay, and LCD screen.A4 (SDA)
and A5 (SCL)
pins are connected to the corresponding SDA and SCL pins on the LCD screen for I2C communication.D2
and D3
pins are used for serial communication with the fingerprint sensor (D2
connected to TX of the sensor, D3
connected to RX of the sensor).TX
connected to D2
on the Arduino for serial communication.RX
connected to D3
on the Arduino for serial communication.VCC (5V)
and GND
connected to the 5V and GND on the Arduino for power.SDA
connected to A4
on the Arduino for I2C data.SCL
connected to A5
on the Arduino for I2C clock.VCC
connected to 5V on the Arduino for power.GND
connected to GND on the Arduino.COM
connected to the negative terminal of the solenoid lock.NO
connected to the positive terminal of the 12V battery.+
connected to the positive terminal of the 12V battery through the NO
contact of the relay.-
connected to the COM
contact of the relay.12v +
connected to the NO
contact of the relay and the positive terminal of the solenoid lock.12v -
connected to the COM
contact of the relay.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 setup and loop routines required to control the fingerprint sensor, relay, and LCD screen.