Impingement deterrent system with keypad disarm using Arduino

in #utopian-io6 years ago (edited)

What will I learn

  • You will learn how to use a motion sensor.

  • You will learn how to implement a keypad membrane.

  • You will get insight to the program code.

  • You will learn how these parts works together and form an anti impingement system.

Requirement

  • Arduino uno

image

Image source

  • 4×3 Keypad membrane

image

Image source

  • PIR motion detector

image

Image source

  • Buzzer

n4jklmgikzpz0kawocnu.jpg

Image source

  • LCD display

images.jpeg

Image source

  • Connecting cables
    ffaa1ivemdzcoyfqzvuh.png

Image source

  • USB cable Type A to B

images (1).jpeg

Image source

  • A computer

799px-Lenovo_G500s_laptop-2905.jpg

Image source

  • Software

Arduino software/IDE

Knowledge

  • Knowledge of Electronics Engineering

  • Knowledge of programming

Difficulty

Intermediate

Tutorial Contents

The project is an embedded system consisting of a microcontroller, motion detector and LCD which can control the Buzzer depending on the presence of an impingement within six meters of range. By using this procedure valuable properties and homes can be secured as the Buzzer is triggered when there is an impingement.

  • Steps

1 . Gather all the components

d6de9nwf9ztau8rrowgs~2.jpg

2 . Connect keypad to Arduino board

mtjfebklqr8xzawkzmdd~2.jpg

3 . Connect PIR motion detector to Arduino board

Pin 1: 5V VCC in Red
Pin 2: output in Yellow
Pin 3: GND in black

mavdc2eululilne9ymsw~2.jpg

4 . Connect Buzzer to Arduino board

Pin 1: 5V VCC in Red
Pin 2: GND in black

zo93xqfkpev4cwratwxe~2.jpg

5 . Connect LCD to Arduino board

idmag1felqohdomk1ic6~2.jpg

Complete system connection

akytbejmjekm5fkrigwf~2.jpg

6 . Programming

  • Keypad library setup.

i. Download the keypad library here

ii. Extract the keypad library

iii. Install the keypad library into Arduino IDE by moving extracted folder into Arduino\libraries

iv. Restart your Arduino IDE

  • connect the set up to your computer

o9ltzf13zvrljejwmsxb.png

  • open the Arduino IDE, go to Tools>board>select Arduino Uno

glnap87wmchedzrlpwn1.png

  • copy my code here and paste into the IDE

The program code does the following:

  1. It initializes the Microcontrollers
  2. It initializes the Keypad
  3. It asks you to Input New Password
  4. It asks you to confirm Password
  5. It initializes the Sensor PIR
  6. It initializes the LCD
  7. It Setups a Continuous loop
  8. It reads data from Sensor
  • Condition 1

-. Is there any motion?

A. If YES: It initiates a buzzer sound

B. If No: It continues the Loop

  • Condition 2

-. Is Correct password inserted?

A. If YES: It deactivates buzzer

B. If No: It continues the Loop

Loop continues to 1

  • save and compile the code

lzhaekqwqjgdqdicye9p~3.png

  • this will check for errors in the code

  • If there are no error found, upload unto the Arduino board

7 . Testing

Having followed all the steps rightly, power on the project. It will display as shown and it will ask for new user password.

Sort:  

Thank you for the submission.

Contributions in the tutorials category are expected to teach significant aspects of an open source project. For this reason, tutorials teaching general electronics and/or a certain circuit build/module are not considered proper in the category. Tutorials in Utopian should focus on teaching the software not the build or module since Utopian rewards contributions based on their additional value on the software.

Contributors also expected to provide the GitHub repository of the project they contribute to, as a link in the beginning of the post.

Guideline Reference:

  • Submissions addressing only circuit design and/or the build of specific electronic modules will be not be considered for potential reward.

As stated in the Utopian Guidelines, this kind of tutorials are not considered in the voting phase.

I hope I provide enough clarifications to help you through with your future contributions.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Thank you for the clarification

Coin Marketplace

STEEM 0.30
TRX 0.12
JST 0.034
BTC 64038.60
ETH 3148.89
USDT 1.00
SBD 3.97