CN103472838A - Fast sprint controller of four-wheel micro-mouse based on double processors - Google Patents

Fast sprint controller of four-wheel micro-mouse based on double processors Download PDF

Info

Publication number
CN103472838A
CN103472838A CN2013104186486A CN201310418648A CN103472838A CN 103472838 A CN103472838 A CN 103472838A CN 2013104186486 A CN2013104186486 A CN 2013104186486A CN 201310418648 A CN201310418648 A CN 201310418648A CN 103472838 A CN103472838 A CN 103472838A
Authority
CN
China
Prior art keywords
module
motor
unit
electrically connected
control module
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.)
Pending
Application number
CN2013104186486A
Other languages
Chinese (zh)
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.)
Suzhou Industrial Park Institute of Vocational Technology
Original Assignee
Suzhou Industrial Park Institute of Vocational Technology
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 Suzhou Industrial Park Institute of Vocational Technology filed Critical Suzhou Industrial Park Institute of Vocational Technology
Priority to CN2013104186486A priority Critical patent/CN103472838A/en
Publication of CN103472838A publication Critical patent/CN103472838A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Position Input By Displaying (AREA)

Abstract

本发明公开了一种基于双核四轮微电脑鼠快速冲刺控制器,包括:电源装置、检测电压模块、低压报警装置、调取迷宫最佳信息模块、传感器、伺服调节控制单元、控制器和电机;所述传感器设置为6个,所述控制器包含有:第一驱动单元、第二驱动单元、第三驱动单元和第四驱动单元,所述电机包含有第一电机、第二电机、第三电机和第四电机;所述检测电压模块与电源装置和低压报警装置电性连接;电源装置与所述调取迷宫最佳信息模块、传感器、伺服调节控制单元、控制器和电机电性连接;所述调取迷宫最佳信息模块通过传感器与所述伺服调节控制单元电性连接。通过上述方式,本发明能够提供一种用于微电脑鼠快速冲刺的控制器,能够在比赛中利用双缓冲结构的处理器,实现一种微电脑鼠的快速返回冲刺。

Figure 201310418648

The invention discloses a fast sprint controller based on a dual-core four-wheel microcomputer mouse, which includes: a power supply device, a voltage detection module, a low-voltage alarm device, a module for retrieving optimal information from a maze, a sensor, a servo adjustment control unit, a controller and a motor; There are 6 sensors, the controller includes: a first drive unit, a second drive unit, a third drive unit and a fourth drive unit, and the motor includes a first motor, a second motor, a third The motor and the fourth motor; the detection voltage module is electrically connected to the power supply device and the low-voltage alarm device; the power supply device is electrically connected to the module for obtaining the best information of the maze, the sensor, the servo adjustment control unit, the controller and the motor; The module for calling the optimal information of the maze is electrically connected with the servo adjustment control unit through a sensor. Through the above method, the present invention can provide a controller for the quick sprint of the microcomputer mouse, which can use the processor with double buffer structure in the game to realize the quick return sprint of the microcomputer mouse.

Figure 201310418648

Description

一种基于双核四轮微电脑鼠快速冲刺控制器A fast sprint controller based on dual-core four-wheel microcomputer mouse

技术领域 technical field

本发明涉及一种微电脑鼠冲刺控制器,特别是涉及一种基于双核四轮微电脑鼠快速冲刺控制器。 The invention relates to a sprint controller for a microcomputer mouse, in particular to a fast sprint controller based on a dual-core four-wheel microcomputer mouse.

背景技术 Background technique

微电脑鼠是使用嵌入式微控制器、传感器和机电运动部件构成的一种智能行走机器人,在国外已经竞赛了将近30年,由其原理可以转化为多种实际的工业机器人,近几年内才引进国内,并逐渐成为一个新兴的竞赛项目。微电脑鼠可以在不同“迷宫”中自动记忆和选择路径,采用相应的算法,快速地到达所设定的目的地。一只优秀的微电脑鼠必须具备良好的感知能力,有良好的行走能力,优秀的智能算法,一只完整的微电脑鼠在大体分为以下几个部分: The microcomputer mouse is an intelligent walking robot composed of embedded microcontrollers, sensors and electromechanical moving parts. It has been competing abroad for nearly 30 years. Its principle can be transformed into a variety of practical industrial robots. It has only been introduced into China in recent years. , and gradually become a new competition project. The microcomputer mouse can automatically memorize and select paths in different "mazes", and use corresponding algorithms to quickly reach the set destination. An excellent microcomputer mouse must have good perception ability, good walking ability, and excellent intelligent algorithm. A complete microcomputer mouse can be roughly divided into the following parts:

(1)传感器:传感器是微电脑鼠的眼睛,是微电脑鼠准确获取外部环境信息的依据,然后把外界信息输送到微处理器进行各种条件判断。 (1) Sensor: The sensor is the eyes of the microcomputer mouse, which is the basis for the microcomputer mouse to accurately obtain external environmental information, and then transmit the external information to the microprocessor for various condition judgments.

(2)电机:执行电机是微电脑鼠的动力源,它根据微处理器的指令来执行微电脑鼠在迷宫中行走时的相关动作。 (2) Motor: The executive motor is the power source of the microcomputer mouse, and it executes the relevant actions of the microcomputer mouse when it walks in the maze according to the instructions of the microprocessor.

(3)算法:算法是微电脑鼠的灵魂。微电脑鼠必须采用一定的智能算法才能找到终点,才能找到一条最短的路径,在最短的时间内到达终点。 (3) Algorithms: Algorithms are the soul of the microcomputer mouse. The microcomputer mouse must use a certain intelligent algorithm to find the end point, find the shortest path, and reach the end point in the shortest time.

(4)微处理器:微处理器是微电脑鼠的核心部分,是微电脑鼠的大脑。微电脑鼠所有的信息,包括墙壁信息,位置信息,角度信息和电机状态信息等都需要经过微处理器处理并做出相应的判断。 (4) Microprocessor: The microprocessor is the core part of the microcomputer mouse and the brain of the microcomputer mouse. All the information of the microcomputer mouse, including wall information, position information, angle information and motor status information, etc. need to be processed by the microprocessor and make corresponding judgments.

电脑鼠结合了多学科知识,电脑鼠走迷宫技术的开展可以培养大批相关领域的人才,进而促进相关领域的技术发展和产业化进程。但是微电脑鼠在迷宫探索过程中要时刻判断周围的环境,然后传输参数到控制器,由控制器反复控制其在迷宫的方格当中精确的加速和减速进行探索,稍不小心微电脑鼠就会撞到周围的迷宫挡墙,使得探索失败,因此,对以微电脑鼠单元来说基于单片机的探索过程是决定其冲刺胜败的关键,但是由于国内研发此机器人的单位较少,对国际规则读取水平较低,相对研发水平比较落后,长时间运行发现存在着很多安全问题,即: The computer mouse combines multi-disciplinary knowledge. The development of computer mouse maze walking technology can cultivate a large number of talents in related fields, and then promote the technological development and industrialization process in related fields. However, the microcomputer mouse needs to judge the surrounding environment at all times during the maze exploration process, and then transmit the parameters to the controller. To the surrounding maze walls, the exploration fails. Therefore, for the microcomputer mouse unit, the exploration process based on the single-chip microcomputer is the key to determining the success or failure of the sprint. The level is low, and the relative research and development level is relatively backward. There are many security problems found in long-term operation, namely:

(1)作为微电脑鼠的眼睛采用的是超声波或者是一般的红外传感器,使得微电脑鼠对周围迷宫的探索存在一定的误判。 (1) As the eyes of the microcomputer mouse, ultrasonic or general infrared sensors are used, which makes the microcomputer mouse misjudge the exploration of the surrounding maze.

(2)作为微电脑鼠的执行机构采用的是步进电机,经常会遇到丢失脉冲的问题出现,导致对位置的记忆出现错误。 (2) As the actuator of the microcomputer mouse, a stepper motor is used, which often encounters the problem of missing pulses, resulting in errors in the memory of the position.

(3)由于采用步进电机,使得机体发热比较严重,不利于在大型复杂迷宫中探索和冲刺。 (3) Due to the use of stepping motors, the body heats up more seriously, which is not conducive to exploring and sprinting in large and complex mazes.

(4)由于采用比较低级的算法,在迷宫当中的探索一般都要花费4~5分钟的时间,这使得在真正的大赛中无法取胜。 (4) Due to the use of relatively low-level algorithms, the exploration in the maze generally takes 4 to 5 minutes, which makes it impossible to win in real competitions.

(5)由于微电脑鼠要频繁的刹车和启动,加重了单片机的工作量,单一的单片机无法满足微电脑鼠快速启动和停止的要求。 (5) Since the microcomputer mouse needs to brake and start frequently, the workload of the single-chip microcomputer is increased, and a single single-chip microcomputer cannot meet the requirements of the microcomputer mouse to quickly start and stop.

