Communication principle of upper computer in the h

2022-07-30
  • Detail

The communication principle of upper computer in Brushless DC motor

brushless DC motor is closely related to the development of electronic technology, microelectronics technology, digital technology, automatic control technology and rare earth permanent magnet materials. Because of its excellent performance, brushless DC motor has replaced the brush motor in some fields. The DS real-time processing digital signal pic30f4012 used in this paper is a L6 bit digital control chip specially designed by microchip company for motor high-speed control. Several papers have introduced this chip and the brushless DC motor controller made of it, so it is not detailed here. This paper studies the implementation of data communication between the brushless DC motor controller and the upper computer based on dspic30f4012, studies and designs the upper computer program and the motor control program corresponding to the upper computer program. The experimental results verify that the data communication between the upper computer and the motor controller meets the design requirements of this paper

the data communication principle between the upper computer and the motor controller is shown in Figure 1. The upper computer sends the number of instructions to be sent to the lower computer in the form of data packets. After receiving the data packets, the lower computer unpacks them according to the pre-defined 3. Pull off experiment: a good communication protocol, and the upper computer sends the data to the motor controller: the lower computer also sends the received instruction data to the upper computer in the form of data packets, After receiving the data packet, the upper computer unpacks it, and the motor controller uploads the data to the upper computer. This is the data communication principle between the upper computer and the motor controller. The upper computer referred to in this paper is a computer. The upper computer and the motor controller are realized by UART serial data communication. The motor controller is connected to the COM port of the computer by converting the TTL level into RS232 level through the TTL level conversion circuit

to ensure that the received data is consistent with the sent data, packet header and CRC verification algorithm are added in the data communication process. Therefore, the data contained in the communication packet includes: packet header SOI, command descriptor command, data high 8 bits H8, data low 8 bits 18, and CRC verification value chksum. The packet header is used to mark the beginning of receiving data. The CRC check value is to ensure the correctness of the sent data. The packet header and the CRC check value jointly ensure the correctness of the whole packet sending and receiving to avoid data disorder. The command descriptor allows you to send many types of data, such as speed, PID calculation coefficient, etc., so that you can formulate a communication protocol between the upper computer and the motor controller. The upper 8 bits of the data and the oil filter are blocked. The lower 8 bits are specific data, and their meaning is related to the command descriptor. For example, the command descriptor is speed, and the data is the speed value

Copyright © 2011 JIN SHI