This circuit is designed to interface an Arduino UNO with a 4x4 membrane matrix keypad and control a 12V solenoid lock using a relay module. The solenoid lock is powered by a 12V battery. The Arduino UNO is responsible for processing the input from the keypad and activating the relay, which in turn controls the power to the solenoid lock.
5V
and GND
are used to power the relay module.D2
to D10
are used to interface with the 4x4 keypad and the relay module.+
terminal is connected to the NO
(Normally Open) terminal of the relay module and the +
terminal of the solenoid lock.-
terminal is connected to the -
terminal of the solenoid lock.R1
to R4
are connected to Arduino digital pins D2
to D5
.C1
to C4
are connected to Arduino digital pins D6
to D9
.S
(Signal) pin is connected to Arduino digital pin D10
.5V
and GND
pins are connected to the corresponding power supply pins on the Arduino.COM
(Common) pin is connected to the -
terminal of the solenoid lock.NO
(Normally Open) pin is connected to the +
terminal of the 12V battery.+
terminal is connected to the NO
terminal of the relay module.-
terminal is connected to the COM
terminal of the relay module and the -
terminal of the 12V battery.void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
No additional code documentation was provided.