Site Navigation

Your Account

Choose Language

Introduction

Today you will have found a Ultrasonic Range finder! This little module can tell you when something is close. It might be time to catch that Christmas Elf

Tools

No tools required.

Parts

Video Overview

Connect Arduino 5V to the Ultrasonic Range Finder.
  • Connect Arduino 5V to the Ultrasonic Range Finder.

Add Comment

Connect Arduino Digital 12 to the Ultrasonic Range Finder's Trig Pin.
  • Connect Arduino Digital 12 to the Ultrasonic Range Finder's Trig Pin.

Add Comment

Connect Arduino Digital 11 to the Ultrasonic Range Finder's Echo Pin.
  • Connect Arduino Digital 11 to the Ultrasonic Range Finder's Echo Pin.

Add Comment

Connect Arduino GND to the Ultrasonic Range Finder's GND.
  • Connect Arduino GND to the Ultrasonic Range Finder's GND.

Add Comment

  • This code will measure the distance from an object and print out the value to your Serial Monitor.

  • Copy and paste the code into your Arduino Software.

  • Upload the code to your Arduino.

  • Open your Serial Monitor at a Baud of 9600.

Add Comment

Conclusion

Today you should be able to connect your Ultrasonic Distance Sensor and get reading from it.

8 other people completed this guide.

Madeleine Schappi

Member since: 09/27/2017

4,557 Reputation

55 Guides authored

Team

Advent Edit Member of Advent Edit

Community

3 Members

55 Guides authored

One Comment

Hi Maddy,

My serial monitor is on 9600 however I only get the following reading:

The Distance Is: 0

The Distance Is: 0

T….

Also just wondering if you could tell me how to vary the seconds for each reading.

Thanks ZoeM

ZoeM - Reply

Add Comment

View Statistics:

Past 24 Hours: 0

Past 7 Days: 2

Past 30 Days: 8

All Time: 111