无线遥控智能小车的设计
精品文档---下载后可任意编辑 摘 要 面对诸多人类不容易到达的工作环境,为了有效的到达指定位置完成指定功能,就需要采纳智能小车去现场来完成相应的任务。因此讨论和开发无线遥控智能小车引导控制系统具有十分重要的意义。无线遥控小车具有体积小、成本低、生存能力强等特点。 本设计基于单片机控制和无线数据传输技术的设计思想。利用两片单片机构成主从结构,主机发送控制指令,从机接收控制指令并控制小车运动。主机由STC89C52单片机、LCD1602显示、NRF24l01无线模块和控制按键组成,从机由小车底盘、NRF24l01无线模块、电机驱动、HC-RS04超声波测距模块和STC89C52单片机组成。主机和从机基于无线模块进行数据传输,主机电路主要负责发送小车运动状态的控制指令;从机电路主要负责小车运动状态指令的接受和实现对运动状态的控制。电机由电机专用驱动芯片L298N驱动,通过单片机的控制,可轻松实现小车的前进、后退、左转、右转等的控制。无线遥控智能小车控制系统的软件设计分为主机和从机两部分。主机软件设计分为无线通讯程序,按键控制程序,显示程序,从机软件设计分为小车超声波避障程序,无线通讯程序,电机驱动程序。 概括来说,本设计就是用遥控器发射控制信号,用单片机控制直流电机输出相应的电平控制车辆的前行或者后退等动作,进而实现小车的智能遥控功能。 关键词:STC89C52;无线遥控;智能小车 精品文档---下载后可任意编辑 Abstract Facing a range of working environment that human beings can not reach easily,it is necessary to employ the intelligent car to go to the scene to accomplish the corresponding task in order to reach the specified location to complete the specified function effectively. Therefore, it is of great importance to study and develop the guidance and control system ofthe wireless remote controlled intelligent trolley.The wireless remote controlled car is characteristiced by small size, low cost, strong survivability and so on. The design is based on the thinking about the single-chip control and wireless data transmission technique. Using two microcontrollers constitutes the master-slave structure. The host sends control commands, which the slave receivesandthen controls the trolley movement.The host consists of the STC89C52 microcontroller, LCD1602 display, NRF24l01 wireless module and control buttons while theslave is made up of the car chassis, NRF24l01 wireless module, motor drive, HC-RS04 ultrasonic distance measurement module and STC89C52 microcontroller. The host and slave are based on the wireless communication module for data transmission. The host circuit is mainly responsible for sending movement control instructions to the car; the slave circuit is mainly responsible for the acceptance of the movement state of the car and the realization of the control of the state of motion. The motor is driven by the motor-specific driver chip L298N. Through the control of the single chip computer,the control of car to advance, go backward, turn left and right can be easily realized.The software design of wireless remote control intelligent car control system is divided into two parts of the host and slave. Host software design is divided into wireless communication procedures, button control procedures, display procedures. Slave software design is divided into trolley ultrasonic obstacle avoidance procedures, wireless communication procedures and motor drivers. To sum up,the design is to use the remote control to launch control signals and single-chip to control DC motor to output corresponding level of electricity to control the vehicle going forward or backward and other actions, and then it realizes intelligent remote control function of the car. Keywords: STC89C52; remote control; intelligent car 精品文档---下载后可任意编辑 目 录 摘要I A