Easy Arduino Sentry Gun

4,545

26

51

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.

On a Budget Contest

Participated in the
On a Budget Contest

Rubber Bands Challenge

Participated in the
Rubber Bands Challenge

Share

    Recommendations

    • Frozen Treats Challenge

      Frozen Treats Challenge
    • 1 Hour Challenge

      1 Hour Challenge
    • Beauty Tips Contest

      Beauty Tips Contest

    51 Discussions

    0
    None
    VikramU1

    Question 9 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
    惠喻謝

    2 years ago

    please send me the code for the afore mentioned sentry gun

    email: eva04032575@gmail.com

    Thanks!

    0
    None
    scratchndent

    2 years ago

    please send me the code for the afore mentioned sentry gun

    email: scratchndentplayzmc@gmail.com

    0
    None
    AnupH

    3 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