CN202355839U - Automatic obstacle-avoidance toy car - Google Patents

Automatic obstacle-avoidance toy car Download PDF

Info

Publication number
CN202355839U
CN202355839U CN2011204766632U CN201120476663U CN202355839U CN 202355839 U CN202355839 U CN 202355839U CN 2011204766632 U CN2011204766632 U CN 2011204766632U CN 201120476663 U CN201120476663 U CN 201120476663U CN 202355839 U CN202355839 U CN 202355839U
Authority
CN
China
Prior art keywords
toy car
chip microcomputer
motor
infrared sensor
drive circuit
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.)
Expired - Fee Related
Application number
CN2011204766632U
Other languages
Chinese (zh)
Inventor
马建新
林小凤
邹静
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changan University
Original Assignee
Changan 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 Changan University filed Critical Changan University
Priority to CN2011204766632U priority Critical patent/CN202355839U/en
Application granted granted Critical
Publication of CN202355839U publication Critical patent/CN202355839U/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Toys (AREA)

Abstract

本实用新型公开了一种自动避障玩具车。包括玩具车,该玩具车上安装有避障控制装置,该避障控制装置包括单片机、电机驱动电路、电机、安装于玩具车前端的CCD摄像头、安装于玩具车前端的红外传感器、安装于玩具车前轮上的舵机和安装于后轮转轴上的霍尔传感器;所述CCD摄像头通过视频同步分离芯片与单片机连接,所述电机驱动电路、红外传感器和舵机分别与单片机连接,所述电机与电机驱动电路连接。该玩具车上安装有避障控制装置,该控制装置根据CCD摄像头、红外传感器和测速传感器采集的信息,由单片机准确的计算出遇某一障碍物时舵机应转动角度,最终控制各执行机构实现玩具车得自动避障。该玩具车智能化程度高且丰富了现有的玩具车种类。

Figure 201120476663

The utility model discloses an automatic obstacle avoidance toy car. Including a toy car, the toy car is equipped with an obstacle avoidance control device, and the obstacle avoidance control device includes a single-chip microcomputer, a motor drive circuit, a motor, a CCD camera installed on the front end of the toy car, an infrared sensor installed on the front end of the toy car, an infrared sensor installed on the toy The steering gear on the front wheel of the car and the Hall sensor installed on the rear wheel shaft; the CCD camera is connected with the single-chip microcomputer through the video synchronization separation chip, and the motor drive circuit, the infrared sensor and the steering gear are connected with the single-chip microcomputer respectively, and the The motor is connected with the motor drive circuit. The toy car is equipped with an obstacle avoidance control device. According to the information collected by the CCD camera, infrared sensor and speed sensor, the control device accurately calculates the rotation angle of the steering gear when encountering an obstacle by the single-chip microcomputer, and finally controls each actuator. Realize the automatic obstacle avoidance of the toy car. The toy car has a high degree of intelligence and enriches the types of existing toy cars.

Figure 201120476663

Description

一种自动避障玩具车An automatic obstacle avoidance toy car

技术领域 technical field

本实用新型涉及一种玩具车,具体涉及一种自动避障玩具车。The utility model relates to a toy car, in particular to an automatic obstacle avoidance toy car.

技术背景 technical background

现有的玩具车主要通过遥控控制,在遇到障碍物时,需操作者及时进行避障操控,此类玩具车智能化程度低,不适合较年幼的儿童玩耍。除此之外,现已有的自动避障控制装置采用测距传感器测量车辆与障碍物之间的距离,舵机按照预先设定的程序打舵,不断的调整舵角,从而实现避障。但是,这种方法具有被动性,就是无法精确的控制舵角,只有距离信号是无法精确计算出舵角的,避障速度较慢。Existing toy cars are mainly controlled by remote control. When an obstacle is encountered, the operator needs to perform obstacle avoidance control in time. This type of toy car has a low degree of intelligence and is not suitable for younger children to play. In addition, the existing automatic obstacle avoidance control device uses a ranging sensor to measure the distance between the vehicle and the obstacle, and the steering gear drives the rudder according to the preset program to continuously adjust the rudder angle to achieve obstacle avoidance. However, this method is passive, that is, it cannot accurately control the rudder angle. Only the distance signal cannot accurately calculate the rudder angle, and the obstacle avoidance speed is relatively slow.

发明内容 Contents of the invention

针对现有技术的缺陷或不足,本实用新型的目的在于提供一种智能化程度高、适合较年幼儿童的自动避障玩具车。Aiming at the defects or deficiencies of the prior art, the purpose of this utility model is to provide an automatic obstacle avoidance toy car with a high degree of intelligence and suitable for younger children.