(6)相对采用的都是一些体积比较大的插件元器件,使得微电脑鼠的体积比较庞大,无法满足快速探索的要求。 (6) Relatively, some relatively large plug-in components are used, which makes the microcomputer mouse relatively large in size and cannot meet the requirements of rapid exploration.

(7)由于受周围环境不稳定因素干扰,单片机控制器经常会出现异常,引起微电脑鼠失控,抗干扰能力较差。 (7) Due to the interference of unstable factors in the surrounding environment, the single-chip controller often appears abnormal, causing the microcomputer mouse to lose control, and the anti-interference ability is poor.

(8)对于差速控制的微电脑鼠来说,一般要求其两个电机的控制信号要同步,但是对于单一单片机来说又很难办到,使得微电脑鼠在直道上行驶的时候要来回的补偿,而且有的时候在迷宫当中摇摆幅度较大,特别是对于快速探索时。 (8) For the microcomputer mouse with differential speed control, it is generally required that the control signals of the two motors should be synchronized, but it is difficult to do it for a single single-chip microcomputer, so that the microcomputer mouse needs to compensate back and forth when driving on a straight road. , and sometimes the sway is larger in the maze, especially for fast exploration.

(9)由于受单片机容量和算法影响,微电脑鼠对迷宫的信息没有存储,当遇到掉电情况时所有的信息将消失,这使得整个探索过程要重新开始。 (9) Due to the influence of the capacity and algorithm of the single-chip microcomputer, the microcomputer mouse does not store the information of the maze, and all the information will disappear when encountering a power failure, which makes the whole exploration process start again.

因此,需要对现有的基于单片机控制的微电脑鼠控制器进行重新设计。。 Therefore, it is necessary to redesign the existing microcomputer mouse controller based on single-chip microcomputer control. .

发明内容 Contents of the invention

本发明主要解决的技术问题是提供一种基于双核四轮微电脑鼠快速冲刺控制器,能够在原有的两轮微电脑鼠上实现一种基于ARM9+LM629的全新控制模式。运用两轴伺服控制单元,以 ARM9微处理器为控制核心,以 LM629作为伺服控制调节器数据处理核心,运用LM629产生PWM波实现微电脑鼠冲刺过程中两轴直流电机伺服系统数字信号的实时处理,实现微电脑鼠的快速冲刺。 The technical problem mainly solved by the present invention is to provide a fast sprint controller based on a dual-core four-wheel microcomputer mouse, which can realize a new control mode based on ARM9+LM629 on the original two-wheel microcomputer mouse. Using two-axis servo control unit, ARM9 microprocessor as the control core, LM629 as the data processing core of the servo control regulator, using LM629 to generate PWM waves to realize the real-time processing of digital signals of the two-axis DC motor servo system during the sprinting process of the microcomputer mouse, Realize the rapid sprint of the microcomputer mouse.

为解决上述技术问题,本发明采用的一个技术方案是:提供一种基于双核四轮微电脑鼠快速冲刺控制器,包括:电源装置、检测电压模块、低压报警装置、调取迷宫最佳信息模块、传感器、伺服调节控制单元、控制器和电机;所述传感器设置为6个,所述控制器包含有:第一驱动单元、第二驱动单元、第三驱动单元和第四驱动单元,所述电机包含有第一电机、第二电机、第三电机和第四电机;所述检测电压模块与电源装置和低压报警装置电性连接;电源装置与所述调取迷宫最佳信息模块、传感器、伺服调节控制单元、控制器和电机电性连接;所述调取迷宫最佳信息模块通过传感器与所述伺服调节控制单元电性连接 In order to solve the above-mentioned technical problems, a technical solution adopted by the present invention is to provide a fast sprint controller based on a dual-core four-wheel microcomputer mouse, including: a power supply unit, a detection voltage module, a low-voltage alarm device, a module for obtaining the best information from a maze, Sensor, servo adjustment control unit, controller and motor; the number of the sensor is set to 6, the controller includes: the first drive unit, the second drive unit, the third drive unit and the fourth drive unit, the motor Contains the first motor, the second motor, the third motor and the fourth motor; the detection voltage module is electrically connected with the power supply device and the low-voltage alarm device; The adjustment control unit, the controller and the motor are electrically connected; the module for obtaining the best information from the maze is electrically connected to the servo adjustment control unit through a sensor

在本发明一个较佳实施例中,所述伺服调节控制单元为四轴同步伺服调节控制单元,包括迷宫调取单元、运行控制单元和返程探索单元;所述迷宫调取单元与所述运行控制单元和返程探索单元电性连接;信号按迷宫调取单元、运行控制单元和返程探索单元的顺序依次传输 In a preferred embodiment of the present invention, the servo adjustment control unit is a four-axis synchronous servo adjustment control unit, including a maze retrieval unit, an operation control unit, and a return exploration unit; the maze retrieval unit and the operation control unit The unit and the return exploration unit are electrically connected; the signals are transmitted sequentially in the order of the maze retrieval unit, the operation control unit and the return exploration unit

在本发明一个较佳实施例中,所述迷宫调取单元、运行控制单元和返程探索单元中包含有用于接收信号并控制信号传输的数据控制模块,用于接收数据控制模块发出信号并进行信号处理的数据处理模块和用于驱动微电脑鼠运动的四轮驱动、前置驱动和后置驱动,所述数据控制模块、数据处理模块和四轮驱动、前置驱动和后置驱动电性连接。 In a preferred embodiment of the present invention, the maze retrieval unit, operation control unit, and return exploration unit include a data control module for receiving signals and controlling signal transmission, and for receiving signals from the data control module and performing signal transmission. The processed data processing module is used to drive the four-wheel drive, the front drive and the rear drive for driving the movement of the microcomputer mouse, and the data control module, the data processing module are electrically connected with the four-wheel drive, the front drive and the rear drive.

在本发明一个较佳实施例中,所述数据处理模块中包含有LM629处理器,所述LM629处理器中包含有PWM调节器,所述PWM调节器与数据控制模块和四轮驱动、前置驱动和后置驱动电性连接;所述数据控制模块进一步包含有补偿模块。 In a preferred embodiment of the present invention, the data processing module includes an LM629 processor, the LM629 processor includes a PWM regulator, and the PWM regulator and data control module and four-wheel drive, front The drive is electrically connected to the rear drive; the data control module further includes a compensation module.

在本发明一个较佳实施例中,所述迷宫调取单元还进一步包含有中断请求模块,所述传感器、中断请求模块、数据控制模块、数据处理模块与四轮驱动、前置驱动和后置驱动之间电性连接;所述迷宫调取单元还进一步包含有复位电路和迷宫信息调取模块,所述复位电路与所述传感器和迷宫信息调取模块电性连接。 In a preferred embodiment of the present invention, the maze retrieval unit further includes an interrupt request module, and the sensor, interrupt request module, data control module, data processing module and four-wheel drive, front drive and rear drive The drives are electrically connected; the maze retrieval unit further includes a reset circuit and a maze information retrieval module, and the reset circuit is electrically connected to the sensor and the maze information retrieval module.

在本发明一个较佳实施例中,(1)所述运行控制单元进一步包含有坐标存储模块、曲线运动控制模块、最短直线距离参数转化模块;所述传感器与坐标存储模块、曲线运动控制模块和最短直线距离参数转化模块之间电性连接,所述曲线运动控制模块和最短直线距离参数转化模块与数据控制模块、数据处理模块与四轮驱动、前置驱动和后置驱动之间电性连接;所述传感器将信号传送至坐标存储模块进行存储,同时将信号传送至所述数据控制模块和数据处理模块;(2)所述运行控制单元进一步包含有目标模块和误差补偿模块,所述传感器和目标模块与误差补偿模块之间电性连接,信号从目标模块流向误差补偿模块之后通过数据控制模块和数据处理模块中的PWM波转化,然后再将控制信号传送至四轮驱动、前置驱动和后置驱动。 In a preferred embodiment of the present invention, (1) the operation control unit further includes a coordinate storage module, a curve motion control module, and a shortest linear distance parameter conversion module; the sensor and coordinate storage module, a curve motion control module and The shortest straight line distance parameter conversion module is electrically connected, the curve motion control module and the shortest straight line distance parameter conversion module are electrically connected to the data control module, the data processing module and the four-wheel drive, front drive and rear drive ; The sensor transmits the signal to the coordinate storage module for storage, and at the same time transmits the signal to the data control module and the data processing module; (2) The operation control unit further includes a target module and an error compensation module, and the sensor It is electrically connected with the target module and the error compensation module. After the signal flows from the target module to the error compensation module, it is converted by the PWM wave in the data control module and the data processing module, and then the control signal is transmitted to the four-wheel drive and front drive. and rear drive.

在本发明一个较佳实施例中,所述返程搜索单元中进一步包含有未知搜索区域模块和已知搜索区域模块,所述未知搜索区域模块和已知搜索区域模块与电机驱动和数据处理模块电性连接。 In a preferred embodiment of the present invention, the return search unit further includes an unknown search area module and a known search area module, and the unknown search area module and the known search area module are electrically connected to the motor drive and data processing modules sexual connection.

