O'Reilly logo

Arduino Project Handbook by Mark Geddes

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

PROJECT 20: SENTRY GUN

A SENTRY GUN IS AN UNMANNED WEAPON CAPABLE OF AUTONOMOUSLY SENSING AND FIRING UPON ENEMY TARGETS USING ULTRASONIC DETECTION. IN THIS PROJECT, WE’LL CREATE A MINIATURE VERSION OF THIS GUN.

image
image

PARTS REQUIRED

• Arduino board

• Mini breadboard

• Jumper wires

• Male-to-male jumper wires

• Four-pin HC-SR04 ultrasonic sensor

• WLToys RC V959 missile launcher

• Tower Pro SG90 9g servomotor

LIBRARIES REQUIRED

• Servo

• NewPing

HOW IT WORKS

We’ll attach the toy missile launcher and the ultrasonic sensor to a servo arm (see Figure ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required