Locked Door Opener


My Idea
My goal with this type of circuit was to create a functioning system with practical applications rather than focusing purely on looks. I gathered inspiration from numerous internet circuits to develop the idea and goal of what I intended to create.
I explored online for ideas for this summative. The video "Arduino Car Parking System" caught my attention since the developer demonstrated the basic functioning of a servo to open a gate or door. It gave me an idea of what I could make. I also viewed a bunch of videos about various sorts of secured door openers, some of which use RFID, such as this one.
Through researching and taking ideas from previous circuits, I combined and altered multiple concepts to construct a multipurpose door opener circuit appropriate for a wide range of applications, including household and security.
What It Does
This circuit will require the user to enter a combination on a dip switch to open a door using a servo motor. If the combination is correct, the red LED will turn off and the green LED will turn on, along with the servo opening for 5 seconds. If the code is wrong, the red LED will stay on and you can try again.
Supplies

Connecting Power and Ground

Connect the power, ground, and jumper wires from the Arduino to the opposite end of the breadboard.
Connecting the 7 Segment and Smaller Components

Pin on the 7 Segment - Pin on the Arduino:
1 - 9 6 - 12
2 - 10 7 - 13
4 - 11 9 - 7
5 - Nothing 10 - 8
Connect the middle pins to power via two 330-Ohm resistors.
Make the power and ground connections for the dip switch and servo.
Connect the Dip Switch


Connect the dip switch to the breadboard via jumper cables and pinheads. Wires connecting the dip switch and Arduino should be connected through the pins between the four 10k-Ohm ground resistors and the switch end.
Pin on the Dip Switch - Pin on the Arduino:
1A - 3 3A - 5
2A - 4 4A - 6
The second visual provides a closer look at the Arduino connections.
Connect the Servo

Connect the male pinhead to the servo pin and attach it to the breadboard. The servo's three distinct colours are associated with three different connections:
Orange - Connection to Arduino Pin A1
Red - Connection to Power
Brown - Connection to Ground
Connect the LEDs

Connect the cathodes to the ground using two 330-Ohm resistors.
Connect the LEDs to the Arduino

Connect the anode of the green LED to pin 2 on the Arduino.
Connect the anode of the red LED to pin A2 on the Arduino.
Write the Code
Libraries Required: Servo Library
To code the servo, we will use Arduino's built-in Servo library. This library is already included with the Arduino IDE and does not require installation.
Downloads
Create the Prop