在本发明一个较佳实施例中,所述四轮驱动、前置驱动和后置驱动内设置有光电传感器,所述光电传感器与控制器电性连接。 In a preferred embodiment of the present invention, the four-wheel drive, the front drive and the rear drive are provided with photoelectric sensors, and the photoelectric sensors are electrically connected to the controller.

本发明的有益效果是:本发明本发明将控制微电脑鼠运动的电源装置与检测电压模块和调取迷宫信息模块电性相连接,能够及时的检测出低压的情况,及时对微电脑鼠进行数据存储和保护。利用传感器将伺服调节控制单元电性连接,同时将控制器和电机相连接,能够在及时有效地调取迷宫信息的同时对微电脑鼠进行实时控制,使微电脑鼠的运行更加精确,速度也更加快,全方位的实现快速冲刺。 The beneficial effects of the present invention are: the present invention electrically connects the power supply device for controlling the movement of the microcomputer mouse with the detection voltage module and the maze information retrieval module, so that the low voltage situation can be detected in time, and data storage can be performed on the microcomputer mouse in time and protection. The sensor is used to electrically connect the servo adjustment control unit, and at the same time connect the controller to the motor, so that the microcomputer mouse can be controlled in real time while timely and effectively obtaining the maze information, so that the operation of the microcomputer mouse is more accurate and the speed is faster. , All-round realization of fast sprint.

附图说明 Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图,其中: In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without creative work, wherein:

图1是本发明一种基于双核四轮微电脑鼠快速冲刺控制器一较佳实施例的结构示意图; Fig. 1 is a kind of structure schematic diagram of a preferred embodiment based on dual-core four-wheel microcomputer mouse quick sprint controller of the present invention;

图2为本发明一种基于双核四轮微电脑鼠快速冲刺控制器一较佳实施例的伺服控制调节单元框图; Fig. 2 is a kind of servo control adjustment unit block diagram based on a preferred embodiment of dual-core four-wheel microcomputer mouse fast sprint controller of the present invention;

图3为本发明一种基于双核四轮微电脑鼠快速冲刺控制器一较佳实施例的运动控制模块框图; Fig. 3 is a kind of motion control module block diagram based on a preferred embodiment of dual-core four-wheel microcomputer mouse fast sprint controller of the present invention;

图4为本发明一种基于双核四轮微电脑鼠快速冲刺控制器一较佳实施例的微电脑鼠结构示意图; Fig. 4 is a kind of microcomputer mouse structure schematic diagram based on a preferred embodiment of dual-core four-wheel microcomputer mouse fast sprint controller of the present invention;

图5为本发明一种基于双核四轮微电脑鼠快速冲刺控制器一较佳实施例的迷宫示意图; Fig. 5 is a kind of labyrinth schematic diagram based on a preferred embodiment of dual-core four-wheel microcomputer mouse fast sprint controller of the present invention;

图6为本发明一种基于双核四轮微电脑鼠快速冲刺控制器一较佳实施例的速度曲线图; Fig. 6 is a kind of speed curve figure based on a preferred embodiment of dual-core four-wheel microcomputer mouse fast sprint controller of the present invention;

图7为本发明一种基于双核四轮微电脑鼠快速冲刺控制器一较佳实施例的右转冲刺示意图; Fig. 7 is a kind of right-turn sprint schematic diagram based on a preferred embodiment of the dual-core four-wheel microcomputer mouse fast sprint controller of the present invention;

图8为本发明一种基于双核四轮微电脑鼠快速冲刺控制器一较佳实施例的左转冲刺意义图。 Fig. 8 is a left-turn sprint meaning diagram of a preferred embodiment of a fast sprint controller based on a dual-core four-wheel microcomputer mouse in the present invention.

附图中各部件的标记如下: 1、前左控制电机; 2、前右控制电机;3、后左控制电机;4、前后右控制电机;5、传感器。 The marks of the components in the drawings are as follows: 1. Front left control motor; 2. Front right control motor; 3. Rear left control motor; 4. Front and rear right control motor; 5. Sensor.

具体实施方式 Detailed ways

下面将对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明的一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。 The following will clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

请参阅图1、图2、图3和图4、,本发明实施例提供如下技术方案。 Referring to FIG. 1 , FIG. 2 , FIG. 3 and FIG. 4 , the embodiment of the present invention provides the following technical solutions.

在一个实施例中,一种基于双核四轮微电脑鼠快速冲刺控制器,包括:电源装置、检测电压模块、低压报警装置、调取迷宫最佳信息模块、传感器5、伺服调节控制单元、控制器和电机;所述传感器5设置为6个,分别为S1、S2、S3、S4、S5、S6;所述控制器包含有:第一驱动单元、第二驱动单元、第三驱动单元和第四驱动单元,所述电机包含有第一电机、第二电机、第三电机和第四电机;所述检测电压模块与电源装置和低压报警装置电性连接;电源装置与所述调取迷宫最佳信息模块、传感器5、伺服调节控制单元、控制器和电机电性连接;所述调取迷宫最佳信息模块通过传感器5与所述伺服调节控制单元电性连。 In one embodiment, a fast sprint controller based on a dual-core four-wheel microcomputer mouse includes: a power supply unit, a detection voltage module, a low-voltage alarm device, a module for obtaining the best information in a maze, a sensor 5, a servo adjustment control unit, and a controller and the motor; the sensors 5 are set to 6, respectively S1, S2, S3, S4, S5, S6; the controller includes: a first drive unit, a second drive unit, a third drive unit and a fourth drive unit Drive unit, the motor includes a first motor, a second motor, a third motor and a fourth motor; the detection voltage module is electrically connected to a power supply device and a low-voltage alarm device; the power supply device is optimally connected to the call labyrinth The information module, the sensor 5, the servo adjustment control unit, the controller and the motor are electrically connected; the module for obtaining the best information from the maze is electrically connected to the servo adjustment control unit through the sensor 5.

区别于现有技术,在一个实施例中,优选地,所述伺服调节控制单元为四轴同步伺服调节控制单元,包括迷宫调取单元、运行控制单元和返程探索单元;所述迷宫调取单元与所述运行控制单元和返程探索单元电性连接;信号按迷宫调取单元、运行控制单元和返程探索单元的顺序依次传输。 Different from the prior art, in one embodiment, preferably, the servo adjustment control unit is a four-axis synchronous servo adjustment control unit, including a maze retrieval unit, an operation control unit and a return exploration unit; the maze retrieval unit It is electrically connected with the operation control unit and the return exploration unit; the signal is transmitted sequentially in the order of the maze retrieval unit, the operation control unit and the return exploration unit.

优选地,所述迷宫调取单元、运行控制单元和返程探索单元中包含有用于接收信号并控制信号传输的数据控制模块,用于接收数据控制模块发出信号并进行信号处理的数据处理模块和用于驱动微电脑鼠运动的四轮驱动、前置驱动和后置驱动,所述数据控制模块、数据处理模块和四轮驱动、前置驱动和后置驱动电性连接。 Preferably, the maze retrieval unit, the operation control unit and the return exploration unit include a data control module for receiving signals and controlling signal transmission, a data processing module for receiving signals from the data control module and performing signal processing, and a user The four-wheel drive, the front drive and the rear drive are used to drive the movement of the microcomputer mouse, and the data control module and the data processing module are electrically connected to the four-wheel drive, the front drive and the rear drive.

优选地,所述数据控制模块中设置有ARM9芯片处理器,ARM9 芯片采用 R I SC ( Reduce Instruction Computer ,精简指令集计算机 )结构, 具有寄存器多、 寻址方式简单、 批量传输数据、 使用地址自动增减等特点。 Preferably, the data control module is provided with an ARM9 chip processor, and the ARM9 chip adopts an R ISC (Reduce Instruction Computer, reduced instruction set computer) structure, which has many registers, simple addressing methods, batch transfer of data, automatic use of addresses characteristics such as increase and decrease.

所述数据处理模块设置有LM629芯片,LM629是National semiconductor生产的一款用于精密运动控制的专用芯片,有24脚和28脚二种表面安装式封装,在一个芯片内集成了数字式运动控制的全部功能,使得设计一个快速、准确的运动控制单元的任务变得轻松、容易。 The data processing module is provided with an LM629 chip. LM629 is a dedicated chip for precise motion control produced by National Semiconductor. There are two surface-mounted packages of 24 pins and 28 pins. Digital motion control is integrated in one chip. The full range of features makes the task of designing a fast and accurate motion control unit light and easy.

优选地,所述数据处理模块中包含有LM629处理器,所述LM629处理器中包含有PWM调节器,所述PWM调节器与数据控制模块和四轮驱动、前置驱动和后置驱动电性连接;所述数据控制模块进一步包含有补偿模块。 Preferably, the data processing module includes a LM629 processor, and the LM629 processor includes a PWM regulator, and the PWM regulator and the data control module and four-wheel drive, front drive and rear drive electrical connection; the data control module further includes a compensation module.