为实现上述技术任务,本实用新型采取如下的技术解决方案:For realizing above-mentioned technical task, the utility model takes following technical solution:

一种自动避障玩具车,包括玩具车,其特征在于,所述玩具车上安装有避障控制装置,该避障控制装置包括单片机、电机驱动电路、电机、安装于玩具车前端的CCD摄像头、安装于玩具车前端的红外传感器、安装于玩具车前轮上的舵机和安装于后轮转轴上的霍尔传感器;所述CCD摄像头通过视频同步分离芯片与单片机连接,所述电机驱动电路、红外传感器和舵机分别与单片机连接,所述电机与电机驱动电路连接。An automatic obstacle avoidance toy car, comprising a toy car, is characterized in that an obstacle avoidance control device is installed on the toy car, and the obstacle avoidance control device includes a single-chip microcomputer, a motor drive circuit, a motor, and a CCD camera installed on the front end of the toy car , the infrared sensor installed on the front end of the toy car, the steering gear installed on the front wheel of the toy car and the Hall sensor installed on the rear wheel shaft; the CCD camera is connected with the single chip microcomputer through the video synchronization separation chip, and the motor drive circuit , the infrared sensor and the steering gear are respectively connected with the single-chip microcomputer, and the motor is connected with the motor drive circuit.

本实用新型的其他技术特征为:Other technical characteristics of the utility model are:

所述单片机采用MC9S12DG128单片机。The single-chip microcomputer adopts MC9S12DG128 single-chip microcomputer.

所述电机驱动电路采用H桥驱动电路。The motor driving circuit adopts an H bridge driving circuit.

所述视频同步分离芯片采用LM1881芯片。The video synchronization separation chip adopts LM1881 chip.

所述舵机采用辉盛MG995金属铜齿轮舵机。The steering gear adopts Fraser MG995 metal copper gear steering gear.

所述红外传感器采用夏普GP2Y0A02YK0F红外传感器。The infrared sensor adopts Sharp GP2Y0A02YK0F infrared sensor.

本实用新型的自动避障玩具车上安装有避障控制装置,该控制装置根据CCD摄像头、红外传感器和测速传感器采集的信息,由单片机准确的计算出遇某一障碍物时舵机应转动角度,最终控制各执行机构实现玩具车得自动避障。该玩具车智能化程度高且丰富了现有的玩具车种类。The automatic obstacle avoidance toy car of the utility model is equipped with an obstacle avoidance control device, and the control device can accurately calculate the rotation angle of the steering gear when encountering a certain obstacle according to the information collected by the CCD camera, infrared sensor and speed sensor. , and finally control the actuators to realize the automatic obstacle avoidance of the toy car. The toy car has a high degree of intelligence and enriches the types of existing toy cars.

附图说明 Description of drawings

图1为本实用新型的玩具车上的避障控制装置结构示意图;Fig. 1 is the structure diagram of the obstacle avoidance control device on the toy car of the present utility model;

图2为本实用新型的CCD摄影机与单片机之间的连接结构示意图;Fig. 2 is the connection structure schematic diagram between the CCD camera of the present utility model and the single-chip microcomputer;

图3为本实用新型的电机驱动电路图;Fig. 3 is a motor drive circuit diagram of the present utility model;

图4为本实用新型的避障示意图。Fig. 4 is a schematic diagram of obstacle avoidance of the present invention.

下面结合附图和实施例对本实用新型进一步说明。Below in conjunction with accompanying drawing and embodiment the utility model is further described.

具体实施方式 Detailed ways

实施例:Example:

参照图1,本实施例的自动避障玩具车包括玩具车,该玩具车上安装有避障控制装置,该避障控制装置包括MC9S12DG128单片机、H桥驱动电路、电机、安装于玩具车前端的CCD摄像头、安装于玩具车前端的夏普GP2Y0A02YK0F红外传感器、安装于玩具车前轮上的MG995金属铜齿轮舵机和安装于后轮转轴上的霍尔传感器;所述CCD摄像头通过视频同步分离LM1881芯片与单片机连接,所述H桥驱动电路、红外传感器和舵机分别与单片机连接,所述电机与H桥驱动电路连接。玩具车上所安装的避障控制装置由5V直流电池供电,因为CCD摄像头的工作电压为+12V,因此需要一个电压转换电路,电压转换电路采用MAX732DC-DC电压转换芯片,具体电路连接为MAX732芯片的典型接法。Referring to Fig. 1, the automatic obstacle avoidance toy car of the present embodiment includes a toy car, and an obstacle avoidance control device is installed on the toy car. CCD camera, Sharp GP2Y0A02YK0F infrared sensor installed on the front end of the toy car, MG995 metal copper gear steering gear installed on the front wheel of the toy car and Hall sensor installed on the rear wheel shaft; the CCD camera separates the LM1881 chip through video synchronization It is connected with the single-chip microcomputer, the H-bridge driving circuit, the infrared sensor and the steering gear are respectively connected with the single-chip microcomputer, and the motor is connected with the H-bridge driving circuit. The obstacle avoidance control device installed on the toy car is powered by a 5V DC battery. Because the working voltage of the CCD camera is +12V, a voltage conversion circuit is needed. The voltage conversion circuit uses a MAX732DC-DC voltage conversion chip, and the specific circuit connection is a MAX732 chip typical connections.

