Arduino Alarm - Lab 5

53

1

Posted in TechnologyArduino

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.

LCD Pins:

1. GROUND
2. POWER
3. PIN 12
4. PIN 11
5. PIN 10
6. PIN 9
7. EMPTY
8. EMPTY
9. EMPTY
10. EMPTY
11. PIN 8
12. GROUND
13. PIN 7
14. Potentiometer
15. POWER
16. GROUND

Potentiometer Pins:

1. POWER
2. GROUND

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!

LED 1:

1. Ground
2. PIN 13

LED 2:

1.Ground

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!

Share

    Recommendations

    • Woodworking Contest

      Woodworking Contest
    • Microcontroller Contest

      Microcontroller Contest
    • Make it Move Contest

      Make it Move Contest
    user

    We have a be nice policy.
    Please be positive and constructive.

    Tips

    Questions

    Comments

    Great design. Do you have any pictures of this actually assembled?