Measure Distance with UltraSonic Distance Sensor (Serial Ascii O/P)

Rhydolabz’s “ECHO”(Ascii) Ultrasonic Distance Sensor with Ascii serial O/P is an amazing product that provides very short to long-range detection and ranging. The sensor provides precise,Stable non-contact distance measurements from about 2cm to 400 cm with very high accuracy. Its compact size, higher range and easy usability make it a handy sensor for distance measurement and mapping. The board can easily be interfaced to microcontrollers RX pin (USART). At every 50ms sensor transmits an ultrasonic burst and send out Ascii value of distance that corresponds to the time required for the burst echo to return to the sensor. 

This sensor is perfect for any number of applications that require you to perform measurements between moving or stationary objects. Naturally, robotics applications are very popular but you’ll also find this product to be useful in security systems or as an infrared replacement if so desired. Since it is very stable ,the “ECHO” Ultrasonic sensor module can be used for Micromouse application instead of IR sensor.

Features:

  • Professional EMI/RFI Complaint PCB Layout Design for Noise Reduction
  • Range: 2 cm to 400 cm 
  • Accurate and Stable range data
  • Data loss in Error zone eliminated
  • Modulation at 40 KHz
  • Mounting holes provided on the circuit board
  • Automatically Triggered at every 50 ms
  • 5V DC Supply voltage
  • Current  <20mA
  • Ascii output format
  • Operating temperature 0° C to 70°C
  • On Board Burst LED Indicatorshows measurement in progress
  • 3-pin header makes it easy to connect using a servo extension cable, no soldering required
PIN Diagram:
  • UltraSonic Distance Sensor (Serial Ascii O/P) PIN descriptions are as below
 Layout:

PRACTICAL CONSIDERATION FOR USE:

Object Positioning :
The ECHO sensor cannot accurately measure the distance to an object:

  • That has its reflective surface at a shallow angle so that sound will not be reflected back towards the sensor (Angle θ < 90°) or is more than 4 meters away,that is shown below
  • Is too small to reflect enough sound back to the sensor.
    In addition, if your ECHO sensor is mounted low on your device, you may detect sound reflecting off the floor.Positioning of Ultrasonic Distance Sensor(Ascii O/P) as shown below
Output Format:
  • The serial output data consist of six Ascii bytes ie xxx.x<CR>
  • The distance output is in centimeters (cm)
  • The output baud rate is 9600 bps.

Example for Output values 

 Description:
Error Case: 

  • The serial output data consist of four Ascii bytes ie ERR<CR>
  • The output baud rate is 9600 bps.
  • The sensor outputs the error message only if the distance is out of range ie above 4.3 m
The output is as per the table below:
How to test:
 1. Testing UltraSonic Distance Sensor ( Serial Ascii O/p) using PC
  • USB to Serial Converter (5V/3V3) is used to connect  UltraSonic Distance Sensor ( Serial Ascii O/p) . When USB cable is connected to the converter, “PWR LED”(Blue) on the top of converter module glows, which shows the power indication.
  • Here a sample test is shown using RhydoLabz USB to Serial Converter (5V/3V3).The connection details of UltraSonic Distance Sensor (Serial Ascii O/p)  module with USB to Serial Converter (5V/3V3) and interfacing requirements of UltraSonic Distance Sensor (Serial Ascii O/p) to PC are shown below.
  • Many embedded devices communicate over the serial port connection as most modern computers lack a hardware serial port; USB adapters provide the serial interface. The USB to Serial Converter (5V/3V3) makes USB communication with a serial device,that is shown below
  • For a quick tutorial on USB to Serial Converter (5V/3V3) and connection details please read the blog…
  • The “PWR” pin of USB to Serial Converter is connected to “5V” pin of the UltraSonic Distance Sensor ((Serial Ascii O/p)(Red jumper wire)) GND pin is directly connected GND pin(Black jumper wire), of sensor. “SIG” pin of sensor is connected to the “RX” pin(Blue jumper wire) of the USB to Serial Converter. That connection is shown below.
 When ultrasonic sensor connected with PC,the distance value is displayed  on serial monitor  is as shown below.
 
2.Testing UltraSonic Distance Sensor (Serial Ascii O/P) using Arduino
  • Arduino board suitable with any micro-controller is used to connect UltraSonic Distance Sensor (Serial Ascii O/P) and data is available at SIG pin of sensor module which is connected to Rx pin of the Arduino board.“5V” pin of the UltraSonic Distance Sensor ( Serial Ascii O/p) connected to the 5V of Arduino board and GND pin of sensor  is directly connected GND of Arduino board.
  • Testing with Arduino board, sample program is shown below.

  •  With Arduino board  receive distance value from sensor,the data is displayed  on serial monitor as shown below
3.Testing UltraSonic Distance Sensor (Serial Ascii O/P) using PIC16F877A
  • When interfacing UltraSonic Distance Sensor (Serial Ascii O/P) with PIC16F877A  microcontroller, The “SIG”  pin of the sensor is connected to RX pin of the microcontroller, connection diagram is shown below.
  • Testing UltraSonic Distance Sensor (Ascii O/P)  with PIC16F877A, sample program is shown below.

  • With  PIC16F877A microcontroller receive UltraSonic Distance Sensor (Serial Ascii O/P)data,the data are displayed on serial monitor is as shown below.

How to Buy:

Click here to buy rhydoLABZ UltraSonic Distance Sensor (Serial Ascii O/P)
Click here to buy rhydoLABZ USB to Serial Converter (5V/3V3)
Click here to buy rhydoLABZ UltraSonic Distance Sensor (PWM O/P) 

 Support:

Please share your ideas with us, visit our forum for discussion

Frequently Asked Questions(FAQ):

Q.Which type of target object material will effect this sensor?
Ans.In addition, objects that absorb sound or have a soft or irregular surface, such as a stuffed animal, may not reflect enough sound to be detected accurately. The ECHO sensor will detect the surface of water; however it is not rated for outdoor use or continual use in a wet environment. Condensation on its transducers may affect performance and lifespan of the device.

Q.What are the measurable distance of UltraSonic Distance Sensor (Serial Ascii O/P) ?
Ans.The sensor provides precise,Stable non-contact distance measurements from about 2cm to 400 cm with very high accuracy. 

Q.Whether UltraSonic Distance Sensor (Serial Ascii O/P) need external triggering?
Ans.No,it comes with programmed IC, so when we power it, it will give the distance value through “SIG ” pin.It will automatically triggered in every 50 ms.


Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">