所采用的MC9S12DG128单片机是M68HC12系列16为单片机中的一种,其基本结构包括:中央处理器单元HCS12(CPU)、2个异步串行通信口SCI、2个同步串行通信口SPI,8通道输入捕捉/输出比较定时器,1个8通道脉宽调制模块以及49个独立数字I/O口(其中20个具有外部中断及唤醒功能),在片内还拥有128KB的Flash ROM,8KB的RAM和2KB的EEPROM,该单片机对接收到的信息进行分析,控制舵机、电机和速度模块工作,实现自动避障。The MC9S12DG128 single-chip microcomputer used is one of M68HC12 series 16 single-chip microcomputers. Its basic structure includes: central processing unit HCS12 (CPU), 2 asynchronous serial communication ports SCI, 2 synchronous serial communication ports SPI, 8 channels Input capture/output comparison timer, 1 8-channel pulse width modulation module and 49 independent digital I/O ports (20 of which have external interrupt and wake-up functions), also has 128KB Flash ROM and 8KB RAM in the chip And 2KB EEPROM, the single-chip microcomputer analyzes the received information, controls the work of the steering gear, motor and speed module, and realizes automatic obstacle avoidance.

所采用的夏普GP2Y0A02YK0F红外传感器由PSD和IRED以及信号处理电路三部分组成;采用三角测量,环境干扰小,测距范围为20~150cm,尺寸为29.5×13×21.6mm,供电电压:4.5to 5.5V,信号输出为电压模拟信号,模拟信号通过MC9S12DG128单片机的ATD00~ATD07送入单片机,模数转换为数字量,以待进一步处理。The Sharp GP2Y0A02YK0F infrared sensor used is composed of three parts: PSD, IRED and signal processing circuit; triangulation measurement is adopted, the environmental interference is small, the distance measurement range is 20-150cm, the size is 29.5×13×21.6mm, and the power supply voltage: 4.5 to 5.5 V, the signal output is a voltage analog signal, and the analog signal is sent to the single-chip microcomputer through ATD00~ATD07 of the MC9S12DG128 single-chip microcomputer, and the analog-to-digital conversion is converted into a digital quantity for further processing.

如图2所示,CCD摄像头上有接地线、电源线和信号线,信号线经过0.1uf的电容与视频同步分离芯片LM1881的2引脚相连,视频同步分离完成视频图像的行、列分离,其1、7引脚分别与MC9S12DG128单片机的PT3和PT2相连,分别提取视频图像的行和列信息,同时芯片LM1881提取障碍物的外包络线并计算出障碍物包络线的宽度值并输入给MC9S12DG128单片机。As shown in Figure 2, there are ground wires, power wires, and signal wires on the CCD camera. The signal wires are connected to the 2 pins of the video synchronization separation chip LM1881 through a 0.1uf capacitor. The video synchronization separation completes the row and column separation of the video image. Its pins 1 and 7 are respectively connected to PT3 and PT2 of the MC9S12DG128 single-chip microcomputer to extract the row and column information of the video image respectively. At the same time, the chip LM1881 extracts the outer envelope of the obstacle and calculates the width of the obstacle envelope and inputs it. For MC9S12DG128 microcontroller.

固定在玩具车后轴齿轮附近的霍尔传感器便可在每个小钢磁通过时产生一个相应的脉冲,检测出单位时间的脉冲数,就可以计算出此时的车速,作为单片机计算新的避障车速的参考。The Hall sensor fixed near the rear axle gear of the toy car can generate a corresponding pulse when each small steel magnet passes through, detect the number of pulses per unit time, and then calculate the speed of the vehicle at this time, as a single-chip computer to calculate a new Reference for obstacle avoidance speed.

