How to Use an Ultrasonic Sensor With Arduino

Introduction: How to Use an Ultrasonic Sensor With Arduino

HC-SR04 Ultrasonic sensors can measure distances fairly accurately and are very useful in many Arduino projects. I've used them in autonomous robots, electronic instruments, and many other projects. They have a range of 2 cm - 400 cm (~ 0.8 inches - 13 feet) and work best against flat surfaces.

Step 1: Video

This video should help explain how to use an ultrasonic sensor.

If you have any questions leave a comment here or on the video and I'll help you as soon as possible!



    • Creative Misuse Contest

      Creative Misuse Contest
    • Water Contest

      Water Contest
    • Fix It! Contest

      Fix It! Contest

    4 Discussions


    2 years ago

    i like the effort you took by drowning arduino :) next time try

    1 reply

    Haha, I know about Fritzing, I just wanted to keep continuity throughout the video. Thank you though!


    2 years ago

    Nice video. I like when authors use hand-made pictures; It is more personal, it isn't so boring.

    1 reply

    Thanks for the feedback! I'm glad people like the drawings. I have a lot of fun making them!