Locked Door Opener

by AaryMin202 in Circuits > Arduino

130 Views, 0 Favorites, 0 Comments

Locked Door Opener

IMG_4320.jpg
IMG_4289.jpg

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

IMG_4288.jpg

Connecting Power and Ground

jumper.jpg

Connect the power, ground, and jumper wires from the Arduino to the opposite end of the breadboard.

Connecting the 7 Segment and Smaller Components

IMG_4290.jpg

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

IMG_4291.jpg
IMG_4292.jpg

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

IMG_4293.jpg

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

IMG_4294.jpg

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

Connect the LEDs to the Arduino

IMG_4295.jpg

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

IMG_4317.jpg
IMG_4318.jpg
IMG_4319.jpg