参照图3,驱动电路采用典型的H桥电路,该电路由两个PNP型三极管8550:Q1、Q2,两个NPN型三极管9013:Q3、Q4、两个NPN型三极管8050:Q5、Q6,电阻R11、电阻R12、电阻R13、电阻R14、电阻R15和电阻R16组成,其中电阻R11和电阻R12的阻值均为100Ω,电阻R13和电阻R14的阻值均为1kΩ,电阻R15和电阻R16的阻值均为500Ω。H桥行驶驱动电路包括前进输入端J11,后退输入端J12,当电机前进输入端J11为高电平信号时,三极管Q3、Q2、Q5导通,驱动电机中电流方向为从右到左,驱动电机正转,玩具车前进;相反,当驱动电机后退输入端J12为高电平信号时,三极管Q4、Q1、Q6导通,驱动电机中电流方向为从左到右,驱动电机反转,玩具车后退。Referring to Figure 3, the driving circuit adopts a typical H-bridge circuit, which consists of two PNP transistors 8550: Q1, Q2, two NPN transistors 9013: Q3, Q4, two NPN transistors 8050: Q5, Q6, resistors Composed of R11, resistor R12, resistor R13, resistor R14, resistor R15 and resistor R16, the resistance values of resistor R11 and resistor R12 are both 100Ω, the resistance values of resistor R13 and resistor R14 are both 1kΩ, and the resistance values of resistor R15 and resistor R16 The value is 500Ω. The H-bridge drive circuit includes a forward input terminal J11 and a backward input terminal J12. When the motor forward input terminal J11 is a high-level signal, the transistors Q3, Q2, and Q5 are turned on, and the current direction in the driving motor is from right to left. The motor rotates forward, and the toy car moves forward; on the contrary, when the drive motor retreats and the input terminal J12 is a high-level signal, the transistors Q4, Q1, and Q6 are turned on, and the current direction in the drive motor is from left to right, and the drive motor reverses, and the toy The car backs up.

综上,本实用新型的玩具车在遇到一障碍物时,CCD摄像头不断采集路况信息同时将所采集的信息传输给LM1881芯片,LM1881芯片完成视频图像的行、列分离和障碍物外包络线和车道边线的提取,并将所分离和提取的信息传输给MC9S12DG128单片机,单片机获取障碍物的宽度为(a+b),同时红外传感器将所采集的汽车与障碍物的距离信号h输入MC9S12DG12单片机,然后单片机根据所输入的信息计算得到汽车的转向角。如图4所示,MC9S12DG128单片机根据上述信息计算出玩具车的舵角,舵角θ计算公式如下:To sum up, when the toy car of the present utility model encounters an obstacle, the CCD camera continuously collects road condition information and transmits the collected information to the LM1881 chip, and the LM1881 chip completes the row and column separation of the video image and the outer envelope of the obstacle Lines and lane sidelines are extracted, and the separated and extracted information is transmitted to the MC9S12DG128 single-chip microcomputer. The single-chip microcomputer obtains the width of the obstacle as (a+b), and the infrared sensor inputs the collected distance signal h between the car and the obstacle to the MC9S12DG12 Single-chip computer, and then the single-chip computer calculates the steering angle of the car according to the input information. As shown in Figure 4, the MC9S12DG128 MCU calculates the rudder angle of the toy car based on the above information. The formula for calculating the rudder angle θ is as follows:

θθ == arctanarctan aa hh

单片机计算出合理的车速v并将该车速与霍尔传感器所测的实际车速进行比较,然后根据对比结果通过电机驱动电路调控电机,进而实现对车速的调节;同时单片机根据所计算的舵角通过舵机控制汽车的转向角度;The single-chip computer calculates a reasonable vehicle speed v and compares the vehicle speed with the actual vehicle speed measured by the Hall sensor, and then regulates the motor through the motor drive circuit according to the comparison result, thereby realizing the adjustment of the vehicle speed; at the same time, the single-chip computer passes through The steering gear controls the steering angle of the car;

不断的重复上述过程,就可以实时调控玩具车行驶需要的两个参数:舵角θ和车速v,从而准确的实现玩具车的自动避障。By repeating the above process continuously, the two parameters needed for driving the toy car can be adjusted in real time: the rudder angle θ and the vehicle speed v, so as to accurately realize the automatic obstacle avoidance of the toy car.

本实用新型的玩具车上所安装的各种电子元器件均是市售的已知产品,本领域技术人员根据本申请的技术效果即可实现各电子元器件的连接。Various electronic components installed on the toy car of the utility model are all commercially available known products, and those skilled in the art can realize the connection of each electronic component according to the technical effect of the application.