优选地,所述迷宫调取单元还进一步包含有中断请求模块,所述传感器5、中断请求模块、数据控制模块、数据处理模块与四轮驱动、前置驱动和后置驱动之间电性连接;所述迷宫调取单元还进一步包含有复位电路和迷宫信息调取模块,所述复位电路与所述传感器5和迷宫信息调取模块电性连接。 Preferably, the maze retrieval unit further includes an interrupt request module, and the sensor 5, the interrupt request module, the data control module, the data processing module are electrically connected to the four-wheel drive, the front drive and the rear drive The maze retrieval unit further includes a reset circuit and a maze information retrieval module, and the reset circuit is electrically connected to the sensor 5 and the maze information retrieval module.

优选地,所述运行控制单元进一步包含有坐标存储模块、曲线运动控制模块、最短直线距离参数转化模块;所述传感器5与坐标存储模块、曲线运动控制模块和最短直线距离参数转化模块之间电性连接,所述曲线运动控制模块和最短直线距离参数转化模块与数据控制模块、数据处理模块与四轮驱动、前置驱动和后置驱动之间电性连接;所述传感器5将信号传送至坐标存储模块进行存储,同时将信号传送至所述数据控制模块和数据处理模块; Preferably, the operation control unit further includes a coordinate storage module, a curved motion control module, and a shortest linear distance parameter transformation module; Sexual connection, the curve motion control module and the shortest straight line distance parameter conversion module are electrically connected with the data control module, the data processing module and the four-wheel drive, front drive and rear drive; the sensor 5 transmits the signal to The coordinate storage module stores and transmits the signal to the data control module and the data processing module at the same time;

优选地,所述运行控制单元进一步包含有目标模块和误差补偿模块,所述传感器5和目标模块与误差补偿模块之间电性连接,信号从目标模块流向误差补偿模块之后通过数据控制模块和数据处理模块中的PWM波转化,然后再将控制信号传送至四轮驱动、前置驱动和后置驱动。 Preferably, the operation control unit further includes a target module and an error compensation module, the sensor 5 and the target module are electrically connected to the error compensation module, and the signal flows from the target module to the error compensation module and then passes through the data control module and the data The PWM wave in the processing module is converted, and then the control signal is sent to the four-wheel drive, front drive and rear drive.

优选地,所述返程搜索单元中进一步包含有未知搜索区域模块和已知搜索区域模块,所述未知搜索区域模块和已知搜索区域模块与电机驱动和数据处理模块电性连接。 Preferably, the return search unit further includes an unknown search area module and a known search area module, and the unknown search area module and the known search area module are electrically connected to the motor drive and data processing modules.

优选地,所述四轮驱动、前置驱动和后置驱动内设置有光电传感器,所述光电传感器与控制器电性连接。 Preferably, the four-wheel drive, the front drive and the rear drive are provided with photoelectric sensors, and the photoelectric sensors are electrically connected to the controller.

请参照图1、图2、图3、图4、图5、图6,图7和图8,为了能具体的描述微电脑鼠的快速冲刺运行状态,其具体的功能实现步骤如下。 Please refer to Fig. 1, Fig. 2, Fig. 3, Fig. 4, Fig. 5, Fig. 6, Fig. 7 and Fig. 8, in order to specifically describe the fast sprint running state of the microcomputer mouse, its specific function realization steps are as follows.

微电脑鼠未接到冲刺命令之前,控制器利用检测电压模块对电池电源进行检测,如果低压将启动低压报警装置提示充电;如果电压正常在起点坐标(0,0)等待控制器发出的冲刺命令,并利用调去迷宫最佳信息模块调出已经探索后的最优迷宫路径,当接到冲刺命令后,会沿着起点开始快速向终点(7,7)、(7,8)、(8,7)、(8,8)冲刺。 Before the microcomputer mouse receives the sprint command, the controller uses the detection voltage module to detect the battery power. If the voltage is low, the low-voltage alarm device will be activated to prompt charging; And use the best information module to transfer the maze to call out the optimal maze path that has been explored. After receiving the sprint command, it will quickly start to the end point (7, 7), (7, 8), (8, 7), (8, 8) sprint.

将微电脑鼠放在起点坐标(0,0),接到冲刺任务后为了防止放错冲刺方向,其前方的传感器5S1、S6和会对前方的环境进行判断,确定有没有挡墙进入运动范围,如存在挡墙将向ARM9处理器发出中断请求,ARM9处理器会对中断做第一时间响应,发出中断请求,然后禁止控制前后左右四轮的LM629工作,封锁微电脑鼠的前左控制电机1、前右控制电机2、后左控制电机3和后右控制电机4的PWM驱动信号,使其静止在原地。然后二次判断迷宫确定前方信息,防止信息误判;如果没有挡墙进入前方的运动范围,微电脑鼠将开启复位电路,调取正常的迷宫信息,准备进行正常的冲刺。 Place the microcomputer mouse at the starting point coordinates (0, 0). After receiving the sprint task, in order to prevent the wrong sprint direction, the sensors 5S1 and S6 in front of it will judge the environment ahead to determine whether there is a blocking wall entering the range of motion. If there is a barrier, it will send an interrupt request to the ARM9 processor, and the ARM9 processor will respond to the interrupt immediately, send an interrupt request, and then prohibit the work of the LM629 that controls the front, rear, left, and right four wheels, and block the front left control motor of the microcomputer mouse 1, The PWM driving signals of the front right control motor 2, the rear left control motor 3 and the rear right control motor 4 make it static in place. Then judge the maze for the second time to determine the information ahead to prevent misjudgment of information; if there is no retaining wall to enter the range of motion ahead, the microcomputer mouse will turn on the reset circuit to retrieve normal maze information and prepare for normal sprinting.

在微电脑启动冲刺瞬间,传感器5S1、S2、S3、S4、S5、S6(六个独立的红外发射管OPE5594A发出的红外光经接收器TSL262接受后转化为周围迷宫的信息)判断周围的环境并送给ARM9处理器。然后由ARM9处理器根据冲刺迷宫信息生成速度-时间运动梯形图的指令给定值。这个梯形包含的面积就是微电脑鼠两个前左控制电机1、前右控制电机2、后左控制电机3和后右控制电机4要运行的距离S1。然后ARM9处理器使能四轴LM629,与LM629通讯,由LM629根据这些参数结合光电编码器和电流传感器的反馈生成驱动四轴直流电机的PWM波。PWM波经驱动桥后驱动四个电机进行运转,完成整个加速过程直到达到冲刺设定速度。并把处理数据通讯给ARM9处理器,由ARM9处理器继续处理后续的运行状态。 At the moment when the microcomputer starts to sprint, the sensors 5S1, S2, S3, S4, S5, and S6 (the infrared light emitted by six independent infrared emitting tubes OPE5594A is received by the receiver TSL262 and converted into the information of the surrounding maze) judge the surrounding environment and send for ARM9 processors. Then the ARM9 processor generates the command given value of the speed-time motion ladder diagram according to the sprint maze information. The area contained in this trapezoid is exactly the distance S1 that the two front left control motors 1, front right control motor 2, rear left control motor 3 and rear right control motor 4 of the microcomputer mouse will run. Then the ARM9 processor enables the four-axis LM629, communicates with the LM629, and the LM629 generates PWM waves to drive the four-axis DC motor according to these parameters combined with the feedback from the photoelectric encoder and current sensor. The PWM wave drives four motors to run after passing through the drive axle, and completes the entire acceleration process until reaching the sprint set speed. And communicate the processing data to the ARM9 processor, and the ARM9 processor continues to process the subsequent running state.

