[go: up one dir, main page]

CN109032133B - Indoor Mobile Robot Based on Sound Source Localization - Google Patents

Indoor Mobile Robot Based on Sound Source Localization Download PDF

Info

Publication number
CN109032133B
CN109032133B CN201810764009.8A CN201810764009A CN109032133B CN 109032133 B CN109032133 B CN 109032133B CN 201810764009 A CN201810764009 A CN 201810764009A CN 109032133 B CN109032133 B CN 109032133B
Authority
CN
China
Prior art keywords
capacitor
chip
power supply
resistor
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.)
Active
Application number
CN201810764009.8A
Other languages
Chinese (zh)
Other versions
CN109032133A (en
Inventor
李忠兵
张军豪
谌贵辉
吴真林
谌杰睿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Southwest Petroleum University
Original Assignee
Southwest Petroleum University
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 Southwest Petroleum University filed Critical Southwest Petroleum University
Priority to CN201810764009.8A priority Critical patent/CN109032133B/en
Publication of CN109032133A publication Critical patent/CN109032133A/en
Application granted granted Critical
Publication of CN109032133B publication Critical patent/CN109032133B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0255Control of position or course in two dimensions specially adapted to land vehicles using acoustic signals, e.g. ultra-sonic singals
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S15/00Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems
    • G01S15/02Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems using reflection of acoustic waves
    • G01S15/06Systems determining the position data of a target
    • G01S15/08Systems for measuring distance only
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S15/00Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems
    • G01S15/88Sonar systems specially adapted for specific applications
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S5/00Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
    • G01S5/18Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations using ultrasonic, sonic, or infrasonic waves
    • G01S5/22Position of source determined by co-ordinating a plurality of position lines defined by path-difference measurements

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Automation & Control Theory (AREA)
  • General Electrical Machinery Utilizing Piezoelectricity, Electrostriction Or Magnetostriction (AREA)
  • Direct Current Feeding And Distribution (AREA)

Abstract

The invention provides an indoor mobile robot based on sound source positioning, wherein a power supply realizes voltage conversion through a power supply module, the power supply module supplies power to a chassis motor through a motor driving module, a rotating shaft of the chassis motor is connected with a driving wheel, the power supply module also respectively supplies power to an ultrasonic ranging module, an ultrasonic receiving module, a microphone and a singlechip, an ultrasonic signal sent by the ultrasonic ranging module is returned by an obstacle and received by the ultrasonic receiving module, the ultrasonic receiving module sends the signal to the singlechip, and the singlechip realizes obstacle avoidance through the driving wheel by calculation. According to the invention, the three-dimensional coordinate calculation of the sound source position can be realized according to sound localization and under the indoor environment, the trolley is controlled to start from the initial position and automatically draw close to the sound source position, and the function of autonomous obstacle avoidance is realized in the moving process.

Description

基于声源定位的室内移动机器人Indoor Mobile Robot Based on Sound Source Localization

技术领域technical field

本发明属于机器人领域,尤其涉及基于声源定位的室内移动机器人。The invention belongs to the field of robots, in particular to an indoor mobile robot based on sound source localization.

背景技术Background technique

机器人作为面向复杂环境背景的智能个体,面临的是多模态信息的世界,对各种应用环境它都具有相应的信息处理系统和信息获取方式,能根据环境的变化作出相应的决策。为机器人装备各种外部传感器,使其具有更高的性能指标和更宽的应用范围,是机器人向智能化发展的重要手段。As an intelligent individual facing complex environmental backgrounds, robots are faced with a world of multi-modal information. For various application environments, they have corresponding information processing systems and information acquisition methods, and can make corresponding decisions according to changes in the environment. Equipping robots with various external sensors to enable them to have higher performance indicators and wider application ranges is an important means for robots to develop intelligently.

机器人视觉技术极大地拓宽了机器人的应用范围,提高了机器人的工作效率。但视觉感知受视线和能见度的限制,在光线条件较差或者障碍物阻挡情况下,视觉感知就会失效。Robot vision technology has greatly broadened the application range of robots and improved the working efficiency of robots. However, visual perception is limited by line of sight and visibility, and visual perception will fail when the light conditions are poor or obstructed by obstacles.

发明内容Contents of the invention

本发明的目的在于解决上述现有技术存在的缺陷,提供基于声源定位的室内移动机器人,能够在室内环境下实现声源位置的三维坐标解算,并控制小车从初始位置出发,自动向声源位置靠拢,在移动过程中实现自主避障的功能。The purpose of the present invention is to solve the above-mentioned defects in the prior art, and to provide an indoor mobile robot based on sound source positioning, which can realize the three-dimensional coordinate calculation of the sound source position in an indoor environment, and control the car to start from the initial position and automatically move to the sound source. The source position is close to realize the function of autonomous obstacle avoidance during the movement.

本发明采用如下技术方案:The present invention adopts following technical scheme:

基于声源定位的室内移动机器人,电源通过电源模块实现电压的转换,电源模块通过电机驱动模块供电给底盘电机,底盘电机的转动轴和驱动轮相连,电源模块还分别供电给超声波测距模块,超声波接收模块、传声器和单片机,传声器对声源进行定位,并发送信号给单片机,单片机发送信号给电机驱动模块,从而驱使小车运动到声源位置,超声波测距模块发出的超声波信号被障碍物返回并被超声波接收模块接收,超声波接收模块将信号发送给单片机,单片机通过计算,发送信号用于机器人避障,所述的传声器为5个,并构成四角锥的传声器阵列,并采用空间五元传声器阵列时延估计算法得到声源的位置。In the indoor mobile robot based on sound source positioning, the power supply realizes the voltage conversion through the power module, and the power module supplies power to the chassis motor through the motor drive module, and the rotating shaft of the chassis motor is connected to the driving wheel. Ultrasonic receiving module, microphone and single-chip microcomputer. The microphone locates the sound source and sends a signal to the single-chip microcomputer. The single-chip microcomputer sends a signal to the motor drive module, thereby driving the car to move to the position of the sound source. The ultrasonic signal sent by the ultrasonic ranging module is returned by obstacles And received by the ultrasonic receiving module, the ultrasonic receiving module sends the signal to the single-chip microcomputer, and the single-chip microcomputer sends the signal for robot obstacle avoidance through calculation. The array delay estimation algorithm obtains the position of the sound source.

进一步的技术方案是,所述的电机驱动模块包括P3驱动信号接口、P2电机电源接口、P1电机接口,BTS7960芯片U2、BTS7960芯片U3、74AHC244锁存U1,P3驱动信号接口与74AHC244锁存U1、BTS7960芯片U2、BTS7960芯片U3相连,P2电机电源接口与BTS7960芯片U2、BTS7960芯片U3相连,P1电机接口与BTS7960芯片U2、BTS7960芯片U3相连,BTS7960芯片U2与74AHC244锁存U1相连,BTS7960芯片U3与74AHC244锁存U1相连。The further technical solution is that the motor drive module includes P3 drive signal interface, P2 motor power interface, P1 motor interface, BTS7960 chip U2, BTS7960 chip U3, 74AHC244 latch U1, P3 drive signal interface and 74AHC244 latch U1, BTS7960 chip U2 and BTS7960 chip U3 are connected, P2 motor power interface is connected with BTS7960 chip U2 and BTS7960 chip U3, P1 motor interface is connected with BTS7960 chip U2 and BTS7960 chip U3, BTS7960 chip U2 is connected with 74AHC244 latch U1, BTS7960 chip U3 is connected with 74AHC244 latch U1 connected.

进一步的优选的技术方案是,所述的电源安装有电源防过电压保护电路,电源为电池,电源防过电压保护电路的电池正极与滑动变阻器电阻R2一端、PMOS管Q1的源极相连接,PMOS管Q1的漏极与NMOS管Q3的源极相连,PMOS管Q1的栅极与电阻R1一端、和电阻RL1一端相连接,电阻R1另一端与发光二极管D1的正极相连接,发光二极管D1的负极与MOSFET管Q2的源极相连接,MOSFET管Q2的漏极与滑动变阻器R2的另一端、电阻R3一端相连接,MOSFET管Q2的栅极与电阻R3另一端相连接,电阻RL1的另一端与电阻R3的另一端相连接,NMOS管Q3的栅极与电阻R3相连接,NMOS管Q3的漏极与滑动变阻器R2的另一端相连接,滑动变阻器R2的另一端还与电阻R4相连接,电池负极与电阻R4的另一端、电阻R3的另一端相连接。A further preferred technical solution is that the power supply is equipped with a power supply anti-overvoltage protection circuit, the power supply is a battery, and the battery positive pole of the power supply anti-overvoltage protection circuit is connected to one end of the sliding rheostat resistor R2 and the source of the PMOS transistor Q1, The drain of the PMOS transistor Q1 is connected to the source of the NMOS transistor Q3, the gate of the PMOS transistor Q1 is connected to one end of the resistor R1 and one end of the resistor RL1, the other end of the resistor R1 is connected to the anode of the light-emitting diode D1, and the light-emitting diode D1 The negative pole is connected to the source of MOSFET Q2, the drain of MOSFET Q2 is connected to the other end of sliding rheostat R2 and one end of resistor R3, the gate of MOSFET Q2 is connected to the other end of resistor R3, and the other end of resistor RL1 It is connected to the other end of the resistor R3, the gate of the NMOS transistor Q3 is connected to the resistor R3, the drain of the NMOS transistor Q3 is connected to the other end of the sliding rheostat R2, and the other end of the sliding rheostat R2 is also connected to the resistor R4, The negative electrode of the battery is connected with the other end of the resistor R4 and the other end of the resistor R3.

进一步的优选技术方案是,所述的电源模块包括12V稳压电路、5V稳压电路、3.3V稳压电路,其中,12V稳压电路包括XL6009电流转换芯片,10V电源输入端与输入电容C1一端、电容C2一端、电感L1一端、XL6009电流转换芯片的VIN接口相连,电感L1另一端与稳压二极管D1正极、XL6009电流转换芯片的SW端口相连,稳压二极管D1的负极与电容C3一端、输出电容C4一端、电阻R2一端相连接,电阻R2的另一端与XL6009电流转换芯片的FB端口相连接,XL6009电流转换芯片的FB与电阻R1一端相连,10V电源输入端与输入电容C1另一端、电容C2另一端、XL6009电流转换芯片的GND端口、电阻丝R1的另一端、电容C3另一端、输出电容C4另一端相连;A further preferred technical solution is that the power supply module includes a 12V voltage stabilizing circuit, a 5V voltage stabilizing circuit, and a 3.3V voltage stabilizing circuit, wherein the 12V voltage stabilizing circuit includes an XL6009 current conversion chip, a 10V power supply input terminal and an input capacitor C1. , one end of the capacitor C2, one end of the inductor L1, and the VIN interface of the XL6009 current conversion chip. One end of capacitor C4 is connected to one end of resistor R2, the other end of resistor R2 is connected to the FB port of XL6009 current conversion chip, FB of XL6009 current conversion chip is connected to one end of resistor R1, the input end of 10V power supply is connected to the other end of input capacitor C1, capacitor The other end of C2, the GND port of the XL6009 current conversion chip, the other end of the resistance wire R1, the other end of the capacitor C3, and the other end of the output capacitor C4 are connected;

12V电源输入端与电容C5一端、A1212S-2W隔离电源模块的VIN相连,电容C5另一端与A1212S-2W隔离电源模块的GND相连并接地,A1212S-2W隔离电源模块的+V与0V之间通过电阻R3相连,A1212S-2W隔离电源模块的-V与0V之间通过电阻R4相连,A1212S-2W隔离电源模块接地;The 12V power supply input terminal is connected to one end of capacitor C5 and the VIN of the A1212S-2W isolated power supply module, the other end of capacitor C5 is connected to the GND of the A1212S-2W isolated power supply module and grounded, and the +V and 0V of the A1212S-2W isolated power supply module are connected through The resistor R3 is connected, the -V and 0V of the A1212S-2W isolated power module are connected through the resistor R4, and the A1212S-2W isolated power module is grounded;

5V稳压电源包括LM2596芯片,电源输入端与LM2596芯片的VIN相连,并与电容C6一端相连,LM2596芯片的OUT与电感L2和稳压二极管D2负极、滑动变阻器RV1、电容C7一端,滑动变阻器RV1另一端与电阻R5一端相连,电容C7另一端与电阻R5另一端、电感L2另一端、电容C8一端相连,LM2596芯片的FB端口与、OUT端口、电阻R6一端相连,电容C6另一端与LM2596芯片的OFF端口、LM2596芯片的GND相连、电阻R6另一端、稳压二极管D2另一端,电容C8另一端相连,并接地;The 5V regulated power supply includes the LM2596 chip, the power input terminal is connected to the VIN of the LM2596 chip, and connected to one end of the capacitor C6, the OUT of the LM2596 chip is connected to the inductor L2 and the negative pole of the Zener diode D2, the sliding rheostat RV1, one end of the capacitor C7, and the sliding rheostat RV1 The other end is connected to one end of the resistor R5, the other end of the capacitor C7 is connected to the other end of the resistor R5, the other end of the inductor L2, and one end of the capacitor C8. The FB port of the LM2596 chip is connected to the OUT port and one end of the resistor R6. The OFF port of the LM2596 chip is connected to the GND, the other end of the resistor R6, the other end of the Zener diode D2, the other end of the capacitor C8 are connected, and grounded;

3.3V稳压电源包括AMS1117-3.3V线性稳压器,电源输入端与电容C9一端,电容C10一端、AMS1117-3.3V线性稳压器的IN端口相连,AMS1117-3.3V线性稳压器的OUT端与电容C11一端、电容C12一端相连接,AMS1117-3.3V线性稳压器的ADJ的端点与电容C9另一端、电容C10另一端、电容C11另一端、电容C12另一端相连并接地。The 3.3V regulated power supply includes AMS1117-3.3V linear voltage regulator, the power input terminal is connected to one end of capacitor C9, one end of capacitor C10, the IN port of AMS1117-3.3V linear voltage regulator, and the OUT port of AMS1117-3.3V linear voltage regulator The terminal is connected to one end of capacitor C11 and one end of capacitor C12, and the terminal of ADJ of AMS1117-3.3V linear voltage regulator is connected to the other end of capacitor C9, the other end of capacitor C10, the other end of capacitor C11, and the other end of capacitor C12, and grounded.

进一步的优选技术方案是,所述的超声波测距模块包括STC11单片机、MAX232芯片放大器,压电晶体,STC11单片机产生信号并发送给MAX232芯片放大器,MAX232芯片放大器与压电晶体信号相连,驱动压电晶体产生超声波信号。A further preferred technical solution is that the ultrasonic ranging module includes a STC11 single-chip microcomputer, a MAX232 chip amplifier, and a piezoelectric crystal, and the STC11 single-chip microcomputer generates a signal and sends it to the MAX232 chip amplifier, and the MAX232 chip amplifier is connected with the piezoelectric crystal signal to drive the piezoelectric crystal. The crystal generates an ultrasonic signal.

进一步的优选技术方案是,所述的超声波接收模块包括TLO84低噪声运放、压电晶片,压电晶片与TLO84低噪声运放电连接。A further preferred technical solution is that the ultrasonic receiving module includes a TLO84 low-noise operational amplifier and a piezoelectric chip, and the piezoelectric chip is connected with the TLO84 low-noise operational amplifier.

进一步的优选技术方案是,还包括高通滤波器、放大滤波电路、低通滤波器,高通滤波器、放大滤波电路、低通滤波器安装于电源模块与传声器相连的电路中。A further preferred technical solution is that it also includes a high-pass filter, an amplification filter circuit, and a low-pass filter, and the high-pass filter, the amplification filter circuit, and the low-pass filter are installed in the circuit where the power module is connected to the microphone.

本发明是根据声音定位的室内移动机器人,能在室内环境下实现声源位置的三维坐标解算,并控制小车从初始位置出发,自动向声源位置靠拢,在移动过程实现自主避障的功能。The invention is an indoor mobile robot based on sound positioning, which can realize the three-dimensional coordinate solution of the sound source position in the indoor environment, and control the car to start from the initial position, automatically move closer to the sound source position, and realize the function of autonomous obstacle avoidance during the moving process .

附图说明Description of drawings

图1为四轮差速转向底盘示意图;Fig. 1 is a schematic diagram of a four-wheel differential steering chassis;

图2为电机驱动电路连接图;Figure 2 is a connection diagram of the motor drive circuit;

图3为电源防过放保护电路图;Figure 3 is a circuit diagram of the power supply anti-over-discharge protection;

图4为12V电源稳压电路XL6009自动升压电路图;Figure 4 is a 12V power supply voltage regulator circuit XL6009 automatic boost circuit diagram;

图5为12V电源稳压电路12V转12V电源;Figure 5 is a 12V to 12V power supply for the 12V power supply voltage regulator circuit;

图6为5VLM2596降压电路图;Figure 6 is a step-down circuit diagram of 5VLM2596;

图7为3.3VAMS1117-3.3降压电路图;Figure 7 is a 3.3VAMS1117-3.3 step-down circuit diagram;

图8为超声波测距模块的超声波发射电路图;Fig. 8 is the ultrasonic transmission circuit diagram of ultrasonic ranging module;

图9为超声波接收电路图;Fig. 9 is an ultrasonic receiving circuit diagram;

图10为高通滤波器电路图;Fig. 10 is a high-pass filter circuit diagram;

图11为放大滤波电路原理图;Figure 11 is a schematic diagram of the amplification filter circuit;

图12为低通滤波器电路原理图;Fig. 12 is a schematic diagram of a low-pass filter circuit;

图13为阵列传声器结构示意图。Fig. 13 is a schematic diagram of the structure of an array microphone.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚,下面本发明中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the present invention clearer, the following technical solutions in the present invention are clearly and completely described. Apparently, the described embodiments are some embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

本发明的基于声源定位的室内移动机器人,包括底盘机构、电源、电源模块、电机驱动模块、超声波避障模块、单片机。如图1所示,为四轮差速转向底盘示意图。底盘机构包括驱动轮和底盘,底盘通过左右驱动轮转速不同实现转向,即底盘驱动轮间的速度差会产生侧滑,利用侧滑进行转向。The indoor mobile robot based on sound source positioning of the present invention includes a chassis mechanism, a power supply, a power supply module, a motor drive module, an ultrasonic obstacle avoidance module, and a single-chip microcomputer. As shown in Figure 1, it is a schematic diagram of a four-wheel differential steering chassis. The chassis mechanism includes the driving wheel and the chassis. The chassis realizes steering through the different speeds of the left and right driving wheels, that is, the speed difference between the driving wheels of the chassis will cause side slip, and the side slip is used for steering.

底盘上安装四个独立的驱动轮,底盘差速转向时,右侧两个驱动轮的速度相同为,左侧两个驱动轮的速度相同为。左侧驱动轮偏转角为α,两者方向相反。=时,底盘将沿直线运动;->0时,底盘将绕右侧转动中心转动;-<0时,底盘将绕左侧转动中心转动。四轮差速转向利用左右两侧轮子速度差可实现绕任意半径转弯,具有转向灵活、精度较高、结构简单的优势。Four independent driving wheels are installed on the chassis. When the chassis is differentially turned, the speed of the two driving wheels on the right is the same, and the speed of the two driving wheels on the left is the same. The deflection angle of the left driving wheel is α, and the two directions are opposite. =, the chassis will move in a straight line; ->0, the chassis will rotate around the right rotation center; -<0, the chassis will rotate around the left rotation center. The four-wheel differential steering can turn around any radius by using the speed difference between the left and right wheels, and has the advantages of flexible steering, high precision and simple structure.

电源、电源模块、电机驱动模块、超声波避障模块、单片机均设置于底盘上。The power supply, power supply module, motor drive module, ultrasonic obstacle avoidance module and single-chip microcomputer are all arranged on the chassis.

如图2所示,为底盘电机驱动电路图。所述的电机驱动模块包括P3驱动信号接口、P2电机电源接口、P1电机接口,BTS7960芯片U2、BTS7960芯片U3、74AHC244锁存U1,P3驱动信号接口的1#接口与74AHC244锁存U1的A1端子相连,P3驱动信号接口的2#接口与74AHC244锁存U1的A3端子相连,P3驱动信号接口的3#接口与74AHC244锁存U1的A2端子相连,P3驱动信号接口的4#接口与74AHC244锁存U1的A4端子相连,P3驱动信号接口的5#接口与BTS7960芯片U2的IS端子相连,P3驱动信号接口的6#接口与BTS7960芯片U3的IS端子相连,74AHC244锁存U1的Y1端子与BTS7960芯片U2的IN端子相连,74AHC244锁存U1的Y2端子与BTS7960芯片U2的INH端子相连,74AHC244锁存U1的Y3端子与BTS7960芯片U3的IN端子相连,74AHC244锁存U1的Y4端子与BTS7960芯片U3的INH端子相连;P2电机电源接口与BTS7960芯片U2的OUT端子、BTS7960芯片U3的OUT端子相连;BTS7960芯片U2的VS端子和BTS7960芯片U3的VS端子均与P1电机接口相连接。As shown in Figure 2, it is the chassis motor drive circuit diagram. The motor drive module includes P3 drive signal interface, P2 motor power interface, P1 motor interface, BTS7960 chip U2, BTS7960 chip U3, 74AHC244 latch U1, the 1# interface of P3 drive signal interface and the A1 terminal of 74AHC244 latch U1 Connected, the 2# interface of the P3 drive signal interface is connected to the A3 terminal of the 74AHC244 latch U1, the 3# interface of the P3 drive signal interface is connected to the A2 terminal of the 74AHC244 latch U1, and the 4# interface of the P3 drive signal interface is connected to the 74AHC244 latch The A4 terminal of U1 is connected, the 5# interface of the P3 drive signal interface is connected with the IS terminal of the BTS7960 chip U2, the 6# interface of the P3 drive signal interface is connected with the IS terminal of the BTS7960 chip U3, and the Y1 terminal of the 74AHC244 latch U1 is connected with the BTS7960 chip The IN terminal of U2 is connected, the Y2 terminal of the 74AHC244 latch U1 is connected with the INH terminal of the BTS7960 chip U2, the Y3 terminal of the 74AHC244 latch U1 is connected with the IN terminal of the BTS7960 chip U3, and the Y4 terminal of the 74AHC244 latch U1 is connected with the BTS7960 chip U3. The INH terminal is connected; the P2 motor power interface is connected to the OUT terminal of the BTS7960 chip U2 and the OUT terminal of the BTS7960 chip U3; the VS terminal of the BTS7960 chip U2 and the VS terminal of the BTS7960 chip U3 are connected to the P1 motor interface.

BTS7960芯片内部由一个P型通道的高电位场效应晶体管和一个N型通道的低电位场效应管相构成一个完全整合的高电流半桥。The BTS7960 chip consists of a P-type channel high-potential field effect transistor and a N-type channel low-potential field effect transistor to form a fully integrated high-current half-bridge.

其内部电源开关确保为最佳的阻态,采用了先进的垂直场效应管技术。因为P型通道的开关为高电位,因此内部设计了一个电荷泵来消除电磁干扰并保证该通道稳定可靠工作。Its internal power switch ensures the best resistance state, using advanced vertical field effect transistor technology. Because the switch of the P-type channel is high potential, a charge pump is designed inside to eliminate electromagnetic interference and ensure the stable and reliable operation of the channel.

其内部通过驱动集成技术,将逻辑电平输入端、电流取样诊断、失效时间发生器、转换速率调整器、防止欠电压、转换速率调整器过电流、短路结构连接到一个微型处理器上。Internally, the logic level input terminal, current sampling diagnosis, failure time generator, slew rate regulator, protection against undervoltage, slew rate regulator overcurrent, and short circuit structure are connected to a microprocessor through drive integration technology.

采用两块BTS700芯片构成全桥电路,再加一个74AHC244作为数据缓冲或锁存,可使单片机可以改芯片数据锁存状态下,释放端口数据值,用于驱动其余负载。Two BTS700 chips are used to form a full-bridge circuit, and a 74AHC244 is added as a data buffer or latch, so that the single-chip microcomputer can change the chip data latch state, release the port data value, and use it to drive other loads.

驱动轮的转轴与底盘电机转轴相连接。The rotating shaft of driving wheel is connected with chassis motor rotating shaft.

底盘电机采用PWM控制器,调整电机驱动电压。它是一种利用微处理器的数字输出来对模拟电路的电压等进行控制的一种有效的技术,应用在电机驱动领域中,通过微处理输出的脉冲信号宽度调整电机驱动电压。The chassis motor uses a PWM controller to adjust the motor drive voltage. It is an effective technology that uses the digital output of the microprocessor to control the voltage of the analog circuit. It is applied in the field of motor drive, and the motor drive voltage is adjusted by the width of the pulse signal output by the microprocessor.

在PWM调速系统中,一般有三种方式可以改变脉冲的宽度即定宽调频、调频调宽、定频调宽,但是定宽调频和调频调宽在调速时会改变控制脉宽的频率。In the PWM speed control system, there are generally three ways to change the pulse width, that is, fixed-width frequency modulation, frequency modulation width modulation, and fixed-frequency width modulation. However, fixed-width frequency modulation and frequency modulation width modulation will change the frequency of the control pulse width during speed regulation.

而如果频率与系统的固有频率相接近时将会引起共振,使电机出现大幅度抖动的情况。实际使用中为了避免该种情况,大多数采用固定固有频率,而调节占空比的方法来调节直流电动机两端电压。其输出电压的公式为T为脉冲信号的周期,t为高电平持续时间。为使电机稳定工作和减少噪声,频率必须远离电机的固有频率。And if the frequency is close to the natural frequency of the system, it will cause resonance, which will cause the motor to vibrate greatly. In order to avoid this situation in actual use, most of them use a method of fixing the natural frequency and adjusting the duty cycle to adjust the voltage at both ends of the DC motor. The formula for its output voltage is T is the period of the pulse signal, and t is the duration of the high level. In order to make the motor work stably and reduce noise, the frequency must be far away from the natural frequency of the motor.

因此电机的频率一般选择至少在1KHz以上,10KHz到20KHz内一般则听不到明显的电机噪声。占空比选择根据电机最小驱动电压决定,一般选择在20%以上。Therefore, the frequency of the motor is generally selected to be at least above 1KHz, and there is generally no obvious motor noise within 10KHz to 20KHz. The selection of the duty cycle is determined by the minimum driving voltage of the motor, and it is generally selected above 20%.

本发明底盘电机控制采用ARM系列的单片机STM32F103芯片进行控制。具有ARM32位的Cortex-M3内核、112个快速I/O端口、11个定时器、13个通信接口、3个12为模数转换器、2通道12位D/A转换器和12通道DMA控制器。The chassis motor control of the present invention adopts the STM32F103 chip of ARM series for control. Cortex-M3 core with ARM32 bits, 112 fast I/O ports, 11 timers, 13 communication interfaces, 3 12-bit analog-to-digital converters, 2-channel 12-bit D/A converter and 12-channel DMA control device.

如图3所示,电源安装有电源防过放保护电路。As shown in Figure 3, the power supply is equipped with a power supply anti-over-discharge protection circuit.

所述的电源安装有电源防过电压保护电路,电源为电池,电源防过电压保护电路的电池正极与滑动变阻器电阻R2一端、PMOS管Q1的源极相连接,PMOS管Q1的漏极与NMOS管Q3的源极相连,PMOS管Q1的栅极与电阻R1一端、和电阻RL1一端相连接,电阻R1另一端与发光二极管D1的正极相连接,发光二极管D1的负极与MOSFET管Q2的源极相连接,MOSFET管Q2的漏极与滑动变阻器R2的另一端、电阻R3一端相连接,MOSFET管Q2的栅极与电阻R3另一端相连接,电阻RL1的另一端与电阻R3的另一端相连接,NMOS管Q3的栅极与电阻R3相连接,NMOS管Q3的漏极与滑动变阻器R2的另一端相连接,滑动变阻器R2的另一端还与电阻R4相连接,电池负极与电阻R4的另一端、电阻R3的另一端相连接。The power supply is equipped with a power supply anti-overvoltage protection circuit, the power supply is a battery, the positive electrode of the battery in the power supply anti-overvoltage protection circuit is connected to one end of the sliding rheostat resistor R2, and the source of the PMOS transistor Q1, and the drain of the PMOS transistor Q1 is connected to the NMOS. The source of the tube Q3 is connected, the gate of the PMOS tube Q1 is connected to one end of the resistor R1 and one end of the resistor RL1, the other end of the resistor R1 is connected to the anode of the light-emitting diode D1, and the cathode of the light-emitting diode D1 is connected to the source of the MOSFET tube Q2 The drain of the MOSFET Q2 is connected to the other end of the sliding rheostat R2 and one end of the resistor R3, the gate of the MOSFET Q2 is connected to the other end of the resistor R3, and the other end of the resistor RL1 is connected to the other end of the resistor R3 , the gate of the NMOS transistor Q3 is connected to the resistor R3, the drain of the NMOS transistor Q3 is connected to the other end of the sliding rheostat R2, the other end of the sliding rheostat R2 is also connected to the resistor R4, and the negative electrode of the battery is connected to the other end of the resistor R4 , The other end of the resistor R3 is connected.

当电池电压被放的过低时,电池则会由于内部原电池反应太微弱无法被激活。When the battery voltage is discharged too low, the battery cannot be activated because the internal primary battery reaction is too weak.

本装置的电源防过电压保护电路采用大功率NMOS和PMOS管组成电源开关电路,电源电压小于设定值时,通过电阻封压时NMOS截止,PMOS截止,当电池电压在过放保护电压阈值时,LED灯会熄灭,此时应该及时取下电流进行充电。The power supply anti-overvoltage protection circuit of this device uses high-power NMOS and PMOS tubes to form a power switch circuit. When the power supply voltage is lower than the set value, the NMOS is cut off when the resistance is sealed and the PMOS is cut off. When the battery voltage is at the threshold of the over-discharge protection voltage , the LED light will go out, and the current should be removed in time for charging.

进一步的优选技术方案是,所述的电源模块包括12V稳压电路、5V稳压电路、3.3V稳压电路。A further preferred technical solution is that the power module includes a 12V voltage stabilizing circuit, a 5V voltage stabilizing circuit, and a 3.3V voltage stabilizing circuit.

其中12V稳压电路为,如图4所示,12V所述的电源模块包括12V稳压电路、5V稳压电路、3.3V稳压电路,其中,12V稳压电路包括XL6009电流转换芯片,10V电源输入端与输入电容C1一端、电容C2一端、电感L1一端、XL6009电流转换芯片的VIN接口相连,电感L1另一端与稳压二极管D1正极、XL6009电流转换芯片的SW端口相连,稳压二极管D1的负极与电容C3一端、输出电容C4一端、电阻R2一端相连接,电阻R2的另一端与XL6009电流转换芯片的FB端口相连接,XL6009电流转换芯片的FB与电阻R1一端相连,10V电源输入端与输入电容C1另一端、电容C2另一端、XL6009电流转换芯片的GND端口、电阻丝R1的另一端、电容C3另一端、输出电容C4另一端相连。The 12V regulator circuit is, as shown in Figure 4, the 12V power supply module includes a 12V regulator circuit, a 5V regulator circuit, and a 3.3V regulator circuit, wherein the 12V regulator circuit includes an XL6009 current conversion chip, and a 10V power supply The input end is connected to one end of the input capacitor C1, one end of the capacitor C2, one end of the inductor L1, and the VIN interface of the XL6009 current conversion chip. The other end of the inductor L1 is connected to the positive pole of the Zener diode D1 and the SW port of the XL6009 current conversion chip. The negative electrode is connected to one end of capacitor C3, one end of output capacitor C4, and one end of resistor R2. The other end of resistor R2 is connected to the FB port of the XL6009 current conversion chip. The FB of the XL6009 current conversion chip is connected to one end of the resistor R1. The other end of the input capacitor C1, the other end of the capacitor C2, the GND port of the XL6009 current conversion chip, the other end of the resistance wire R1, the other end of the capacitor C3, and the other end of the output capacitor C4 are connected.

因为电池电压输出不稳定,在11V左右波动变化,并且由于底盘电机的启停会形成脉冲电压,因此电路需要一个自动升压电路。Because the battery voltage output is unstable and fluctuates around 11V, and because the start and stop of the chassis motor will form a pulse voltage, the circuit needs an automatic boost circuit.

XL6009电流转换芯片具有5-32V的宽输入电压范围,开关频率400KHz,4A的最大开关电流,转换效率94%,软件启动等优点。The XL6009 current conversion chip has a wide input voltage range of 5-32V, a switching frequency of 400KHz, a maximum switching current of 4A, a conversion efficiency of 94%, and software startup.

如图5所示,得到12V电压后,电源输入端与电容C5一端、A1212S-2W隔离电源模块的VIN相连,电容C5另一端与A1212S-2W隔离电源模块的GND相连并接地,A1212S-2W隔离电源模块的+V与0V之间通过电阻R3相连,A1212S-2W隔离电源模块的-V与0V之间通过电阻R4相连,A1212S-2W隔离电源模块接地。As shown in Figure 5, after the 12V voltage is obtained, the power input terminal is connected to one end of the capacitor C5 and the VIN of the A1212S-2W isolated power module, and the other end of the capacitor C5 is connected to the GND of the A1212S-2W isolated power module and grounded, and the A1212S-2W isolated power module The +V and 0V of the power module are connected through the resistor R3, the -V and 0V of the A1212S-2W isolated power module are connected through the resistor R4, and the A1212S-2W isolated power module is grounded.

正负12V电源可由12V电源进行开关电源隔离的方式得到。采用隔离电源模块A1212S-2W,转换效率为80%以上,其输出电压范围为±12V±3%,纹波系数和静态电流低,并且自身就带有输入输出滤波器。The positive and negative 12V power supply can be obtained by means of switching power supply isolation from the 12V power supply. Using isolated power module A1212S-2W, the conversion efficiency is above 80%, the output voltage range is ±12V±3%, the ripple coefficient and quiescent current are low, and it has its own input and output filters.

如图6所示,5V稳压电源包括LM2596芯片,电源输入端与LM2596芯片的VIN相连,并与电容C6一端相连,LM2596芯片的OUT与电感L2和稳压二极管D2负极、滑动变阻器RV1、电容C7一端,滑动变阻器RV1另一端与电阻R5一端相连,电容C7另一端与电阻R5另一端、电感L2另一端、电容C8一端相连,LM2596芯片的FB端口与、OUT端口、电阻R6一端相连,电容C6一端与LM2596芯片的OFF端口、LM2596芯片的GND相连、电阻R6另一端、稳压二极管D2另一端,电容C8另一端相连,并接地。As shown in Figure 6, the 5V regulated power supply includes the LM2596 chip. The input terminal of the power supply is connected to the VIN of the LM2596 chip and connected to one end of the capacitor C6. One end of C7, the other end of sliding rheostat RV1 is connected to one end of resistor R5, the other end of capacitor C7 is connected to the other end of resistor R5, the other end of inductor L2, and one end of capacitor C8. The FB port of LM2596 chip is connected to OUT port and one end of resistor R6. One end of C6 is connected to the OFF port of the LM2596 chip and the GND of the LM2596 chip, the other end of the resistor R6, the other end of the Zener diode D2, the other end of the capacitor C8, and grounded.

5V稳压电源从12V电源得到,采用LM2596芯片,性能优越,输出电压的误差可以保证在±4%范围内,振荡频率误差在±15%范围内,以LM2596为核心的降压电路。The 5V regulated power supply is obtained from the 12V power supply. The LM2596 chip is used. The performance is superior. The error of the output voltage can be guaranteed within the range of ±4%, and the error of the oscillation frequency is within the range of ±15%. The step-down circuit uses LM2596 as the core.

如图7所示,3.3V稳压电源包括AMS1117-3.3V线性稳压器,电源输入端与电容C9一端,电容C10一端、AMS1117-3.3V线性稳压器的IN相连,AMS1117-3.3V线性稳压器的OUT端与电容C11一端、电容C12一端相连接,AMS1117-3.3V线性稳压器的ADJ的端点与电容C9另一端、电容C10另一端、电容C11另一端、电容C12另一端相连并接地。As shown in Figure 7, the 3.3V regulated power supply includes an AMS1117-3.3V linear regulator. The OUT terminal of the voltage regulator is connected to one end of the capacitor C11 and one end of the capacitor C12, and the ADJ terminal of the AMS1117-3.3V linear regulator is connected to the other end of the capacitor C9, the other end of the capacitor C10, the other end of the capacitor C11, and the other end of the capacitor C12 and ground.

3.3V稳压电源从5V电源得到,芯片选择线性稳压器AMS1117-3.3V,该芯片为稳压芯片中的佼佼者,性能较好。稳压精度在1.5%以内,几乎不需要任何外部器件,但一般使用中均会用电容改善输出电压脉冲曲线。The 3.3V regulated power supply is obtained from the 5V power supply. The chip selects the linear voltage regulator AMS1117-3.3V. This chip is the best among the regulated chips and has better performance. The accuracy of the voltage regulation is within 1.5%, and almost no external devices are needed, but in general use, capacitors are used to improve the output voltage pulse curve.

为了保证输出最大电流,输入和输出间压差至少为1.3V以上,不宜过高,对于5V的输入电压是相当合理的。AMS117的市场占有率广,封装形式一般采用SOT-223。In order to ensure the maximum output current, the voltage difference between the input and output should be at least 1.3V, which should not be too high, which is quite reasonable for an input voltage of 5V. AMS117 has a wide market share, and the package generally adopts SOT-223.

3.3V电源为STM32单片机供电,其功耗小,功率也满足要求。单片机要求电源纹波小,因此可以采用大电容和小电容联合使用的形式来改善电源纹波。The 3.3V power supply supplies power to the STM32 microcontroller, which has low power consumption and meets the requirements. The single-chip microcomputer requires the power supply ripple to be small, so the combination of large capacitors and small capacitors can be used to improve the power supply ripple.

如图8所示,为超声波测距模块,所述的超声波测距模块包括STC11单片机、MAX232芯片放大器,压电晶体,STC11单片机产生信号并发送给MAX232芯片放大器,MAX232芯片放大器驱动压电晶体产生超声波信号。As shown in Figure 8, it is an ultrasonic ranging module. The ultrasonic ranging module includes an STC11 single-chip microcomputer, a MAX232 chip amplifier, and a piezoelectric crystal. The STC11 single-chip microcomputer generates a signal and sends it to the MAX232 chip amplifier, and the MAX232 chip amplifier drives the piezoelectric crystal to generate Ultrasonic signal.

超声波发射电路采用STC11单片机产生信号,MAX232芯片放大后驱动压电晶体。当检测到TX引脚电平为高时,STC11单片机P1.6和P1.7产生8个相位相差180°的40KHz的脉冲波,经过MAX232放大后使压电晶体振荡产生超声波信号。The ultrasonic transmitting circuit adopts STC11 single-chip microcomputer to generate signal, and the MAX232 chip amplifies it to drive the piezoelectric crystal. When it is detected that the TX pin level is high, STC11 microcontroller P1.6 and P1.7 generate eight 40KHz pulse waves with a phase difference of 180°, which are amplified by MAX232 to make the piezoelectric crystal oscillate to generate ultrasonic signals.

使用超声波测距模块进行测距时,TX输入需要一个至少20us的高电平,等待发送完后,打开单片机定时器定时。当检测到RX由高电平跳变为低电平时关闭定时器,取出定时器值,计算定时时间。则根据定时时间乘以声速340m/s可得到距离,这段距离则为超声波测距的实际距离。When using the ultrasonic ranging module for distance measurement, the TX input needs a high level of at least 20us. After the transmission is completed, turn on the microcontroller timer for timing. When it is detected that the RX transitions from a high level to a low level, the timer is turned off, the timer value is taken out, and the timing time is calculated. Then the distance can be obtained by multiplying the timing time by the speed of sound 340m/s, and this distance is the actual distance of ultrasonic ranging.

如图9所示,为超声波接收模块,所述的超声波接收模块包括TLO84低噪声运放、压电晶片,压电晶片与TLO84低噪声运放电连接。As shown in FIG. 9 , it is an ultrasonic receiving module. The ultrasonic receiving module includes a TLO84 low-noise operational amplifier and a piezoelectric wafer, and the piezoelectric wafer is connected with the TLO84 low-noise operational amplifier.

单片机打开P1.0和P1.1端口检测,并将此端口置为高电平。当检测到P1.1端口信号被拉低时,输出RX高电平信号。此处要求平时闲置时RX信号端保持低电平状态。超声波接收电路由TLO84低噪声运放构成,经过前置放大,二阶有源滤波、放大、电压比较、三极管开关电路输出超声波信号时。该模块在持续38ms未接收到反馈数据后,则默认其超时。The single-chip microcomputer opens P1.0 and P1.1 port detection, and sets this port as high level. When it is detected that the P1.1 port signal is pulled low, the RX high level signal is output. Here, it is required that the RX signal terminal remains in a low level state when it is usually idle. The ultrasonic receiving circuit is composed of TLO84 low-noise op amp. After preamplification, second-order active filtering, amplification, voltage comparison, and triode switching circuit output ultrasonic signals. After the module does not receive feedback data for 38ms, it defaults to timeout.

基于空间五元传声器阵列的时延估计算法,建立如图13所示的空间五元麦克风阵列,该阵列别由传声器N1、N2、N3、N4和N5组成,由传声器N1、N2、N3、N4构成的正方形的边长为2L,传声器N5到坐标原点的距离为L,以方阵中心为坐标原点O,建立如图13所示的空间直角坐标系,假设目标所在位置位于S(x,y,z),目标距离坐标原点的距离为r,目标的方位角为仰角为θ。Based on the time delay estimation algorithm of the spatial five-element microphone array, a spatial five- element microphone array as shown in Figure 13 is established. , N 2 , N 3 , and N 4 have a side length of 2L, the distance from the microphone N 5 to the origin of the coordinates is L, and the center of the square matrix is the origin of the coordinates O, and establish a space Cartesian coordinate system as shown in Figure 13. Assuming that the location of the target is located at S(x,y,z), the distance between the target and the origin of the coordinates is r, and the azimuth of the target is is the elevation angle θ.

空间五元麦克风阵的各阵元坐标分别是:N1(L,L,0)、N2(-L,L,0)、N3(-L,-L,0)、N4(L,-L,0)、N5(0,0,L),Ri为目标S到阵元Ni(i=1,2,3,4,5)的距离,d12、d13、d14为参考阵元N1与N2、N3、N4之间的声程差,C表示声音在空气中的传播速度。则计算声程差的公式如下:The coordinates of each element of the spatial five-element microphone array are: N 1 (L,L,0), N 2 (-L,L,0), N 3 (-L,-L,0), N 4 (L ,-L,0), N 5 (0,0,L), R i is the distance from the target S to the array element N i (i=1,2,3,4,5), d 12 , d 13 , d 14 is the sound path difference between the reference array element N 1 and N 2 , N 3 , N 4 , and C represents the propagation speed of sound in the air. The formula for calculating the sound path difference is as follows:

d1i=Ri-R1=C*ti1(i=2,3,4) (1)d 1i =R i -R 1 =C*t i1 (i=2,3,4) (1)

式中ti1为参考阵元N1与N2、N3、N4之间的时延。In the formula, t i1 is the time delay between the reference array element N 1 and N 2 , N 3 , N 4 .

则根据目标和声阵的几何位置关系有:According to the geometric position relationship between the target and the sound array:

将方程组(2)整理并化简可得:Arranging and simplifying the equation group (2) can get:

将方程(3)代入方程组(2)并整理可得:Substituting equation (3) into equation group (2) and sorting out:

通过上面方程组(4)和方程(1)只要估算出时延便可以求得x、y、z和R1,同时可以得出方位角:Through the above equations (4) and equations (1), as long as the time delay is estimated, x, y, z and R 1 can be obtained, and the azimuth angle can be obtained at the same time:

仰角为:The elevation angle is:

根据声阵的几何位置和方程组(4)可得;According to the geometric position of the sound array and the equation group (4), it can be obtained;

若R5>r,则证明声源坐标在XOY平面上方;若R5<r,则证明声源坐标在XOY平面下方。If R 5 >r, it proves that the sound source coordinates are above the XOY plane; if R 5 <r, it proves that the sound source coordinates are below the XOY plane.

这个方法可以解决由于平面四元方阵本身存在缺陷,得出的声源坐标可能出现上下两个镜像坐标的问题,而计算量相比平面四元方阵却没有增加多少,具有很强的实用性。This method can solve the problem that the obtained sound source coordinates may have two mirror coordinates, due to the defects of the planar quaternary matrix itself, but the calculation amount does not increase much compared with the planar quaternary matrix, which is very practical sex.

如图10所示,为高通滤波器短路图。使用传声器时,需要过滤传声器信号中的直流成分,还应当滤除信号中的低频成分,否则在后部分电路中会引入50Hz工频干扰。As shown in Figure 10, it is a short circuit diagram of a high-pass filter. When using a microphone, it is necessary to filter the DC component in the microphone signal, and the low frequency component in the signal should also be filtered out, otherwise 50Hz power frequency interference will be introduced into the latter part of the circuit.

如图11所示,为放大滤波电路。人的语音频率在300Hz-3400Hz,该频带较窄,因此采用多级带通滤波器实现。又由于传声器得到的电信号电流较小,需要进行放大和滤波。而无源滤波的形式其同频带较宽。因此采用有源滤波器的形式对信号进行放大和滤波。放大信号采用OP07运放构成,当然也可采用某些生产厂家提供的集成滤波器。As shown in Figure 11, it is an amplification filter circuit. The frequency of human speech is 300Hz-3400Hz, and the frequency band is relatively narrow, so it is realized by multi-stage band-pass filter. And because the electrical signal current obtained by the microphone is small, it needs to be amplified and filtered. The form of passive filtering has a wider bandwidth at the same frequency. Therefore, the signal is amplified and filtered in the form of an active filter. The amplified signal is composed of OP07 op amp, and of course integrated filters provided by some manufacturers can also be used.

OP07是一种噪声低,非斩波稳零的双极性运算放大器。OP07输入失调电压非常低,不需要额外的调零措施,OP07输入偏置电流低、开环增益高,因此OP07适用于高增益的测量设备和放大传感器的微弱信号等。正负12V电源加0.1uF电容滤波,避免电源噪声引起低频干扰。电阻R8用来对增益进行调节。The OP07 is a low noise, non-chopper-zero-stable, bipolar operational amplifier. The input offset voltage of OP07 is very low, no additional zero adjustment measures are required, the input bias current of OP07 is low, and the open-loop gain is high, so OP07 is suitable for high-gain measurement equipment and weak signals of amplified sensors. The positive and negative 12V power supply is filtered with a 0.1uF capacitor to avoid low-frequency interference caused by power supply noise. Resistor R8 is used to adjust the gain.

电路采用差分放大构成仪用放大的形式,能有效抑制共模噪声,提高差模放大能力,放大倍数1+2R7/R8,增益最小为100多倍。The circuit adopts differential amplification to form instrument amplification, which can effectively suppress common-mode noise and improve differential-mode amplification capability. The amplification factor is 1+2R7/R8, and the minimum gain is more than 100 times.

如图12所示,为低通滤波器电路图。人声频率一般在30到3400HZ以内,结合前端设计的高通滤波器此处需要设计一个低通滤波器。一般认为,信号经过滤波器会产生一个和其频率有关的相位偏移量,如果这个相位偏移量与信号频率的变化关系是线性的,那么滤波器仅仅会使信号延时一个常数量。然而如果偏移相对随信号频率的变化是非线性的,即不同的频率的信号经过滤波器会有不同的位移,那么非正弦信号在通过这种滤波器时会产生严重的失真。因此设计中采用了切比雪夫低通滤波器,通带增益小于-5dB,其阻带增益10KHz,衰减大于-50dB,滤波器额定负载为50Ω。滤波器不使用放大功能,放大倍数为1,内部电路使用电阻51Ω,精度5%,滤波电容采用独石电容,机动度1%。As shown in Figure 12, it is a circuit diagram of a low-pass filter. The frequency of human voice is generally within 30 to 3400HZ. Combined with the high-pass filter designed at the front end, a low-pass filter needs to be designed here. It is generally believed that a signal passing through a filter will generate a phase offset related to its frequency. If the relationship between the phase offset and the signal frequency is linear, then the filter will only delay the signal by a constant amount. However, if the offset is nonlinear relative to the change with the signal frequency, that is, signals with different frequencies will have different displacements after passing through the filter, then the non-sinusoidal signal will produce serious distortion when passing through this filter. Therefore, a Chebyshev low-pass filter is used in the design, the passband gain is less than -5dB, the stopband gain is 10KHz, the attenuation is greater than -50dB, and the rated load of the filter is 50Ω. The filter does not use the amplification function, the amplification factor is 1, the internal circuit uses a resistance of 51Ω, the precision is 5%, the filter capacitor adopts a monolithic capacitor, and the mobility is 1%.

本发明的工作过程:Working process of the present invention:

启动电源,传声器阵列接收声源信号,并判断声源位置计算坐标,通过单片机驱动底盘电机运动,运动过程正超声波测距模块、超声波接收模块接收信号判断障碍物是否在行进路线上,单片机控制底盘电机从而转向,多次避障后机器人到达声源位置。Turn on the power supply, the microphone array receives the sound source signal, and judges the position of the sound source to calculate the coordinates, and drives the chassis motor to move through the single-chip microcomputer. During the movement, the ultrasonic ranging module and the ultrasonic receiving module receive signals to judge whether obstacles are on the traveling route, and the single-chip microcomputer controls the chassis. The motor turns accordingly, and the robot arrives at the sound source after avoiding obstacles several times.

最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims (4)

1. The indoor mobile robot based on sound source localization is characterized in that a power supply realizes voltage conversion through a power supply module, the power supply module supplies converted electric energy to a chassis motor through a motor driving module, a rotating shaft of the chassis motor is connected with a driving wheel, the power supply module also respectively supplies electric energy with different voltage requirements to an ultrasonic ranging module, an ultrasonic receiving module, a microphone and a singlechip, the microphone localizes a sound source and sends signals to the singlechip, the singlechip sends signals to the motor driving module so as to drive a trolley to move to the sound source position, ultrasonic signals sent by the ultrasonic ranging module are returned by an obstacle and received by an ultrasonic receiving module, the ultrasonic receiving module sends the signals to the singlechip, the singlechip sends signals to the robot for obstacle avoidance through calculation, the number of microphones is 5, a quadrangular pyramid microphone array is formed, and the position of the sound source is obtained by adopting a space five-membered microphone array time delay estimation algorithm;
the motor driving module comprises a P3 driving signal interface, a P2 motor power interface and a P1 motor interface, wherein the P3 driving signal interface is connected with the 74AHC244 latch U1, the BTS7960 chip U2 and the BTS7960 chip U3, the P2 motor power interface is connected with the BTS7960 chip U2 and the BTS7960 chip U3, the P1 motor interface is connected with the BTS7960 chip U2 and the BTS7960 chip U3, the BTS7960 chip U2 is connected with the 74AHC244 latch U1, and the BTS7960 chip U3 is connected with the 74AHC244 latch U1;
the power supply is provided with a power supply overvoltage protection circuit, the power supply is a battery, the positive electrode of the battery of the power supply overvoltage protection circuit is connected with one end of a sliding rheostat resistor R2 and the source electrode of a PMOS tube Q1, the drain electrode of the PMOS tube Q1 is connected with the source electrode of an NMOS tube Q3, the grid electrode of the PMOS tube Q1 is connected with one end of the resistor R1 and one end of a resistor RL1, the other end of the resistor R1 is connected with the positive electrode of a light-emitting diode D1, the negative electrode of the light-emitting diode D1 is connected with the source electrode of a MOSFET tube Q2, the drain electrode of the MOSFET tube Q2 is connected with the other end of the sliding rheostat R2 and one end of the resistor R3, the grid electrode of the MOSFET tube Q2 is connected with the other end of the resistor R3, the drain electrode of the NMOS tube Q3 is connected with the other end of the sliding rheostat R2, the other end of the sliding rheostat R2 is also connected with the resistor R4, and the negative electrode of the battery is connected with the other end of the resistor R3;
the power module comprises a 12V voltage stabilizing circuit, a 5V voltage stabilizing circuit and a 3.3V voltage stabilizing circuit, wherein the 12V voltage stabilizing circuit comprises an XL6009 current conversion chip, a 10V power input end is connected with one end of an input capacitor C1, one end of a capacitor C2, one end of an inductor L1 and a VIN interface of the XL6009 current conversion chip, the other end of the inductor L1 is connected with the anode of a voltage stabilizing diode D1 and the SW port of the XL6009 current conversion chip, the cathode of the voltage stabilizing diode D1 is connected with one end of a capacitor C3, one end of an output capacitor C4 and one end of a resistor R2, the other end of the resistor R2 is connected with the FB port of the XL6009 current conversion chip, the 10V power input end is connected with the other end of the input capacitor C1, the other end of the capacitor C2, the GND port of the XL6009 current conversion chip, the other end of a resistance wire R1, the other end of the capacitor C3 and the other end of the output capacitor C4;
the 12V power input end is connected with one end of a capacitor C5 and VIN of an A1212S-2W isolation power supply module, the other end of the capacitor C5 is connected with GND of the A1212S-2W isolation power supply module and grounded, +V and 0V of the A1212S-2W isolation power supply module are connected through a resistor R3, and-V and 0V of the A1212S-2W isolation power supply module are connected through a resistor R4, and a 0V port of the A1212S-2W isolation power supply module is grounded;
the 5V stabilized voltage power supply comprises an LM2596 chip, wherein the power supply input end is connected with VIN of the LM2596 chip and is connected with one end of a capacitor C6, OUT of the LM2596 chip is connected with an inductor L2 and the negative electrode of a voltage stabilizing diode D2, a sliding rheostat RV1 and one end of a capacitor C7, the other end of the sliding rheostat RV1 is connected with one end of a resistor R5, the other end of the capacitor C7 is connected with the other end of the resistor R5, the other end of the inductor L2 and one end of a capacitor C8, the FB port of the LM2596 chip is connected with the OUT port and one end of the resistor R6, the other end of the capacitor C6 is connected with the OFF port of the LM2596 chip, the GND port of the LM2596 chip, the other end of the resistor R6 and the other end of the voltage stabilizing diode D2, and the other end of the capacitor C8;
the 3.3V stabilized voltage power supply comprises an AMS1117-3.3V linear voltage stabilizer, wherein the power supply input end is connected with one end of a capacitor C9, one end of a capacitor C10 and an IN port of the AMS1117-3.3V linear voltage stabilizer are connected, an OUT end of the AMS1117-3.3V linear voltage stabilizer is connected with one end of a capacitor C11 and one end of a capacitor C12, and an ADJ end of the AMS1117-3.3V linear voltage stabilizer is connected with the other end of the capacitor C9, the other end of the capacitor C10, the other end of the capacitor C11 and the other end of the capacitor C12 and grounded.
2. The indoor mobile robot based on sound source localization of claim 1, wherein the ultrasonic ranging module comprises an STC11 single-chip microcomputer and a MAX232 chip amplifier, the piezoelectric crystal generates a signal and sends the signal to the MAX232 chip amplifier, and the MAX232 chip amplifier is connected with the piezoelectric crystal signal to drive the piezoelectric crystal to generate an ultrasonic signal.
3. The indoor mobile robot based on sound source localization of claim 1, wherein the ultrasonic receiving module comprises a TLO84 low noise op-amp, a piezoelectric wafer, and the piezoelectric wafer is connected with the TLO84 low noise op-amp.
4. The sound source localization-based indoor mobile robot of claim 1, further comprising a high-pass filter, an amplifying filter circuit, and a low-pass filter, wherein the high-pass filter, the amplifying filter circuit, and the low-pass filter are installed in a circuit in which the power module is connected to the microphone, and the low-pass filter is a chebyshev low-pass filter.
CN201810764009.8A 2018-07-12 2018-07-12 Indoor Mobile Robot Based on Sound Source Localization Active CN109032133B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810764009.8A CN109032133B (en) 2018-07-12 2018-07-12 Indoor Mobile Robot Based on Sound Source Localization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810764009.8A CN109032133B (en) 2018-07-12 2018-07-12 Indoor Mobile Robot Based on Sound Source Localization

Publications (2)

Publication Number Publication Date
CN109032133A CN109032133A (en) 2018-12-18
CN109032133B true CN109032133B (en) 2023-08-01

Family

ID=64640468

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810764009.8A Active CN109032133B (en) 2018-07-12 2018-07-12 Indoor Mobile Robot Based on Sound Source Localization

Country Status (1)

Country Link
CN (1) CN109032133B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CH422130A (en) * 1962-07-24 1966-10-15 Kuke Fa Fritz Circuit breaker against overvoltages for electrical lines
WO2007041295A2 (en) * 2005-09-30 2007-04-12 Irobot Corporation Companion robot for personal interaction
EP2063287A1 (en) * 2006-08-30 2009-05-27 NEC Corporation Localization system, robot, localization method, and sound source localization program
CN201733065U (en) * 2010-06-30 2011-02-02 中芯国际集成电路制造(上海)有限公司 Low-voltage single-phase power source overvoltage protective device
CN102411138A (en) * 2011-07-13 2012-04-11 北京大学 A method for robot sound source localization
CN104270006A (en) * 2014-03-18 2015-01-07 吉林大学 BUCK circuit-based current driver
WO2015165303A1 (en) * 2014-04-17 2015-11-05 SZ DJI Technology Co., Ltd. Flight control for flight-restricted regions
CN105094136A (en) * 2015-09-14 2015-11-25 桂林电子科技大学 Adaptive microphone array sound positioning rescue robot and using method thereof
CN204925798U (en) * 2015-09-14 2015-12-30 桂林电子科技大学 Sound location rescue robot of self -adaptation microphone array
CN205787669U (en) * 2016-05-23 2016-12-07 深圳市中阳通讯有限公司 A kind of Smart Home robot
CN106405499A (en) * 2016-09-08 2017-02-15 南京阿凡达机器人科技有限公司 Method for robot to position sound source
WO2017139443A1 (en) * 2016-02-09 2017-08-17 Cobalt Robotics Inc. Integrated security mobile robot
CN206671832U (en) * 2017-04-05 2017-11-24 西安圣豆电子信息技术有限公司 A kind of sludge real-time monitoring device

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CH422130A (en) * 1962-07-24 1966-10-15 Kuke Fa Fritz Circuit breaker against overvoltages for electrical lines
WO2007041295A2 (en) * 2005-09-30 2007-04-12 Irobot Corporation Companion robot for personal interaction
EP2063287A1 (en) * 2006-08-30 2009-05-27 NEC Corporation Localization system, robot, localization method, and sound source localization program
CN201733065U (en) * 2010-06-30 2011-02-02 中芯国际集成电路制造(上海)有限公司 Low-voltage single-phase power source overvoltage protective device
CN102411138A (en) * 2011-07-13 2012-04-11 北京大学 A method for robot sound source localization
CN104270006A (en) * 2014-03-18 2015-01-07 吉林大学 BUCK circuit-based current driver
WO2015165303A1 (en) * 2014-04-17 2015-11-05 SZ DJI Technology Co., Ltd. Flight control for flight-restricted regions
CN105094136A (en) * 2015-09-14 2015-11-25 桂林电子科技大学 Adaptive microphone array sound positioning rescue robot and using method thereof
CN204925798U (en) * 2015-09-14 2015-12-30 桂林电子科技大学 Sound location rescue robot of self -adaptation microphone array
WO2017139443A1 (en) * 2016-02-09 2017-08-17 Cobalt Robotics Inc. Integrated security mobile robot
CN205787669U (en) * 2016-05-23 2016-12-07 深圳市中阳通讯有限公司 A kind of Smart Home robot
CN106405499A (en) * 2016-09-08 2017-02-15 南京阿凡达机器人科技有限公司 Method for robot to position sound source
CN206671832U (en) * 2017-04-05 2017-11-24 西安圣豆电子信息技术有限公司 A kind of sludge real-time monitoring device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种基于竞赛的两轮自平衡小车的设计;周牡丹,等;现代电子技术;第37卷(第20期);70-73,79 *

Also Published As

Publication number Publication date
CN109032133A (en) 2018-12-18

Similar Documents

Publication Publication Date Title
KR102527046B1 (en) Drivers for High Voltage Capacitive Actuators
US9595868B2 (en) Differential output mode for a multi-mode power converter
CN109387842A (en) Ultrasonic distance measurement obstacle avoidance system
CN101577519A (en) Linear motor driver
CN209419476U (en) Irregular Ripple Active Compensation Circuit and Power Supply System
CN109032133B (en) Indoor Mobile Robot Based on Sound Source Localization
CN205391066U (en) Intelligent robot for sweeping floor
CN103490631B (en) A kind of DC-DC converter
CN117081273A (en) Three-coil wireless power transmission system, detection method and control method thereof
CN104333239A (en) High-efficiency totally-integrated AC-DC converter
EP3971018A1 (en) Charging-discharging circuit and system, and electric vehicle
CN202679300U (en) Controller for brush DC motor
CN207819770U (en) The feed forward circuit and controlled resonant converter of controlled resonant converter
CN208547850U (en) Indoor mobile robot based on sound source localization
CN109962518A (en) A kind of locomotive storage batteries status monitoring and intelligence control system
CN204794344U (en) A multichannel power supply system for vehicle event data recorder power supply
CN208819092U (en) Motion and operation control system of electric crawler sprayer
CN208226592U (en) A kind of wireless electric vehicle charging device
CN110971157A (en) Drive waveform design system of direct current brushless motor
CN201918909U (en) Three-phase high-voltage power supply for electric precipitation
CN202424561U (en) Synchronous rectification driving circuit
CN205070861U (en) Synchronous motor drive control system
CN116009632A (en) A multi-channel current control device for a magnetorheological damper
CN203038114U (en) Power transmission line patrol flying robot controller for preventing strong electromagnetic interference
CN221408434U (en) Load power supply circuit and robot

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant