Easy Arduino Sentry Gun

4,093

26

48

This instructable will show you how to make an easy low-cost sentry gun.

Step 1: Parts

For this project you need:

- a breadboard

- 7 jumper cables (male to male)

- Arduino Uno

- HC-SR04 ultrasonic sensor

- sg90 Servo

- Elastic pistol

Step 2: Wiring / Building Your Project

I do not have any schematic so i will describe the way of wiring:

Servo:

Ground to ground

VCC to 5Volts

Signal to Digital pin 9

Ultrasonic sensor:

Ground to ground

VCC to 5 Volts

Echo to Digital pin 13

Trigger to Digital pin 12.

Step 3: Code

If you want the code for this project, you can leave your email in the comments and i will send you it.

Step 4: Video

A video of me making the sentry gun:

https://www.youtube.com/watch?v=z9CosAJdVw0&feature=youtu.be

Please subscribe. :)

If there are any questions, you can leave it in the comments.

Share

    Recommendations

    • Safe and Secure Challenge

      Safe and Secure Challenge
    • Epilog X Contest

      Epilog X Contest
    • PCB Contest

      PCB Contest

    48 Discussions

    0
    None
    VikramU1

    Question 4 months ago on Step 3

    What's the use of ultrasonic sensor and the Bluetooth?

    0
    None
    Sanjeeb97

    1 year ago

    sanjeeb97@gmail.com

    0
    None
    惠喻謝

    1 year ago

    please send me the code for the afore mentioned sentry gun

    email: eva04032575@gmail.com

    Thanks!

    0
    None
    scratchndent

    1 year ago

    please send me the code for the afore mentioned sentry gun

    email: scratchndentplayzmc@gmail.com

    0
    None
    AnupH

    2 years ago

    sir i want code so plz send me the code

    1 reply
    0
    None
    JohnH746

    2 years ago

    please send code, thank you for your hard work!

    mrcoryrussell@gmail.com

    0
    None
    VigneshS44

    2 years ago

    Want the code as soon as possible!!please!!

    Blackjack250198@gmail.com

    0
    None
    MuraliN5

    2 years ago

    Dear Sir,

    Please send the sentry gun code for arduino to the below mentioned emil-id

    murali.srirannaidu@gmail.com

    Thanks & regards

    MURALI

    +919141937225

    0
    None
    TzuyuL

    2 years ago

    Hello:

    Can you please send me the code. Thanks

    leona6799@gmail.com

    0
    None
    TejeshB

    2 years ago

    Need the code asap

    tcbfighter@gmail.com

    Thanks in advance(I hope)

    0
    None
    NuttaponT

    2 years ago

    wasuntra34@gmail.com
    Thank you

    0
    None
    lmangione

    2 years ago

    luigimangione320@gmail.com

    this is my mail, can you send me the code, please?