Easy Arduino Sentry Gun

4,820

26

59

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

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

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

Be the First to Share

    Recommendations

    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    59 Discussions

    None
    JUN HAOL

    7 weeks ago

    I need the code . Thanks

    None
    Mike_BladeVikramU1

    Answer 3 months 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.

    None
    Mike_Blade

    3 months ago

    @Jelmer8 Cool project! This inspires me to sharpen my Arduino skills. I would greatly appreciate if you can email me the code? Thanks and with best wishes

    mikem111401@gmail.com

    -Mike_Blade

    None
    Sanjeeb97

    1 year ago

    sanjeeb97@gmail.com