CN103529837A - Dual-core two-wheeled top-speed microcomputer mouse-based diagonal sprint servo system - Google Patents
Dual-core two-wheeled top-speed microcomputer mouse-based diagonal sprint servo system Download PDFInfo
- Publication number
- CN103529837A CN103529837A CN201310443875.4A CN201310443875A CN103529837A CN 103529837 A CN103529837 A CN 103529837A CN 201310443875 A CN201310443875 A CN 201310443875A CN 103529837 A CN103529837 A CN 103529837A
- Authority
- CN
- China
- Prior art keywords
- speed
- sprint
- motor
- spurt
- wheeled
- 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
Links
- 230000033001 locomotion Effects 0.000 claims abstract description 82
- 238000000034 method Methods 0.000 claims abstract description 31
- 230000008569 process Effects 0.000 claims abstract description 19
- 230000001133 acceleration Effects 0.000 claims description 48
- HBBGRARXTFLTSG-UHFFFAOYSA-N Lithium ion Chemical compound [Li+] HBBGRARXTFLTSG-UHFFFAOYSA-N 0.000 claims description 7
- 229910001416 lithium ion Inorganic materials 0.000 claims description 7
- 238000013500 data storage Methods 0.000 claims description 5
- 230000005540 biological transmission Effects 0.000 claims description 2
- 230000007613 environmental effect Effects 0.000 claims description 2
- 230000005693 optoelectronics Effects 0.000 claims 3
- 230000003247 decreasing effect Effects 0.000 claims 1
- 210000000352 storage cell Anatomy 0.000 claims 1
- 241000699666 Mus <mouse, genus> Species 0.000 abstract description 156
- 230000009192 sprinting Effects 0.000 abstract description 21
- 238000004364 calculation method Methods 0.000 abstract description 11
- 241000699670 Mus sp. Species 0.000 abstract description 10
- 230000004888 barrier function Effects 0.000 description 19
- 238000010586 diagram Methods 0.000 description 13
- 238000011161 development Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000000903 blocking effect Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000001360 synchronised effect Effects 0.000 description 3
- 101100346656 Drosophila melanogaster strat gene Proteins 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 2
- 238000009825 accumulation Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- UXUFTKZYJYGMGO-CMCWBKRRSA-N (2s,3s,4r,5r)-5-[6-amino-2-[2-[4-[3-(2-aminoethylamino)-3-oxopropyl]phenyl]ethylamino]purin-9-yl]-n-ethyl-3,4-dihydroxyoxolane-2-carboxamide Chemical compound O[C@@H]1[C@H](O)[C@@H](C(=O)NCC)O[C@H]1N1C2=NC(NCCC=3C=CC(CCC(=O)NCCN)=CC=3)=NC(N)=C2N=C1 UXUFTKZYJYGMGO-CMCWBKRRSA-N 0.000 description 1
- 101100460719 Mus musculus Noto gene Proteins 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000001568 sexual effect Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Images
Landscapes
- Position Input By Displaying (AREA)
- Motorcycle And Bicycle Frame (AREA)
Abstract
本发明公开一种基于双核两轮极速微电脑鼠对角线冲刺伺服系统,包括冲刺中心控制单元、第一运动驱动单元、第二运动驱动单元、第一高速直流电机、第二高速直流电机和电源供应单元,冲刺中心控制单元包括ARM9处理器和FPGA处理器,ARM9处理器与FPGA处理器电性连接,FPGA处理器分别与第一运动驱动单元和第二运动驱动单元电性连接,第一运动驱动单元进一步与第一高速直流电机电性连接,第二运动驱动单元进一步与第二高速直流电机电性连接。本发明同时采用两个处理器协同工作处理数据,运算速度较快,避免了大电流的产生,减少了电池对高速冲刺的影响;所述陀螺仪能够为所述微电脑鼠转弯进行导航,提高了微电脑鼠的稳定性。
The invention discloses a diagonal sprint servo system based on a dual-core two-wheel extreme-speed microcomputer mouse, which includes a sprint center control unit, a first motion drive unit, a second motion drive unit, a first high-speed DC motor, a second high-speed DC motor and a power supply The supply unit, the sprint center control unit includes an ARM9 processor and an FPGA processor, the ARM9 processor is electrically connected to the FPGA processor, the FPGA processor is electrically connected to the first motion drive unit and the second motion drive unit, and the first motion drive unit The drive unit is further electrically connected to the first high-speed DC motor, and the second motion drive unit is further electrically connected to the second high-speed DC motor. The present invention adopts two processors to work together to process data at the same time, the calculation speed is fast, the generation of large current is avoided, and the impact of the battery on high-speed sprinting is reduced; the gyroscope can navigate for the microcomputer mouse to turn, which improves the Stability of microcomputer mice.
Description
技术领域 technical field
本发明涉及一种基于双核两轮极速微电脑鼠对角线冲刺伺服系统。 The invention relates to a diagonal sprint servo system based on a dual-core two-wheel extreme-speed microcomputer mouse.
背景技术 Background technique
微电脑鼠是使用嵌入式微控制器、传感器和机电运动部件构成的一种智能行走机器人,微电脑鼠可以在不同“迷宫”中自动记忆和选择路径,采用相应的算法,快速地到达所设定的目的地。微电脑鼠比赛在国外已经有30几年的历史,现在每年国际上都要举行上百场类似的微电脑鼠大赛。 The microcomputer mouse is an intelligent walking robot composed of embedded microcontrollers, sensors and electromechanical moving parts. The microcomputer mouse can automatically memorize and select paths in different "mazes", and use corresponding algorithms to quickly reach the set goal land. The microcomputer mouse competition has a history of more than 30 years abroad, and now hundreds of similar microcomputer mouse competitions are held internationally every year. the
微电脑鼠竞赛采用运行时间、迷宫时间和碰触这三个参数,从速度、求解迷宫的效率和电脑鼠的可靠性三个方面来进行评分,不同的国家采用不同的评分标准,最有代表的四个国家标准为: The microcomputer mouse competition uses three parameters: running time, maze time and touch, and is scored from three aspects: speed, efficiency of solving the maze, and reliability of the computer mouse. Different countries use different scoring standards. The most representative The four national standards are:
(1)美国 IEEE APEC国际微电脑鼠机器人竞赛:探索时间、冲刺时间和固定的接触扣分,都记入总成绩,得分 = 探索时间/30 +冲刺时间+固定接触扣分; (1) American IEEE APEC International Microcomputer Mouse Robot Competition: Exploration time, sprint time and fixed contact point deduction are all included in the total score, score = exploration time/30 + sprint time + fixed contact point deduction;
(2)全日本国际微电脑鼠机器人大会(专家级):总成绩仅计算冲刺时间,得分 = 最佳冲刺时间; (2) All Japan International Microcomputer Mouse Robot Conference (expert level): the total score only counts the sprint time, and the score = the best sprint time;
(3)英国微电脑鼠机器人挑战赛:探索时间、冲刺时间和可变的接触扣分都记入总成绩,得分 = 探索时间/30 +冲刺时间+变动接触扣分; (3) British microcomputer mouse robot challenge: Exploration time, sprint time and variable contact deduction points are all included in the total score, score = exploration time/30 + sprint time + variable contact deduction points;
(4)新加坡机器人大赛 :探索时间、冲刺时间记入总成绩,每次接触机器人将减少一次尝试机会,得分 = 探索时间/30 +冲刺时间。 (4) Singapore Robot Competition: Exploration time and sprint time will be included in the total score. Each time you touch the robot, you will reduce one attempt opportunity. Score = exploration time/30 + sprint time.
从上面的国际标准来看,冲刺时间决定整个微电脑鼠的成败,由于国内研发此机器人的单位较少,相对研发水平比较落后,研发的微电脑鼠结构如图1,长时间运行发现存在着很多安全问题,即: Judging from the above international standards, the sprint time determines the success or failure of the entire microcomputer mouse. Since there are few units in China that develop this robot, the relative R&D level is relatively backward. problem, namely:
(1)作为微电脑鼠的眼睛采用的是超声波或者是一般的红外传感器,而且传感器的设置有误,使得微电脑鼠在快速冲刺时对周围迷宫的判断存在一定的误判,使得微电脑在快速冲刺的时候容易撞上前方的挡墙。 (1) As the eyes of the microcomputer mouse, ultrasonic or general infrared sensors are used, and the setting of the sensor is wrong, which makes the microcomputer mouse misjudgment the surrounding maze when it sprints quickly, so that the microcomputer sprints quickly. Sometimes it is easy to hit the blocking wall in front.
(2)作为微电脑鼠的执行机构采用的是步进电机,经常会遇到丢失脉冲的问题出现,导致对冲刺位置的记忆出现错误,有的时候找不到冲刺的终点。 (2) The stepper motor is used as the actuator of the microcomputer mouse, which often encounters the problem of missing pulses, which leads to errors in the memory of the sprint position, and sometimes the end of the sprint cannot be found.
(3)由于采用步进电机,使得机体发热比较严重,不利于在大型复杂迷宫中快速冲刺。 (3) Due to the use of stepping motors, the body heats up more seriously, which is not conducive to fast sprinting in large and complex mazes.
(4)由于采用比较低级的算法,使得最佳迷宫的计算和冲刺路径的计算都有一定的问题,研发的微电脑鼠基本上不会多次自动加速冲刺,在一般迷宫当中的冲刺一般都要花费15~30秒的时间,这使得在真正的国际复杂迷宫大赛中无法取胜。 (4) Due to the use of a relatively low-level algorithm, there are certain problems in the calculation of the optimal maze and the calculation of the sprint path. The microcomputer mouse developed basically does not automatically accelerate the sprint for many times, and the sprint in the general maze generally requires It takes 15-30 seconds, which makes it impossible to win in the real international complex maze competition.
(5)由于微电脑鼠在快速冲刺过程中需要频繁的刹车和启动,加重了单片机的工作量,单片信号处理器无法满足微电脑鼠快速冲刺的要求。 (5) Since the microcomputer mouse needs frequent braking and starting during the fast sprint process, the workload of the single-chip microcomputer is increased, and the single-chip signal processor cannot meet the requirements of the fast sprint of the microcomputer mouse.
(6)相对采用的都是一些体积比较大的插件元器件使得微电脑鼠的体积和重量比较庞大,而且重心较高,无法满足快速冲刺的要求。 (6) Relatively, some relatively large plug-in components are used, which makes the microcomputer mouse relatively large in size and weight, and has a high center of gravity, which cannot meet the requirements of fast sprinting.
(7)由于受周围环境不稳定因素干扰,特别是周围一些光线的干扰,单片机控制器经常会出现异常,引起微电脑鼠失控,抗干扰能力较差。 (7) Due to the interference of unstable factors in the surrounding environment, especially the interference of some surrounding light, the microcontroller 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 for a single single-chip microcomputer, so that the microcomputer mouse will sway relatively slowly in the maze when sprinting at high speed. Large, the phenomenon of hitting the wall often occurs, resulting in the failure of the sprint. the
(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 entire sprint process impossible to complete.
(10)由于没有角速度传感器的辅助进行转弯,经常出现转弯角度过小或者过大的现象发生,然后依靠导航的传感器进行补偿,导致在连续多次转弯的迷宫中出现撞墙的现象发生,致使冲刺失败。 (10) Turning without the assistance of an angular velocity sensor often occurs when the turning angle is too small or too large, and then it is compensated by the navigation sensor, resulting in the phenomenon of hitting the wall in the maze with multiple consecutive turns, resulting in sprinting fail.
(11)采用单个传感器探知前方迷宫的挡墙,极易收到外界干扰,致使前方传感器错误引导快速冲刺的微电脑鼠,导致微电脑鼠在迷宫中冲刺不到位或者撞墙,致使冲刺失败。 (11) Using a single sensor to detect the retaining wall of the maze in front is very easy to receive external interference, causing the front sensor to mislead the fast sprinting microcomputer mouse, resulting in the microcomputer mouse not sprinting in place in the maze or hitting the wall, resulting in sprint failure.
因此,需要对现有的基于单片机控制的微电脑鼠控制器进行重新设计。 Therefore, it is necessary to redesign the existing microcomputer mouse controller based on single-chip microcomputer control.
发明内容 Contents of the invention
本发明主要解决的技术问题是提供一种基于双核两轮极速微电脑鼠对角线冲刺伺服系统,同时采用两个处理器协同工作处理数据,运算速度较快,避免了大电流的产生,减少了电池对高速冲刺的影响;所述陀螺仪能够为所述微电脑鼠转弯进行导航,提高了微电脑鼠的稳定性。 The technical problem mainly solved by the present invention is to provide a diagonal sprint servo system based on a dual-core two-wheel ultra-speed microcomputer mouse, which uses two processors to work together to process data, and the calculation speed is fast, which avoids the generation of large currents and reduces The impact of the battery on high-speed sprint; the gyroscope can navigate for the microcomputer mouse to turn, which improves the stability of the microcomputer mouse.
为解决上述技术问题,本发明采用的一个技术方案是:提供一种基于双核两轮极速微电脑鼠对角线冲刺伺服系统,应用于两轮微电脑鼠中,所述冲刺伺服系统包括冲刺中心控制单元、第一运动驱动单元、第二运动驱动单元、第一高速直流电机、第二高速直流电机和电源供应单元,所述电源供应单元包括锂离子电池,所述冲刺中心控制单元包括ARM9处理器和FPGA处理器,所述ARM9处理器与FPGA处理器电性连接以传输控制信号和数据信息,所述FPGA处理器分别与所述第一运动驱动单元和第二运动驱动单元电性连接,所述第一运动驱动单元进一步与所述第一高速直流电机电性连接,所述第二运动驱动单元进一步与所述第二高速直流电机电性连接。 In order to solve the above technical problems, a technical solution adopted by the present invention is to provide a diagonal sprint servo system based on a dual-core two-wheel extremely fast microcomputer mouse, which is applied to a two-wheel microcomputer mouse, and the sprint servo system includes a sprint center control unit , a first motion drive unit, a second motion drive unit, a first high-speed DC motor, a second high-speed DC motor and a power supply unit, the power supply unit includes a lithium ion battery, and the sprint center control unit includes an ARM9 processor and FPGA processor, the ARM9 processor is electrically connected to the FPGA processor to transmit control signals and data information, the FPGA processor is electrically connected to the first motion drive unit and the second motion drive unit respectively, the The first motion drive unit is further electrically connected to the first high-speed DC motor, and the second motion drive unit is further electrically connected to the second high-speed DC motor.
在本发明一个较佳实施例中,所述第一高速直流电机和第二高速直流电机上均进一步设置光电编码器和电流传感器,所述光电编码器和电流传感器分别与所述FPGA处理器电性连接。 In a preferred embodiment of the present invention, the first high-speed DC motor and the second high-speed DC motor are further provided with a photoelectric encoder and a current sensor, and the photoelectric encoder and the current sensor are respectively connected to the FPGA processor. sexual connection.
在本发明一个较佳实施例中,所述冲刺伺服系统进一步包括至少六个蔽障传感器,所述ARM9处理器分别与每一个所述蔽障传感器电性连接以接收蔽障传感器检测到的环境信息,所述蔽障传感器为红外线传感器,所述红外线传感器包括红外线发射器OPE5594A和红外线接收器TSL262。 In a preferred embodiment of the present invention, the sprint servo system further includes at least six obstacle sensors, and the ARM9 processor is respectively electrically connected to each of the obstacle sensors to receive the environment detected by the obstacle sensors Information, the barrier sensor is an infrared sensor, and the infrared sensor includes an infrared transmitter OPE5594A and an infrared receiver TSL262.
在本发明一个较佳实施例中,所述冲刺伺服系统进一步包括第一陀螺仪和第二陀螺仪,第一陀螺仪包括微机械角速度传感器,第二陀螺仪包括速度传感器,所述第一陀螺仪和第二陀螺仪分别与所述ARM9处理器电性连接以将检测到的角速度信息和速度信息传送至ARM9处理器。 In a preferred embodiment of the present invention, the sprint servo system further includes a first gyroscope and a second gyroscope, the first gyroscope includes a micromechanical angular velocity sensor, the second gyroscope includes a speed sensor, and the first gyroscope The instrument and the second gyroscope are respectively electrically connected to the ARM9 processor to transmit the detected angular velocity information and velocity information to the ARM9 processor.
本发明还提供一种两轮微电脑鼠,包括所述的冲刺伺服系统,所述冲刺伺服系统包括冲刺中心控制单元、第一运动驱动单元、第二运动驱动单元、第一高速直流电机、第二高速直流电机和电源供应单元,所述电源供应单元包括锂离子电池,所述冲刺中心控制单元包括ARM9处理器和FPGA处理器,所述ARM9处理器与FPGA处理器电性连接以传输控制信号和数据信息,所述FPGA处理器分别与所述第一运动驱动单元和第二运动驱动单元电性连接,所述第一运动驱动单元进一步与所述第一高速直流电机电性连接,所述第二运动驱动单元进一步与所述第二高速直流电机电性连接; The present invention also provides a two-wheeled microcomputer mouse, including the sprint servo system, the sprint servo system includes a sprint center control unit, a first motion drive unit, a second motion drive unit, a first high-speed DC motor, a second A high-speed DC motor and a power supply unit, the power supply unit includes a lithium-ion battery, the sprint center control unit includes an ARM9 processor and an FPGA processor, and the ARM9 processor is electrically connected to the FPGA processor to transmit control signals and Data information, the FPGA processor is electrically connected to the first motion drive unit and the second motion drive unit, the first motion drive unit is further electrically connected to the first high-speed DC motor, and the second motion drive unit is electrically connected to the first high-speed DC motor. The motion drive unit is further electrically connected to the second high-speed DC motor;
所述两轮微电脑鼠进一步包括壳体、第一车轮和第二车轮,所述壳体内部设置所述冲刺伺服系统,所述第一车轮和第二车轮分别设置在所述壳体两侧,所述第一车轮与所述第一高速直流电机连接,所述第二车轮与所述第二高速直流电机连接。 The two-wheel microcomputer mouse further includes a housing, a first wheel and a second wheel, the sprint servo system is arranged inside the housing, and the first wheel and the second wheel are respectively arranged on both sides of the housing, The first wheel is connected to the first high-speed DC motor, and the second wheel is connected to the second high-speed DC motor.
在本发明一个较佳实施例中,所述第一车轮的转轴与所述第一陀螺仪连接,所述第二车轮的转轴与所述第二陀螺仪连接。 In a preferred embodiment of the present invention, the rotation shaft of the first wheel is connected to the first gyroscope, and the rotation shaft of the second wheel is connected to the second gyroscope.
在本发明一个较佳实施例中,所述两轮微电脑鼠进一步包括光电补偿传感器和光电补偿传感器,所述电压传感器和光电补偿传感器分别与所述ARM处理器电性连接。 In a preferred embodiment of the present invention, the two-wheeled microcomputer mouse further includes a photoelectric compensation sensor and a photoelectric compensation sensor, and the voltage sensor and the photoelectric compensation sensor are respectively electrically connected to the ARM processor.
本发明还提供一种所述两轮微电脑鼠的控制方法,所述两轮微电脑鼠包括所述冲刺伺服系统,所述冲刺伺服系统包括冲刺中心控制单元、第一运动驱动单元、第二运动驱动单元、第一高速直流电机、第二高速直流电机和电源供应单元,所述电源供应单元包括锂离子电池,所述冲刺中心控制单元包括ARM9处理器和FPGA处理器,所述ARM9处理器与FPGA处理器电性连接以传输控制信号和数据信息,所述FPGA处理器分别与所述第一运动驱动单元和第二运动驱动单元电性连接,所述第一运动驱动单元进一步与所述第一高速直流电机电性连接,所述第二运动驱动单元进一步与所述第二高速直流电机电性连接; The present invention also provides a control method of the two-wheel microcomputer mouse, the two-wheel microcomputer mouse includes the sprint servo system, and the sprint servo system includes a sprint center control unit, a first motion drive unit, a second motion drive unit, the first high-speed DC motor, the second high-speed DC motor and a power supply unit, the power supply unit includes a lithium-ion battery, the sprint center control unit includes an ARM9 processor and an FPGA processor, and the ARM9 processor and FPGA The processor is electrically connected to transmit control signals and data information, the FPGA processor is electrically connected to the first motion drive unit and the second motion drive unit, and the first motion drive unit is further connected to the first motion drive unit. The high-speed DC motor is electrically connected, and the second motion drive unit is further electrically connected with the second high-speed DC motor;
包括运动控制模块和上位机控制模块,所述上位机控制模块包括迷宫读取单元、坐标定位单元和在线输出单元,所述运动控制模块包括数据存储单元,输入输出单元和FPGA控制单元,所述FPGA控制单元包括直线冲刺单元、右转冲刺单元、左转冲刺单元、对角线冲刺单元和U形冲刺单元。 Including a motion control module and a host computer control module, the host computer control module includes a maze reading unit, a coordinate positioning unit and an online output unit, the motion control module includes a data storage unit, an input and output unit and an FPGA control unit, the The FPGA control unit includes a straight line sprint unit, a right turn sprint unit, a left turn sprint unit, a diagonal line sprint unit and a U-shaped sprint unit.
在本发明一个较佳实施例中,所述FPGA控制单元控制所述两轮微电脑鼠在每一段运动路程内中的冲刺速度,所述冲刺速度依次分为加速运动阶段、匀速运动阶段和减速运动阶段;在所述加速运动阶段和所述减速运动阶段,两轮微电脑鼠的加速度均从0开始逐渐增大,接着保持不变,最后逐渐减小至0。 In a preferred embodiment of the present invention, the FPGA control unit controls the sprint speed of the two-wheeled microcomputer mouse in each movement distance, and the sprint speed is successively divided into an acceleration movement stage, a uniform movement stage and a deceleration movement stage; in the acceleration movement stage and the deceleration movement stage, the accelerations of the two rounds of microcomputer mice all gradually increase from 0, then remain unchanged, and finally gradually decrease to 0.
在本发明一个较佳实施例中,所述两轮微电脑鼠的控制方法包括探索冲刺和直接冲刺两种冲刺模式,所述直接冲刺模式进一步包括定速冲刺模式和不定速冲刺模式;在所述探索冲刺模式下,所述两轮微电脑鼠自动搜索完成迷宫探索到达终点后再返回起点,最后调取探索过程中获取的迷宫信息快速冲刺到终点;在直接冲刺模式下,所述两轮微电脑鼠直接调取历史迷宫信息快速冲刺到终点。 In a preferred embodiment of the present invention, the control method of the two-wheeled microcomputer mouse includes two sprint modes of exploring sprint and direct sprint, and the direct sprint mode further includes a constant speed sprint mode and an indeterminate speed sprint mode; In the above-mentioned exploration sprint mode, the two rounds of microcomputer mice automatically search to complete the maze exploration and then return to the starting point after reaching the end point, and finally call the maze information obtained during the exploration process to quickly sprint to the end point; in the direct sprint mode, the two rounds of microcomputer mice The mouse directly retrieves the historical maze information and quickly sprints to the finish line.
本发明的有益效果是: The beneficial effects of the present invention are:
(1)同时采用ARM9处理器和FPGA处理器分工工作,由FPGA处理器处理微电脑鼠高速冲刺时的两只高速直流电机的同步伺服控制,使得控制比较简单,大大提高了运算速度,避免产生大电流,缩短了开发周期短,并且程序可移植能力强;有效地防止了程序的跑飞,抗干扰能力大大增强;时刻监测锂离子电池的剩余容量,有利于了解电池的能量状态,当电池能量状态较低时,可以在冲刺前提前换掉电池,从而减少了电池对高速冲刺的误干扰; (1) At the same time, the ARM9 processor and the FPGA processor are used to divide the work, and the FPGA processor handles the synchronous servo control of the two high-speed DC motors when the microcomputer mouse sprints at high speed, which makes the control relatively simple, greatly improves the calculation speed, and avoids large current, which shortens the development cycle and has strong program portability; it effectively prevents the program from running away and greatly enhances the anti-interference ability; monitoring the remaining capacity of the lithium-ion battery at all times is helpful for understanding the energy state of the battery. When the state is low, the battery can be replaced in advance before the sprint, thereby reducing the false interference of the battery to the high-speed sprint;
(2)在微电脑鼠快速冲刺过程中,所述ARM9处理器能够对直流电机X和电机Y的转矩进行在线辨识并利用直流电机力矩与电流的关系进行补偿,减少了电机转矩抖动对微电脑鼠快速冲刺的影响; (2) During the rapid sprinting process of the microcomputer mouse, the ARM9 processor can conduct online identification of the torque of the DC motor X and motor Y and use the relationship between the torque and current of the DC motor to compensate, reducing the impact of motor torque jitter on the microcomputer The effect of a fast sprint of the mouse;
(3)所述陀螺仪可以按时间累计确定角坐标和测量车轮转速,这对于微电脑鼠连续旋转一定角度计算具有导航作用,可以实现两轮微电脑鼠的速度大小和方向的独立控制,有利于提高微电脑鼠冲刺时的稳定性和动态性能,使微电脑鼠更容易实现曲线轨迹的转动; (3) The gyroscope can determine the angular coordinates and measure the rotation speed of the wheel according to the time accumulation, which has a navigation function for the calculation of the continuous rotation of the microcomputer mouse at a certain angle, and can realize the independent control of the speed and direction of the two rounds of the microcomputer mouse, which is conducive to improving The stability and dynamic performance of the microcomputer mouse when sprinting make it easier for the microcomputer mouse to realize the rotation of the curved track;
(4)所述数据存储模块能够存储微电脑鼠的迷宫探索信息,有利于提取对应信息并优化二次冲刺的路径,降低冲刺时间; (4) The data storage module can store the maze exploration information of the microcomputer mouse, which is conducive to extracting corresponding information and optimizing the path of the second sprint, reducing the sprint time;
(5)所述LM629控制模块依据具体路径调取不同冲刺模块控制冲刺方向和冲刺速度,自动冲刺,杜绝接触扣分,快捷安全; (5) The LM629 control module calls different sprint modules according to the specific path to control the sprint direction and sprint speed, and automatically sprints to prevent contact deduction, which is fast and safe;
(6)所述两轮微电脑鼠包括两种冲刺模式,满足现实比赛的需求; (6) The two rounds of microcomputer mice include two sprint modes to meet the needs of realistic competitions;
(7)采用S型加减速曲线在任何一点的加速度都是连续变化的,从而避免了微电脑鼠系统的柔性冲击,速度的平滑性很好,运动精度高。 (7) The S-shaped acceleration and deceleration curve is used to continuously change the acceleration at any point, thus avoiding the flexible impact of the microcomputer mouse system, the smoothness of the speed is very good, and the movement accuracy is high.
附图说明 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 the schematic block diagram of the circuit of the microcomputer mouse controlled by the single-chip microcomputer;
图2为本发明所述冲刺伺服系统的电路原理框图; Fig. 2 is the circuit principle block diagram of the sprint servo system of the present invention;
图3为本发明所述冲刺中心控制单元的工作原理图; Fig. 3 is a working principle diagram of the sprint center control unit of the present invention;
图4为本发明所述的两轮微电脑鼠的控制方法的控制模块框图; Fig. 4 is the control module block diagram of the control method of two-wheel microcomputer mouse of the present invention;
图5为本发明所述两轮微电脑鼠运动时的迷宫坐标示意图; Fig. 5 is the schematic diagram of maze coordinates when the two-wheeled microcomputer mouse of the present invention moves;
图6是本发明所述两轮微电脑鼠一较佳实施例的结构示意图; Fig. 6 is the structural representation of a preferred embodiment of the two-wheeled microcomputer mouse of the present invention;
图7是本发明所述两轮微电脑鼠的速度曲线图; Fig. 7 is the speed graph of two rounds of microcomputer mice of the present invention;
图8为本发明所述的两轮微电脑鼠的控制方法的自动冲刺程序流程图; Fig. 8 is the automatic sprint program flowchart of the control method of two-wheel microcomputer mouse of the present invention;
图9为本发明所述两轮微电脑鼠的右转冲刺示意图; Fig. 9 is the schematic diagram of sprinting to the right of the two-wheeled microcomputer mouse of the present invention;
图10为本发明所述两轮微电脑鼠的左转冲刺示意图; Fig. 10 is the left-turn sprint schematic diagram of two-wheeled microcomputer mouse of the present invention;
图11为本发明所述两轮微电脑鼠运动时的楼梯形迷宫结构图; Fig. 11 is the stair-shaped maze structure diagram when the two-wheeled microcomputer mouse of the present invention moves;
图12为本发明所述两轮微电脑鼠沿着楼梯形迷宫进行45度冲刺的示意图; Fig. 12 is the schematic diagram that two rounds of microcomputer mice of the present invention sprint along the staircase maze at 45 degrees;
图13为本发明所述两轮微电脑鼠运动时的U形迷宫结构图; Fig. 13 is a U-shaped maze structure diagram when the two-wheeled microcomputer mouse of the present invention moves;
图14为本发明所述两轮微电脑鼠在U形迷宫内的运动轨迹示意图; Fig. 14 is the schematic diagram of the trajectory of the two-wheeled microcomputer mouse in the U-shaped maze of the present invention;
图15为本发明所述两轮微电脑鼠沿着U形迷宫冲刺的运动参数示意图。 Fig. 15 is a schematic diagram of motion parameters of the two-wheeled microcomputer mouse sprinting along a U-shaped maze according to the present invention.
附图中各部件的标记如下:1、壳体,2、第一车轮,3、第二车轮,S1、第一个蔽障传感器,S2、第二个蔽障传感器,S3、第三个蔽障传感器,S4、第四个蔽障传感器,S5、第五个蔽障传感器,S6、第六个蔽障传感器,S7、光电补偿传感器,S8、电压传感器。 The marks of the components in the attached drawings are as follows: 1. Housing, 2. The first wheel, 3. The second wheel, S1, the first barrier sensor, S2, the second barrier sensor, S3, the third barrier sensor barrier sensor, S4, the fourth barrier sensor, S5, the fifth barrier sensor, S6, the sixth barrier sensor, S7, photoelectric compensation sensor, S8, voltage 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至图15,本发明实施例包括: Please refer to Fig. 1 to Fig. 15, the embodiment of the present invention comprises:
一种基于双核两轮极速微电脑鼠对角线冲刺伺服系统,应用于两轮微电脑鼠中,所述冲刺伺服系统包括冲刺中心控制单元、第一运动驱动单元、第二运动驱动单元、第一高速直流电机X、第二高速直流电机Y和电源供应单元,所述电源供应单元包括锂离子电池,所述冲刺中心控制单元包括ARM9处理器和FPGA处理器,所述ARM9处理器与FPGA处理器电性连接以传输控制信号和数据信息,所述FPGA处理器分别与所述第一运动驱动单元和第二运动驱动单元电性连接,所述第一运动驱动单元进一步与所述第一高速直流电机电性连接,所述第二运动驱动单元进一步与所述第二高速直流电机电性连接。 A diagonal sprint servo system based on a dual-core two-wheel extreme-speed microcomputer mouse is applied to a two-wheel microcomputer mouse. The sprint servo system includes a sprint center control unit, a first motion drive unit, a second motion drive unit, a first high-speed DC motor X, the second high-speed DC motor Y and a power supply unit, the power supply unit includes a lithium-ion battery, the sprint center control unit includes an ARM9 processor and an FPGA processor, and the ARM9 processor and the FPGA processor are electrically powered. The FPGA processor is electrically connected to the first motion drive unit and the second motion drive unit respectively, and the first motion drive unit is further electrically connected to the first high-speed DC motor The second motion drive unit is further electrically connected to the second high-speed DC motor.
ARM9处理器采用 R I SC ( Reduce Instruction Computer ,精简指令集计算机)结构, 具有寄存器多、 寻址方式简单、 批量传输数据、 使用地址自动增减等特点。新一代的ARM9处理器,通过全新的设计,采用了更多的晶体管,能够达到两倍以上于ARM7处理器的处理能力,这种处理能力的提高是通过增加时钟频率和减少指令执行周期实现的。 The ARM9 processor adopts the R ISC (Reduce Instruction Computer) structure, which has the characteristics of many registers, simple addressing mode, batch data transmission, and automatic increase and decrease of used addresses. The new generation of ARM9 processor, through a new design, uses more transistors, which can achieve more than twice the processing power of the ARM7 processor. This improvement in processing power is achieved by increasing the clock frequency and reducing the instruction execution cycle. .
FPGA,即现场可编程门阵列,是在PAL、GAL、EPLD等可编程器件的基础上进一步发展的产物。它是作为专用集成电路(ASIC)领域中的一种半定制电路而出现的,即解决了定制电路的不足,又克服了原有可编程器件门电路数有限的缺点。 FPGA, that is, field programmable gate array, is a product of further development on the basis of programmable devices such as PAL, GAL, and EPLD. It emerged as a semi-custom circuit in the field of application-specific integrated circuits (ASIC), which not only solves the shortcomings of custom circuits, but also overcomes the shortcomings of the limited number of original programmable device gates.
FPGA采用了逻辑单元阵列LCA(Logic Cell Array)这样一个新概念,内部包括可配置逻辑模块CLB(Configurable Logic Block)、输出输入模块IOB(Input Output Block)和内部连线(Interconnect)三个部分。 FPGA adopts a new concept of logic cell array LCA (Logic Cell Array), which includes three parts: configurable logic module CLB (Configurable Logic Block), input and output module IOB (Input Output Block) and internal wiring (Interconnect).
本发明所述第一高速直流电机和第二高速直流电机上均进一步设置光电编码器和电流传感器,所述光电编码器和电流传感器分别与所述FPGA处理器电性连接。 Both the first high-speed DC motor and the second high-speed DC motor of the present invention are further provided with a photoelectric encoder and a current sensor, and the photoelectric encoder and the current sensor are respectively electrically connected to the FPGA processor.
所述冲刺伺服系统进一步包括至少六个蔽障传感器,在本实施例中,所述蔽障传感器的数量为六个,依次编号为S1、S2、S3、S4、S5、S6。所述ARM9处理器分别与每一个所述蔽障传感器电性连接以接收蔽障传感器检测到的环境信息,所述蔽障传感器为红外线传感器,所述红外线传感器包括红外线发射器OPE5594A和红外线接收器TSL262。 The sprint servo system further includes at least six barrier sensors. In this embodiment, the number of barrier sensors is six, which are sequentially numbered as S1, S2, S3, S4, S5, and S6. The ARM9 processor is electrically connected to each of the barrier sensors to receive the environmental information detected by the barrier sensor, the barrier sensor is an infrared sensor, and the infrared sensor includes an infrared transmitter OPE5594A and an infrared receiver TSL262.
所述冲刺伺服系统进一步包括第一陀螺仪和第二陀螺仪,第一陀螺仪包括微机械角速度传感器,第二陀螺仪包括速度传感器,所述第一陀螺仪和第二陀螺仪分别与所述ARM9处理器电性连接以将检测到的角速度信息和速度信息传送至ARM9处理器。 The sprint servo system further includes a first gyroscope and a second gyroscope, the first gyroscope includes a micromechanical angular velocity sensor, the second gyroscope includes a speed sensor, and the first gyroscope and the second gyroscope are respectively connected to the The ARM9 processor is electrically connected to transmit the detected angular velocity information and velocity information to the ARM9 processor.
本发明还提供一种两轮微电脑鼠,包括所述的冲刺伺服系统,所述两轮微电脑鼠进一步包括壳体1、第一车轮2和第二车轮3,所述壳体1内部设置所述冲刺伺服系统,所述第一车轮2和第二车轮3分别设置在所述壳体1两侧,所述第一车轮2与所述第一高速直流电机连接,所述第二车轮3与所述第二高速直流电机连接。所述第一车轮2的转轴与所述第一陀螺仪连接,所述第二车轮3的转轴与所述第二陀螺仪连接。
The present invention also provides a two-wheeled microcomputer mouse, including the sprint servo system, the two-wheeled microcomputer mouse further includes a
所述两轮微电脑鼠进一步包括光电补偿传感器7和光电补偿传感器7,所述电压传感器8和光电补偿传感器7分别与所述ARM处理器电性连接。
The two-wheeled microcomputer mouse further includes a photoelectric compensation sensor 7 and a photoelectric compensation sensor 7, and the
本发明还提供一种所述两轮微电脑鼠的控制方法,包括运动控制模块和上位机控制模块,所述上位机控制模块包括迷宫读取单元、坐标定位单元和在线输出单元,所述运动控制模块包括数据存储单元,输入输出单元和FPGA控制单元,所述FPGA控制单元包括直线冲刺单元、右转冲刺单元、左转冲刺单元、对角线冲刺单元和U形冲刺单元。在本实施例中,所述直线冲刺模块、右转冲刺模块、左转冲刺模块、对角线冲刺模块和U形冲刺模块依次编号为子程序1、子程序2、子程序3、子程序4、子程序5。
The present invention also provides a control method for the two-wheeled microcomputer mouse, comprising a motion control module and a host computer control module, the host computer control module including a maze reading unit, a coordinate positioning unit and an online output unit, the motion control module The module includes a data storage unit, an input and output unit and an FPGA control unit, and the FPGA control unit includes a straight line sprint unit, a right turn sprint unit, a left turn sprint unit, a diagonal line sprint unit and a U-shaped sprint unit. In this embodiment, the straight-line sprint module, right-turn sprint module, left-turn sprint module, diagonal sprint module and U-shaped sprint module are sequentially numbered as
其中,所述FPGA控制单元控制所述两轮微电脑鼠在每一段运动路程内中的冲刺速度,所述冲刺速度依次分为加速运动阶段、匀速运动阶段和减速运动阶段;在所述加速运动阶段和所述减速运动阶段,两轮微电脑鼠的加速度均从0开始逐渐增大,接着保持不变,最后逐渐减小至0。 Wherein, the FPGA control unit controls the sprint speed of the two-wheeled microcomputer mouse in each section of motion distance, and the sprint speed is successively divided into an accelerated motion stage, a uniform velocity motion stage and a decelerated motion stage; in the accelerated motion stage In the deceleration phase, the accelerations of the two rounds of microcomputer mice gradually increase from 0, then remain unchanged, and finally decrease to 0 gradually.
所述两轮微电脑鼠的控制方法包括探索冲刺和直接冲刺两种冲刺模式,所述直接冲刺模式进一步包括定速冲刺模式和不定速冲刺模式;在所述探索冲刺模式下,所述两轮微电脑鼠自动搜索完成迷宫探索到达终点后再返回起点,最后调取探索过程中获取的迷宫信息快速冲刺到终点;在直接冲刺模式下,所述两轮微电脑鼠直接调取历史迷宫信息快速冲刺到终点。 The control method of the two-wheeled microcomputer mouse includes two sprint modes of exploring sprint and direct sprint, and the direct sprint mode further includes a constant speed sprint mode and an indeterminate speed sprint mode; under the described exploration sprint mode, the two rounds The microcomputer mouse automatically searches the maze and returns to the starting point after reaching the end point, and finally calls the maze information obtained during the exploration process to quickly sprint to the end point; in the direct sprint mode, the two rounds of microcomputer mice directly call historical maze information and quickly sprint to the end point end.
在具体应用时,本发明开发时采用S3C2440A作为开发板核心,所述电脑鼠基本实现全贴片元器件材料,实现了单板控制,不仅节省了控制板占用空间,而且有利于体积和重量的减轻,有利于提高微电脑鼠伺服系统的稳定性和动态性能。 In a specific application, the present invention adopts S3C2440A as the core of the development board, and the computer mouse basically realizes the whole chip component material, and realizes single board control, which not only saves the space occupied by the control board, but also facilitates the reduction of volume and weight. Lightening is conducive to improving the stability and dynamic performance of the microcomputer mouse servo system.
对于本文设计的双核控制器,先把微电脑鼠放在迷宫起始点,在电源打开状态下,并根据按键信息决定是自动搜索完成迷宫探索或者是调取储存的迷宫信息生成最优冲刺路径,然后微电脑鼠靠前方、左右侧面蔽障传感器根据实际导航环境传输参数给双核控制器中的ARM9(S3C2440A),ARM9(S3C2440A)处理后与FPGA通讯,然后由FPGA结合光电编码器的反馈处理两个独立电机的伺服控制,并把处理数据通讯给ARM9(S3C2440A),由ARM9(S3C2440A)继续处理后续的运行状态。 For the dual-core controller designed in this paper, first place the microcomputer mouse at the starting point of the maze, and when the power is turned on, decide whether to automatically search to complete the maze exploration or call the stored maze information to generate the optimal sprint path according to the button information, and then The microcomputer mouse is located in the front, left and right sides, and the obstacle sensor transmits parameters to the ARM9 (S3C2440A) in the dual-core controller according to the actual navigation environment. The servo control of the independent motor, and communicate the processing data to ARM9 (S3C2440A), and the ARM9 (S3C2440A) will continue to process the subsequent running status.
本发明的工作原理为: Working principle of the present invention is:
1)在微电脑鼠打开电源瞬间,系统将会按照图8的方式完成冲刺,首先系统要完成初始化,然后等待按键信息,未接到按键信息命令之前,它一般会在起点坐标(0,0)等待控制器发出的冲刺命令,根据按键信息,本发明有多种冲刺方法:如果按下的是START(启动)键,说明系统要放弃以前的迷宫信息先进行搜索,然后搜索完成后生成优化的冲刺迷宫信息,微电脑鼠进入自动多次冲刺阶段;如果按下的是RESET(复位)+STRAT(启动)键,说明系统要调出已经探索后的最优迷宫,然后沿着起点开始快速向终点(7,7)、(7,8)、(8,7)、(8,8)冲刺;如果按下的是RESET(复位)+STRAT(启动)+SPEED(速度)键,说明系统要调出已经探索后的最优迷宫,然后沿着起点以设定的冲刺速度开始快速向终点(7,7)、(7,8)、(8,7)、(8,8)冲刺。 1) When the microcomputer mouse is powered on, the system will complete the sprint according to the method shown in Figure 8. First, the system needs to complete initialization, and then wait for the key information. Before receiving the key information command, it will generally be at the starting point coordinates (0, 0) Waiting for the sprint command issued by the controller, according to the button information, the present invention has multiple sprint methods: if the START button is pressed, it means that the system will give up the previous maze information to search first, and then generate an optimized maze after the search is completed. Sprint maze information, the microcomputer mouse enters the stage of automatic multiple sprints; if you press the RESET (reset) + STRAT (start) button, it means that the system will call out the optimal maze that has been explored, and then start quickly to the end along the starting point (7, 7), (7, 8), (8, 7), (8, 8) sprint; if the RESET (reset) + STRAT (start) + SPEED (speed) keys are pressed, it means that the system needs to adjust Get out of the optimal maze that has been explored, and then quickly sprint towards the end point (7, 7), (7, 8), (8, 7), (8, 8) along the starting point at the set sprint speed.
2)微电脑鼠放在起点坐标(0,0),接到任务后为了防止放错冲刺方向,其前方的传感器S1、S6和会对前方的环境进行判断,确定有没有挡墙进入运动范围,如存在挡墙将向ARM9(S3C2440A)发出中断请求,ARM9(S3C2440A)会对中断做第一时间响应,如果ARM9(S3C2440A)的中断响应没有来得及处理,微电脑鼠的电机X和电机Y将继续自锁,然后二次判断迷宫确定前方信息,防止信息误判;如果没有挡墙进入前方的运动范围,微电脑鼠将进行正常的冲刺。 2) The microcomputer mouse is placed at the starting point coordinates (0, 0). After receiving the task, in order to prevent the wrong sprinting direction, the sensors S1 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 blocking wall, it will send an interrupt request to ARM9 (S3C2440A), and ARM9 (S3C2440A) will respond to the interrupt at the first time. Lock, and 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 sprint normally.
3)在微电脑启动冲刺瞬间,传感器S1、S2、S3、S4、S5、S6(六个独立的红外发射管OPE5594A发出的红外光经接收器TSL262接受后转化为周围迷宫的信息)判断周围的环境并送给ARM9(S3C2440A),然后由ARM9(S3C2440A)根据冲刺迷宫信息生成图7的S曲线轨迹生成速度-时间运动图的指令给定值,这个图形包含的面积就是微电脑鼠两个电机X、电机Y要运行的距离S1。然后与FPGA通讯,FPGA根据速度、加速度参数指令值然后结合光电编码盘和电流传感器的反馈生成驱动两轴直流电机的PWM波与方向。PWM波经驱动桥后驱动两个独立电机,完成整个加速过程直到达到冲刺设定速度,并把处理数据通讯给ARM9(S3C2440A),由ARM9(S3C2440A)继续处理后续的运行状态。 3) At the moment when the microcomputer starts to sprint, the sensors S1, S2, S3, S4, S5, S6 (the infrared light emitted by six independent infrared emission tubes OPE5594A is received by the receiver TSL262 and converted into the information of the surrounding maze) judges the surrounding environment And send it to ARM9 (S3C2440A), and then ARM9 (S3C2440A) generates the S-curve trajectory in Figure 7 according to the sprint maze information to generate the command given value of the speed-time motion graph. The area contained in this graph is the two motors of the microcomputer mouse X, The distance S1 that the motor Y is to travel. Then communicate with the FPGA, and the FPGA generates the PWM wave and direction for driving the two-axis DC motor according to the speed and acceleration parameter command values and then combined with the feedback from the photoelectric encoder disk and the current sensor. The PWM wave drives two independent motors after passing through the drive bridge, completes the entire acceleration process until reaching the set speed of the sprint, and communicates the processing data to the ARM9 (S3C2440A), and the ARM9 (S3C2440A) continues to process the subsequent running status.
4)在微电脑鼠沿着Y轴向前运动如果有Z格坐标没有挡墙进入前方的运动范围,系统进入自动冲刺子系统1,微电脑鼠将存储其坐标(X,Y),为了快速行走需要,舍弃了传统单一速度冲刺模式,按照图7的S曲线速度-时间图进行加速和减速,在其向前运动过程中,ARM9(S3C2440A)把向前Z格的距离按照时间要求转化为微电脑鼠需要冲刺的加速度和速度指令值,然后与FPGA通讯,FPGA结合光电编码器和电流传感器的反馈把加速度和速度指令值转化为实际的速度和加速度,由FPGA生成驱动两轴直流电机的PWM波信号,经驱动桥后驱动微电脑鼠到达预定距离,微电脑鼠在冲刺过程中每经过一个方格,将更新其坐标为(X,Y+1),在Y+1<15的前提下,判断其坐标是不是(7,7)、(7,8)、(8,7)、(8,8)其中的一个,如果不是将继续更新其坐标,如果是的话通知控制器已经冲刺到目标,然后置返航探索标志为1,冲刺标志为0,微电脑鼠准备冲刺后的二次返程探索,去搜寻更优的迷宫路径。
4) When the microcomputer mouse moves forward along the Y axis, if there is a Z grid coordinate and no barrier wall enters the range of motion in front, the system enters the
5)在微电脑鼠沿着Y轴反向运动过程中如果有多个坐标没有挡墙进入前方的运动范围,系统进入自动冲刺子系统1,微电脑鼠将存储此时坐标(X,Y),为了快速行走需要,舍弃了传统单一速度冲刺模式,按照图7的速度和时间曲线进行加速和减速,在其向前运动过程中,ARM9(S3C2440A)把向前Z格的距离按照时间要求转化为微电脑鼠需要冲刺的加速度和速度指令值,然后与FPGA通讯,FPGA结合光电编码器和电流传感器的反馈把加速度和速度指令值转化为实际的速度和加速度,由FPGA生成驱动两轴直流电机的PWM波信号,经驱动桥后驱动微电脑鼠到达预定距离,微电脑鼠在冲刺过程中每经过一个方格,,将更新其坐标为(X,Y-1),在确定Y-1>0的前提下,判断其坐标是不是(7,7)、(7,8)、(8,7)、(8,8)其中的一个,如果不是将继续更新其坐标,如果是的话通知控制器已经冲刺到目标,然后置返航探索标志为1,冲刺标志为0,微电脑鼠准备冲刺后的二次返程探索,去搜寻更优的迷宫路径。
5) During the reverse movement of the microcomputer mouse along the Y axis, if there are multiple coordinates that do not enter the range of motion in front of the barrier, the system enters the
6)在微电脑鼠沿着Y轴向前运动过程中如果有挡墙进入前方的运动范围,并且此时迷宫信息中左方有挡墙时,系统进入自动冲刺子系统2,微电脑鼠将存储此时坐标(X,Y),然后进入图9所示的曲线运动轨迹,在右冲刺转弯时,微电脑鼠将首先前往直线走很短的距离 DashTurn_R90_Leading传输给ARM9(S3C2440A),ARM9(S3C2440A)根据冲刺的时间要求,把此距离转化为相应的位置、速度和加速指令然后传输给FPGA,FPGA再结合电机反馈的光电编码器A、B、Z和电机电流I信号生成控制电机X和电机Y的PWM波,然后经过驱动桥驱动两轮电机运转到预定位置,此时R90_FrontWallRef开始工作,防止外界干扰开始做误差补偿;微电脑鼠然后将DashTurn_R90_Arc1传输给ARM9(S3C2440A),ARM9(S3C2440A)根据新的冲刺时间要求,把此距离转化为响应的位置、速度和加速指令然后传输给FPGA,FPGA再结合电机反馈的光电编码器A、B、Z和电机电流I信号生成控制电机X和电机Y的PWM波和电机的速度DashTurn_R90_VelX1和DashTurn_R90_VelY1,然后经过驱动桥驱动两轮电机运转到预定位置;随后,微电脑鼠开始调整速度将微电脑鼠将行走的距离 DashTurn_R90_Arc2传输给ARM9(S3C2440A),ARM9(S3C2440A)根据新的冲刺时间要求,把此距离转化为相应的位置、速度和加速指令然后传输给FPGA,FPGA再结合光电编码器和电机电流的反馈生成控制电机X和电机Y的PWM波和电机的速度DashTurn_R90_VelX2和DashTurn_R90_VelY2,然后经过驱动桥驱动两轮电机运转到预定位置,并且在陀螺仪控制下微电脑鼠已经右转90度;微电脑鼠开始调整速度将微电脑鼠将行走的距离 DashTurn_R90_Passing传输给ARM9(S3C2440A),ARM9(S3C2440A)根据新的冲刺时间要求,把此距离转化为相应的位置、速度和加速指令然后传输给FPGA,FPGA再结合光电编码器和电机电流的反馈生成控制电机X和电机Y的PWM和电机的速度DashTurn_R90_VelX3和DashTurn_R90_VelY3,然后经过驱动桥驱动两轮电机运转到预定位置,经过四段不同的速度、和电流的闭环控制完成整个右转弯的轨迹曲线运动。此时将更新其坐标为(X+1,Y),在X+1<15的前提下,判断其坐标是不是(7,7)、(7,8)、(8,7)、(8,8)其中的一个,如果不是将继续更新其坐标,如果是的话通知控制器已经冲刺到目标,然后置返航探索标志为1,冲刺标志为0,微电脑鼠准备冲刺后的二次返程探索,去搜寻更优的迷宫路径;
6) When the microcomputer mouse moves forward along the Y axis, if there is a barrier wall entering the front movement range, and there is a barrier wall on the left in the maze information, the system will enter the
7)在微电脑鼠沿着Y轴向前运动过程中如果有挡墙进入前方的运动范围,并且此时迷宫信息中右方有挡墙时,系统进入自动冲刺子系统3,微电脑鼠将存储此时坐标(X,Y),然后进入图10所示的曲线运动轨迹,在右冲刺转弯时,微电脑鼠将首先前往直线走很短的距离 DashTurn_L90_Leading传输给ARM9(S3C2440A),ARM9(S3C2440A)根据冲刺的时间要求,把此距离转化为相应的位置、速度和加速指令然后传输给FPGA,FPGA再结合电机反馈的光电编码器A、B、Z和电机电流I信号生成控制电机X和电机Y的PWM波,然后经过驱动桥驱动两轮电机运转到预定位置,此时L90_FrontWallRef开始工作,防止外界干扰开始做误差补偿;微电脑鼠然后将DashTurn_L90_Arc1传输给ARM9(S3C2440A),ARM9(S3C2440A)根据新的冲刺时间要求,把此距离转化为响应的位置、速度和加速指令然后传输给FPGA,FPGA再结合电机反馈的光电编码器A、B、Z和电机电流I信号生成控制电机X和电机Y的PWM波和电机的速度DashTurn_L90_VelX1和DashTurn_L90_VelY1,然后经过驱动桥驱动两轮电机运转到预定位置;随后,微电脑鼠开始调整速度将微电脑鼠将行走的距离 DashTurn_L90_Arc2传输给ARM9(S3C2440A),ARM9(S3C2440A)根据新的冲刺时间要求,把此距离转化为相应的位置、速度和加速指令然后传输给FPGA,FPGA再结合光电编码器和电机电流的反馈生成控制电机X和电机Y的PWM波和电机的速度DashTurn_L90_VelX2和DashTurn_L90_VelY2,然后经过驱动桥驱动两轮电机运转到预定位置,并且在陀螺仪控制下微电脑鼠已经左转90度;微电脑鼠开始调整速度将微电脑鼠将行走的距离 DashTurn_L90_Passing传输给ARM9(S3C2440A),ARM9(S3C2440A)根据新的冲刺时间要求,把此距离转化为相应的位置、速度和加速指令然后传输给FPGA,FPGA再结合光电编码器和电机电流的反馈生成控制电机X和电机Y的PWM和电机的速度DashTurn_L90_VelX3和DashTurn_L90_VelY3,然后经过驱动桥驱动两轮电机运转到预定位置,经过四段不同的速度、和电流的闭环控制完成整个右转弯的轨迹曲线运动。此时将更新其坐标为(X-1,Y),在X-1>0的前提下,判断其坐标是不是(7,7)、(7,8)、(8,7)、(8,8)其中的一个,如果不是将继续更新其坐标,如果是的话通知控制器已经冲刺到目标,然后置返航探索标志为1,冲刺标志为0,微电脑鼠准备冲刺后的二次返程探索,去搜寻更优的迷宫路径。
7) When the microcomputer mouse moves forward along the Y axis, if there is a barrier wall entering the front movement range, and there is a barrier wall on the right in the maze information, the system will enter the
8)在微电脑鼠沿着X轴、Y轴向前运动过程中如果有类似图11的楼梯型迷宫挡墙进入前方的运动范围,系统进入自动冲刺子系统4,微电脑鼠将存储此时坐标(X,Y),然后进入图12所示的对角线运动轨迹,在直道坐标为(X,Y)时,ARM9(S3C2440A)使能FPGA,有FPGA控制直流电机X和直流电机Y以相同的速度匀速前进,在前进过程中传感器S2、S3和S4、S5共同作用,保证微电脑鼠冲刺的时候一定沿着迷宫中线行驶,即将冲出坐标为(X,Y)迷宫方格时,微电脑鼠前方传感器S1和S6将工作,当读到预设值时,说明微电脑鼠的前部已经进入坐标(X,Y+1),然后把微电脑鼠传感器S1到电机中心的距离SX传输给ARM9(S3C2440A),ARM9(S3C2440A)首先把行走直线很短的距离 SX按照不同的冲刺条件时间要求转化为速度参数以及加速度参数指令值,然后传输给控制FPGA,FPGA会根据这些参数在结合光电编码器和电流的反馈生成驱动左右轮的PWM波形,控制左右轮的电机向前运动快速;当到达既定目标时,把此时的迷宫坐标更新为(X,Y+1);微电脑鼠开始为45度对角线冲刺做姿态调整,此时ARM9(S3C2440A)会把曲线运动轨迹R_Arc1_45按照不同的冲刺条件时间要求转化为速度参数以及加速度参数指令值,然后FPGA结合电机X和电机Y上的光电编码器和电流传感器的反馈生成控制左右轮的PWM波,然后控制左右轮以恒定的比值C1前进;当到达既定目标后,立即调整微电脑鼠左右轮的速度,ARM9(S3C2440A)把曲线运动轨迹R_Arc2_45按照不同的冲刺条件时间要求转化为速度参数以及加速度参数指令值,然后FPGA结合电机X和电机Y上的光电编码器和电流传感器的反馈生成控制左右轮的PWM波,然后控制左右轮以恒定的比值C2前进;在陀螺仪的控制下,保证到达当到达既定目标A点时曲线R_Arc2_45的斜率为45度,然后控制器把直线行走很短的距离 Passing1按照不同的冲刺条件时间要求转化为速度参数以及加速度参数指令值,然后FPGA结合电机X和电机Y上的光电编码器和电流传感器的反馈生成控制左右轮的PWM波,然后控制左右轮以相同的加速度和速度前进,当到达既定目标后通过三段不同的轨迹完成整个右转弯45度方向改变的轨迹曲线运动,微电脑鼠进入对角线冲刺阶段,此时前方传感器S1和S6开始工作;ARM9(S3C2440A)首先把行走直线距离 按照不同的冲刺条件时间要求转化为速度参数以及加速度参数指令值,然后FPGA结合电机X和电机Y上的光电编码器、电流传感器的反馈和传感器S1和S6对前方柱子的探测, 生成控制左右轮的PWM波,然后控制左右轮以相同的加速度和速度直线前进;当到达既定目标时,微电脑鼠完成在坐标(X+1,Y+1)到坐标(X+1,Y+2)下的对角线冲刺,微电脑鼠完成一格楼梯迷宫的冲刺,把此时的迷宫坐标更新为(X+2,Y+3);依次类推,微电脑鼠完成Z格楼梯迷宫的冲刺,更新迷宫为(X+Z+1,Y+Z+2),微电脑鼠开始做转出动作,此时控制器会把曲线运动轨迹L_Arc3_45按照不同的冲刺条件时间要求转化为速度参数以及加速度参数指令值,然后FPGA结合电机X和电机Y上的光电编码器和电流传感器的反馈生成控制左右轮的PWM波,然后控制左右轮以恒定的比值C3前进;当到达既定目标后,立即调整微电脑鼠左右轮的速度,控制器把曲线运动轨迹L_Arc4_45按照不同的冲刺条件时间要求转化为速度参数以及加速度参数指令值,然后FPGA结合电机X和电机Y上的光电编码器和电流传感器的反馈生成控制左右轮的PWM波,然后控制左右轮以恒定的比值C4前进;在陀螺仪的控制下,保证到达当到达既定目标B点时曲线L_Arc4_45的斜率为0度,然后控制器把直线行走很短的距离 Passing2按照不同的冲刺条件时间要求转化为速度参数以及加速度参数指令值,然后FPGA结合电机X和电机Y上的光电编码器和电流传感器的反馈生成控制左右轮的PWM波,然后控制左右轮以相同的加速度和速度前进,当到达既定目标后通过三段不同的轨迹完成在坐标(X+Z+1,Y+Z+1)下整个左转弯45度曲线轨迹的运动,微电脑鼠完成对角线冲刺后变为直路的轨迹改变,微电脑鼠进入直线冲刺阶段,此时前方传感器S2、S3、S4和S5开始工作,进入直线导航;并更新当前坐标为(X+Z+1,Y+Z+2)在X+Z+1<15和Y+Z+2<15的前提下,判断其坐标是不是(7,7)、(7,8)、(8,7)、(8,8)其中的一个,如果不是将继续更新其坐标,如果是的话通知控制器已经冲刺到目标,然后置返航探索标志为1,冲刺标志为0,微电脑鼠准备冲刺后的二次返程探索,去搜寻更优的迷宫路径。
8) When the microcomputer mouse moves forward along the X-axis and Y-axis, if a stair-shaped maze retaining wall similar to that shown in Figure 11 enters the range of motion ahead, the system will enter the
9)在微电脑鼠沿着X轴、Y轴向前运动过程中如果有类似图13的U型迷宫挡墙进入前方的运动范围,系统进入自动冲刺子系统5,微电脑鼠将存储此时坐标(X,Y),然后进入图14、图15所示的曲线运动轨迹,在一次右冲刺转弯时,ARM9(S3C2440A)首先把行走直线很短的距离 Leading1按照不同的冲刺条件时间要求转化为速度参数以及加速度参数指令值,然后传输给FPGA,FPGA结合电机X和电机Y上的光电编码器和电流传感器的反馈生成控制左右轮的PWM波,然后通过驱动桥控制左右轮以相同的加速度和速度直线前进;当到达既定目标时,把此时的迷宫坐标更新为(X,Y+1),传感器参考值R90_FrontWallRef开始工作,防止外界干扰开始做误差补偿。误差补偿结束后,控制器会把曲线运动轨迹R_Arc1按照不同的冲刺条件时间要求转化为速度参数以及加速度参数指令值,然后传输给FPGA,FPGA结合电机X和电机Y上的光电编码器和电流传感器的反馈生成控制左右轮的PWM波,然后通过驱动桥控制左右轮的速度以恒定的比值转弯;当到达既定目标后,立即调整微电脑鼠的速度,控制器会把曲线运动轨迹R_Arc2按照不同的冲刺条件时间要求转化为速度参数以及加速度参数指令值,然后传输给FPGA,FPGA结合电机X和电机Y上的光电编码器和电流传感器的反馈生成控制左右轮的PWM波,然后通过驱动桥控制左右轮的速度以恒定的比值转弯;当到达既定目标后,在陀螺仪控制下微电脑鼠已经右转90度,控制器把直线行走很短的距离 Passing1+Leading2,按照不同的冲刺条件时间要求转化为速度参数以及加速度参数指令值,然后传输给FPGA,FPGA结合电机X和电机Y上的光电编码器和电流传感器的反馈生成控制左右轮的PWM波,然后通过驱动桥控制左右轮以相同的加速度和速度前进,当传感器S5的值产生有低电平到高电平的跃变时,更新微电脑鼠坐标为(X+1,Y+1),微电脑鼠继续以当前的速度和加速前进,当到达既定目标时,传感器参考值R90_FrontWallRef开始工作,防止外界干扰开始做误差补偿。误差补偿结束后,微电脑鼠继续右转,控制器会把曲线运动轨迹R_Arc1按照不同的冲刺条件时间要求转化为速度参数以及加速度参数指令值,然后传输给FPGA,FPGA结合电机X和电机Y上的光电编码器和电流传感器的反馈生成控制左右轮的PWM波,然后通过驱动桥控制左右轮的速度以恒定的比值转弯;当到达既定目标后,立即调整微电脑鼠的速度,控制器会把曲线运动轨迹R_Arc2按照不同的冲刺条件时间要求转化为速度参数以及加速度参数指令值,然后传输给FPGA,FPGA结合电机X和电机Y上的光电编码器和电流传感器的反馈生成控制左右轮的PWM波,然后通过驱动桥控制左右轮的速度以恒定的比值转弯;当到达既定目标后,在陀螺仪控制下微电脑鼠已经右转90度,控制器把直线行走很短的距离Passing2按照不同的冲刺条件时间要求转化为速度参数以及加速度参数指令值,然后传输给FPGA,FPGA结合电机X和电机Y上的光电编码器和电流传感器的反馈生成控制左右轮的PWM波,然后通过驱动桥控制左右轮相同的加速度和速度前进,到达既定目标后,微电脑鼠完成一个U型迷宫的冲刺,更新微电脑鼠坐标为(X+1,Y),并判断其坐标是不是(7,7)、(7,8)、(8,7)、(8,8)其中的一个,如果不是将继续更新其坐标,如果是的话通知控制器已经冲刺到目标,然后置返航探索标志为1,冲刺标志为0,微电脑鼠准备冲刺后的二次返程探索,去搜寻更优的迷宫路径。
9) During the forward movement of the microcomputer mouse along the X-axis and Y-axis, if a U-shaped maze wall similar to that in Figure 13 enters the range of motion ahead, the system will enter the
10)当微电脑鼠冲刺到达(7,7)、(7,8)、(8,7)、(8,8)后,会准备冲刺后的返程探索以便搜寻更优的路径,ARM9(S3C2440A)会调出其已经存储的迷宫信息,然后计算出可能存在的其它最佳路径,然后返程开始进入其中认为最优的一条。 10) When the microcomputer mouse sprints to (7, 7), (7, 8), (8, 7), (8, 8), it will prepare for the return trip after the sprint to search for a better path, ARM9 (S3C2440A) It will call out the maze information it has stored, and then calculate other possible optimal paths, and then start the return journey to enter the one that is considered optimal.
11)在微电脑鼠进入迷宫返程探索时,其导航的传感器S1、S2、S3、S4、S5、S6将工作,并把反射回来的光电信号送给ARM9(S3C2440A),经ARM9(S3C2440A)判断后送给FPGA,由FPGA运算后与ARM9(S3C2440A)进行通讯,然后由控制器送控制信号给导航的电机X和电机Y进行确定:如果进入已经搜索的区域将进行快速前进,如果是未知返回区域则采用正常速度搜索,并时刻更新其坐标(X,Y),并判断其坐标是不是(0,0),如果是的话置返航探索标志为0,微电脑鼠进入冲刺阶段,并置冲刺标志为1。 11) When the microcomputer mouse enters the maze and returns to explore, its navigation sensors S1, S2, S3, S4, S5, and S6 will work, and send the reflected photoelectric signal to ARM9 (S3C2440A), after being judged by ARM9 (S3C2440A) Send it to FPGA, communicate with ARM9 (S3C2440A) after calculation by FPGA, and then the controller sends control signals to motor X and motor Y of the navigation for confirmation: if it enters the searched area, it will move forward quickly, if it is an unknown return area Then use the normal speed to search, and update its coordinates (X, Y) at all times, and judge whether its coordinates are (0, 0), if so, set the return exploration flag to 0, the microcomputer mouse enters the sprint stage, and set the sprint flag to 1.
12)为了能够实现微电脑鼠准确的坐标计算功能,本发明在高速直流电机X轴和Y轴上加入了512线的光电编码器,时刻对微电脑鼠运行的距离进行计算并根据迷宫挡墙和柱子对传感器反馈信息不同的特点引入了补偿,使得微电脑鼠的冲刺坐标计算不会出现错误。 12) In order to realize the accurate coordinate calculation function of the microcomputer mouse, the present invention adds a 512-line photoelectric encoder on the X-axis and Y-axis of the high-speed DC motor, and calculates the running distance of the microcomputer mouse at all times and calculates the distance according to the maze retaining wall and pillars. Compensation is introduced for the different characteristics of sensor feedback information, so that the calculation of the sprint coordinates of the microcomputer mouse will not be wrong.
13)为了能够减少光源对微电脑鼠冲刺的干扰,本发明加入了光电补偿传感器7S8,此传感器会在微电脑鼠冲刺阶段对周围的异常光源进行读取,并自动送给控制器做实时补偿,消除了外界光源对冲刺的干扰。 13) In order to reduce the interference of the light source on the sprinting of the microcomputer mouse, the present invention adds a photoelectric compensation sensor 7S8, which will read the abnormal light sources around during the sprinting stage of the microcomputer mouse, and automatically send it to the controller for real-time compensation to eliminate The interference of external light sources on the sprint is eliminated.
14)在微电脑鼠运行过程中,ARM9(S3C2440A)会对直流电机X和电机Y的转矩进行在线辨识,当电机的转矩受到外界干扰出现较大抖动时,控制器会利用直流电机力矩与电流的关系进行时候补偿,减少了电机转矩抖动对微电脑鼠高速冲刺的影响。 14) During the operation of the microcomputer mouse, ARM9 (S3C2440A) will conduct online identification of the torque of DC motor X and motor Y. When the torque of the motor is greatly shaken by external interference, the controller will use the DC motor torque and The current relationship is time-compensated, which reduces the influence of the motor torque jitter on the high-speed sprint of the microcomputer mouse.
15)当微电脑完成整个冲刺过程到达(7,7)、(7,8)、(8,7)、(8,8),微电脑鼠会置探索标志为1,微电脑鼠返程探索回到起始点(0,0),ARM9(S3C2440A)将控制FPGA使得微电脑鼠在起始坐标(0,0)中心点停车,然后重新调整FPGA的PWM波输出,使得电机X和电机Y以相反的方向运动,并在陀螺仪的控制下,原地旋转180度,然后停车1秒,二次调取迷宫信息,然后根据算法算出优化迷宫信息后的最优冲刺路径,然后置冲刺标志为1,系统进入二次快速冲刺阶段。然后按照冲刺----探索---冲刺,完成多次的冲刺,以达到快速冲刺的目的。 15) 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 for exploration (0, 0), ARM9 (S3C2440A) will control the FPGA to make the microcomputer mouse stop at the center point of the initial coordinate (0,0), and then readjust the PWM wave output of the FPGA so that the motor X and motor Y move in opposite directions, And under the control of the gyroscope, rotate 180 degrees on the spot, then stop for 1 second, retrieve the maze information for the second time, and then calculate the optimal sprint path after optimizing the maze information according to the algorithm, then set the sprint flag to 1, and the system enters the second A quick sprint phase. Then follow the sprint----exploration----sprint, and complete multiple sprints to achieve the goal of fast sprint.
本发明的有益效果为: The beneficial effects of the present invention are:
(1)同时采用ARM9处理器和FPGA处理器分工工作,由FPGA处理器处理微电脑鼠高速冲刺时的两只高速直流电机的同步伺服控制,使得控制比较简单,大大提高了运算速度,避免产生大电流,缩短了开发周期短,并且程序可移植能力强;有效地防止了程序的跑飞,抗干扰能力大大增强;时刻监测锂离子电池的剩余容量,有利于了解电池的能量状态,当电池能量状态较低时,可以在冲刺前提前换掉电池,从而减少了电池对高速冲刺的误干扰; (1) At the same time, the ARM9 processor and the FPGA processor are used to divide the work, and the FPGA processor handles the synchronous servo control of the two high-speed DC motors when the microcomputer mouse sprints at high speed, which makes the control relatively simple, greatly improves the calculation speed, and avoids large current, which shortens the development cycle and has strong program portability; it effectively prevents the program from running away and greatly enhances the anti-interference ability; monitoring the remaining capacity of the lithium-ion battery at all times is helpful for understanding the energy state of the battery. When the state is low, the battery can be replaced in advance before the sprint, thereby reducing the false interference of the battery to the high-speed sprint;
(2)在微电脑鼠快速冲刺过程中,所述ARM9处理器能够对直流电机X和电机Y的转矩进行在线辨识并利用直流电机力矩与电流的关系进行补偿,减少了电机转矩抖动对微电脑鼠快速冲刺的影响; (2) During the rapid sprinting process of the microcomputer mouse, the ARM9 processor can conduct online identification of the torque of the DC motor X and motor Y and use the relationship between the torque and current of the DC motor to compensate, reducing the impact of motor torque jitter on the microcomputer The effect of a fast sprint of the mouse;
(3)所述陀螺仪可以按时间累计确定角坐标和测量车轮转速,这对于微电脑鼠连续旋转一定角度计算具有导航作用,可以实现两轮微电脑鼠的速度大小和方向的独立控制,有利于提高微电脑鼠冲刺时的稳定性和动态性能,使微电脑鼠更容易实现曲线轨迹的转动; (3) The gyroscope can determine the angular coordinates and measure the rotation speed of the wheel according to the time accumulation, which has a navigation function for the calculation of the continuous rotation of the microcomputer mouse at a certain angle, and can realize the independent control of the speed and direction of the two rounds of the microcomputer mouse, which is conducive to improving The stability and dynamic performance of the microcomputer mouse when sprinting make it easier for the microcomputer mouse to realize the rotation of the curved track;
(4)所述数据存储模块能够存储微电脑鼠的迷宫探索信息,有利于提取对应信息并优化二次冲刺的路径,降低冲刺时间; (4) The data storage module can store the maze exploration information of the microcomputer mouse, which is conducive to extracting corresponding information and optimizing the path of the second sprint, reducing the sprint time;
(5)所述LM629控制模块依据具体路径调取不同冲刺模块控制冲刺方向和冲刺速度,自动冲刺,杜绝接触扣分,快捷安全; (5) The LM629 control module calls different sprint modules according to the specific path to control the sprint direction and sprint speed, and automatically sprints to prevent contact deduction, which is fast and safe;
(6)所述两轮微电脑鼠包括两种冲刺模式,满足现实比赛的需求; (6) The two rounds of microcomputer mice include two sprint modes to meet the needs of realistic competitions;
(7)采用S型加减速曲线在任何一点的加速度都是连续变化的,从而避免了微电脑鼠系统的柔性冲击,速度的平滑性很好,运动精度高。 (7) The S-shaped acceleration and deceleration curve is used to continuously change the acceleration at any point, thus avoiding the flexible impact of the microcomputer mouse system, the smoothness of the speed is very good, and the movement accuracy is high.
以上所述仅为本发明的实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书内容所作的等效结构或等效流程变换,或直接或间接运用在其它相关的技术领域,均同理包括在本发明的专利保护范围内。 The above descriptions are only examples of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the content of the description of the present invention, or directly or indirectly used in other related technical fields, shall be The same reasoning is included in the patent protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310443875.4A CN103529837A (en) | 2013-09-26 | 2013-09-26 | Dual-core two-wheeled top-speed microcomputer mouse-based diagonal sprint servo system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310443875.4A CN103529837A (en) | 2013-09-26 | 2013-09-26 | Dual-core two-wheeled top-speed microcomputer mouse-based diagonal sprint servo system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103529837A true CN103529837A (en) | 2014-01-22 |
Family
ID=49931924
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310443875.4A Pending CN103529837A (en) | 2013-09-26 | 2013-09-26 | Dual-core two-wheeled top-speed microcomputer mouse-based diagonal sprint servo system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103529837A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105068539A (en) * | 2015-08-24 | 2015-11-18 | 铜陵学院 | STM32F407-based two-wheeled middle-low speed fire-fighting robot servo controller |
CN105116918A (en) * | 2015-08-24 | 2015-12-02 | 铜陵学院 | Double-core two-wheel middling speed fire extinguishing robot servo controller |
CN105137976A (en) * | 2015-08-24 | 2015-12-09 | 铜陵学院 | Four-wheel double-core middling speed fire extinguishing robot servo controller |
CN107291016A (en) * | 2017-07-31 | 2017-10-24 | 深圳市鸿栢科技实业有限公司 | A kind of control system applied to industrial robot |
CN114082206A (en) * | 2020-08-24 | 2022-02-25 | 天津工业大学 | Oblique sprint system for computer mouse |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050179319A1 (en) * | 2002-06-06 | 2005-08-18 | Oscar Marchetto | Electrical system for controlling at least one gate or door or similar element of the type moved electrically |
CN102841619A (en) * | 2012-09-21 | 2012-12-26 | 苏州工业园区职业技术学院 | Rapid exploration automatic control system for micro-mouse |
CN202838024U (en) * | 2012-09-21 | 2013-03-27 | 苏州工业园区职业技术学院 | Novel automatic control system for quick sprint of a microcomputer mouse |
CN202838072U (en) * | 2012-09-21 | 2013-03-27 | 苏州工业园区职业技术学院 | Automatic control system for quick sprint of a microcomputer mouse |
CN203773352U (en) * | 2013-09-26 | 2014-08-13 | 苏州工业园区职业技术学院 | Dual core-based two-wheeled top-speed microcomputer mouse diagonal sprint servo system |
-
2013
- 2013-09-26 CN CN201310443875.4A patent/CN103529837A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050179319A1 (en) * | 2002-06-06 | 2005-08-18 | Oscar Marchetto | Electrical system for controlling at least one gate or door or similar element of the type moved electrically |
CN102841619A (en) * | 2012-09-21 | 2012-12-26 | 苏州工业园区职业技术学院 | Rapid exploration automatic control system for micro-mouse |
CN202838024U (en) * | 2012-09-21 | 2013-03-27 | 苏州工业园区职业技术学院 | Novel automatic control system for quick sprint of a microcomputer mouse |
CN202838072U (en) * | 2012-09-21 | 2013-03-27 | 苏州工业园区职业技术学院 | Automatic control system for quick sprint of a microcomputer mouse |
CN203773352U (en) * | 2013-09-26 | 2014-08-13 | 苏州工业园区职业技术学院 | Dual core-based two-wheeled top-speed microcomputer mouse diagonal sprint servo system |
Non-Patent Citations (2)
Title |
---|
仇之等: "基于ARM和FPGA的新型电脑鼠系统设计", 《仪器仪表与分析监测》 * |
李敏等: "电脑鼠的结构设计和算法研究", 《中国科技纵横》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105068539A (en) * | 2015-08-24 | 2015-11-18 | 铜陵学院 | STM32F407-based two-wheeled middle-low speed fire-fighting robot servo controller |
CN105116918A (en) * | 2015-08-24 | 2015-12-02 | 铜陵学院 | Double-core two-wheel middling speed fire extinguishing robot servo controller |
CN105137976A (en) * | 2015-08-24 | 2015-12-09 | 铜陵学院 | Four-wheel double-core middling speed fire extinguishing robot servo controller |
CN107291016A (en) * | 2017-07-31 | 2017-10-24 | 深圳市鸿栢科技实业有限公司 | A kind of control system applied to industrial robot |
CN114082206A (en) * | 2020-08-24 | 2022-02-25 | 天津工业大学 | Oblique sprint system for computer mouse |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103529832A (en) | Diagonal sprint system based on dual-core four-wheel high-speed microcomputer mouse | |
CN103472830A (en) | Ultra-fast exploring controller of two-wheel micro-mouse based on dual processors | |
CN102841620B (en) | Novel micro-mouse quick sprint automatic control system | |
CN203535477U (en) | Four-wheel micro-mouse sprint controller based on ARM9 | |
CN103529837A (en) | Dual-core two-wheeled top-speed microcomputer mouse-based diagonal sprint servo system | |
CN103472835B (en) | Based on double-core four-wheel micro computer Mus fast sprint controller | |
CN103529846B (en) | Based on double-core four-wheel high speed micro computer mouse continuous rotation sprint servo-drive system | |
CN105116891A (en) | Double-core middle-speed two-wheeled picomouse sprint controller and control method thereof | |
CN105204502A (en) | Dual-core medium-speed six-wheel little mouse exploration controller and control method thereof | |
CN105137979A (en) | Double-core intermediate speed six-wheel mini mouse spurting controller and control method | |
CN105116898A (en) | Single-core low-speed two-wheeled picomouse sprint controller | |
CN103472838A (en) | Fast sprint controller of four-wheel micro-mouse based on double processors | |
CN203643838U (en) | Based on dual-core four-wheel microcomputer mouse and its fast sprint controller | |
CN103472834B (en) | Ultra-fast sprint controller of two-wheel micro-mouse based on dual processors | |
CN203773352U (en) | Dual core-based two-wheeled top-speed microcomputer mouse diagonal sprint servo system | |
CN105137981A (en) | Single-core low-speed four-wheel mini mouse exploration controller and control method | |
CN103472831B (en) | Based on double-core four-wheel micro computer Mus supper-fast exploration controller | |
CN103529836A (en) | Dual-core-based two-wheel high-speed microcomputer mouse and diagonal ramp-up servo system thereof | |
CN103605363A (en) | Four-wheeled microcomputer mouse sprint controller based on ARM9 | |
CN103529833A (en) | Dual-core four-wheeled top-speed microcomputer mouse-based diagonal sprint system | |
CN203535487U (en) | Dual-core-based four-wheel topspeed microcomputer mouse diagonal sprint system | |
CN103529834A (en) | ARM9 (Advanced RISC Machines 9)-based four-wheel rapid microcomputer mouse diagonal ramp-up system | |
CN203643840U (en) | Based on dual-core two-wheel microcomputer mouse and its ultra-fast sprint controller | |
CN203643835U (en) | Microcomputer mouse based on dual-core two-wheel and its ultra-fast exploration controller | |
CN203535486U (en) | ARM9-based four-wheel quick microcomputer mouse diagonal sprint system |
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: 20140122 |
|
RJ01 | Rejection of invention patent application after publication |