Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 63 - Ai Robogenius
P. 63

    ULTRASONIC DISTANCE MEASUREMENT SYSTEM

                     An Ultrasonic Distance Measurement System uses an ultrasonic sensor to measure the distance
                     of objects. The system emits sound waves and calculates the time it takes for the waves to reflect
                     back. If an object is detected within a certain range, a piezo buzzer sounds to alert the user.

                     Components Used
                     The different components used in the project are:

                        Arduino Uno: Processes data from the ultrasonic sensor and controls the piezo buzzer.

                        Ultrasonic Sensor (HC-SR04): Measures distance by emitting sound waves and detecting
                        their reflection.
                        Piezo Buzzer: Emits a sound when an object is detected within a set distance.

                        Breadboard and Jumper Wires: Used to connect all components together and to the Arduino.
                     To build the Ultrasonic Distance Measurement System, follow the given steps:

                       STEP - 1    Connect the VCC pin of the Ultrasonic Sensor to the positive rail of the breadboard.

                      STEP - 2    Connect the TRIG pin of the Ultrasonic Sensor to pin 2 on the Arduino using a yellow
                                  jumper wire.

                      STEP - 3    Connect the ECHO pin of the Ultrasonic Sensor to pin 3 on the Arduino using a
                                  purple jumper wire.

                      STEP - 4   Connect the GND pin of the Ultrasonic Sensor to the negative rail of the breadboard.

                      STEP - 5   Connect the 5V pin of the Arduino to the positive rail of the breadboard using a red
                                  jumper wire.

                      STEP - 6   Connect the GND pin of the Arduino to the negative rail of the breadboard using a
                                  black jumper wire.

                       STEP - 7   Connect the positive leg of the Piezo Sensor to pin 4 on the Arduino and the negative
                                  leg to the negative rail of the breadboard.

                                                                         Getting Started with Arduino in Tinkercad
                                                                                                                        61

| 58 59 60 61 62 63 64 65 66 67 68 |