the assignment was about to create a circuit that takes two inputs and gives two outputs or more
this is the model I chose to make. I always wanted to save my money from my brother so I chose the coded bank.
I used tinkerCAD for the simulation
used materials :
keypad 3x3
servo motor
Arduino Uno
jumper wires
red led
buzzer
I used the 9 voltage adaptor as the motor will be more faster and the led will light more powerfully
i didn't use a breadboard to connect them parallel or series, I connected them to the Arduino instantly
this is the link for the tinker cad simulation
if you want to check just enter the password 147 ( my birthday) then enter # for the motor movement and add any 3 random numbers and enter with # to see the led
servo motor connected to pin 10
led is connected to pin 11
keypad from 3 to 9
switch in pin 12
first I included servo and keypad libraries then I defined the rows and columns in the keypad then i defined some chars and integers like digits 1,2,3,enter,state and counter
then I defined the pins inputs and outputs
then i used a void loop to check the digits entered if they are right then the motor moves 90 degrees if wrong then led switches on
there is a condition at first for the switch if high then do the following if not then stop
motor and led
switch
full circuit
pins
keypad
I couldn't find the library of the keypad anywhere and tried many solutions but nothing worked. as watching YouTube videos on how to install libraries manually but it was a long process so i chose to ask the instructor on what to do
we asked the instructor Eng. Ahmed Ibrahim and he told us its there but under other name.
getting to know how to design a circuit