title | author | |
---|---|---|
Initial Acoustics Implementation |
Syed Jawad Akhtar |
Acoustics is the branch of physics related to the study of mechanical waves in gases, liquids, and solids. Underwater Acoustics is the scientific study of natural and man-made sounds underwater. Applications include sonars to locate submarines, underwater communications by whales, et Cetra. To make our AUVs of industrial level standards and perform properly among the different sounds produced underwater, various competitions all around the world incorporate acoustic localization tasks in the arena. For example in Singapore AUV Challenge, acoustic pingers located at different props are used for target acquisitions task and localization task). Similarly, the Robosub competition conducted by AUVSI also plants different frequency pingers to guide the vehicle around the arena. Check out Resources - RoboSub link for their configurations as they change the theme every year.
The types of equipment used are comparatively costly and complicated to make this system fuse with the operations of the vehicle. For this reason, the points to accomplish the tasks including a pinger is higher as compared to other tasks.
!!! seealso "Check out" SAUVC Rulebook and mission and scoring of Robosub competitions.
Our first objective is to use the optimum number of hydrophones to detect two pingers emitting 37.5 kHz and 40 kHz frequencies(Specifications), respectively.
The tasks:
-
Yellow Flare - localization task This task aims to localize a yellow flare. There is only ONE yellow flare is marked with an acoustic pinger. This flare could be located anywhere within the main arena. The AUV should locate and bump the flare causing the golf ball on the flare to drop out. The flares will be yellow in color.
Points would be awarded as follows. If the AUV successfully causes the ball to drop from : flare with the pinger: 40 Points [This task from the rulebook of SAUVC 2018]Fig. 1: Dimensions of the yellow flare. (Source) Fig. 2: Yellow flare underwater. (Source) -
Red Drums - target acquisitions task There are 4 colored drums in the arena. All of them are on a green mat of size 8m x 2m. One of the drums, chosen at random, will be blue in color, while the rest are red in color. One of the red drums, chosen at random, will contain an acoustic pinger. The AUV needs to drop a ball in one of the drums to complete this task. The location of the red drum which contains the acoustic pinger may be randomized between attempts, as may be the order of the drums.
Points will be awarded as follows:- Drop the ball in the blue drum: 30 Points
- Drop the ball in the red drum with the pinger: 50 Points
- Dropping the ball in any other red drum: 10 Points
Fig. 3: Drums placed on the green mat underwater. (Source) |
Fig. 4: Target zone dimensions w.r.t. drums (Source) |
We checked Robosub journals of previous years of different teams - (Past Programs - RoboSub) (You may check with our club's archives to get old journals not present on the website).
-
H2C hydrophones from Aquarian Audio with 3.5 mm TRS output connection. Key features: Groves for easy mounting, 3.5mm connector & range of detection (10 kHz - 100 kHz)
-
NI myRIO embedded board. Key features:
- Inbuilt FPGA for audio processing.
- One 3.5mm along with three analog inputs for audio signals.
- Inbuilt IMU that can be used further for movement of the vehicle.
- WiFi connectivity.
-
Lavalier Microphones (Example product)
-
3.5mm Audio splitter - Male stereo to x2 Female stereo
-
Laptop (HP Pavilion - 16GB RAM/NIVDIA GeForce Graphics/1TB HDD/128GB SSD)
Fig. 5: NI myRIO-1900 Hardware Block Diagram (Source) |
Fig. 6: Primary/Secondary Signals on MXP Connectors A and B (Source) |
The first thing decided was to ensure the correct placement of the three hydrophones. They are placed at specific distances in an equilateral shape for accurate results. The shape was chosen on the basis of results of a research paper (4.). The approximate distance of the placement of the arrays is calculated to be 3 inches apart. The distance is measured from the center of the hydrophones. The equilateral triangle is to be of the form, as seen in the figure.
Fig. 7: Star configuration, having four measured signals, i.e., pc, pk , pl , and pm (Source) |
In short: The analog signals from the frequency emitter are detected by the hydrophones placed on our vehicle, which is then passed through a signal processing board. Then the signal is passed through the Fast Fourier transform algorithm, for detecting the exact frequency. The value thus obtained is then passed to the AUVs computer, which commands the thrusters to move towards the detected source.
The first two hydrophones were considered to test if the audio is being received and processed properly in myRIO. Since myRIO has only one 3.5mm jack, a dual mono to stereo connector was bought from the local market. We tested it by placing the hydrophones in two jugs with water and testing it with a simple LabVIEW program to check the waveform of incoming audio. The audio was received by flicking at the edge of the jugs, which in turn produced waveforms for the hydrophones to capture audio. But the problem arose when the segregation of the different channels of the audio couldn't be done. Also, the connector didn't seem reliable to carry each signal individually to the hardware. It mixed the completely which couldn't be segregated during audio processing.
Fig. 8: The testing setup of two hydrophones on LabVIEW 2015 |
In order to protect the expensive hydrophones from getting destroyed from experimentation, two lavalier mics were bought. These mics were tested to get the audio signal placing two sides. To test it we opted to cut the 3.5mm wire to join it in this manner, due to failing in finding a proper connector.
Fig. 9: The diagram to show how microphones will be connected for capturing stereo data |
Fig. 10: 3.5 mm male connector wiring configuration (Source) |
The process for this was:
- Cut the two lavalier mics at the male connecter to expose the wires.
- Open up the stereo connector to show each channel i/p connections
- Solder the same color (right or left channel or ground) wires of the mics
- Now solder both these wires with the appropriate configurations of the 3.5 mm connector.
This was a mistake from our side as the wires couldn't be joined back properly, and this made the audio completely distorted and sometimes not receiving at all.
The technique of stripping of the wires for attaching to a connector in audio devices is NOT RECOMMENDED. Proper connectors must be used to process to capture audio so that no unnecessary overloaded interference and noise are captured. Though natural disturbances captured can be processed through software but minimizing the irregularities caused by hardware is recommended.
For prototyping using microphones/implementing hydrophone arrays on myRIO toolkit:
- Find a proper connector/Build a custom ADC to connect 3 audio receivers simultaneously, without interference.
- Segregate the audio using LabVIEW or other software on myRIO.
- Usage of Field Programmable Gate Array (FPGA) for audio processing and TDOA.
Overall future aspects required for competing in the competition:
- Connecting all 3 hydrophones to a microcontroller to receive input without wire/connection interference
- Processing of audio signals for higher frequencies (50 kHz)
- Attaching to the vehicle at a certain angle
- Rigorous testing to ignore bouncing of signals emitted from pinger, from props, sidewalls of the swimming pool, and the surface of the water.
-
Using GCCPHAT (Generalized Cross Co-relation PHase Transform) for finding Delay of Arrival (DOA) - Implemented by 2013 ZYRA team.
-
Design and analysis of air acoustic vector-sensor configurations for two-dimensional geometry of our Assistant professor Dr. Mohd. Wajid.