在微电脑鼠沿着Y轴向前快速冲刺过程中如果迷宫信息中显示前方有Z格直线坐标下没有挡墙进入前方的运动范围,微电脑鼠将存储其现在的坐标(X,Y)至坐标存储模块,并把向前运动Z格的位置参数传输给ARM9处理器,然后ARM9处理器把此参数按照各种冲刺条件不同的要求转化为速度参数以及加速度参数并使能后驱的两片LM629,然后把设定指令值传输给控制左右轮的LM629,LM629内部的梯形运动发生器会根据这些参数并结合光电编码器和电流传感器的反馈生成驱动左右轮的PWM波形,控制左右轮的前左控制电机1和前右控制电机2向前运动快速,并时刻记录在迷宫移动的具体距离S。如果在快速冲刺运动过程中,出现打滑或者是灰尘较多的状况时, ARM9处理器 会使能前驱的两片LM629,ARM9处理器把剩余的距离转化为新的参考指令值传输给控制前后左右四轮的LM629,LM629内部的梯形运动发生器会根据这些参数结合光电编码盘和电流传感器的反馈生成驱动前后左右四轮的PWM波形。经驱动桥控制前后左右轮的前左控制电机1、前右控制电机2、后左控制电机3和后右控制电机4向前运动,当到达设定目标时,将更新其坐标为(X,Y+Z),在其向前运动过程到达既定目标时,在Y+Z<15的前提下,判断其坐标是不是(7,7)、(7,8)、(8,7)、(8,8)其中的一个,如果不是将继续更新其坐标,如果是的话通知控制器已经冲刺到目标,然后置返航探索标志为1,冲刺标志为0,微电脑鼠准备冲刺后的二次返程探索,去搜寻更优的迷宫路径。 During the rapid sprinting process of the microcomputer mouse along the Y axis, if the maze information shows that there is a Z grid line coordinate in front and no barrier wall enters the front movement range, the microcomputer mouse will store its current coordinates (X, Y) to the coordinate storage module, and transmit the position parameter of the Z grid forward to the ARM9 processor, and then the ARM9 processor converts this parameter into a speed parameter and an acceleration parameter according to different requirements of various sprint conditions and enables two LM629s of the rear drive, Then transmit the set command value to the LM629 that controls the left and right wheels. The trapezoidal motion generator inside the LM629 will generate PWM waveforms that drive the left and right wheels based on these parameters and combined with the feedback from the photoelectric encoder and current sensor, and control the front left control of the left and right wheels. The motor 1 and the front right control motor 2 move forward quickly, and record the specific distance S moved in the maze at all times. If there is slipping or dust in the process of fast sprinting, the ARM9 processor will enable the two LM629s of the front drive, and the ARM9 processor will convert the remaining distance into a new reference command value and transmit it to the front, rear, left, and right The four-wheel LM629, the trapezoidal motion generator inside the LM629 will generate PWM waveforms that drive the front, rear, left, and right four wheels based on these parameters combined with the feedback from the photoelectric encoder and current sensor. The front left control motor 1, the front right control motor 2, the rear left control motor 3 and the rear right control motor 4 of the front and rear left and right wheels controlled by the drive axle move forward. When the set target is reached, its coordinates will be updated as (X, Y+Z), when its forward movement reaches the established target, under the premise of Y+Z<15, judge whether its coordinates are (7, 7), (7, 8), (8, 7), ( 8, 8) One of them, if not, will continue to update its coordinates, if it is, notify the controller that it has sprinted to the target, and then set the return exploration flag to 1, and the sprint flag to 0, and the microcomputer mouse is ready for the second return exploration after sprinting , to search for a better maze path.

在微电脑鼠沿着Y轴反向快速冲刺过程中如果迷宫信息中显示前方有Z格直线坐标下没有挡墙进入前方的运动范围,微电脑鼠将存储其现在的坐标(X,Y)至坐标存储模块,并把反向运动Z格的位置参数传输给ARM9处理器,然后ARM9处理器把此参数按照各种冲刺条件不同的要求转化为速度参数以及加速度参数并使能后驱的两片LM629,然后把设定指令值传输给控制左右轮的LM629,LM629内部的梯形运动发生器会根据这些参数并结合光电编码器和电流传感器的反馈生成驱动左右轮的PWM波形,控制左右轮的前左控制电机1和前右控制电机2向前运动快速,并时刻记录在迷宫移动的具体距离S。如果在快速冲刺运动过程中,出现打滑或者是灰尘较多的状况时,ARM9处理器会使能前驱的两片LM629,ARM9处理器把剩余的距离转化为新的参考指令值传输给控制前后左右四轮的LM629。LM629内部的梯形运动发生器会根据这些参数结合光电编码盘的反馈生成驱动前后左右四轮的PWM波形和方向。经驱动桥控制前后左右轮的前左控制电机1、前右控制电机2、后左控制电机3和后右控制电机4向前运动。当到达设定目标时,将更新其坐标为(X,Y-Z),在其向前运动过程到达既定目标时,在Y-Z>0的前提下,判断其坐标是不是(7,7)、(7,8)、(8,7)、(8,8)其中的一个,如果不是将继续更新其坐标;如果是的话通知控制器已经冲刺到目标,然后置返航探索标志为1,冲刺标志为0,微电脑鼠准备冲刺后的二次返程探索,去搜寻更优的迷宫路径。 During the rapid reverse sprint of the microcomputer mouse along the Y axis, if the maze information shows that there is a Z-grid linear coordinate in front and no barrier wall enters the movement range ahead, the microcomputer mouse will store its current coordinates (X, Y) to the coordinate storage module, and transmit the position parameter of Z grid in the reverse movement to the ARM9 processor, and then the ARM9 processor converts this parameter into a speed parameter and an acceleration parameter according to different requirements of various sprint conditions and enables two LM629s of the rear drive, Then transmit the set command value to the LM629 that controls the left and right wheels. The trapezoidal motion generator inside the LM629 will generate PWM waveforms that drive the left and right wheels based on these parameters and combined with the feedback from the photoelectric encoder and current sensor, and control the front left control of the left and right wheels. The motor 1 and the front right control motor 2 move forward quickly, and record the specific distance S moved in the maze at all times. If there is slipping or dusty conditions during the fast sprint movement, the ARM9 processor will enable the two LM629s of the front drive, and the ARM9 processor will convert the remaining distance into a new reference command value and transmit it to the front, rear, left, and right. LM629 with four wheels. The trapezoidal motion generator inside the LM629 will generate PWM waveforms and directions for driving the front, rear, left, and right wheels according to these parameters and the feedback from the photoelectric encoder. The front left control motor 1, the front right control motor 2, the rear left control motor 3 and the rear right control motor 4 move forward through the drive axle control front and rear left and right wheels. When it reaches the set target, its coordinates will be updated to (X, Y-Z). When it reaches the set target during its forward movement, under the premise of Y-Z>0, judge whether its coordinates are (7, 7), (7 , 8), (8, 7), (8, 8), if not, it will continue to update its coordinates; if it is, notify the controller that it has sprinted to the target, and then set the return exploration flag to 1, and the sprint flag to 0 , the microcomputer mouse prepares for the second return exploration after the sprint, to search for a better maze path.

在微电脑鼠沿着Y轴向前运动过程中如果有迷宫挡墙进入前方的运动范围,并且此时迷宫信息中左方有挡墙时,微电脑鼠将存储此时坐标(X,Y)至坐标存储模块,然后进入曲线运动轨迹。在右冲刺转弯时,ARM9处理器首先把行走直线很短的距离 Leading按照各种冲刺条件不同的要求转化为速度参数以及加速度参数然后使能前后左右的四片LM629。然后把此设定指令值传输给控制前后左右轮的LM629, LM629内部的梯形运动发生器会根据这些参数并结合光电编码器和电流传感器的反馈生成驱动前后左右轮的PWM波形和方向,控制前左控制电机1、前右控制电机2、后左控制电机3和后右控制电机4向前快速运动。当到达既定目标时,传感器5参考值R90_FrontWallRef开始工作,防止外界干扰开始做误差补偿。误差补偿结束后, ARM9处理器把行走的曲线轨迹Arc1和Arc3按照各种冲刺条件不同的要求转化为后驱和前驱的四片LM629的速度参数以及加速度参数指令值,LM629内部的梯形运动发生器会根据这些参数并结合光电编码器和电流传感器的反馈生成驱动前驱和后驱四轴电机的PWM波形,然后控制前后左右四轮工作。当到达既定目标后, ARM9处理器把行走的曲线轨迹Arc2和Arc4按照各种冲刺条件不同的要求转化为后驱和前驱的四片LM629的速度参数以及加速度参数指令值,LM629内部的梯形运动发生器会根据这些参数并结合光电编码器和电流传感器的反馈生成驱动前驱和后驱四轴电机的PWM波形,然后控制前后左右四轮工作。当到达既定目标后,控制器把直线行走很短的距离 Passing按照各种冲刺条件不同的要求转化为速度参数以及加速度参数然后使能前后左右的四片LM629,然后把此设定指令值传输给控制前后左右轮的LM629, LM629内部的梯形运动发生器会根据这些参数并结合光电编码器和电流传感器的反馈生成驱动前后左右轮的PWM波形,控制前左控制电机1、前右控制电机2、后左控制电机3和后右控制电机4向前快速运动。当到达既定目标后完成整个右转弯的轨迹曲线运动。此时将更新其坐标为(X+1,Y),在X+1<15的前提下,判断其坐标是不是(7,7)、(7,8)、(8,7)、(8,8)其中的一个,如果不是将继续更新其坐标;如果是的话通知控制器已经冲刺到目标,然后置返航探索标志为1,冲刺标志为0,微电脑鼠准备冲刺后的二次返程探索,去搜寻更优的迷宫路径。 When the microcomputer mouse moves forward along the Y axis, if there is a maze wall entering the front movement range, and there is a wall on the left in the maze information at this time, the microcomputer mouse will store the coordinates (X, Y) at this time to the coordinates Storage module, and then enter the curve motion track. When sprinting to the right and turning, the ARM9 processor first converts the short distance of walking in a straight line Leading into speed parameters and acceleration parameters according to different requirements of various sprint conditions, and then enables four LM629s in the front, rear, left, and right. Then transmit this set command value to LM629 which controls the front, rear, left, and right wheels. The trapezoidal motion generator inside the LM629 will generate PWM waveforms and directions for driving the front, rear, left, and right wheels according to these parameters and combined with the feedback from the photoelectric encoder and current sensor, and control the front and rear wheels. The left control motor 1, the front right control motor 2, the rear left control motor 3 and the rear right control motor 4 move forward rapidly. When the target is reached, the reference value R90_FrontWallRef of the sensor 5 starts to work to prevent external interference and start error compensation. After the error compensation is completed, the ARM9 processor converts the walking curve trajectory Arc1 and Arc3 into the speed parameters and acceleration parameter command values of the four LM629s of the rear drive and front drive according to the requirements of various sprint conditions. The trapezoidal motion generator inside the LM629 Based on these parameters and combined with the feedback from the photoelectric encoder and current sensor, the PWM waveforms for driving the front and rear drive four-axis motors are generated, and then the front, rear, left, and right wheels are controlled to work. When the target is reached, the ARM9 processor converts the walking curve trajectory Arc2 and Arc4 into the speed parameters and acceleration parameter command values of the four LM629s of the rear drive and front drive according to the requirements of various sprint conditions, and the trapezoidal movement inside the LM629 occurs According to these parameters and combined with the feedback of the photoelectric encoder and current sensor, the PWM waveform for driving the four-axis motors of the front and rear drives will be generated, and then the front, rear, left, and right wheels will be controlled to work. When the target is reached, the controller converts the straight-line walking for a short distance Passing into speed parameters and acceleration parameters according to the requirements of various sprint conditions, and then enables the four LM629s on the front, back, left, and right sides, and then transmits the set command value to the The LM629 that controls the front, rear, left, and right wheels, the trapezoidal motion generator inside the LM629 will generate PWM waveforms that drive the front, rear, left, and right wheels based on these parameters and combined with the feedback from the photoelectric encoder and current sensor, and control the front left control motor 1, front right control motor 2, The rear left control motor 3 and the rear right control motor 4 move forward rapidly. Complete the trajectory curve motion of the whole right turn after reaching the established target. At this time, its coordinates will be updated to (X+1, Y), and under the premise of X+1<15, judge whether its coordinates are (7, 7), (7, 8), (8, 7), (8 , 8) One of them, if not, will continue to update its coordinates; if it is, notify the controller that it has sprinted to the target, and then set the return exploration flag to 1, and the sprint flag to 0, and the microcomputer mouse is ready for the second return exploration after sprinting, To search for a better maze path.