Claims (6)

1. automatic obstacle-avoiding toy car; Comprise toy car; It is characterized in that; Be equipped with on the said toy car and keep away the barrier control device, this keep away the barrier control device comprise single-chip microcomputer, motor-drive circuit, motor, be installed on the toy car front end the CCD camera, be installed on the toy car front end infrared sensor, be installed on the steering wheel on the toy car front-wheel and be installed on the Hall element in the trailing wheel rotating shaft; Said CCD camera is connected with single-chip microcomputer through Video Sync Separator Chip, and said motor-drive circuit, infrared sensor and steering wheel are connected with single-chip microcomputer respectively, and said motor is connected with motor-drive circuit.
2. automatic obstacle-avoiding toy car as claimed in claim 1 is characterized in that, said single-chip microcomputer adopts the MC9S12DG128 single-chip microcomputer.
3. automatic obstacle-avoiding toy car as claimed in claim 1 is characterized in that, said motor-drive circuit adopts H bridge drive circuit.
4. automatic obstacle-avoiding toy car as claimed in claim 1 is characterized in that, said Video Sync Separator Chip adopts the LM1881 chip.
5. automatic obstacle-avoiding toy car as claimed in claim 1 is characterized in that, said steering wheel adopts brightness to contain MG995 metallic copper gear steering wheel.
6. automatic obstacle-avoiding toy car as claimed in claim 1 is characterized in that, said infrared sensor adopts the GP2Y0A02YK0F of Sharp infrared sensor.
CN2011204766632U 2011-11-25 2011-11-25 Automatic obstacle-avoidance toy car Expired - Fee Related CN202355839U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011204766632U CN202355839U (en) 2011-11-25 2011-11-25 Automatic obstacle-avoidance toy car

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011204766632U CN202355839U (en) 2011-11-25 2011-11-25 Automatic obstacle-avoidance toy car

Publications (1)

Publication Number Publication Date
CN202355839U true CN202355839U (en) 2012-08-01

Family

ID=46567059

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011204766632U Expired - Fee Related CN202355839U (en) 2011-11-25 2011-11-25 Automatic obstacle-avoidance toy car

Country Status (1)

Country Link
CN (1) CN202355839U (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102951120A (en) * 2012-11-28 2013-03-06 林茂生 Intelligent aerodynamic system for repelling snow and rain in front of automobile
CN103520931A (en) * 2013-09-22 2014-01-22 天津大学 Untouchable car

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102951120A (en) * 2012-11-28 2013-03-06 林茂生 Intelligent aerodynamic system for repelling snow and rain in front of automobile
CN103520931A (en) * 2013-09-22 2014-01-22 天津大学 Untouchable car

Similar Documents

Publication Publication Date Title
CN102837821B (en) Controller of steering engine
CN204440165U (en) A kind of intelligent grass-removing being applicable to rectangle mowing scope
CN201799111U (en) Autonomous tracking model car based on single chip microcomputer (SCM)
CN101693437A (en) Air-ground amphibious intelligent vehicle
CN107585221A (en) The automated steering control method and intelligent steering system of unmanned distribution trolley
CN201965486U (en) Intelligent tracking car
CN202355839U (en) Automatic obstacle-avoidance toy car
CN103324199A (en) Intelligent tracing trolley
CN202976657U (en) Automatic travelling obstacle-avoiding trolley used for training
CN101746415B (en) Electronic differential control system of electric vehicle
CN207360276U (en) A kind of bi-motor windshield wiper control device based on CAN bus
CN202337258U (en) Intelligent automobile obstacle avoidance control device
CN109278679A (en) An experimental vehicle based on independent control of dual motors
CN202351636U (en) Double-CCD based automatic parking device of intelligent model car
CN203472854U (en) Video monitoring trolley
CN202161805U (en) Intelligent track-seeking model car for race with double tracks
CN105109550A (en) Control device for miniature intelligent automobile
CN202453757U (en) Vision-based control device for automatic track finding intelligent vehicle
CN201824946U (en) Auxiliary device of automotive steering light based on control of single-chip microcomputer
CN206135675U (en) Digital steering engine
CN203025563U (en) Intelligent dual-line race track tracking vehicle based on K60 singlechip
CN201719829U (en) Model car tracking device based on CCD camera
CN205601917U (en) 4 wheel driven intelligence car steering engine control circuit
CN107369355A (en) The steering wheel feedback device and method of a kind of automobile driving simulator
CN205665589U (en) Tracking system based on area array CCD sensor

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120801

Termination date: 20121125