文档介绍:摘要
现在,玩具电动车要么是只能实现直线前进的,要么是带遥控装置的开环控制的,能够实现或前进、或后退、或左转、或右转的功能。能够显示运行状态、里程(圈数)并实现报警的却为数不多。本文的主要研究工作是设计和实现基于单片机 STC89C51 的智能玩具电动车,包括其硬件和软件两个部分。硬件电路部分主要包括控制器、信号检测电路、避障电路、电机驱动电路、显示电路、电源电路等,通过软件编程控制小车实现前进、后退、加速、减速、左转、右转和车灯闪烁等功能,并在小车行进中很好地实现避障,里程、行进方向显示和报警。本文是把当前一般的玩具电动车作为基础,增加各种传感器,如光电传感器、红外传感器、超声波传感器等,利用传感器构成的信号检测电路实时检测电动车的运行速度、运行位置、运行状况,单片机接收并处理信号检测电路检测到的各种数据,然后由单片机发出指令控制电动小车运行。该智能玩具小车能够实现的功能有:实时准确地显示温度、显示里程,能够实现语音控制,自动循迹和避障,能够自动调节行驶速度并精确停车。
关键词:智能,玩具电动车,单片机,软件设计
ABSTRACT
Now, electric toy is either can only achieve a straight forward, either with remote control device for open loop control, can achieve or forward, or back, or left, or right function. To be able to display operating status, mileage (LAPS) and alarm however amount to is not much. The main research work of this thesis is to design and implement based on STC89C51 single-chip puter intelligent toy car, including its hardware and software in two parts. The hardware circuit part prises a controller, a signal detection circuit, obstacle avoidance circuit, motor drive circuit, display circuit, power supply circuit, through software programming to control the car forward, backward, acceleration, deceleration, turn left, turn right and lights flashing and other functions, and in the small car running well realize the obstacle avoidance, mileage, the direction of display and alarm. This paper is to present a general electric toy as a foundation, increase of various sensors, such as photoelectric sensor, infrared sensor, ultrasonic sensor, the sensor signal detection circuit for real-time detection of electric vehicle running speed, running position, operation, SCM receives and processes the signal detection circuit detects a variety of data, and then by the MCU instruction control of electric trolley. The intelligent toy car can achieve functions: real-time and accurate temperature display, display the mileage, voice control can be achieved, automatic tracking and obstacle avoidance, and can automatically