June 2016
Intermediate to advanced
272 pages
5h 4m
English
In this project, we’ll use an ultrasonic sensor to detect an intruder.


PARTS REQUIRED
• Arduino board
• Breadboard
• Jumper wires
• Four-pin HC-SR04 ultrasonic sensor
• Servomotor
• Red LED
• Green LED
• 2 220-ohm resistors
We’ll connect the intruder sensor to a servo and some LEDs so that when someone comes within a certain distance, a green LED turns off, a red LED turns on, and the servomotor moves (see Figure 18-1).
FIGURE 18-1:The LEDs alert you to an intruder.
This project is versatile and can be ...
Read now
Unlock full access