Ultrasonic Sensor Interfacing and Programming Guide

vex ultrasonic sensor us interfacing n.w
1 / 8
Embed
Share

Discover how to interface and program the Vex Ultrasonic Sensor, understanding its working principle, connection to the controller, and programming steps for effective distance measurement in robotics projects.

  • Ultrasonic Sensor
  • Interfacing
  • Programming
  • Robotics
  • Distance Measurement

Uploaded on | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. Vex Ultrasonic Sensor (US) Interfacing and Programming

  2. Ultrasonic Sensors Generally have a transmitter and receiver. d = (v)(t) Round-Trip Distance Transmits a high- frequency sound. d = (v)(t)/2 One-Way Distance Waits to receive echo. Calculates distance based on time it took to receive the echo. d = distance, v = speed of sound, t = time to receive echo 2

  3. The Vex Ultrasonic Sensor INPUT Sends ultrasonic wave Connect to digital output of the controller OUTPUT Receives the echo Connect to the input of the controller The labeling is a bit counter-intuitive! 3

  4. Connecting the sensor to the controller

  5. Ultrasonic Sensor Programming The following statement starts an ultrasonic sensor i.e., the sensor starts sending and recording the sound signals. Sensor connected to output port 6 through which it receives digital control signals from the controller. StartUltrasonic ( 5, 6 ) ; Sensor connected to input port 5 Select start Youssefi 5

  6. Ultrasonic Sensor The following statement is used to read a value from the sensor Range = GetUltrasonic ( 5 , 6 ); The sensor is connected to output port # 6 on the controller Variable into which the translated value is stored Input to Ultrasonic port #5 Select Get option Define variable Range Youssefi 6

  7. Cortex Controller Select Config to Change input port #6 to an output port Change port 6 from input to output by clicking on the circle Digital ports taken by the IRB Hsu/Youssefi 7

  8. Input to Ultrasonic sensor connected to output port 6 on controller Output from Ultrasonic sensor connected to input port 5 on controller Checking if the obstacle is near or far Hsu/Youssefi 8

Related


More Related Content