Professional Documents
Culture Documents
Experiment 8 Keypad Security Code: I. Objectives
Experiment 8 Keypad Security Code: I. Objectives
Experiment 8
Keypad Security Code
I. Objectives:
1. Understand the principle of operation of a numeric keypad.
2. Interface numeric keypads, servo motor, buzzer and LED to an Arduino board.
4x4 Keypad
Pins 1-4
Pins 5-8
are the rows
are the columns
IV. Procedure:
1. Construct the circuit using the Arduino Uno, Breadboard, Servo motor, 4x4
keypad, buzzer, LEDs, and resistors.
2. Create a program that accepts a secret code from a keypad. If the input secret
code is correct a green LED will light and the servo motor rotates 0 degree. Otherwise,
buzzer will turn ON for 5 secs and red LED stays in lit. Initially the Servo motor position
is in 90 degrees and the red LED is ON states. Print the password entered, the Red and
Green LED status, the position of the Servo Motor and Buzzer status in the Serial
Monitor.
SECRET PASSWORD = 4321 followed by ‘#’. If ‘*’ symbol is press a prompt “Enter the
correct password and press #”
V. Circuit Diagram
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
___________________
2. Why it is important to create an instance in programming using a keypad?
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
IX. Conclusion