Design of Intelligent Sonar Array Placement System Based on MCU

Aiming at the problem that the existing sonar array placement methods are not intelligent and rely heavily on human resources, a remote Array Placement System Based on ATmega2560 microcontroller is designed to place the array remotely and accurately through the remote controller. This design can promote the Unmanned degree and accurate operation of Sonar array placement.


2.1Design of the remote control terminal
The design block diagram of remote control terminal is illustrated in Fig. 2. The control mode of the remote controller consists of automatic and manual control modes [6][7] . In an automated way, you need to set the height of the array through the menu first. After selecting, click the enable button, and the main driver will start to rotate, thus pulling the array to move to the lake. At the same time, the slave driver follows the position of the master controller according to the reading of the encoder, so that can we realize the horizontal placement of the array. The control effect of the remote controller can be displayed on the LCD screen in real-time.

2.2Design of the driver terminal
The driver provides a wireless transceiver module, a rotary encoder module, and a motor gating module [8] , as shown in Fig. 3. The current placement depth of the array can be calculated by counting the output pulses of the rotary encoder [9][10] . After starting the machine, the remote control will automatically send out a roll call command. When the motor is online, the communication board will return the online condition of the motor to the remote control, effectively avoiding the invalid operation of the offline motor by the operator. The motor gating module includes an address decoder module and relay module. Through the software programming of the CPU module, the motor can be enabled and disabled.

3.1power module design
The schematic diagram of the power module is illustrated in Fig. 4. This design uses a 12V battery to supply power for the system. Tpss430 voltage regulator chip can convert 12V power into 5V power to supply power to MCU. Through the processing of the above circuit, the microcomputer can obtain Low Ripple Voltage.

3.2Circuit design of master control circuit
The circuit diagram of the main control chip is as shown in Fig. 5. This design uses ATmega2560 as the processor. The processor has 54 digital input/ output ports,16 of which can operate as PWM output, also has 16 analog inputs and 4 UART interfaces, which can fully meet the design requirements.

3.3Motor drive circuit
After receiving the control command, the driver analyzes the order, enables the corresponding motor through the motor gating module, and controls the motor through the PWM technology [11][12][13] . The motor drives the steel rope to move and finally realizes the traction and placement of the array.
We provide the detail of the motor drive circuit in Fig.6. In the design, the driver board also uses a mega2560 controller. The processor uses the dir signal to control the rotation direction of the motor and uses the PWM signal to control the rotation amount of the motor. Considering the considerable power required by the drive motor, we use the drive circuit built by the in-line bridge driver chip IR2110 to provide voltage for the motor.

4.Design of wireless communication protocol
The remote controller communicates with the receiver through wireless communication [14][15] . Here we design a wireless communication protocol for array placement devices.

5.Conclusion
In engineering, sonar array placement is usually done manually. In the process of array placement, it is often impossible to know the precise depth of array placement and control the attitude of the array. In this paper, single-chip microcomputer, CAN bus, wireless communication, rotary encoder, and other technical means are used to design an array placement system that can set and display the placement depth in real-time. It can promote the intelligence of the array; Through this device, the operator can remotely control multiple drivers, which improves the placement efficiency to a certain extent and improves the safety of personnel in the operation process.