Introduction: Arduino Alarm - Lab 5
Overview: Instructions on creating an alarm using a Ultrasonic sensor on an Arduino UNO
Uses: Ultrasonic sensor, LED (2), LCD Screen, Potentiometer, Arduino UNO, breadboard, and wires
NOTE: Uses NewPing and LiquidCrystal Libraries
Step 1: Add LCD Screen and Potentiometer
Grab your potentiometer and LCD Screen and add them to your breadboard as shown.
3. PIN 12
4. PIN 11
5. PIN 10
6. PIN 9
11. PIN 8
13. PIN 7
Also, make sure to attach the breadboard's power and ground to the Arduino UNO
Step 2: Add Ultrasonic Sensor
Connect your sensor to the breadboard.
Power - Power
Jumper - Pin 5
Echo - Pin 6
Ground - Ground
NOTE: Angle your sensor so it isn't interfered with by wires
Step 3: Add LEDS
Connect the LEDS!
2. PIN 13
2. PIN 3
Step 4: Code
After you are done setting up your board, just
Simply download this code to get you alarm up and running!