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.

Comments

author
惠喻謝 (author)2017-03-08

please send me the code for the afore mentioned sentry gun

email: eva04032575@gmail.com

Thanks!

author
scratchndent (author)2017-02-09

please send me the code for the afore mentioned sentry gun

email: scratchndentplayzmc@gmail.com

author
AnupH (author)2016-02-22

sir i want code so plz send me the code

author
scratchndent (author)AnupH2017-02-09

dude u need to put your email

author
JohnH746 (author)2016-12-05

please send code, thank you for your hard work!

mrcoryrussell@gmail.com

author
VigneshS44 (author)2016-10-14

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

Blackjack250198@gmail.com

author
MuraliN5 (author)2016-08-01

Dear Sir,

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

murali.srirannaidu@gmail.com

Thanks & regards

MURALI

+919141937225

author
TzuyuL (author)2016-07-31

Hello:

Can you please send me the code. Thanks

leona6799@gmail.com

author
TejeshB (author)2016-07-04

Need the code asap

tcbfighter@gmail.com

Thanks in advance(I hope)

author
NuttaponT (author)2016-03-05

wasuntra34@gmail.com
Thank you

author
lmangione (author)2016-02-12

luigimangione320@gmail.com

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

author
Jelmer8 (author)lmangione2016-02-12

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

author
lmangione (author)Jelmer82016-02-18

Did you find it? I really need it

author
serius.mysterius (author)2016-01-11

xcpex.shin@gmail.com

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

author

Do you have the code? Can you send it to me? luigimangione320@gmail.com

author
vivekn11 (author)2016-01-28

Sir plzzzzz send me code of this project... ( easy arduino sentry gun)
Email- viveknigam420@gmail.com
Its urgent sir

author
lmangione (author)vivekn112016-02-15

Do you have the code? Can you send it to me? luigimangione320@gmail.com

author
cactusjack8 (author)2016-01-09

Hi,

can you please send me the code. tnx

author
mgt2002 (author)2015-12-19

how long would it take to get the code?

Email: mghoraishi@yahoo.com

author
mgt2002 (author)2015-12-19

hello can you please send me the code.

author
LiamGlenister (author)2015-12-01

liamglenister11@gmail.com

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

author
ZohdiZ (author)2015-11-02

zohdizainir@gmail.com

ASAP for coding please

author
OKANTEL (author)2015-10-20

okantel34@gmail.com

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

author
BalkanG (author)2015-06-27

alda.edva@gmail.com PLEASEEE CODEEE PLEASEEE

please can you give me code to this project

author
arduinoproject (author)2015-05-11

plz send code ASAP

this is for a school project

would be greatly appreciated

thanks in advance

email: xlau101@gmail.com

or dominusprime2423@hotmail.com

author
deeznutz42069 (author)2015-05-07

need code plz ASAP

email deeznutz42069ohyah@hotmail.com

thx a lot

author

email ^^ is incorrect

deeznutz42069ohyah@gmail.com

need asap plz thx

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

its legit first thing that came to mind

author
MasonF (author)2015-05-07

send cod please

mason.fitzpatrick@gmail.com

author
deeznutz42069 (author)MasonF2015-05-11

did he send u the code??

author
MyWither (author)2015-04-16

mywither@gmail.com

author
Ankitjust (author)2015-04-04

Send me code ankitjust35@gmail.com

author
Ankitjust (author)2015-03-31

Ankitjust35@gmail.com

author
Ankitjust (author)2015-03-29

Amazing project plz send me code

author
Jelmer8 (author)Ankitjust2015-03-30

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

author
Ankitjust (author)2015-03-29

Amazing project

author
khor.haoze (author)2015-03-28

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

haoze07@gmail.com

author
radenmuhammad.rizkyii (author)2015-02-26

great project,can you send your code to technocolorsky@gmail.com, i want mount pan and tilt servos to this project

author
ahmad31 (author)2015-01-30

i want code

ahmad28x@gmail.com

author
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!