在微电脑鼠沿着Y轴向前运动过程中如果有迷宫挡墙进入前方的运动范围,并且此时迷宫信息中右方有挡墙时,微电脑鼠将存储此时坐标(X,Y),然后进入曲线运动轨迹,在左冲刺转弯时,ARM9处理器首先把行走直线很短的距离 Leading按照各种冲刺条件不同的要求转化为速度参数以及加速度参数然后使能前后左右的四片LM629,然后把此设定指令值传输给控制前后左右轮的LM629, LM629内部的梯形运动发生器会根据这些参数并结合光电编码器和电流传感器的反馈生成驱动前后左右轮的PWM波形,控制前左控制电机1、前右控制电机2、后左控制电机3和后右控制电机4向前快速运动。当到达既定目标时,传感器5参考值L90_FrontWallRef开始工作,防止外界干扰开始做误差补偿。误差补偿结束后,ARM9处理器把行走的曲线轨迹Arc1和Arc3按照各种冲刺条件不同的要求转化为后驱和前驱的四片LM629的速度参数以及加速度参数指令值。LM629内部的梯形运动发生器会根据这些参数并结合光电编码器和电流传感器的反馈生成驱动前驱和后驱四轴电机的PWM波形。然后控制前后左右四轮工作;当到达既定目标后, ARM9处理器把行走的曲线轨迹Arc2和Arc4按照各种冲刺条件不同的要求转化为后驱和前驱的四片LM629的速度参数以及加速度参数指令值,LM629内部的梯形运动发生器会根据这些参数并结合光电编码器和电流传感器的反馈生成驱动前驱和后驱四轴电机的PWM波形,然后控制前后左右四轮工作。当到达既定目标后,控制器把直线行走很短的距离 Passing按照各种冲刺条件不同的要求转化为速度参数以及加速度参数然后使能前后左右的四片LM629,然后把此设定指令值传输给控制前后左右轮的LM629, LM629内部的梯形运动发生器会根据这些参数并结合光电编码器和电流传感器的反馈生成驱动前后左右轮的PWM波形,控制前左控制电机1、前右控制电机2、后左控制电机3和后右控制电机4向前快速运动,当到达既定目标后完成整个左转弯的轨迹曲线运动。此时将更新其坐标为(X-1,Y),在X-1>0的前提下,判断其坐标是不是(7,7)、(7,8)、(8,7)、(8,8)其中的一个,如果不是将继续更新其坐标,如果是的话通知控制器已经冲刺到目标,然后置返航探索标志为1,冲刺标志为0,微电脑鼠准备冲刺后的二次返程探索,去搜寻更优的迷宫路径。 When the microcomputer mouse moves forward along the Y axis, if there is a maze wall entering the front movement range, and there is a wall on the right in the maze information at this time, the microcomputer mouse will store the coordinates (X, Y) at this time, and then Entering the curved trajectory, when sprinting to the left and turning, the ARM9 processor first converts the short distance of walking in a straight line Leading into speed parameters and acceleration parameters according to the requirements of various sprint conditions, and then enables the front, rear, left, and right four LM629s, and then converts the This setting command value is transmitted to the LM629 that controls the front, rear, left, and right wheels. The trapezoidal motion generator inside the LM629 will generate PWM waveforms that drive the front, rear, left, and right wheels based on these parameters and combined with the feedback from the photoelectric encoder and current sensor, and control the front left control motor 1 , the front right control motor 2, the rear left control motor 3 and the rear right control motor 4 move fast forward. When the target is reached, the reference value L90_FrontWallRef of the sensor 5 starts to work to prevent external interference and start error compensation. After the error compensation is over, the ARM9 processor converts the walking curves Arc1 and Arc3 into the speed parameters and acceleration parameter command values of the four LM629s of the rear and front drives according to the different requirements of various sprint conditions. The trapezoidal motion generator inside the LM629 will generate PWM waveforms for driving the front-drive and rear-drive four-axis motors based on these parameters and combined with the feedback from the photoelectric encoder and current sensor. Then control the work of the front, rear, left, and right four wheels; when the target is reached, the ARM9 processor converts the walking curve trajectory Arc2 and Arc4 into the speed parameters and acceleration parameter commands of the four LM629s of the rear drive and the front drive according to the requirements of various sprint conditions value, the trapezoidal motion generator inside the LM629 will generate PWM waveforms for driving the front and rear drive four-axis motors based on these parameters and the feedback from the photoelectric encoder and current sensor, and then control the work of the front, rear, left, and right wheels. When the target is reached, the controller converts the straight-line walking for a short distance Passing into speed parameters and acceleration parameters according to the requirements of various sprint conditions, and then enables the four LM629s on the front, back, left, and right sides, and then transmits the set command value to the The LM629 that controls the front, rear, left, and right wheels, the trapezoidal motion generator inside the LM629 will generate PWM waveforms that drive the front, rear, left, and right wheels based on these parameters and combined with the feedback from the photoelectric encoder and current sensor, and control the front left control motor 1, front right control motor 2, The rear left control motor 3 and the rear right control motor 4 move forward quickly, and complete the trajectory curve motion of the whole left turn after reaching the established target. At this time, its coordinates will be updated to (X-1, Y). On the premise of X-1>0, judge whether its coordinates are (7, 7), (7, 8), (8, 7), (8 , 8) One of them, if not, will continue to update its coordinates, if it is, notify the controller that it has sprinted to the target, and then set the return exploration flag to 1, and the sprint flag to 0, and the microcomputer mouse is ready for the second return exploration after sprinting, To search for a better maze path.

当微电脑鼠冲刺到达(7,7)、(7,8)、(8,7)、(8,8)后会准备冲刺后的返程探索以便搜寻更优的路径,控制器会调出其已经存储的迷宫信息,然后计算出可能存在的其它最佳路径,然后返程开始进入其中认为最优的一条。 When the microcomputer mouse sprints to (7, 7), (7, 8), (8, 7), (8, 8), it will prepare for the return journey after the sprint to search for a better path, and the controller will call out its Stored maze information, and then calculate other possible optimal paths, and then start the return journey to enter the one that is considered optimal.

