Introduction: Ultrasonic Ping With Arduino (Basic)

This Instructable will go over how to get the Arduino software to read a Ping from an Ultrasonic Sensor and an Arduino Uno.

What you'll need:

  • Arduino software
  • Arduino Uno
  • Bread Board
  • 3 jumper wires
  • USB A to B
  • Ping.ino

Step 1: Connecting the Ultra Sonic Sensor to You Arduino Uno

  1. Plug your sensor into the Bread board so there are still open holes behind it.
  2. Insert 3 different colored jumper wires behind the connecting pins of the Sensor in the Bread Board.
  3. Noting which cable corresponds to which sensor insert the correct wire into the Arduino Uno Board
    • GND to GND
    • VCC to the correct power (in my case 5V)
    • SIG to a Digital Pin (I am using Digital Pin 2)

Step 2: Upload the Ping.ino to Arduino

Upload the Ping.ino file to your device using the Arduino software. You can either open the file or copy the text and paste it into the editor.

  1. Check your Port by going to Tools > Serial Port
    • I found that Com 5 works best for me
  2. Click on the Check mark to verify there are no issues with the sketch
  3. If there are no errors you can Click on the Arrow to upload to the Arduino

Step 3: Checking the Values

Once uploaded you can check the values by clicking on the Magnifing glass on the top right of the window or by using the keyboard shortcut.

  • PC = ctrl+shift+m
  • MAC = CMD+shift+m

When the monitor is open, if you are not getting any data make sure the Baud rate is set to the same as in the code

Comments

author
seamster made it! (author)2014-10-10

Nicely done. Thanks for sharing this!

About This Instructable

2,145views

28favorites

License:

Bio: Hello everyone, Thanks for checking out my work on here. I am a Graduate Architecture student at the Academy of Art University in San Francisco ... More »
More by chris.kelusak:Controlling simple geometry in Rhino using an Ultra Sonic SensorUltrasonic Ping with Arduino (Basic)Reading Ultrasonic Sensor Data to FireFly
Add instructable to: