Underwater Ultrasonic Range Finder Module

image

This device was born in the process of working on a computer project for diving, which in its composition should have a narrow-beam sonar-range finder. Whether we were looking badly, or, indeed, there is nothing on the market suitable for the parameters, but in the end, instead of purchasing a ready-made module, we decided to invent our own rangefinder for a diving computer. Moreover, the process of integration into a compact computer case seemed simpler when separating the emitter and the electronic circuit in accordance with the free space inside the case.

While the diving computer is waiting for its time, we got the idea: what if we select a rangefinder in a separate project? Since we had difficulty finding a suitable module for the underwater range finder, someone else must have encountered similar difficulties in searching.

The initial requirements for the module were the following:

  • simple digital interface. Ideally, a UART with text commands / responses.
  • supply voltage - 5 volts
  • as compact as possible waterproof case

In order not to delay with the narration, I cite immediately the original working scheme with some explanations in the text.

image

As you can see, the scheme is a classic version, conditionally divided into three main blocks:

  • Manager
  • Transmitting
  • Receiving

The MK STM32F302K8U6 was chosen as a control element, as a good combination of price, performance and dimensions. The responsibility of this unit is to generate a signal for the transmitting unit, digitize and process the signal from the receiving unit, and provide user applications with access to configure the system and measurement data in a convenient format.

The transmitting unit contains: gate driver, power switches, matching-raising transformer, anti-parallel diode assembly. The last element, generally speaking, is not necessary in such schemes, but, in our case, plays an important role in “disconnecting” the transformer at the reception stage, when the value of the effective voltage on the piezoelectric element is lower than the diode opening voltage, which helps to isolate the input stage of the received signal amplifier from transformer.

The receiving unit is the most demanding to the quality of performance, on which almost everything depends. On the one hand, it must digest hundreds of volts at the input during the generation of the probe pulse. On the other hand, to provide amplification of the signal with an amplitude of the order of a microvolt with an acceptable signal-to-noise ratio and to the level of confident detection and capture on the ADC. Two components are responsible for the ability to remain unharmed at hundreds of volts at the input: a high-voltage capacitor C2, on which the alternating current is limited and a counter-parallel diode assembly that limits the voltage to acceptable values. It should be noted that this circuit is capable of performing its task only in a pulsed mode with a duration of the order of tens of microseconds.

For the signal amplification, there are three cascade active bandpass filters, of which the last two are narrow-band filters of the second order, which provide good frequency selectivity. However, the price of a good frequency selectivity is a more rigorous approach to choosing errors for the frequency-generating components, otherwise it is not possible to ensure the stability of the parameters from instance to instance. Within the budget of the device, the optimal for our task were the errors of 0.1% for resistors and 0.5% for capacitors. Further, according to the scheme: amplitude detector and passive low-pass filter, to suppress carrier residues passing through the detector.

As for the acoustic part of the device, which is not visible on the circuit diagram, here the basic element is the JGK.757681.008-172 piezoelectric disk, 12.9 mm in diameter, 3.1 mm thick, with a resonant frequency of 640 kHz. This element is both a transmitter pulse transmitter and a receiver of the reflected signal. On the water side, it is insulated with a quarter-wave matching element (polyurethane resin). Together with the analog circuit, the emitter / receiver design makes a great contribution to the quality of the device as a whole. The speed of sound in plastic, which is used in the emitter as a matching / insulating element, is 2400 m / s. This determined the thickness of the matching element - 0.9 mm.

image

In the prototype of the printed circuit board, there were some flaws, but we made this device work with the minimum acceptable mode by means of mounted installation. That was enough to capture the characteristics of the pattern.

image

As a stand for measuring the directivity, we didn’t think of anything better than using a plastic trough full of water, in which our rangefinder module is installed as an emitter, and at a short distance from it a receiver — a piezoelectric element connected to an oscilloscope. The rangefinder module can rotate left and right from 0 to 180 °, at this time we remove the oscillogram from the receiver and determine the amplitude of the received signal depending on the angle of rotation of the radiator.





Below is a graph of the final radiation pattern.



Further measurements were carried out in an improvised pool - a plastic pipe filled with water to a height of 1 meter. By the way, we managed to detect three reflections from the bottom and the surface of the water, before the signal completely disappeared.

Since we decided to use the UART interface with simple text commands (at the first stage), it was not too difficult to implement a combination of the rangefinder module with the GUI on a computer made in Processing.

In the photo - an attempt to scan the bottom of a local reservoir using a ship with a rangefinder module installed and a radio transmitter to receive data from the module to a laptop. Unfortunately, in moments of exciting testing of a piece of iron, you least think about the quality of the photos of the process.





And using the app for the smartphone Bluetooth Electronics and the USB-> UART converter, you can realize a more mobile version of the test setup.





At the moment we are working on the following prototype of the rangefinder module, since there is really something to improve.

For example, to realize a gradual amplification of the input signal so that the reflection from the nearest objects does not go off scale, and the amplification from distant objects is maximum. Maybe use a cheaper element base. Consider the option of filling the interior with a compound or silicone oil to seal and withstand high pressure.

See you in the next issue!

Also popular now: