Introduction: Easy Arduino Sentry Gun

Picture of Easy Arduino Sentry Gun

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

Step 1: Parts

Picture of 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

Picture of Wiring / Building Your Project

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


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:

Please subscribe. :)

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


Sanjeeb97 (author)2017-11-27

惠喻謝 (author)2017-03-08

please send me the code for the afore mentioned sentry gun



scratchndent (author)2017-02-09

please send me the code for the afore mentioned sentry gun


AnupH (author)2016-02-22

sir i want code so plz send me the code

scratchndent (author)AnupH2017-02-09

dude u need to put your email

JohnH746 (author)2016-12-05

please send code, thank you for your hard work!

VigneshS44 (author)2016-10-14

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

MuraliN5 (author)2016-08-01

Dear Sir,

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

Thanks & regards



TzuyuL (author)2016-07-31


Can you please send me the code. Thanks

TejeshB (author)2016-07-04

Need the code asap

Thanks in advance(I hope)

NuttaponT (author)2016-03-05
Thank you

lmangione (author)2016-02-12

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

Jelmer8 (author)lmangione2016-02-12

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

lmangione (author)Jelmer82016-02-18

Did you find it? I really need it

serius.mysterius (author)2016-01-11

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

Do you have the code? Can you send it to me?

vivekn11 (author)2016-01-28

Sir plzzzzz send me code of this project... ( easy arduino sentry gun)
Its urgent sir

lmangione (author)vivekn112016-02-15

Do you have the code? Can you send it to me?

cactusjack8 (author)2016-01-09


can you please send me the code. tnx

mgt2002 (author)2015-12-19

how long would it take to get the code?


mgt2002 (author)2015-12-19

hello can you please send me the code.

LiamGlenister (author)2015-12-01

can you please send me the code. Have you posted any more Arduino projects since this?

ZohdiZ (author)2015-11-02

ASAP for coding please

OKANTEL (author)2015-10-20

Wery well project bro.Anymore i will fallow you :)

BalkanG (author)2015-06-27 PLEASEEE CODEEE PLEASEEE

please can you give me code to this project

arduinoproject (author)2015-05-11

plz send code ASAP

this is for a school project

would be greatly appreciated

thanks in advance



deeznutz42069 (author)2015-05-07

need code plz ASAP


thx a lot

email ^^ is incorrect

need asap plz thx

sorry about the email, its only used for this project lol

its legit first thing that came to mind

MasonF (author)2015-05-07

send cod please

deeznutz42069 (author)MasonF2015-05-11

did he send u the code??

MyWither (author)2015-04-16

Ankitjust (author)2015-04-04

Send me code

Ankitjust (author)2015-03-31

Ankitjust (author)2015-03-29

Amazing project plz send me code

Jelmer8 (author)Ankitjust2015-03-30

can you give me your mail so i can send the code?

Ankitjust (author)2015-03-29

Amazing project

khor.haoze (author)2015-03-28

Can I get the code I'm currently new to Arduino

radenmuhammad.rizkyii (author)2015-02-26

great project,can you send your code to, i want mount pan and tilt servos to this project

ahmad31 (author)2015-01-30

i want code

jsawyer13 (author)2015-01-25

I like the idea; but it would help with some more detail.
Just copy and paste your code directly to the 'step' Page.
A hand drawn schematic would work, few of us are artists so don't worry about making it pretty as long as we can all see it.
Then we can all properly appreciate and learn from your hard work. Thanks!

About This Instructable




More by Jelmer8:Easy arduino sentry gunEasy bluetooth Sumobot
Add instructable to: