[go: up one dir, main page]

CN105134392B - Small-sized depopulated helicopter petrol engine revolution speed control system and its control method - Google Patents

Small-sized depopulated helicopter petrol engine revolution speed control system and its control method Download PDF

Info

Publication number
CN105134392B
CN105134392B CN201510430811.XA CN201510430811A CN105134392B CN 105134392 B CN105134392 B CN 105134392B CN 201510430811 A CN201510430811 A CN 201510430811A CN 105134392 B CN105134392 B CN 105134392B
Authority
CN
China
Prior art keywords
module
speed
data
engine
core controller
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510430811.XA
Other languages
Chinese (zh)
Other versions
CN105134392A (en
Inventor
裴海龙
赵松涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
South China University of Technology SCUT
Original Assignee
South China University of Technology SCUT
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by South China University of Technology SCUT filed Critical South China University of Technology SCUT
Priority to CN201510430811.XA priority Critical patent/CN105134392B/en
Publication of CN105134392A publication Critical patent/CN105134392A/en
Application granted granted Critical
Publication of CN105134392B publication Critical patent/CN105134392B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Combined Controls Of Internal Combustion Engines (AREA)

Abstract

本发明公开了一种小型无人直升机汽油发动机转速控制系统,包括转速测量模块、核心控制器模块、控制信号执行模块、电源管理模块;所述转速测量模块包括转速信号采集模块、转速计算模块、数据处理模块;本发明还公开一种小型无人直升机汽油发动机转速控制系统的控制方法,包括以下步骤:1、发动机每旋转一圈就产生一个高压脉冲信号,高压脉冲信号经过转速信号采集模块中的定时器的外部捕获接口接入转速计算模块;2、用T法计算出发动机的转速值;3、分别解析出融合后的转速数据和GPS模块的数据;4、转速控制算法计算设定的转速值与测量转速值之间的差值;5、改变发动机的转速。具有良好的可扩展性和广泛的兼容性等优点。

The invention discloses a small unmanned helicopter gasoline engine speed control system, which includes a speed measurement module, a core controller module, a control signal execution module, and a power management module; the speed measurement module includes a speed signal acquisition module, a speed calculation module, Data processing module; the present invention also discloses a control method of a small-sized unmanned helicopter gasoline engine speed control system, including the following steps: 1. A high-voltage pulse signal is generated every time the engine rotates, and the high-voltage pulse signal passes through the speed signal acquisition module The external capture interface of the timer is connected to the speed calculation module; 2. Use the T method to calculate the engine speed value; 3. Analyze the fused speed data and GPS module data respectively; 4. The speed control algorithm calculates the set The difference between the rotational speed value and the measured rotational speed value; 5. Change the rotational speed of the engine. It has the advantages of good scalability and wide compatibility.

Description

小型无人直升机汽油发动机转速控制系统及其控制方法Small unmanned helicopter gasoline engine speed control system and its control method

技术领域technical field

本发明涉及一种运用自动控制原理对发动机转速进行控制的技术,特别涉及一种小型无人直升机汽油发动机转速控制系统及其控制方法,本发明适用于小型无人直升机汽油发动机的转速控制,设计转速测量、数据通讯、控制信号输出等电子系统。The invention relates to a technology for controlling the engine speed by using the principle of automatic control, in particular to a small unmanned helicopter gasoline engine speed control system and its control method. The invention is suitable for the speed control of the small unmanned helicopter gasoline engine. Electronic systems such as speed measurement, data communication, and control signal output.

背景技术Background technique

当前投入使用的小(微)型无人直升机大都使用电力驱动,这是因为电动无人机的结构相对简单,控制器设计可操作性强,且电动发动机对通讯系统的干扰比较小。受制于其动力系统有限的功率,这类直升机往往无法提供较大的有效载荷,且其滞空时间、有效航程受到很大的限制。所以,在执行远距离、长航时、大载荷的飞行任务时,汽油发动机驱动的无人直升机便成了合适的选择。汽油发动机不仅能够提供更为强劲的动力,而且能够保证直升机旋翼转速在恶劣气象条件下的稳定性,免去了电动发动机的电池维护工作,提升了飞机的出勤效率。Most of the small (micro) unmanned helicopters currently in use are driven by electric power. This is because the structure of the electric drone is relatively simple, the controller design is highly operable, and the interference of the electric motor to the communication system is relatively small. Due to the limited power of its power system, this type of helicopter is often unable to provide a large payload, and its stagnation time and effective range are greatly limited. Therefore, when performing long-distance, long-duration, and heavy-load flight missions, unmanned helicopters driven by gasoline engines have become a suitable choice. The gasoline engine can not only provide more powerful power, but also ensure the stability of the rotor speed of the helicopter under severe weather conditions, eliminating the battery maintenance work of the electric engine and improving the efficiency of the aircraft.

无人机功能的实现依赖于一套可靠的飞行控制系统,然而,汽油发动机引入了一系列的电磁干扰,影响飞控系统的可靠性。汽油发动机转速稳定性较差,会导致无人直升机飞行稳定性变差。在直升机的飞行过程中,载荷的变化、气象条件的改变、飞机自身的机动动作都会改变汽油发动机的负载,从而会对汽油发动机的转速造成影响。此时,必须施加一定的控制信号来稳定汽油发动机的转速,才能稳定直升机的飞行状态。当前国内外对于无人机载汽油发动机的研究成果有限,实用于无人直升机载汽油机的控制系统比较少,由此可见,为了使汽油发动机对直升机控制的影响最小化,需要针对汽油发动机设计一个独立的控制器,使其能够为直升机提供稳定的动力输出。本发明的小型无人直升机汽油发动机转速控制系统,适用于20公斤级载荷的小型无人直升机,它的兼容性强、可扩展性高、稳定可靠。The realization of UAV functions depends on a reliable flight control system. However, the gasoline engine introduces a series of electromagnetic interference, which affects the reliability of the flight control system. Gasoline engine speed stability is poor, which will lead to poor flight stability of unmanned helicopters. During the flight of the helicopter, changes in the load, changes in weather conditions, and the maneuvering of the aircraft itself will change the load on the gasoline engine, which will affect the speed of the gasoline engine. At this time, a certain control signal must be applied to stabilize the speed of the gasoline engine in order to stabilize the flight state of the helicopter. At present, domestic and foreign research results on unmanned gasoline engines are limited, and there are relatively few control systems for gasoline engines on unmanned helicopters. It can be seen that in order to minimize the impact of gasoline engines on helicopter control, it is necessary to design a gasoline engine. The independent controller enables it to provide stable power output for the helicopter. The small unmanned helicopter gasoline engine speed control system of the present invention is suitable for small unmanned helicopters with a load of 20 kilograms, and has strong compatibility, high expandability, stability and reliability.

发明内容Contents of the invention

本发明的首要目的在于克服现有技术的缺点与不足,提出一种小型无人直升机汽油发动机转速控制系统,该控制系统是一种稳定性高、可扩展性强、易于实现的小型无人直升机汽油发动机转速控制系统。The primary purpose of the present invention is to overcome the shortcomings and deficiencies of the prior art, and propose a small unmanned helicopter gasoline engine speed control system, which is a small unmanned helicopter with high stability, strong scalability and easy implementation Gasoline engine speed control system.

本发明的另一个目的在于,提供一种控制小型无人直升机汽油发动机转速控制系统的控制方法。Another object of the present invention is to provide a control method for controlling the speed control system of a gasoline engine of a small unmanned helicopter.

本发明的首要目的采用以下技术方案实现:Primary purpose of the present invention adopts following technical scheme to realize:

一种小型无人直升机汽油发动机转速控制系统,包括转速测量模块、核心控制器模块、控制信号执行模块和电源管理模块;所述转速测量模块包括转速信号采集模块、转速计算模块、数据处理模块;所述控制信号执行模块包括4017分频器、伺服舵机模块;A small unmanned helicopter gasoline engine speed control system, including a speed measurement module, a core controller module, a control signal execution module and a power management module; the speed measurement module includes a speed signal acquisition module, a speed calculation module, and a data processing module; The control signal execution module includes a 4017 frequency divider and a servo servo module;

转速信号采集模块通过转速计算模块的外部信号输入捕获接口与转速计算模块的AVR处理器芯片相连,转速计算模块通过URAT通讯协议与核心控制器模块通讯,在转速计算模块与核心控制器模块通讯的过程中,需要数据处理模块进行数据滤波、融合处理,核心控制器模块向控制信号执行模块输出5v制式的PWM信号,电源管理模块则为所有的模块提供稳定的电源支持;The speed signal acquisition module is connected to the AVR processor chip of the speed calculation module through the external signal input capture interface of the speed calculation module, and the speed calculation module communicates with the core controller module through the URAT communication protocol. During the process, the data processing module is required to perform data filtering and fusion processing, the core controller module outputs 5v PWM signals to the control signal execution module, and the power management module provides stable power support for all modules;

转速信号采集模块将发动机的转速信息转换成脉冲信号,通过定时器T1的输入捕获接口接入转速计算模块的AVR处理器,转速计算模块识别脉冲信号,并计算出对应的转速值,转速值需要经过数据处理模块的滤波处理,然后按照特有的方式与GPS模块数据融合,经过串口发送给核心控制器模块的DEBUG接口,数据经过核心控制器模块的解析分别得到GPS模块数据和转速数据,转速数据作为反馈信息给到核心控制器上的转速控制算法,转速控制算法将转速数据与给定值数据对比后计算出控制信号的PWM值,经过4017分频器的处理将控制信号输出给伺服舵机,进而控制发动机的转速。The rotational speed signal acquisition module converts the rotational speed information of the engine into a pulse signal, and accesses the AVR processor of the rotational speed calculation module through the input capture interface of the timer T1. The rotational speed calculation module recognizes the pulse signal and calculates the corresponding rotational speed value. The rotational speed value needs After the filtering process of the data processing module, and then according to the unique method of fusion with the GPS module data, it is sent to the DEBUG interface of the core controller module through the serial port, and the data is analyzed by the core controller module to obtain the GPS module data, speed data, and speed data respectively. As feedback information to the speed control algorithm on the core controller, the speed control algorithm compares the speed data with the given value data to calculate the PWM value of the control signal, and outputs the control signal to the servo steering gear after being processed by the 4017 frequency divider , and then control the engine speed.

优选的,所述转速信号采集模块的脉冲传感器,具有硬件滤波、对抗外部高频电磁干扰的能力。Preferably, the pulse sensor of the rotational speed signal acquisition module has hardware filtering and the ability to resist external high-frequency electromagnetic interference.

优选的,所述转速信号的传输方式,在接入AVR处理器之前所设计的功率放大处理电路,转速信号在AVR处理器中的识别方法以及计算转速数据的方法。Preferably, the transmission method of the rotational speed signal, the power amplification processing circuit designed before being connected to the AVR processor, the identification method of the rotational speed signal in the AVR processor and the method of calculating the rotational speed data.

优选的,所述初始转速数据的处理方法,转速数据与GPS模块数据融合的数据格式以及数据的传输方法、传输速度,数据在核心处理器上的解析方法。Preferably, the processing method of the initial speed data, the data format of the fusion of the speed data and the GPS module data, the data transmission method, transmission speed, and the analysis method of the data on the core processor.

优选的,所述的核心控制器模块包括ARM处理器模块,接口转换模块、气压传感器模块、三轴陀螺仪模块、I/O接口模块。Preferably, the core controller module includes an ARM processor module, an interface conversion module, an air pressure sensor module, a three-axis gyroscope module, and an I/O interface module.

优选的,所述的电源管理模块由两个输出能力为3A的开关电源芯片构成,为整个发动机控制系统提供5V和3.3V两种电压,具有电平转换、稳压输出、短路隔离的功能。Preferably, the power management module is composed of two switching power supply chips with an output capacity of 3A, which provides two voltages of 5V and 3.3V for the entire engine control system, and has the functions of level conversion, stable voltage output, and short-circuit isolation.

本发明的另一个目通过以下技术方案实现:Another object of the present invention is achieved through the following technical solutions:

一种控制所述小型无人直升机汽油发动机转速控制系统的控制方法,包括下述步骤:A control method for controlling the gasoline engine speed control system of the small unmanned helicopter, comprising the following steps:

步骤1、汽油发动机每旋转一圈都会产生一个高压的脉冲信号,转速信号采集模块采集到该脉冲信号,信号采集模块中的传感器硬件集成了滤波器,将脉冲信号的噪声滤除,得到较为理想的脉冲信号,该脉冲信号经过放大器进行功率放大,经AVR处理器的定时器T1的外部捕获接口接入转速计算模块。Step 1. The gasoline engine generates a high-voltage pulse signal every time it rotates. The speed signal acquisition module collects the pulse signal. The sensor hardware in the signal acquisition module integrates a filter to filter out the noise of the pulse signal to obtain an ideal The pulse signal is amplified by the amplifier, and connected to the speed calculation module through the external capture interface of the timer T1 of the AVR processor.

步骤2、转速计算模块中的AVR处理器识别转速脉冲信号,并在捕获信号时用定时器T1做时间标记,然后用T法计算出转速值;初始的转速值因高频噪声干扰会产生非周期性的跳变,使用中位值窗口滤波处理初始转速值;在整个飞控系统中,转速计算模块又承担着GPS模块数据的接收转发功能,转速数据需要与GPS模块数据融合后发送给核心控制器模块;Step 2. The AVR processor in the speed calculation module recognizes the speed pulse signal, and uses the timer T1 as a time mark when capturing the signal, and then uses the T method to calculate the speed value; the initial speed value will be abnormal due to high-frequency noise interference. For periodic jumps, use median value window filtering to process the initial speed value; in the entire flight control system, the speed calculation module is also responsible for receiving and forwarding the GPS module data, and the speed data needs to be fused with the GPS module data and sent to the core controller module;

步骤3、核心控制器模块接收到融合后的数据后,通过解析算法,分别解析出GPS模块数据和转速数据,GPS模块数据用于直升机飞行状态的计算,转速数据用于控制信号的计算;Step 3. After the core controller module receives the fused data, it analyzes the GPS module data and the speed data respectively through the analysis algorithm. The GPS module data is used for the calculation of the flight state of the helicopter, and the speed data is used for the calculation of the control signal;

步骤4、转速控制器采用经典的PID控制算法,所述PID控制算法以软件形式在核心控制器模块中实现,经过计算给定转速值与测量转速值之间的差值,得出控制信号,以达到最终消除差值的效果;Step 4, the speed controller adopts a classic PID control algorithm, the PID control algorithm is implemented in the core controller module in the form of software, and the control signal is obtained by calculating the difference between the given speed value and the measured speed value, In order to achieve the effect of finally eliminating the difference;

步骤5、所述核心控制器模块中的转速控制算法计算得到控制信号,以PWM值的形式输出给所述控制信号执行模块中的4017分频器模块,经过分频器的处理,从第五通道输出给伺服舵机,伺服舵机按照控制信号做出相应动作,带动发动机节气门,节气门的开度产生相应的变化,改变发动机的转速。Step 5, the speed control algorithm in the core controller module calculates the control signal, and outputs it to the 4017 frequency divider module in the control signal execution module in the form of PWM value, and through the processing of the frequency divider, from the fifth The channel is output to the servo steering gear, and the servo steering gear makes corresponding actions according to the control signal to drive the throttle valve of the engine, and the opening of the throttle valve changes accordingly, changing the speed of the engine.

优选的,步骤2中,T法测转速是一种通过测量两个相邻脉冲之间时间间隔来推算转速值的方法,AVR处理器的晶振频率越高,这种方法得到的数据就越准确;根据图1中的定时器计数值Tc便可以根据时钟频率ft进一步得到两个脉冲之间的时间,从而计算出转速(单位rpm),转速的计算公式为 Preferably, in step 2, the T method to measure the rotational speed is a method of calculating the rotational speed value by measuring the time interval between two adjacent pulses. The higher the crystal oscillator frequency of the AVR processor, the more accurate the data obtained by this method ; According to the timer count value T c in Fig. 1, the time between two pulses can be further obtained according to the clock frequency f t , thereby calculating the rotating speed (unit rpm), the calculation formula of the rotating speed is

使用8Mhz晶振就可以满足汽油发动机的测速要求;中位值窗口滤波可以有效滤除转速测量中的无效值,选取窗口长度为6的滤波方法即能保证滤波效果,又能避免造成过大的延时。Using an 8Mhz crystal oscillator can meet the speed measurement requirements of gasoline engines; the median value window filter can effectively filter out invalid values in the speed measurement, and the filter method with a window length of 6 can ensure the filtering effect and avoid excessive delay. Time.

优选的,步骤3中,转速测量模块与核心控制器模块按照UART协议建立通讯,数据的解析是通过匹配数据的报文解决的,每种类型的数据都对应唯一的报文,报文比对成功则更新数据所在的数组;每一组数据包的格式为:Preferably, in step 3, the rotational speed measurement module and the core controller module establish communication according to the UART protocol, and the analysis of the data is solved by matching data messages, and each type of data corresponds to a unique message, and the message comparison If successful, update the array where the data is located; the format of each group of data packets is:

$GPGGA,data,$GPVTG,data,$HMC,data,$SPEED,data。$GPGGA,data,$GPVTG,data,$HMC,data,$SPEED,data.

数据包共分为四部分,每个部分都有一个报头用于识别数据段的类型,其中前两个部分为GPS传感器数据,第三部分为compass数据,最后一部分为发动机转速数据。数据被核心控制器模块中的ARM处理器接收后再经过数据解析便可以分别得到GPS模块、compass和发动机转速数据。The data packet is divided into four parts, and each part has a header to identify the type of the data segment. The first two parts are GPS sensor data, the third part is compass data, and the last part is engine speed data. After the data is received by the ARM processor in the core controller module, the GPS module, compass and engine speed data can be obtained after data analysis.

优选的,步骤4中,核心控制器模块所采用的控制算法为PID控制算法,一个标准的PID控制算法如公式:Preferably, in step 4, the control algorithm adopted by the core controller module is a PID control algorithm, a standard PID control algorithm such as formula:

输出y(t)的测量值会受到传感器噪声的影响,同时系统会受到外界干扰d(t)的影响,误差信号e(t)由给定输入yref(t)和输出值y(t)作差值而得,e(t)经过比例环节、积分环节、微分环节的计算再求和,便得到了控制信号u(t)。The measured value of the output y(t) will be affected by the noise of the sensor, and the system will be affected by the external disturbance d(t), the error signal e(t) is given by the input y ref (t) and the output value y(t) The control signal u(t) is obtained by calculating e(t) through the calculation of the proportional link, the integral link and the differential link, and then summing it up.

本发明的原理:本发明包括发动机转速信号的读取方法、发动机转速的计算方法、转速数据的整合传输、转速控制器设计、控制信号的计算输出,通过设计相关电子系统的软硬件部分、改进现有飞控系统的组成实现了转速控制的功能,并将该系统集成于当前使用的飞控系统中,实现了发动机的恒转速控制。本发明的发动机转速控制系统既实现了发动机的定速功能,优化了汽油发动机驱动时直升机的飞行稳定性,同时扩大了可定速的范围,可动态调节定速值,具有良好的可扩展性和广泛的兼容性The principle of the present invention: the present invention includes the reading method of the engine speed signal, the calculation method of the engine speed, the integrated transmission of the speed data, the design of the speed controller, and the calculation output of the control signal. By designing the software and hardware parts of the relevant electronic system, improving The composition of the existing flight control system realizes the function of speed control, and integrates the system into the currently used flight control system to realize the constant speed control of the engine. The engine speed control system of the present invention not only realizes the constant speed function of the engine, optimizes the flight stability of the helicopter when the gasoline engine is driven, but also expands the range of the constant speed, and can dynamically adjust the constant speed value, and has good scalability and broad compatibility

本发明相对于现有技术具有如下的优点及效果:Compared with the prior art, the present invention has the following advantages and effects:

1、本发明构建了小型无人直升机汽油发动机转速控制系统,实现了直升机汽油发动机的转速控制功能,增强了直升机的飞行稳定性,具有实时性好、集成度高、成本低、可靠性高等优点。1. The invention constructs a small unmanned helicopter gasoline engine speed control system, realizes the speed control function of the helicopter gasoline engine, enhances the flight stability of the helicopter, and has the advantages of good real-time performance, high integration, low cost, and high reliability. .

2、本发明自主设计了转速控制系统的软硬件系统,发动机的模型辨识方法,发动机控制器参数的优化方法,数据通讯方法。提供了一整套设计汽油发动机转速控制系统的具体方法。2. The present invention independently designs the software and hardware system of the speed control system, the model identification method of the engine, the optimization method of the engine controller parameters, and the data communication method. Provides a set of specific methods for designing gasoline engine speed control system.

3、本发明克服了原系统定速范围小、定速值不能实时调节的缺点,在较大范围内实现了汽油发动机的恒转速控制,并可实时调整定速值。3. The present invention overcomes the shortcomings of the original system that the range of fixed speed is small and the constant speed value cannot be adjusted in real time, and realizes the constant speed control of the gasoline engine in a relatively large range, and can adjust the constant speed value in real time.

4、本发明的电子系统依托飞控系统进行设计,与整套飞控系统完美兼容,提升了系统的集成度,节约了开发成本。4. The electronic system of the present invention is designed based on the flight control system, which is perfectly compatible with the entire flight control system, improves the integration of the system, and saves development costs.

5、本发明弥补了小型无人直升机飞控系统的不足,具有良好的可扩展性,为汽油发动机转速控制的先进控制方法研究奠定了基础。5. The invention makes up for the shortcomings of the flight control system of small unmanned helicopters, has good scalability, and lays a foundation for the research of advanced control methods for gasoline engine speed control.

附图说明Description of drawings

图1是本发明中T法测转速的原理图。Fig. 1 is the schematic diagram of T method measuring rotational speed among the present invention.

图2是本发明的系统结构图。Fig. 2 is a system structure diagram of the present invention.

图3是本实施例中使用的测速系统原理图。Fig. 3 is a schematic diagram of the speed measuring system used in this embodiment.

图4是本实施例中使用测速软件的程序流程图。Fig. 4 is a flow chart of the program using the speed measurement software in this embodiment.

图5是本实施例中控制器软件的程序流程图。Fig. 5 is a program flow chart of the controller software in this embodiment.

图6是本实施例中电源管理模块原理图。Fig. 6 is a schematic diagram of the power management module in this embodiment.

具体实施方式Detailed ways

下面结合实施例及附图对本发明作进一步详细的描述,但本发明的实施方式不限于此。The present invention will be further described in detail below in conjunction with the embodiments and the accompanying drawings, but the embodiments of the present invention are not limited thereto.

实施例Example

如图2所示,本实施例的小型无人直升机汽油发动机转速控制系统整体上包括转速测量单元、核心控制器及附属电路单元、控制信号执行单元三大部分,其中转速测量单元包括转速信号采集模块、信号放大电路和转速计算模块,核心控制器及附属电路由主处理器、接口转换电路、相关姿态和高度传感器模块、电源管理模块构成,控制信号执行单元包括4017分频电路、伺服舵机。这三个部分构成的转速控制系统在硬件上依附于飞控主系统,在功能实现上独立于飞控主系统,不影响飞控系统性能的实现。As shown in Figure 2, the small unmanned helicopter gasoline engine speed control system of the present embodiment includes three parts as a whole: a speed measurement unit, a core controller and an auxiliary circuit unit, and a control signal execution unit, wherein the speed measurement unit includes a speed signal acquisition unit module, signal amplification circuit and speed calculation module, the core controller and auxiliary circuit are composed of the main processor, interface conversion circuit, related attitude and height sensor module, power management module, the control signal execution unit includes 4017 frequency division circuit, servo steering gear . The speed control system composed of these three parts is attached to the main flight control system in terms of hardware, and is independent of the main flight control system in terms of function realization, which does not affect the realization of the performance of the flight control system.

如图3所示,本实施例的转速计算模块选用ATMEL公司生产的ATMEGA8L处理器,该处理器基于经典的RISC架构,集成了非易失性的数据存储器,是一块低功耗的8位处理器,有两个可编程的串行UART口,有一个具有预分频器、比较功能和捕捉功能的16位定时器/计数器,完全可以满足系统设计的需要。AVR处理器主要完成GPS模块数据读取、转速数据计算以及数据传输的任务,其中,AVR通过通用串行口UART与GPS模块、核心控制器连接,波特率为19200;转速传感器信号的识别,转速传感器输出幅值5V的脉冲信号,但经过信号线的传输会有一定程度的衰减,所以在给到AVR之前,需要进行放大,放大后的信号被AVR捕获,用于计算转速。As shown in Figure 3, the rotational speed calculation module of this embodiment selects the ATMEGA8L processor produced by ATMEL Company, which is based on the classic RISC architecture and integrates non-volatile data memory. There are two programmable serial UART ports, and a 16-bit timer/counter with prescaler, comparison function and capture function, which can fully meet the needs of system design. The AVR processor mainly completes the tasks of GPS module data reading, rotational speed data calculation and data transmission. Among them, the AVR is connected with the GPS module and the core controller through the universal serial port UART, and the baud rate is 19200; the identification of the rotational speed sensor signal, The speed sensor outputs a pulse signal with an amplitude of 5V, but there will be a certain degree of attenuation through the transmission of the signal line, so it needs to be amplified before being sent to the AVR. The amplified signal is captured by the AVR and used to calculate the speed.

本实施例使用AVR的16位定时器/计数器T1的输入捕获模式捕获转速信号,该定时器T/C具有一个输入捕捉单元,外部事件被该单元捕获后,就可以获取相应的发生时间,占空比、频率等信号特征便可以应用这些时间标记计算出来,外部事件发生的触发信号由引脚ICP1输入。使用该单元来捕获转速传感器的脉冲信号,每当一个脉冲到来时,定时器便停止计数,返回计数值TCNT1后清零,根据计数值用公式便可以计算出脉冲频率,进而计算出发动机的转速。该AVR采用8Mhz的外部时钟,完全可以满足10000rpm以上转速的测量。如图4所示为转速测量的程序流程图,需要说明的是,当转速很低时,两个脉冲之间相隔时间很久,可能会超过T1的最大计数值65535,此时定时器就会反转,用上面的方法计算出的转速值将变得毫无意义。经过计算T1计数值为65535时,对应的转速值为915rpm,不仅远远低于发动机工作转速,且低于发动机启动的最低转速,所以该问题对测速系统的工作没有影响,但为了保证系统的可靠性,需要对定时器溢出的情况做出处理。This embodiment uses the input capture mode of the 16-bit timer/counter T1 of AVR to capture the speed signal. The timer T/C has an input capture unit. After the external event is captured by this unit, the corresponding occurrence time can be obtained, accounting for Signal characteristics such as empty ratio and frequency can be calculated by using these time markers, and the trigger signal of external events is input by pin ICP1. Use this unit to capture the pulse signal of the speed sensor. Whenever a pulse arrives, the timer stops counting, returns the count value TCNT1 and clears it to zero. According to the count value, the pulse frequency can be calculated by using the formula, and then the engine speed can be calculated. . The AVR uses an 8Mhz external clock, which can fully meet the measurement of the speed above 10000rpm. Figure 4 shows the program flow chart of speed measurement. It should be noted that when the speed is very low, the interval between two pulses is long, which may exceed the maximum count value of T1 65535. At this time, the timer will reverse rotation, the rotation speed value calculated by the above method will become meaningless. After calculation, when the T1 count value is 65535, the corresponding speed value is 915rpm, which is not only far lower than the engine operating speed, but also lower than the minimum speed for engine startup, so this problem has no effect on the work of the speed measurement system, but in order to ensure the system For reliability, it is necessary to deal with the timer overflow situation.

本实施例采用ARM7微处理器作为核心控制器的处理器,该处理器为ATMEL公司的AT91SAM7SE(512)处理器,基于ARM7TDMI内核设计拥有UART接口、TWI接口和SPI接口,可以充分实现传感器数据的接收与处理,并能够完成控制算法程序的运行。转速控制器为PID控制器,它以软件的形式运行在ARM7处理器上,更新后的转速数据与转速的设定值对比做差,该差值分别经过比例环节、积分环节、微分环节计算后,再求和便得到了控制信号,该控制信号的目的是逐渐缩小发动机实际转速与目标转速的差值,使得发动机的转速最终维持在目标转速保持恒定。Present embodiment adopts ARM7 microprocessor as the processor of core controller, and this processor is the AT91SAM7SE (512) processor of ATMEL company, has UART interface, TWI interface and SPI interface based on ARM7TDMI kernel design, can fully realize sensor data Receive and process, and be able to complete the operation of the control algorithm program. The speed controller is a PID controller, which runs on the ARM7 processor in the form of software. The updated speed data is compared with the set value of the speed to make a difference. The difference is calculated by the proportional link, the integral link, and the differential link. , and then summed to get the control signal, the purpose of the control signal is to gradually reduce the difference between the actual engine speed and the target speed, so that the engine speed is finally maintained at the target speed and remains constant.

如图5所示,本实例的电源管理模块采用TPS5430开关电源芯片,该款芯片支持5.5~36V的输入信号,可以提供3A的稳定输出电流,完全可以满足新系统的使用。As shown in Figure 5, the power management module of this example uses the TPS5430 switching power supply chip, which supports an input signal of 5.5-36V and can provide a stable output current of 3A, which can fully meet the needs of the new system.

本实例的控制信号执行模块由分频器和伺服舵机使用,分频器采用CD4017脉冲分配器,可以将PWM脉冲信号分成10个通道,完全可以满足飞控系统8通道的控制信号输出要求,发动机的控制信号被分配在第5通道输出,伺服舵机选用Futaba生产的S9206型模拟舵机,该伺服舵机将控制信号由电信号转换成力矩信号,拖动发动机节气门运动,进而达到控制其转速的目的。The control signal execution module of this example is used by the frequency divider and the servo steering gear. The frequency divider adopts a CD4017 pulse distributor, which can divide the PWM pulse signal into 10 channels, which can fully meet the control signal output requirements of the flight control system with 8 channels. The control signal of the engine is assigned to output on the fifth channel. The servo steering gear uses the S9206 analog steering gear produced by Futaba. The servo steering gear converts the control signal from an electrical signal into a torque signal, and drives the engine throttle to move, thereby achieving control The purpose of its speed.

上述实施例为本发明较佳的实施方式,但本发明的实施方式并不受上述实施例的限制,其他的任何未背离本发明的精神实质与原理下所作的改变、修饰、替代、组合、简化,均应为等效的置换方式,都包含在本发明的保护范围之内。The above-mentioned embodiment is a preferred embodiment of the present invention, but the embodiment of the present invention is not limited by the above-mentioned embodiment, and any other changes, modifications, substitutions, combinations, Simplifications should be equivalent replacement methods, and all are included in the protection scope of the present invention.

Claims (10)

1.一种小型无人直升机汽油发动机转速控制系统,其特征在于,包括:转速测量模块、核心控制器模块、控制信号执行模块、电源管理模块;所述转速测量模块包括转速信号采集模块、转速计算模块、数据处理模块;所述控制信号执行模块包括:4017分频器、伺服舵机模块;1. A small-sized unmanned helicopter gasoline engine speed control system is characterized in that, comprising: a speed measurement module, a core controller module, a control signal execution module, a power management module; the speed measurement module includes a speed signal acquisition module, a speed Calculation module, data processing module; the control signal execution module includes: 4017 frequency divider, servo steering gear module; 转速信号采集模块通过AVR的外部信号输入捕获接口与转速计算模块的AVR处理器芯片相连,转速计算模块通过URAT通讯协议与核心控制器模块通讯,在转速计算模块和核心控制器模块通讯的过程中,需要数据处理模块进行数据滤波、融合处理,核心控制器模块向控制信号执行模块输出5v制式的PWM信号,电源管理模块则为所有的模块提供稳定的电源支持;The speed signal acquisition module is connected to the AVR processor chip of the speed calculation module through the external signal input capture interface of the AVR. The speed calculation module communicates with the core controller module through the URAT communication protocol. During the communication process between the speed calculation module and the core controller module , the data processing module is required for data filtering and fusion processing, the core controller module outputs 5v PWM signals to the control signal execution module, and the power management module provides stable power support for all modules; 转速信号采集模块将发动机的转速信息转换成脉冲信号,通过定时器T1的输入捕获接口接入转速计算模块的AVR处理器,转速计算模块识别脉冲信号,并计算出对应的转速值,转速值需要经过数据处理模块的滤波处理,然后与GPS模块数据融合,经过串口发送给核心控制器模块的DEBUG接口,数据经过核心控制器模块的解析分别得到GPS模块数据和转速数据,转速数据作为反馈信息给到核心控制器上的转速控制器,转速控制器将转速信息与给定值信息对比后计算出控制信号的PWM值,经过4017分频器的处理将控制信号输出给控制信号执行模块,所述控制信号执行模块控制发动机的转速。The rotational speed signal acquisition module converts the rotational speed information of the engine into a pulse signal, and accesses the AVR processor of the rotational speed calculation module through the input capture interface of the timer T1. The rotational speed calculation module recognizes the pulse signal and calculates the corresponding rotational speed value. The rotational speed value needs After the filtering process of the data processing module, it is fused with the data of the GPS module, and sent to the DEBUG interface of the core controller module through the serial port. To the speed controller on the core controller, the speed controller compares the speed information with the given value information to calculate the PWM value of the control signal, and outputs the control signal to the control signal execution module after processing by the 4017 frequency divider. The control signal execution module controls the rotational speed of the engine. 2.根据权利要求1所述的小型无人直升机汽油发动机转速控制系统,其特征在于,所述转速测量模块与GPS模块相连,所述转速测量模块用于采集发动机转动的脉冲信号、计算并处理对应的转速数据、将所述的转速数据与所述GPS模块的数据融合并编码发送。2. the small unmanned helicopter gasoline engine speed control system according to claim 1, is characterized in that, described speed measurement module is connected with GPS module, and described speed measurement module is used for collecting the pulse signal that engine rotates, calculates and processes For the corresponding rotational speed data, the said rotational speed data is fused with the data of the GPS module and encoded and sent. 3.根据权利要求1所述的小型无人直升机汽油发动机转速控制系统,其特征在于,所述核心控制器模块的通讯方式包括AVR处理器分别与GPS模块的通讯方式、信号采集模块的通讯方式和核心控制器的通讯方式、以及在AVR处理器与GPS模块的通讯、AVR处理器与信号采集模块的通讯和AVR处理器与核心控制器的通讯并发时的处理方式。3. the small-sized unmanned helicopter gasoline engine speed control system according to claim 1, is characterized in that, the communication mode of described core controller module comprises the communication mode of AVR processor and the communication mode of GPS module, the communication mode of signal acquisition module respectively The communication method with the core controller, and the processing method when the communication between the AVR processor and the GPS module, the communication between the AVR processor and the signal acquisition module, and the communication between the AVR processor and the core controller are concurrent. 4.根据权利要求1所述的小型无人直升机汽油发动机转速控制系统,其特征在于,所述核心控制器模块的数据格式包括对数据发送/接收、数据类型、数据内容、数据传输速度的完整定义,形成标准格式,以使所述转速测量模块和所述核心控制器模块之间对数据进行生成、解析和处理。4. the small-sized unmanned helicopter gasoline engine speed control system according to claim 1, is characterized in that, the data format of described core controller module comprises to the integrity of data transmission/reception, data type, data content, data transmission speed Define and form a standard format, so that the data can be generated, analyzed and processed between the rotational speed measurement module and the core controller module. 5.根据权利要求1所述的小型无人直升机汽油发动机转速控制系统,其特征在于,所述的核心控制器模块包括ARM处理器模块,接口转换模块、气压传感器模块、三轴陀螺仪传感器模块、I/O接口模块。5. small unmanned helicopter gasoline engine speed control system according to claim 1, is characterized in that, described core controller module comprises ARM processor module, interface conversion module, air pressure sensor module, three-axis gyroscope sensor module , I/O interface module. 6.根据权利要求1所述的小型无人直升机汽油发动机转速控制系统,其特征在于,所述的控制信号执行模块包括PWM信号分频单元和伺服舵机单元,所述的控制信号执行模块将核心控制器模块输出的控制信号输出给发动机节气门,所述发动机节气门控制发动机的转速。6. The small unmanned helicopter gasoline engine speed control system according to claim 1, wherein the control signal execution module includes a PWM signal frequency division unit and a servo steering gear unit, and the control signal execution module will The control signal output by the core controller module is output to the engine throttle, and the engine throttle controls the rotational speed of the engine. 7.根据权利要求1所述的小型无人直升机汽油发动机转速控制系统,其特征在于,所述的电源管理模块用于为小型无人直升机汽油发动机转速控制系统提供电源。7. The small unmanned helicopter gasoline engine speed control system according to claim 1, wherein the power management module is used to provide power for the small unmanned helicopter gasoline engine speed control system. 8.一种控制根据权利要求1所述的小型无人直升机汽油发动机转速控制系统的控制方法,其特征在于,包括下述步骤:8. A control method for controlling the small-sized unmanned helicopter gasoline engine speed control system according to claim 1, is characterized in that, comprises the following steps: 步骤1、所述的小型无人直升机汽油发动机转速控制系统的控制对象为发动机,所述的发动机每旋转一圈都会产生一个高压脉冲信号,转速信号采集模块采集到所述高压脉冲信号,所述转速信号采集模块内部集成有滤波器,将所述高压脉冲信号的噪声滤除,所述高压脉冲信号经过所述转速信号采集模块中的运算放大器进行功率放大,所述高压脉冲信号经过转速信号采集模块中的定时器的外部捕获接口接入转速计算模块;Step 1, the control object of the gasoline engine speed control system of the small unmanned helicopter is the engine, and the engine will generate a high-voltage pulse signal every time it rotates, and the speed signal acquisition module collects the high-voltage pulse signal. The rotation speed signal acquisition module is integrated with a filter to filter out the noise of the high-voltage pulse signal. The high-voltage pulse signal is amplified by the operational amplifier in the rotation speed signal acquisition module. The external capture interface of the timer in the module is connected to the speed calculation module; 步骤2、所述转速计算模块中的AVR处理器识别所述发动机的转速脉冲信号,并在捕获信号时用定时器做时间标记,然后用T法计算出发动机的转速值;使用中位值窗口滤波处理初始转速值;在整个飞控系统中,转速计算模块接收转发所述GPS传感器的数据,所述发动机的转速数据与GPS模块的数据融合后通过转速计算模块发送给核心控制器模块;Step 2, the AVR processor in the said rotational speed calculation module recognizes the rotational speed pulse signal of the said engine, and uses the timer to do the time stamp when capturing the signal, then calculates the rotational speed value of the engine with the T method; use the median value window Filter and process the initial speed value; in the entire flight control system, the speed calculation module receives and forwards the data of the GPS sensor, and the speed data of the engine is fused with the data of the GPS module and sent to the core controller module through the speed calculation module; 步骤3、所述核心控制器模块接收到融合后的转速数据和GPS模块的数据,通过解析算法,分别解析出融合后的转速数据和GPS模块的数据,所述GPS模块的数据用于计算直升机飞行状态,所述转速数据用于计算出发动机转速控制信号的值;Step 3, the core controller module receives the fused speed data and the data of the GPS module, and analyzes the fused speed data and the data of the GPS module respectively through an analysis algorithm, and the data of the GPS module is used to calculate the helicopter In flight state, the rotational speed data is used to calculate the value of the engine rotational speed control signal; 步骤4、所述核心控制器模块的转速控制算法采用PID控制器,所述转速控制算法通过在核心控制器模块中的代码来实现,所述转速控制算法计算设定的转速值与测量转速值之间的差值;Step 4, the speed control algorithm of the core controller module adopts a PID controller, the speed control algorithm is realized by the code in the core controller module, and the speed control algorithm calculates the set speed value and the measured speed value the difference between 步骤5、核心控制器模块的转速控制程序计算得到发动机转速的控制信号,以PWM值的形式输出给所述控制信号执行模块,所述控制信号执行模块带动发动机节气门运动,使得发动机节气门的开关产生相应的变化,改变发动机的转速。Step 5, the speed control program of the core controller module calculates the control signal of the engine speed, and outputs it to the control signal execution module in the form of PWM value, and the control signal execution module drives the engine throttle to move, so that the engine throttle The switch produces a corresponding change, changing the speed of the engine. 9.根据权利要求8所述的控制方法,其特征在于,所述步骤2还包括以下步骤:9. The control method according to claim 8, wherein said step 2 further comprises the following steps: 步骤21、所述T法测转速是通过测量两个相邻脉冲之间的时间间隔来推算发动机转速值的方法;Step 21, said T method for measuring the rotational speed is a method of calculating the engine rotational speed value by measuring the time interval between two adjacent pulses; 步骤22、中位值窗口滤波可以有效滤除所述发动机转速数据中的无效值,所述中位值窗口滤波的窗口长度为6;Step 22, median value window filtering can effectively filter out invalid values in the engine speed data, and the window length of the median value window filtering is 6; 步骤23、所述GPS模块数据通过串口UART按照19200的波特率接收至转速测量模块,GPS模块数据按照数据报文、数据段的固定格式传输,转速数据GPS模块数据融合以后,经转速测量模块的UART口发送给核心控制器模块,传输波特率为19200。Step 23, the GPS module data is received to the rotational speed measurement module through the serial port UART according to the baud rate of 19200, the GPS module data is transmitted according to the fixed format of the data message and the data segment, after the rotational speed data GPS module data fusion, the rotational speed measurement module The UART port of the UART port is sent to the core controller module, and the transmission baud rate is 19200. 10.根据权利要求8所述的控制方法,其特征在于,所述步骤3还包括以下步骤:10. The control method according to claim 8, wherein said step 3 further comprises the following steps: 步骤31、所述转速测量模块与核心控制器模块按照UART协议建立通讯,转速数据和GPS模块数据的解析是通过匹配数据报文实现的,转速数据和GPS模块数据分别对应唯一的报文,报文匹配成功则更新对应的数据;Step 31, the speed measurement module and the core controller module establish communication according to the UART protocol, and the analysis of the speed data and the GPS module data is realized by matching data messages, and the speed data and the GPS module data correspond to unique messages respectively, and the report If the text matching is successful, the corresponding data will be updated; 步骤32、所述核心控制器模块的转速数据以30Hz的频率进行更新,更新后的转速数据直接用于计算发动机控制信号的值,如果更新失败,则采用更新前的转速数据。Step 32. The speed data of the core controller module is updated at a frequency of 30 Hz. The updated speed data is directly used to calculate the value of the engine control signal. If the update fails, the speed data before the update is used.
CN201510430811.XA 2015-07-21 2015-07-21 Small-sized depopulated helicopter petrol engine revolution speed control system and its control method Active CN105134392B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510430811.XA CN105134392B (en) 2015-07-21 2015-07-21 Small-sized depopulated helicopter petrol engine revolution speed control system and its control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510430811.XA CN105134392B (en) 2015-07-21 2015-07-21 Small-sized depopulated helicopter petrol engine revolution speed control system and its control method

Publications (2)

Publication Number Publication Date
CN105134392A CN105134392A (en) 2015-12-09
CN105134392B true CN105134392B (en) 2018-06-29

Family

ID=54719915

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510430811.XA Active CN105134392B (en) 2015-07-21 2015-07-21 Small-sized depopulated helicopter petrol engine revolution speed control system and its control method

Country Status (1)

Country Link
CN (1) CN105134392B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105736156B (en) * 2016-03-24 2019-05-28 清华大学 Unmanned helicopter engine determines method for controlling number of revolution and control system
CN105781752B (en) * 2016-03-24 2019-05-31 清华大学 Steering engine direct-drive type air throttle and the engine and helicopter for using this air throttle
CN106773654B (en) * 2016-12-12 2019-10-29 中南大学 A kind of Fractional Order PID Controller parameter optimization setting method
CN107272408B (en) * 2017-06-13 2020-02-18 华南理工大学 A Dynamic Planning Method in Flight Control of Small Unmanned Helicopter
CN110836146A (en) * 2019-11-28 2020-02-25 湖南捷飞科技有限公司 Automatic engine control method in unmanned modification of helicopter

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6059226A (en) * 1998-04-29 2000-05-09 Sikorsky Aircraft Corporation Navigation of helicopter with limited polar groundspeed commands
CN1831692A (en) * 2005-12-26 2006-09-13 浙江大学 Constant speed apparatus for speed of unmanned copter engine
CN2854666Y (en) * 2005-12-26 2007-01-03 浙江大学 Constant speed apparatus of rotation speed of engine of miniature pilotless helicopter
JP4961166B2 (en) * 2006-06-12 2012-06-27 ヒロボー株式会社 Autonomous flight controller and small unmanned helicopter equipped with autonomous flight controller
CN203038112U (en) * 2012-09-19 2013-07-03 苏州工业园区职业技术学院 Unmanned aerial vehicle (UAV) automatic control system

Also Published As

Publication number Publication date
CN105134392A (en) 2015-12-09

Similar Documents

Publication Publication Date Title
CN105134392B (en) Small-sized depopulated helicopter petrol engine revolution speed control system and its control method
CN105353762B (en) The control method of six rotor wing unmanned aerial vehicles based on double remaining attitude transducers
CN103611324B (en) A kind of unmanned helicopter flight control system and control method thereof
CN104062935B (en) A kind of double-frame magnetic suspension variable speed control moment gyro Integrated Digital Control System
CN101833336B (en) Dual-redundancy attitude control system and debug method of coaxial unmanned helicopter
CN102426458B (en) Ground control system applicable to rotor-wing unmanned aerial vehicle
CN108303081B (en) Bionic polarization/inertia/atmospheric data combined navigation system
CN104875890B (en) Quadrotor
CN101515178A (en) Master-slave burden type redundancy automatic unmanned aircraft pilot based on CAN bus
CN104536467B (en) A kind of over the horizon aircraft inspection tour system
CN102495645B (en) Gyro-stabilized platform for high-speed rolling carrier and control method thereof
CN102902278B (en) Unmanned aerial vehicle flight control system based on controller area network (CAN) bus
CN105223870A (en) A kind of electric steering engine control system based on DSP and CPLD
CN102968123A (en) Automatic pilot of unmanned aerial vehicle
CN102814047A (en) Autonomous return system and control method of dual-rotor remote-controlled model helicopter
CN106052689A (en) IMU (inertial measurement unit) signal acquisition system based on C8051F064 single chip microcomputer
CN204331470U (en) Over the horizon aircraft inspection tour system
CN107065836B (en) A kind of quasi- method and system of electricity adjustment
CN202939490U (en) Autopilot for unmanned aerial vehicles
CN205068169U (en) Six rotor unmanned aerial vehicle based on two remaining attitude sensor
CN205981227U (en) IMU signal acquisition system based on C8051F064 singlechip
CN107192306A (en) A kind of integration of compact electric steering engine control system
CN109782782A (en) Multi-rotor unmanned aerial vehicle attitude flight control system
CN106502259A (en) Electric inspection process low profile photovoltaic gondola control device, gondola, unmanned plane and method
CN201860314U (en) Integrated observing and controlling specialized circuit of high earth orbit satellite

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB03 Change of inventor or designer information

Inventor after: Pei Hailong

Inventor after: Zhao Songtao

Inventor before: Zhao Songtao

Inventor before: Pei Hailong

CB03 Change of inventor or designer information
GR01 Patent grant
GR01 Patent grant