Affordable Ultrasonic Sensor Options | Campus Component
Electronics use the distance measurement and object detection provided by these sensors in robots, automated machinery, car parking assist systems and smart devices. An ultrasonic sensor estimates the distance to an object by emitting an ultrasonic pulse, and then capturing the reflected signal. Because no contact with the detected object is required, this is an excellent sensor for automatic controls and machine vision. Engineers and students develop numerous sensor applications. How does an ultrasonic sensor work?
An ultrasonic sensor operates on a principle of echoing ultrasonic sound waves, sound waves with frequencies above those of humans. There are two main components within an ultrasonic sensor, the ultrasonic transmitter and an ultrasonic receiver. Ultrasonic distance sensors work by timing the travel of an ultrasonic wave in a round trip to an object and back. An ultrasonic sensor is most simply thought of as two components, one part an ultrasonic sound wave transmitter, and the other part an ultrasonic wave receiver, all packaged within the same module.
With the speed of the ultrasonic wave being known, the travel time measurement is used to derive a distance estimate. Because the time measurement accounts for the travel of the pulse both to, and from the object, it is divided in half to find the true travel time for a one-way distance.
Typical, readily-available sensor modules offer trigger and echo pins that make integration with microcontrollers and computer boards easy, but module specific wiring and logic level details must always be checked by reviewing the datasheet before the module is connected to the board to prevent a sensor or board damage.
Prices for ultrasonic sensors will depend upon a number of factors including their maximum range, their precision, the voltage levels at which they operate, and the physical packages in which they come. Some may have industrial high voltage standards for inputs, others lower; Some offer analog outputs, some digital. Pay close attention to the specific details provided by a sensor’s datasheet rather than relying on a general description.
Considering the sensor’s measurement range is important. Sensors with a lower maximum measurement range could be more cost effective if a project only requires proximity sensing or short-range detection, while other projects could require a greater detection range.
Selection is also driven by accuracy and repeatability. For instance, a crude obstacle detection system might accept some deviation, whereas a positioning or process application demands tight repeatability. Don’t generalize, check a maker’s published sensor distance versus an application demanded range.
The same goes for the construction. Typically, standard modules are designed for indoor environments. Industrial types may have sealed cases and more rugged connectors to protect against moisture, dirt, vibration, or sudden changes in temperature. Don’t just buy the cheapest – compare specifications in their entirety.
Commonly, ultrasonic sensors may find use in car parking assist modules to alert a driver if an obstacle comes too close to the vehicle. They may also be found within mobile robots, which utilize a variety of sensors, and the ultrasonic one can detect obstacles and figure out whether to stop, turn, or continue moving.
A few important considerations when selecting an ultrasonic sensor: Firstly identify your object you wish to sense or measure. A small, nearby, robot would be very different than a factory or a tank installation. Choose a sensor whose range encompasses the distance you expect to measure. Size, shape, material and angle of the target surface are very important to sensor selection. Large flat surfaces work better than small, narrow or oddly shaped targets. Soft materials will tend to absorb the sound and the shape and angle of the target may reflect the ultrasonic away from the sensor.
You need to have information about the power source voltage and current available, the output voltage, pinouts, etc., before hooking up the sensor to your microcontroller. Some sensor modules output the sensor’s echo at a voltage level higher than what the microcontroller can tolerate and require level translation or a voltage divider. Considerations such as temperature, moisture, dirt, and other environmental considerations are important. Make certain to choose a sensor built for your environment.
The microcontroller triggers the sensor, reads the duration of the echo, and converts this into a distance measurement. The measurement can then be displayed on an LCD, turn on an LED, or sound an alarm. Follow the timing instructions given in the datasheet, program a timeout to handle cases when no echo is received, and test at known distances to spot any issues in your wiring or code.
An ultrasonic sensor has many applications but there are situations where it is not suitable. Two or more sensors that operate in close proximity will interfere with one another if their pulses are not timed. Scheduling sensor measurements to be at different times will prevent interference. A target object may not give a good echo if it’s small, soft, or odd shaped; and may also fail to reflect the wave back to the sensor if it is at an angle.
Changes in ambient temperature and related change to speed of sound can impact distance calculation and a sensor may be calibrated to temperature for greater accuracy. Also take a sensor’s minimum range into account because objects too close to the sensor may be out of its effective detection range.
We assist customers and educators who are in the early stages of exploring components for electronic design, prototyping, robotics and embedded projects. Always make sure to specify the exact model number after reviewing the component datasheet to verify the specifications match your requirements.
One way to measure distance or detect an object without contact is to use an ultrasonic sensor. These can be used for everything from school demonstrations and small robots, to parking sensors, smart appliances, and industrial equipment monitoring. Understanding how an ultrasonic sensor works, its advantages and disadvantages, will help you choose the right one.
For help with a project, or to learn more about an ultrasonic distance sensor, contact Campus Component. We can direct you to suitable parts, advise you on components and help you select the sensor that best matches your project’s requirements. Keep your project’s budget, installation environment and long term requirements in mind; a bit of homework before the order can save a lot of time during the build, test, and troubleshooting phases and can help you avoid costly re-works.
0 comments
Log in to leave a comment.
Be the first to comment.