在微电脑鼠进入迷宫返程探索时,其导航的传感器5S1、S2、S3、S4、S5、S6将工作。并把反射回来的光电信号送给ARM9处理器,经ARM9处理器判断后送给LM629,由LM629运算后与ARM9处理器进行通讯。然后由控制器送控制信号给导航的前左控制电机1、前右控制电机2、后左控制电机3和后右控制电机4进行确定:如果进入已经搜索的区域将进行快速前进,ARM9处理器会加大控制电机的占空比,以快速通过已知区域,减少二次探索时间;如果是未知返回区域则采用正常速度搜索,并时刻更新其坐标(X,Y),并判断其坐标是不是(0,0),如果是的话置返航探索标志为0,微电脑鼠进入冲刺阶段,并置冲刺标志为1。 When the microcomputer mouse enters the maze and returns to explore, its navigation sensors 5S1, S2, S3, S4, S5, and S6 will work. And the reflected photoelectric signal is sent to the ARM9 processor, and after being judged by the ARM9 processor, it is sent to the LM629, and the LM629 communicates with the ARM9 processor after calculation. Then the controller sends control signals to the front left control motor 1, front right control motor 2, rear left control motor 3 and rear right control motor 4 of the navigation to determine: if it enters the searched area, it will move forward quickly, and the ARM9 processor It will increase the duty cycle of the control motor to quickly pass through the known area and reduce the secondary exploration time; if it is an unknown return area, it will search at a normal speed, and update its coordinates (X, Y) at all times, and judge whether its coordinates are If it is not (0, 0), if it is, set the return exploration flag to 0, and the microcomputer mouse enters the sprint stage, and set the sprint flag to 1.

为了能够实现微电脑鼠准确迷宫冲刺的坐标计算功能,微电脑鼠左右的传感器5S2、S3和S4、S5会时刻对周围的迷宫挡墙和柱子进行探测。如果S2、S3或者S4、S5发现传感器信号发生了跃变,则说明微电脑鼠进入了迷宫挡墙和柱子的交接点,此时侧面传感器5S2或者是S5会精确探测这一时刻。当再次出现跃变时,说明老鼠已经开始当前的迷宫格子,ARM9处理器会根据微电脑鼠当前运行的距离进行计算并根据对传感器反馈信息进行补偿,本发明在高速直流前左控制电机1、前右控制电机2、后左控制电机3和后右控制电机4上加入了512线的光电编码器。由于精度较高,使得微电脑鼠的坐标计算不会出现错误,保证了微电脑鼠的快速冲刺时迷宫读取的准确性。 In order to realize the coordinate calculation function of the accurate maze sprint of the microcomputer mouse, the left and right sensors 5S2, S3, S4, and S5 of the microcomputer mouse will detect the surrounding maze retaining walls and pillars at all times. If S2, S3 or S4, S5 find that the sensor signal jumps, then it shows that the microcomputer mouse has entered the junction point of the maze retaining wall and the pillar, and now the side sensor 5S2 or S5 can accurately detect this moment. When the jump occurs again, it means that the mouse has started the current maze grid, and the ARM9 processor will calculate according to the current running distance of the microcomputer mouse and compensate according to the feedback information of the sensor. The photoelectric encoder of 512 lines has been added on the right control motor 2, the rear left control motor 3 and the rear right control motor 4. Due to the high precision, the calculation of the coordinates of the microcomputer mouse will not be wrong, which ensures the accuracy of reading the maze when the microcomputer mouse sprints quickly.

为了能够减少光源对微电脑鼠冲刺的干扰,本发明加入了光电传感器,此传感器5会在微电脑鼠冲刺阶段对周围的异常光源进行读取,并自动送给控制器做实时补偿,消除了外界光源对冲刺的干扰。 In order to reduce the interference of the light source on the sprinting of the microcomputer mouse, the present invention adds a photoelectric sensor. The sensor 5 will read the surrounding abnormal light sources during the sprinting stage of the microcomputer mouse, and automatically send them to the controller for real-time compensation, eliminating the need for external light sources Interference with the sprint.

在微电脑鼠冲刺过程中,ARM9处理器会对直流电机的转矩进行在线辨识,当电机的转矩收到外界干扰出现较大抖动时,控制器会利用电机力矩与电流的关系进行时候补偿,减少了电机转矩抖动对微电脑鼠快速冲刺的影响。 During the sprinting process of the microcomputer mouse, the ARM9 processor will conduct online identification of the torque of the DC motor. When the torque of the motor receives external interference and there is a large jitter, the controller will use the relationship between the torque and current of the motor to perform time compensation. Reduced the impact of motor torque jitter on the rapid sprint of the microcomputer mouse.

如果微电脑鼠在冲刺过程中遇到地面打滑或者是读错迷宫信息时,经常会出现撞墙的现象,此时电机的电流将增大。当超过设定值时,LM629的中断命令LPES将会向ARM9处理器发出中断请求,此时ARM9处理器会立即控制四片LM629停止工作,立刻释放前左控制电机1、前右控制电机2、后左控制电机3和后右控制电机4,不仅减少有效地解决了堵转问题,而且也减少了对系统硬件的破坏。 If the microcomputer mouse encounters ground slippage or misreads maze information during the sprinting process, it will often hit the wall, and the current of the motor will increase at this time. When the set value is exceeded, the interrupt command LPES of the LM629 will send an interrupt request to the ARM9 processor. At this time, the ARM9 processor will immediately control the four LM629s to stop working, and immediately release the front left control motor 1, front right control motor 2, The rear left control motor 3 and the rear right control motor 4 not only reduce and effectively solve the stall problem, but also reduce damage to system hardware.

当微电脑完成整个冲刺过程到达(7,7)、(7,8)、(8,7)、(8,8),微电脑鼠会置探索标志为1,微电脑鼠返程探索回到起始点(0,0),ARM9(S3C2440A)将控制四片LM629的PWM波输出使得微电脑在起始点中心点停车,然后重新调整LM629的PWM波输出,使得两侧的电机:前左控制电机1、后左控制电机3和前右控制电机2、后右控制电机4以相反的方向运动,并在陀螺仪的控制下,原地旋转180度,然后停车1秒,二次调取迷宫信息,然后根据算法算出优化迷宫信息后的最优冲刺路径,然后置冲刺标志为1,系统进入二次快速冲刺阶段。然后按照冲刺----探索---冲刺,完成多次的冲刺,以达到快速冲刺的目的。 When the microcomputer completes the entire sprint process and reaches (7, 7), (7, 8), (8, 7), (8, 8), the microcomputer mouse will set the exploration flag to 1, and the microcomputer mouse will return to the starting point (0 , 0), ARM9 (S3C2440A) will control the PWM wave output of four LM629s to make the microcomputer stop at the center of the starting point, and then readjust the PWM wave output of the LM629 so that the motors on both sides: front left control motor 1, rear left control The motor 3, the front right control motor 2, and the rear right control motor 4 move in opposite directions, and under the control of the gyroscope, rotate 180 degrees in situ, then stop for 1 second, retrieve the maze information twice, and then calculate according to the algorithm The optimal sprint path after optimizing the maze information, then set the sprint flag to 1, and the system enters the second rapid sprint stage. Then follow the sprint----exploration----sprint, and complete multiple sprints to achieve the goal of fast sprint.

以上所述仅为本发明的实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其它相关的技术领域,均同理包括在本发明的专利保护范围内。 The above is only an embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process conversion made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technologies fields, all of which are equally included in the scope of patent protection of the present invention.

Claims (8)

