Easy Arduino Sentry Gun

8,208

27

45

Introduction: Easy Arduino Sentry Gun

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.

Be the First to Share

    Recommendations

    • Build a Tool Contest

      Build a Tool Contest
    • Colors of the Rainbow Contest

      Colors of the Rainbow Contest
    • Pets Challenge

      Pets Challenge

    45 Comments

    0
    appasahkel
    appasahkel

    2 years ago

    the code please

    0
    JUN HAOL
    JUN HAOL

    2 years ago

    I need the code . Thanks

    0
    VikramU1
    VikramU1

    Question 3 years ago on Step 3

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

    0
    Mike_Blade
    Mike_Blade

    Answer 2 years ago

    sorry for the late reply. The US sensor allows the Arduino to produce an idea of its surroundings. You can almost compare them to the "eyes" of the sentry. With Bluetooth, i assume it allows you to control it wirelessly.

    0
    Sanjeeb97
    Sanjeeb97

    4 years ago

    sanjeeb97@gmail.com

    0
    惠喻謝
    惠喻謝

    5 years ago

    please send me the code for the afore mentioned sentry gun

    email: eva04032575@gmail.com

    Thanks!

    0
    scratchndent
    scratchndent

    5 years ago

    please send me the code for the afore mentioned sentry gun

    email: scratchndentplayzmc@gmail.com

    0
    AnupH
    AnupH

    6 years ago

    sir i want code so plz send me the code

    0
    scratchndent
    scratchndent

    Reply 5 years ago

    dude u need to put your email

    0
    JohnH746
    JohnH746

    5 years ago

    please send code, thank you for your hard work!

    mrcoryrussell@gmail.com

    0
    VigneshS44
    VigneshS44

    5 years ago

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

    Blackjack250198@gmail.com

    0
    MuraliN5
    MuraliN5

    5 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
    TzuyuL
    TzuyuL

    5 years ago

    Hello:

    Can you please send me the code. Thanks

    leona6799@gmail.com

    0
    TejeshB
    TejeshB

    6 years ago

    Need the code asap

    tcbfighter@gmail.com

    Thanks in advance(I hope)

    0
    NuttaponT
    NuttaponT

    6 years ago

    wasuntra34@gmail.com
    Thank you

    0
    lmangione
    lmangione

    6 years ago

    luigimangione320@gmail.com

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

    0
    Jelmer8
    Jelmer8

    Reply 6 years ago

    Dont know if I still have it, Im going to look tomorrow for it

    0
    lmangione
    lmangione

    Reply 6 years ago

    Did you find it? I really need it

    0
    serius.mysterius
    serius.mysterius

    6 years ago

    xcpex.shin@gmail.com

    Hi Sir, can you please send me the code. Thank you in advance.