基于arm平台的无线遥控小车设计报告
- 格式:docx
- 大小:3.40 MB
- 文档页数:24
摘要随着汽车工业的迅速发展,关于汽车的研究也就越来越受人们的关注,而汽车的智能化已成为科技发展的新方向。
本设计就是在这样的背景下提出来的。
此次设计的简易智能小车是基于arm11控制及传感器技术的,实现的功能是小汽车可自动识别目标(比如一个小球),,利用电两个电机的差动调节, 控制电动小汽车的自动避障、寻光及自动停车。
通过摄像头采集视野范围图像并对图像处理进行目标识别,并由arm系统来控制智能车的行驶状态。
.11.1智能小车的意义和作用自第一台工业机器人诞生以来,机器人的发展已经遍及机械,电子,冶金,交通,宇航,国防等领域.近年来机器人的智能水平不断提高,并且迅速地改变着人们的生活方式.人们在不断探讨,改造,认识自然的过程中,由此发展起来的智能小车引起了众多学者的广泛关注和极大的兴趣。
智能小车,也就是轮式机器人,最适合在那些人类无法工作的环境中工作,该技术可以应用于无人驾驶机动车,无人生产线,仓库,服务机器人,航空航天等领域。
作为20世纪自动化领域的重大成就,机器人已经和人类社会的生产、生活密不可分。
因此为了使智能小车工作在最佳状态,进一步研究及完善其速度和方向的控制是非常有必要的。
智能小车要实现自动寻迹功能和避障功能就必须要感知导引线和障碍物,感知导引线相当给机器人一个视觉功能.避障控制系统是基于自动导引小车(avg—auto-guide vehicle)系统,基于它的智能小车实现自动识别路线,判断并自动避开障碍,选择正确的行进路线.使用传感器感知路线和障碍并作出判断和相应的执行动作.该智能小车可以作为机器人的典型代表.它可以分为三大组成部分:传感器检测部分,执行部分,cpu.机器人要实现自动避障功能,还可以扩展循迹等功能,感知导引线和障碍物.可以实现小车自动识别路线,选择正确的行进路线,并检测到障碍物自动躲避.考虑使用价廉物美的红外反射式传感器来充当.智能小车的执行部分,是由直流电机来充当的,主要控制小车的行进方向和速度.单片机驱动直流电机一般有两种方案:第一,勿需占用单片机资源,直接选择有pwm功能的单片机,这样可以实现精确调速;第二,可以由软件模拟pwm输出调制,需要占用单片机资源,难以精确调速,但单片机型号的选择余地较大.考虑到实际情况, cpu使用AT89c52单片机,配合软件编程实现.1.2智能小车的现状现智能小车发展很快,从智能玩具到其它各行业都有实质成果.其基本可实现循迹,避障,检测贴片,寻光入库,避崖等基本功能,现在大学电子设计大赛智能小车又在向声控系统发展.比较出名的飞思卡尔智能小车更是走在前列。
基于单片机无线遥控小车设计英文范文English:The design of a wireless remote control car based on a single-chip microcomputer involves integrating various components and technologies to achieve a fully functional and user-friendly vehicle. The first step in the design process is to select a suitable single-chip microcomputer, which will serve as the brain of the car and control all its functions. Once the microcomputer is chosen, the next step is to design and implement the wireless communication system, which will allow the user to control the car remotely. This can be achieved using technologies such as Bluetooth or Wi-Fi, depending on the range and capabilities required for the car. In addition to the wireless communication system, the car will also require motor drivers to control the movement of the wheels, as well as sensors to detect obstacles and navigate the environment. These components will need to be integrated with the single-chip microcomputer, along with a power supply and user interface elements such as buttons or a joystick for controlling the car. Once all the components are integrated and the car is assembled, it will need to be programmed to respond to the user's commands and perform various maneuversand tasks. Overall, the design of a wireless remote control car based on a single-chip microcomputer involves careful planning and integration of various technologies to create a functioning and enjoyable vehicle for users to control.Translated content:基于单片机的无线遥控小车设计涉及集成各种组件和技术,以实现一个功能齐全且用户友好的车辆。
基于单片机无线遥控小车设计英文范文Design of Wireless Remote Control Car Based on Single Chip Microcomputer。
With the rapid development of technology, the application of single-chip microcomputers in various fields has become more and more extensive. One of the most interesting applications is the design of a wireless remote control car based on a single-chip microcomputer. In this article, we will discuss the design and implementation of such a car.The main components of the wireless remote control car include a single-chip microcomputer, motor driver, wireless communication module, and various sensors. The single-chip microcomputer serves as the brain of the car, controlling its movement and receiving commands from the remote control. The motor driver is used to control the speed and direction of the car, while the wireless communication module enables communication between the remote control and the car. Sensors such as ultrasonic sensors and infrared sensors can be used to detect obstacles and avoid collisions.The design of the wireless remote control car begins with the selection of the single-chip microcomputer. The microcontroller should have sufficient processing power and I/O ports to control the motors, communicate wirelessly, and interface with sensors. Popular choices for single-chip microcontrollers include the Arduino, Raspberry Pi, and STM32.Once the microcontroller is selected, the next step is to design the motor control circuit. This circuit typically consists of H-bridge motor drivers, which allow the microcontroller to control the speed and direction of the motors. The motors themselves can be DC motors or servo motors, depending on the requirements of the car.After the motor control circuit is designed and tested, the wireless communication module is integrated into the system. This module can be based on technologies such as Bluetooth, Wi-Fi, or RF. The remote control is equipped with a similar wireless module, allowing the user to send commands to the car.In addition to motor control and wireless communication, sensors are an important part of the wireless remote control car. Ultrasonic sensors can be used to measure the distance to obstacles in front of the car, while infrared sensors can detect obstacles on the sides or rear of the car. These sensors provide input to the microcontroller, allowing the car to navigate and avoid collisions autonomously.Once all the components are integrated, the software for the wireless remote control car is developed. This software includes the control algorithm for the motors, the communication protocol between the remote control and the car, and the obstacle avoidance logic based on sensor input. The software is typically written in C or C++, and can be developed using the Arduino IDE, Raspberry Pi IDE, or other integrated development environments.After the hardware and software are developed, the wireless remote control car is assembled and tested. The car should be able to move in all directions, respond to commands from the remote control, and avoid obstacles using the sensors. Any issues or bugs in the design are identified and fixed during the testing phase.In conclusion, the design of a wireless remote control car based on a single-chip microcomputer is a challenging and rewarding project. By carefully selecting components, designing circuits, integrating sensors, and developing software, it is possible to create a fully functional remote control car that can navigate and avoid obstacles wirelessly. This project is a great way to learn about electronics, programming, and robotics, and can be a fun and educational experience for hobbyists and students alike.。
基于ARM单片机的智能小车循迹避障研究设计共3篇基于ARM单片机的智能小车循迹避障研究设计1一、研究的背景近年来,随着机器人技术的不断发展,人们对智能小车的需求越来越高。
智能小车能够根据周围环境的变化,自动地进行信号处理和运动抉择,实现自主导航、路径规划和避障等功能。
在工业生产、物流配送、智能家居、环保治理等领域,智能小车具有广泛的应用前景。
二、研究的目的本文研究的目的是基于ARM单片机的智能小车循迹避障设计。
通过对小车的硬件组成和软件程序的设计,使小车能够自主进行行车,避免撞车和碰撞,并能够遵循预设的路径进行行驶,完成既定的任务。
三、研究的内容1. 小车的硬件组成小车的硬件组成主要包括以下方面:(1)ARM单片机:ARM单片机是一种高性能、低功耗的微处理器,广泛应用于嵌入式系统领域。
在本设计中,ARM单片机作为控制中心,负责控制小车的各项功能。
(2)直流电机:直流电机是小车的动力来源,通过电路控制,实现小车前进、后退、转弯等各种运动。
(3)红外循迹传感器:红外循迹传感器是小车的“眼睛”,能够检测和识别地面上的黑色和白色,实现循迹运行。
(4)超声波传感器:超声波传感器是小车的避障装置,能够探测小车前方的障碍物,实现自动避障。
(5)LCD液晶屏幕:LCD液晶屏幕是小车的显示器,能够显示小车行驶的速度、距离、角度等信息。
2. 小车的软件程序设计小车的软件程序设计分为两部分:一部分是嵌入式软件设计,另一部分是上位机程序设计。
(1)嵌入式软件程序设计嵌入式软件程序是小车控制程序的核心部分,负责控制小车硬件的各项功能。
具体实现过程如下:① 初始化程序:负责对小车硬件进行初始化和启动,包括IO口配置、计数器设置、定时器设置等。
② 循迹程序:根据红外循迹传感器所检测到的黑白线,判断小车的行驶方向。
如果是白线,则小车继续向前行驶;如果是黑线,则小车需要进行转向。
③ 路径规划程序:根据预设路径,计算小车应该按照什么路线进行行驶。
基于ARM的智能机器人小车控制系统设计基于ARM的智能机器人小车控制系统设计1 引言机器人小车是一个集环境感知、动态决策与规划、行为控制与执行等多种功能于一体的综合系统。
随着传感技术、计算机科学、人工智能及其它相关学科的迅速发展,机器人小车正向着智能化的方向发展。
机器人小车要具有智能其必须具有感知作业环境的能力、任务规划的能力以及决策的能力。
从系统硬件层次上讲,机器人小车必须具有丰富的传感器,功能强大的控制计算机以及灵活精确的驱动系统。
随着控制系统研究的深入,采用复杂的控制算法已成为必然,这使得软件的复杂度和程序代码增加。
而单片机作为控制系统的微处理器,在数据处理和代码存储等方面都已经无法满足系统的需求,ARM微处理器资源丰富,具有良好的通用性,其主要优点是高性能、低价格、低功耗。
ARM本身是32位微处理器,但却集成了16位的Thumb指令集,这使得ARM可以代替16位的处理器如51系列单片机使用,同时具有32位处理器的速度。
基于ARM的嵌入式系统其性能优良,移植性好,已广泛应用在各个行业,因此将ARM微处理器应用于机器人小车的控制系统是一种较好的选择。
2 机器人小车控制系统结构机器人小车底盘采用四轮结构,前轮为万向轮,起支撑作用,不起导向作用。
两个后轮为驱动轮,采用差动方式转向,每一个驱动轮采用一个直流电机独立驱动,直流电机与各自的驱动轮采用速度反馈和闭环PID控制,以实现小车精确的速度和位置控制。
工作时,通过控制系统调节电机的通断时间比例(即输入电压),调节相应的驱动轮转速,从而达到调速的目的。
机器人小车的系统结构如图1所示。
其系统结构可划分为三层,上层为传感器层,主要包括用于避障的超声波传感器和其他的功能传感器(如编码器等);中间层是数据处理和控制的决策层,由主控制器ARM7以及在此基础上扩展的外围部件、无线收发模块、正交解码器等组成;下层为驱动层,包括直流电机组成的驱动单元和驱动轮等。
目录第1章开题报告 (1)1.1 课程设计概述 (1)1.2 课程设计小车要求 (1)1.3 课程设计安排 (1)第2章无线遥控&自动寻迹小车硬件设计 (2)2.1 主控芯片及接口电路 (2)2.1.1 ARM处理器系列 (2)2.1.2 ARM7TDMI处理器 (3)2.1.3 LPC2138 (3)2.1.4 LPC2138最小系统 (4)2.2 基于ARM2103遥控器的硬件设计 (7)2.3 基于ARM2103无线遥控接收信号 (8)2.4 基于ARM2138核心控制平台 (8)2.5 H桥控制直流电机 (8)2.6 激光传感器 (9)2.7 nRF2401无线电传感器 (10)2.8 金属探测器LJ12A3-4-Z/BX传感器 (12)第3章无线遥控&自动寻迹小车软件设计 (13)3.1 基于ARM2103无线电发送模块程序的调试 (13)3.2 基于ARM2103无线电接收模块程序的调试 (14)3.3 通过ARM2138接收ARM2103信号控制小车无线遥控控制.. 163.4 捕获测速 (16)3.5 数字显示与键盘扫描电路设计 (20)3.6 寻迹程序调试 (22)3.7 无线电&激光寻迹模式选择程序 (24)第4章调试 (25)4.1 PID控制理论概述 (25)4.1.1 PID控制理论概述 (25)4.1.2 PID控制主程序 (29)阶段性总结 (33)参考文献 (34)致谢 (35)第1章开题报告1.1课程设计概述本个课程设计是基于ARM2103、2138的集无线遥控、激光自动寻迹、扫雷为一体的多功能小车。
在嵌入式高速发展,ARM独占一席的今天,熟练运用ARM对于电科大学生至为重要。
ARM2103实验板2块,主要用于无线电nRF2401的发送和接受;ARM2138实验板1块,主要用于直流电机驱动、寻迹控制等;激光FS2-60传感器4个用于小车寻迹功能使用;金属探测器LJ12A3-4-Z/BX传感器用于金属探测。
****************大学班级:****** 作者:******指导老师:****电 子设 计 之无线遥控智能小车1引言1.1编写目的本概要设计说明书是针对电子设计的课程要求而编写。
目的是对该项目进行总体设计,在明确系统需求的基础上划分系统的功能模块,进行系统开发的分工,明确各模块的接口,为进行后面的详细设计和实现做准备。
满足无线遥控爱好者对智能小车的设计要求,想通过这份概要设计给爱好者一个好的设计思路,设计方法进行参考。
本概要设计说明书的预期读者为本项目小组成员以及无线遥控爱好者。
1.2背景a.实践题目的名称:无线遥控智能小车b.项目的任务提出者:***,***,***c.项目的开发者:***,***,***d.面向用户:所有无线遥控爱好者,对智能小车感兴趣,想借此提高动手能力的用户。
鉴于电子设计课程要求,需要一份设计实品,加之小组成员对智能小车有着独特的爱好,所以这次设计选择了遥控智能小车作为电子设计的题目。
2总体设计2.1需求规定●所设计智能小车功能:主要功能:无线遥控,避障;附加功能:超声波测距、速度调节、液晶显示、音乐、流水灯和散热系统。
★通过无线串口对小车进行无线遥控,可以在遥控,避障这两个主要功能之间自由切换。
★遥控时,通过遥控器上的按钮可以方便灵活地控制小车前进,后退,左转和右转等。
★避障时,利用红外传感器探测障碍物,从而达到避障的目的。
●小车安装了超声波传感器,可以进行距离测量,如果距离过近,蜂鸣器发出警报,并将距离等数据实时传到液晶屏上显示。
★通过按钮同时控制一些其他功能,如音乐,风扇和流水灯等。
2.2运行环境最好是室内平地2.3基本设计概念和处理流程整体框图:2.4所需器件★小车模型(三轮,带电机)★ATMAGE16单片机最小系统(3个,小车上两个一个负责接受无线,控制电机,另外一个则是负责其他功能,最后一个遥控器上的)★直流电机驱动模块,采用两个LM298驱动模块分别控制两个电机★传感器模块,采用红外传感器2个,超声波传感器两个★无线串口模块★电源模块(5v,12v)★按键模块,用于无线遥控小车★LCD1602液晶一块★电机一个★蜂鸣器一个★锂电池一块★南孚电池若干节★发光二级管若干★键盘(8个按钮)3接口设计3.1用户接口小车主要有避障和遥控两种模式,通过控制小车上的一个模式选择开关,手动遥控时自动模式无效,同样小车处于自动状态时,手动遥控无效。
无线遥控智能小车的设计摘要面对诸多人类不容易到达的工作环境,为了有效的到达指定位置完成指定功能,就需要采用智能小车去现场来完成相应的任务。
因此研究和开发无线遥控智能小车引导控制系统具有十分重要的意义。
无线遥控小车具有体积小、成本低、生存能力强等特点。
本设计基于单片机控制和无线数据传输技术的设计思想。
利用两片单片机构成主从结构,主机发送控制指令,从机接收控制指令并控制小车运动。
主机由STC89C52单片机、LCD1602显示、NRF24l01无线模块和控制按键组成,从机由小车底盘、NRF24l01无线模块、电机驱动、HC-RS04超声波测距模块和STC89C52单片机组成。
主机和从机基于无线模块进行数据传输,主机电路主要负责发送小车运动状态的控制指令;从机电路主要负责小车运动状态指令的接受和实现对运动状态的控制。
电机由电机专用驱动芯片L298N驱动,通过单片机的控制,可轻松实现小车的前进、后退、左转、右转等的控制。
无线遥控智能小车控制系统的软件设计分为主机和从机两部分。
主机软件设计分为无线通讯程序,按键控制程序,显示程序,从机软件设计分为小车超声波避障程序,无线通讯程序,电机驱动程序。
概括来说,本设计就是用遥控器发射控制信号,用单片机控制直流电机输出相应的电平控制车辆的前行或者后退等动作,进而实现小车的智能遥控功能。
关键词:STC89C52;无线遥控;智能小车AbstractFacing 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 of the 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 receives and then controls the trolley movement.The host consists of the STC89C52 microcontroller, LCD1602 display, NRF24l01 wireless module and control buttons while the slave 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)Abstract (II)第1章绪论 (1)1.1课题研究主要内容及要求 (1)1.2课题研究的目的和意义 (1)1.1.1研究的目的 (1)1.1.2研究的意义 (1)1.3课题国内外研究状况 (2)1.4 总结 (2)第2章总体方案设计 (3)2.1总体设计 (3)2.2方案论证 (4)2.2.1 系统控制模块选择 (4)2.2.2小车遥控选择 (5)2.2.3上位机显示模块设计选择 (6)2.2.4下位机电机的选择 (7)2.2.5下位机避障模块设计选择 (8)2.2.6 直流调速方案选择 (9)2.2.7电源模块设计选择 (9)2.3本章小结 (10)第3章系统模块电路 (11)3.1单片机最小系统 (11)3.2 NRF24L01无线通讯模块 (11)3.3电机驱动模块 (13)3.3.1 L298N驱动模块 (13)3.3.2 PWM调速原理 (14)3.4电源模块 (15)3.4.1 5V稳压电路 (15)3.4.2 3.3V稳压部分 (15)3.5 避障部分模块 (16)3.5.1 避障原理 (16)3.5.2超声波测距模块 (16)3.6 其他模块电路介绍 (17)3.6.1 LCD1602显示电路 (17)3.6.2 键盘电路 (18)3.7本章小结 (19)第4章软件设计与说明 (20)4.1软件设计 (20)4.2软件的说明 (21)4.2.1 遥控部分主程序流程 (21)4.2.2 NRF24L01子程序流程图 (22)4.2.3 小车部分主程序流程图 (23)4.2.4 超声波部分程序流程图 (24)4.3 本章小结 (24)第5章硬件与软件调试 (26)5.1 硬件调试部分 (26)5.2 软件调试部分 (26)5.3 系统总体调试 (26)第6章结论 (29)参考文献 (31)附录A:电路原理图 (33)附录B:电路PCB图 (34)附录C:程序清单 (36)第1章绪论1.1课题研究主要内容及要求分析无线遥控智能小车的设计要求,确定上位机和下位机控制系统、智能小车驱动方式和避障方式、车速的检测方法,无线通信方式等,完成系统硬件电路及部分软件的设计。
(封面)XXXXXXX学院无线遥控小车设计报告题目:院(系):专业班级:学生姓名:指导老师:时间:年月日目录1.摘要 (2)1.1中文摘要 (2)2.引言 (3)2.1设计任务 (3)2.2设计要求 (3)2.3比赛规则 (3)3.方案设计与论证 (4)3.1系统方案 (4)3.2方案论证 (4)4.原理分析与硬件电路图 (6)4.1电源转换部分 (6)4.2电机驱动部分 (6)4.3无线通信部分 (7)4.4遥控部分 (8)5.软件设计 (10)6.系统测试与误差分析 (11)7.结论 (12)8.参考文献 (13)9.附件 (13)无线遥控小车摘要为了达到设计的要求,我们使用了MSP430F149为车上主控制芯片,STC12C5A为遥控控制芯片。
无线传输使用了315M无线传输模块,该模块采用了PT2262/PT2272进行编解码,拥有6位数据端管脚;遥控采用了摇杆电位器,将电位器滑动端的电压与参考电压比较,得到摇杆的位置,通过单片机编码,传输给小车上的单片机,小车上的单片机通过解码来控制小车的行驶及各种动作;电机驱动使用了L298N,通过单片机输出的PWM波来控制小车行驶的速度、小车行驶的方向;小车系统使用12V可充电锂电池进行供电,遥控使用9V的碳性电池进行供电,传输距离可达50m,抗干扰能力强,系统可靠稳定。
关键词无线遥控小车315MHz电波PWM波L298N引言一、设计任务制作一个可以手动遥控,按照特定路径行驶的小车。
二、设计要求1.基本要求(1)制作一个长不小于25cm,宽不小于20cm,高度不限的小车。
重量不少于1500g(包括电池,重量不足要加配重),车身支撑轮不超过4个。
(不允许直接购买现成的车模)(2)制作一个无线遥控(可以购买现成的无线数据通信模块,但不允许购买现成的无线遥控),通过遥控可以控制小车前进,转弯。
转弯要亮左右灯(可以人工用遥控控制灯的亮灭)。
2.发挥部分(1)遥控使用摇杆电阻(游戏手柄中的摇杆),不允许使用按键开关来控制。