1. one kind based on the double-core four-wheel micro computer mouse controller of making a spurt fast, it is characterized in that, comprising: supply unit, detect voltage module, low-pressure alarming device, transfer labyrinth best information module, sensor, servo regulation unit, controller and motor; Described sensor setting is 6, and described controller includes: the first driver element, the second driver element, the 3rd driver element and 4 wheel driven moving cell, and described motor includes the first motor, the second motor, the 3rd motor and the 4th motor; Described detection voltage module and supply unit and low-pressure alarming device are electrically connected; Supply unit and described labyrinth best information module, sensor, servo regulation unit, controller and the motor transferred are electrically connected; The described labyrinth best information module of transferring is electrically connected by sensor and described servo regulation unit.
2. according to claim 1 a kind of based on the double-core four-wheel micro computer mouse controller of making a spurt fast, it is characterized in that, described servo regulation unit is four axle synchronous servo regulation units, comprises that unit is transferred in labyrinth, operation control module and return are explored unit; Described labyrinth is transferred unit and described operation control module and return and is explored the unit electric connection; The order that signal is transferred unit, operation control module and return exploration unit by labyrinth is transmitted successively.
3. according to claim 2 a kind of based on the double-core four-wheel micro computer mouse controller of making a spurt fast, it is characterized in that, described labyrinth is transferred in unit, operation control module and return exploration unit and is included for receiving the Data Control module of signal control signal transmission, data processing module and four-wheel drive, pre-driver and rearmounted driving for driving the motion of micro computer mouse of for receiving the Data Control module, sending signal and carrying out the signal processing, described Data Control module, data processing module and four-wheel drive, pre-driver and rearmounted the driving are electrically connected.
4. according to claim 3 a kind of based on the double-core four-wheel micro computer mouse controller of making a spurt fast, it is characterized in that, include the LM629 processor in described data processing module, include pwm modulator in described LM629 processor, described pwm modulator and Data Control module and four-wheel drive, pre-driver and rearmounted the driving are electrically connected; Described Data Control module further includes compensating module.
5. according to claim 4 a kind of based on the double-core four-wheel micro computer mouse controller of making a spurt fast, it is characterized in that, described labyrinth is transferred unit and is also further included the interrupt request module, between described sensor, interrupt request module, Data Control module, data processing module and four-wheel drive, pre-driver and rearmounted the driving, is electrically connected; Described labyrinth transfers that unit also further includes reset circuit and labyrinth information is transferred module, and described reset circuit and described sensor and labyrinth information are transferred module and is electrically connected.
6. according to claim 4 a kind ofly it is characterized in that based on the double-core four-wheel micro computer mouse controller of making a spurt fast,
(1) described operation control module further includes coordinate memory module, curvilinear motion control module, short lines distance parameter conversion module; Be electrically connected between described sensor and coordinate memory module, curvilinear motion control module and short lines distance parameter conversion module, be electrically connected between described curvilinear motion control module and short lines distance parameter conversion module and Data Control module, data processing module and four-wheel drive, pre-driver and rearmounted the driving; Described sensor transmits signals to the coordinate memory module and is stored, and transmits signals to described Data Control module and data processing module simultaneously;
(2) described operation control module further includes object module and error compensation module, between described sensor and object module and error compensation module, be electrically connected, signal transforms by the PWM ripple Data Control module and data processing module after object module flows to the error compensation module, and then control signal is sent to four-wheel drive, pre-driver and rearmounted the driving.
7. according to claim 4 a kind of based on the double-core four-wheel micro computer mouse controller of making a spurt fast, it is characterized in that, further include unknown region of search module and known search regions module in described return search unit, described unknown region of search module and known search regions module and motor drive and data processing module is electrically connected.
8. according to claim 3 a kind ofly it is characterized in that based on the double-core four-wheel micro computer mouse controller of making a spurt fast, be provided with photoelectric sensor in described four-wheel drive, pre-driver and rearmounted the driving, described photoelectric sensor and controller electric connection.
CN2013104186486A 2013-09-16 2013-09-16 Fast sprint controller of four-wheel micro-mouse based on double processors Pending CN103472838A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013104186486A CN103472838A (en) 2013-09-16 2013-09-16 Fast sprint controller of four-wheel micro-mouse based on double processors

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013104186486A CN103472838A (en) 2013-09-16 2013-09-16 Fast sprint controller of four-wheel micro-mouse based on double processors

Publications (1)

Publication Number Publication Date
CN103472838A true CN103472838A (en) 2013-12-25

Family

ID=49797728

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013104186486A Pending CN103472838A (en) 2013-09-16 2013-09-16 Fast sprint controller of four-wheel micro-mouse based on double processors

Country Status (1)

Country Link
CN (1) CN103472838A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105137985A (en) * 2015-08-24 2015-12-09 铜陵学院 Double-core intermediate speed four-wheel mini mouse exploration device
CN105137984A (en) * 2015-08-24 2015-12-09 铜陵学院 Double-core intermediate speed four-wheel mini mouse spurting controller
CN105137982A (en) * 2015-08-24 2015-12-09 铜陵学院 Single-core low-speed four-wheel mini mouse sprint controller and control method for the same
CN105334853A (en) * 2015-08-24 2016-02-17 铜陵学院 Double-core high-speed four-wheel miniature micro-mouse sprint controller

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2931011Y (en) * 2006-07-10 2007-08-08 北京工业大学 Intelligent maze robot
KR20100087998A (en) * 2009-01-29 2010-08-06 정호원 Tracing robot for game and toy
CN102323823A (en) * 2011-07-06 2012-01-18 天津工业大学 Double steering gear six-wheel trolley control device
CN202838024U (en) * 2012-09-21 2013-03-27 苏州工业园区职业技术学院 Novel automatic control system for quick sprint of a microcomputer mouse
CN202929504U (en) * 2012-09-21 2013-05-08 苏州工业园区职业技术学院 A new type of microcomputer mouse to quickly explore the automatic control system
CN203535479U (en) * 2013-09-16 2014-04-09 苏州工业园区职业技术学院 Fast sprint controller of four-wheel micro-mouse based on dual processors

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2931011Y (en) * 2006-07-10 2007-08-08 北京工业大学 Intelligent maze robot
KR20100087998A (en) * 2009-01-29 2010-08-06 정호원 Tracing robot for game and toy
CN102323823A (en) * 2011-07-06 2012-01-18 天津工业大学 Double steering gear six-wheel trolley control device
CN202838024U (en) * 2012-09-21 2013-03-27 苏州工业园区职业技术学院 Novel automatic control system for quick sprint of a microcomputer mouse
CN202929504U (en) * 2012-09-21 2013-05-08 苏州工业园区职业技术学院 A new type of microcomputer mouse to quickly explore the automatic control system
CN203535479U (en) * 2013-09-16 2014-04-09 苏州工业园区职业技术学院 Fast sprint controller of four-wheel micro-mouse based on dual processors

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
周建玉: "基于粒子群算法的迷宫电脑鼠应用研究", 《信息科技辑》, 15 August 2010 (2010-08-15) *
张辉辉等: "基于ARM的电脑鼠控制系统研究", 《电子元器件应用》, vol. 13, no. 11, 15 November 2011 (2011-11-15) *
曾璐等: "迷宫电脑鼠控制系统研究", 《自动化博览》, 15 July 2009 (2009-07-15) *
李斌等: "面向复杂环境作业的轮式滑动转向移动机器人平台设计", 《2009年中国智能自动化会议论文集(第二分册)》, 27 September 2009 (2009-09-27) *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105137985A (en) * 2015-08-24 2015-12-09 铜陵学院 Double-core intermediate speed four-wheel mini mouse exploration device
CN105137984A (en) * 2015-08-24 2015-12-09 铜陵学院 Double-core intermediate speed four-wheel mini mouse spurting controller
CN105137982A (en) * 2015-08-24 2015-12-09 铜陵学院 Single-core low-speed four-wheel mini mouse sprint controller and control method for the same
CN105334853A (en) * 2015-08-24 2016-02-17 铜陵学院 Double-core high-speed four-wheel miniature micro-mouse sprint controller

Similar Documents

Publication Publication Date Title
CN103472837A (en) Fast sprint controller of two-wheel micro-mouse based on double processors
CN103472830A (en) Ultra-fast exploring controller of two-wheel micro-mouse based on dual processors
CN103472839A (en) Fast exploring controller of four-wheel micro-mouse based on double processors
CN102841620B (en) Novel micro-mouse quick sprint automatic control system
CN103529832A (en) Diagonal sprint system based on dual-core four-wheel high-speed microcomputer mouse
CN203535477U (en) Four-wheel micro-mouse sprint controller based on ARM9
CN103472835B (en) Based on double-core four-wheel micro computer Mus fast sprint controller
CN103472840A (en) Probe controller based on ARM9 four-wheeled microcomputer mouse
CN103472838A (en) Fast sprint controller of four-wheel micro-mouse based on double processors
CN103529846B (en) Based on double-core four-wheel high speed micro computer mouse continuous rotation sprint servo-drive system
CN103529837A (en) Dual-core two-wheeled top-speed microcomputer mouse-based diagonal sprint servo system
CN203909615U (en) ARM9-based continuous-turning sprint servo system for four-wheeled fast microcomputer mouse
CN105116898A (en) Single-core low-speed two-wheeled picomouse sprint controller
CN105116891A (en) Double-core middle-speed two-wheeled picomouse sprint controller and control method thereof
CN105137979A (en) Double-core intermediate speed six-wheel mini mouse spurting controller and control method
CN203643838U (en) Based on dual-core four-wheel microcomputer mouse and its fast sprint controller
CN103472831B (en) Based on double-core four-wheel micro computer Mus supper-fast exploration controller
CN105137981A (en) Single-core low-speed four-wheel mini mouse exploration controller and control method
CN203535478U (en) Fast exploring controller of four-wheel micro-mouse based on double processors
CN103605363A (en) Four-wheeled microcomputer mouse sprint controller based on ARM9
CN203643835U (en) Microcomputer mouse based on dual-core two-wheel and its ultra-fast exploration controller
CN102841621B (en) Micro-mouse quick sprint automatic control system
CN203535479U (en) Fast sprint controller of four-wheel micro-mouse based on dual processors
CN103472836A (en) Fast exploring controller of two-wheel micro-mouse based on double processors
CN103472834A (en) Ultra-fast sprint controller of two-wheel micro-mouse based on dual processors

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20131225

RJ01 Rejection of invention patent application after publication