




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、毕业论文(设计)外文翻译题 目:关于单片机的电动智能小车系部名称:专业班级:学生姓名:学号指导教师:教师职称:2年月日基于单片机的电动智能小车通过研发实现了一种以光电传感器为敏感元件,以at89c51单片机为控制核心的电 动循迹小车的智能控,该系统还包括直流电机、l9110芯片和lm324比较器等。本设计 采用at89c51单片机作为智能小车核心控制器。本系统以单片机为控制核心,实现电动车的前进、退、左转和右转功能。通过角度 传感器检测跷跷板角度的变化,利用增量式pi算法控制电动车寻找平衡点,同时运用光 电传感器检测黑线,使电动车在行驶过程中保持直线运动且不会脱离跷跷。1.方案设计电动车的速度
2、、位置、运行状况的实时测量,并将测量数据传送至单片机进行处理, 然后由单片机根据所检测的各种数据实现对电动车的智能控制。这种方案能实现对电动 车的运动状态进行实吋控制,控制,灵活可靠,精度高,可满足对系统的各项要求。(1) 直流调速系统直流调速系统采用脉宽调速系统,其主电路采用脉宽调制式变换器,简称 pwm变换器。由丁恻m调速系统的开关频率较高,仅靠电枢电感的滤波作用就可以获得脉 动很小的直流电流,电枢电流容易 连续,系统的低速运行平稳,调速范围较宽,可达1: 10000左右。由于电流波形比v-m系统好,在相同的平均电流下,电动机的损耗和发热 都比较小。同样由于开关频率高,若与快速响应的电机相
3、配合,系统可以获得很宽的频 带,因此快速响应性能好,动态抗扰能力强。根据以上综合 比较,以及本设计中受控电 机的容量和直流电机调速的发展方向,本设计采用了h型单极型可逆pwm变换器进行调 速。1.1光电检测模块设计该智能小车在贴有黑线的白纸“路面,上行驶,因此本模块设计需要检测铺在行驶区 的黑胶带,包扌舌直线行驶区和沿弧线行驶区两个区域。由于黑线和白纸对光线的反 射系数不同可根据接收到的反射光的强弱来判断“道路【一黑线。本文采用的是简单实用 的检测方法,即红外探测法。红外探测法,即利用红外线在不同颜色的物理表面具有不同的反射性质的特点。在 小车行驶过程中不断地向地面发射红外光,当红外光遇到白色
4、地面时发生漫发射,反射 光被装在小车上的接收管接收;如果遇到黑线则红外光被吸收,则小车上的接收管接收 不到信号。1.2信号比较模块设计输送给单片机,用于检测传感器的敏感性,电路图如图5所示。当两个传感器同时 检测到光时,直线前进。当传感器检测不到光时,处于截止状态,双运算放大器lm324输 出低电平给单片机,由程序处理;若左路未检测到光,则向左纠正方向;若右路未检 测到光,则向右纠正方向。1.3电机控制与驱动模块设计由于采用的是双驱动的小车,这部分电路必须能够输出两个不同的电压值,分别去 控制小车的左、右两个驱动电机,使小车的两个车轮的转速和方向相同或不同,从而来 控制它的前进和转弯。在系统的
5、设计过程中,用两个l9110芯片来分别连接单片机和直 流电机。l9110是为控制和驱动电机设计的两通道推挽式功率放大专用集成电路器件, 将分立电路集成在单片ic之中,使外围器件成本降低,整机可靠性提高。该芯片有两 个ttl / cmos兼容电平的输入,具有良好的抗干扰性;两个输出端能直接驱 动电机的止反向运动,它具有较大的电流驱动能力,每通道能通过800ma的持续电流, 峰值电流能力可达1.52.0a;同时它具有较低的输出饱和压降与静态电流;内置 的钳位二极管能释放感性负载的反向冲击电流,使它在驱动继电器、直流电机、步进电 机或开关功率管的使用上安全可靠。循迹小车系统以常见的at89c51单片
6、机为核心,辅以较简单的元器件和电路设计, 在顺利完成循迹功能的前提下,又充分考虑到了外观、成本等问题,因此小车的大部分 电路由手工焊接完成。在设计中,我们没有在电路中增加兀余的功能,但是保留了各种 硬件接口和软件子程序接口,方便以后的扩展和开发。2.系统硬件设计2.1电机驱动模块设计在制作智能小车时,后左、右轮分别用两个转速和力矩基本完全相同的直流减速电 机进行驱动,车头前部装一个方向轮,然后通过t/0 口控制两个直流减速电机的转速 和转向就可以实现小车的左转、右转和直行。电机驱动采用一片集成电机驱动芯片l298no l298n是st公司的产品,内部包含4 通道逻辑驱动电路,是一种二相和四相电
7、机的专用驱动器,即内含二个h桥的高电压大 电流双全桥式驱动器,接收标准ttl逻辑电平信号,可驱动46v、2a以下的电机。2. 2寻迹模块设计寻迹模块主要由光电反射式传感器组成。光敏电阻的阻值随周围环境光线的变化而 变化,当光线照射到白线上面时,光线发射强烈;光线照射到黑线上面时,光线发射较 弱。因此当光敏电阻在口线和黑线上方时,阻值会发生明显的变化,将阻值的变化值经 过比较器就可以输出高低电平。但是这种方式受环境影响大,工作不稳定。本文实际采 用的是rpr220型反射式传感器制作的寻迹模块。rpr220是一种一体化反射型光电探测器,其发射器是一个m化镣红外发光二极管, 而接收器是一个高灵敏度硅
8、平面光电三极管。当发光二极管发岀的光反射冋来吋,三极 管导通并输出低电平。2. 3避障模块设计避障模块主要由红外反射式传感器组成。红外反射式传感器由1个红外发射管(发 射器)和1个光电二极管(接收器)构成,红外发射管发出的红外光在遇到反光性较强的 物体后被折回,被光电二极管接收,引起光电二极管光生电流的增大,将此变化转为电 压信号,就可以被处理器接收并处理。2. 4遥控模块设计本模块发射端采用高灵敏的h l - 5000型万能电视遥控器,接收端采用接收频率为 38khz的万能接收头1838,该模块与单片机接口非常方便。另外,对于经红外接收后的 编码信号,本系统设计吋运用at89c52单片微机的
9、外部中断来接收,信号的下降沿触 发外部中断。为了识别一个完整的键信号,必须对每一个编码脉冲的宽度进行测量,以 判别接收到的脉是0还是1,利用单片机中的定时器/计数器来测量脉冲宽度。定时器 /计数器的除分比是可以设定的,从除2到除204&可测量的脉冲宽度可达500m so本 文设定的除分比为12,即12分频,因为外部时钟约为12mh z,时钟周期为1 s,所以 定时器/计数器每计时一次为1 so2. 5报警模块设计报警模块的核心芯片选择110报警ic,可应用于汽车、摩托车、防盗器、个人防暴 器、门磁报警 器等场所。三.系统软件设计本系统软件采用模块化结构,由主程序、初始化子程序、屮断子程
10、序、延时子程序、 按键发音子程序、按键扫描子程序构成。3.1寻迹子程序设计寻迹模块设计是通过把左右光电传感器的输出端分别接到单片机的p2.2和p2.3引 脚上,单片机编程 产生pwm控制信号,通过l298控制电机的转速,让小车达到前进、 左转、右转及停止行驶的目的。3. 2避障子程序设计避障模块设计是通过把左右红外反射式传感器模块的输出端分别接到单片机的p20 和p21管脚上,然后通过单片机编程,产牛pwm控制信号,通过l298控制电机的转 速,让小车达到前进、左转、右转及停止行驶的目的。3. 3遥控子程序设计遥控模块设计是通过把红外接收头1838的输出端接到单片机的p32管脚上,然后用 万能
11、遥控器对其进行遥控,接着让单片机解码,产生pwm控制信号,通过l298控制 电机的转速,讣小车达到前进、左转、右转及停止行驶的目的。四总结采用单片机为核心,利用光电传感器和红外反射式传感器作为探测系统厂设计了可 以实现自动寻线行走、自动避障、报警以及遥控等功能的智能小车。该设计的显著优点 是电路简单、可靠性强、成本低,并口非常易于功能进一步完善和扩展。本文摘译自:华东师范大学电子科学技术系科技风2009年10期作者于江江 王敬 轩杨丰electric intelligent car based on scmthrough research and to realize a photoelect
12、ric sensor for sensitive components, with at89c51 as control core electric tracing of intelligent control carbonylation-the car, the system is also including de motor, l9110 chips and lm324 comparator etc. the design uses at89c51 as intelligent car core controllerothe system takes microcontroller as
13、 control core and realization of electric before enter, back, turn left and right turn function. through the angle sensor 1 detection the seesaw angle change, use incremental pi algorithm 2 to control the electric car for balance, and using photoelectric sensor detection black line, make the electri
14、city actuation vehicle in the course of driving keep linear motion and don't skip from atrium olproject designlight by a sensor, the reality of the electric car is moving quickly degrees, bit, buy, transportation line shape when measured quantity of real condition, and will be measured quantity
15、number according to preach sent to monolithic machine into line processing, but by single chip machine according to the measured by root different forms of several inspection according to real now to electric actuation vehicle wisdom can control system. this kind of square case can real now to elect
16、ric actuation vehicle dynamic shape state into the shipment do real possession in system, control system spirit alive, can depend, pure degree is high, can full foot of each item of the stockings to beg. (1) straight epidemiological speed is tasseled straight epidemiological speed department with pu
17、lse width modulation experience.meanwhile gather speed is experience.meanwhile, its main electrical pulse width modulation by road system type variable change device, jane says pwm variable change device. adjustable speed by in the department of pwm experience.meanwhile open shut frequency rate is h
18、igh, only on electricity barnado electricity sense of filter wave can be use to get to move very small straight pulse electric flow, electricity flow barnado electric capacity easily even tantras, department of low speed operation flat experience.meanwhile, adjustable speed stability van is surround
19、ed relatively wide, can reach 1 000 left right. by on electrical flow wave shape than v - m system, be in phase with flat to all electrical flow dynamic machine, electric heat consumption and hair loss than a small. with the sample by in open shut frequency rate is high, and if a fast speed of elect
20、rical machine ring should match close, fasten tasseled phase can be to get very wide frequency band, because of the fast speed ring should be good, dynamic configuration sexual can perturbation resistance can force is powerful. according to the root, with more thanensemble close and this set of elec
21、trical machine control project by tolerance of the quantity and electrical machine speed straight flow of hair, the exhibitor to adopt the project with a single extremely h type can be changed into change device inverse pwm line speed.li photoelectric detection module designthe intelligent car was s
22、tuck on the black line running on white paper nroad, so this module design need to detect shop on the black rubber belt drive area, including run straight along the arc district and driving district two area. because of the black and white paper to light reflection coefficient is different, can acco
23、rding to receive reflected light.the strength of the judge hroadn - the black line. this paper uses is simple and practical detection methods, namely the infrared detection method.infrared detection method, i.e. use infrared ray in different colors of physical surface with different reflection prope
24、rties characteristics. in the car driving process continually to the ground to launch the infrared, when the infrared met wh让e ground occurs when the reflected light, aimless and launch packed on the car of receiving tube receiving; if fruit is met black line is absorbed, and then the infrared cars
25、receiving tube receiving less than signall 2 signal comparative module designthis part design uses a lm324 comparator, of sensor signal voltage received compare and amplified, and will compare the results after feed to the microcontroller, used to detect sensor sensitivity, diagram shown in figure 5
26、 shows. when two sensors simultaneously detect light, straight forward. when the sensor cant detect light, in cut-off state, double lm324 operational amplifier output low level to microcontroller, by program processing, if left not detected light, then left correct direction; if the right has not be
27、en detected light, then turn correct direction.1. 3 motor control and driving module designbecause use is double drive cars, this part of the circuit must be able to output of two different voltage values, respectively to controlling trolley right and left two motor drive, the two of the wheel speed
28、 and direction of the same or different, thus to control its advance and turning. in system design process, use two l9110 chips to connect scm and de motor respectively. l9110 is for control and drive motor design two channels push-pull power amplifier application-specific integrated circuit device,
29、 discrete circuits in monolithic ic integrated such that the peripheral equipments in lower cost and the whole machine can cany on sexual high. the core slice two a ttl/cmos and let electricity flat lose into, have good anti-jamming, two output terminal can pick flooding dynamic electric machine str
30、aight to the shipment of positive reverse move and it has had a big electricity flow flooding dynamic can force, each call way can pass over 800ma continuous current, peak current capacity of 1. 5 0a; 2. at the same time it has lower output saturation pressure drop and the static electricity, the bu
31、ilt-in clamp a diode can release the perceptual load of reverse current impulse, making it the drive relays, de motors, stepping motor or switch power tube the use of safe and reliable.follow tracing car system to common at89c51, complementary with relatively simple components and circuit design, th
32、e smooth completion of follow under the premise of tracing function, and fully considered appearance, costs, so most of the circuit car by manual welding is complete. in the design, we never in a circuit increase redundant functions, but retained various hardware interface and software subroutines i
33、nterface to facilitate the expansion and development after.2. system hardware design2.1 motor driver module designin making intelligent car, after left, right wheel respectively with two speed and torque basic identical de motor driven deceleration, bolt-on trunk-lid spoiler department to install a
34、direction wheel, then through the i/o mouth to control two de slowing down motor speed and steering can be achieved on the car to the left, turn right and straight line.motor driver using a integrated electrical machine flooding dynamic core slice l 298n. l298n is st the product of the company, the
35、internal containing four channel logical drive circuit, it is a kind of two phase four phase motor drive, namely the special contains two h bridge of high voltage large current commander bridge type drive, acceptance criteria ttl logic level signals, be driven 46v, 2a below the motor.2. 2 tracing mo
36、dule designtracing module mainly composed by photoelectric sensor reflex. photoconductive resistance of the resistance of the light with the surrounding environment changes, when the ltt white lines above, light emission strongly; the ltt black line above, light emission are relatively weak. so when
37、 photoconductive resistance in white line and black line above the elements will occur significantly changes, the resistance changes value after comparator can output high level. but this way environmental influences big, work is not stable. this article actual use is rpr220 type reflex sensors made
38、 tracing module.rpr220 is an integration of reflective photoelectric detector, the transmitter is a gaas infrared light emitting diode and the receiver is a high sensitivity silicon photoelectric triode flat. when the light emitting diode reflected back, triode conduction and output low level.2. 3 o
39、bstacle avoidance module designobstacle avoidance module mainly composed by infrared reflection sensor. infrared reflection sensor by one infrared tubes (launchers) and 1 photoelectric diode (receiver) constitute, infrared tubes out to meet the infrared object reflective sex strong after be turned b
40、ack, by photoelectric diode receiving, cause photoelectric diode current increases, light born this change into voltage signal, it could be processor receives and processing.2. 4 remote control module designthis module will launch end uses high sensitive hl- 5000 type universal television remote con
41、trol, the receiver using receive frequency for 38kh z's receiving head 1838, this module and the single chip computer interface is very convenient. in addition, for the red outside meet after harvest of plait code letter number, the department tasseled set when shipped with project of at89c52 si
42、ngle chip microcomputer external interruption to receive, signal the falling edge of trigger external interruption. in order to recognize a complete key signal, must for each coding pulse width were measured with discriminant receives the pulse is! 0 v still! 1 v,the microcontroller timer/counter to
43、 measuring pulse width. timer/counter except points than can be set, from except 2 to except 204& measurable pulse width can reach 500m s. this paper set except points for 12, namely than 12 points frequency, because the external clock is about 12mh z, clock cycle for 1 s, so the timer/counter f
44、or 1 per timing once s.2. 5 alarm module designalarm module core chip 110 ic,can choose application in automobile, motorcycle, alarms, personal riot device, door magnetic alarm device and etc.3. system software designthis system software modular structure, the main program, initial anti-fuzzy procedures, interrupt subroutines, delay subroutines, buttons pronunciation subroutines, buttons scanning subroutines constitutes.3. 1 tracing subroutines designtracing module is designed by the left right photoelectric sensor output t
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 抖音火花部门直播互动率KPI考核标准合同
- 网络交易担保补充协议
- 高端国际商标注册与全球业务拓展代理合同
- 电子产品性能质检补充合同
- 烘焙品牌加盟连锁与高品质原料配送协议
- 混凝土委托协议书
- 舞蹈房搬迁退款协议书
- 村干部拆迁协议书
- 抖音企业号KOL网红合作年度运营合同
- 私募基金投资总监聘用及全球资产配置合同
- DGTJ08-9-2023 建筑抗震设计标准
- 输变电工程质量通病防治手册
- Siemens WinCC:WinCC远程访问与Web发布技术教程.Tex.header
- 2024年江西省中考生物·地理合卷试卷真题(含答案逐题解析)
- 企业管理-《资产减值损失的税务情况说明》
- 老年人智能手机使用教程课件
- 3.6.3关门车课件讲解
- 贵阳2024年贵州贵阳贵安事业单位招聘599人笔试历年典型考题及考点附答案解析
- IATF16949-COP-内部审核检查表+填写记录
- 实际控制人与法人协议模板
- 全屋家具定制合同
评论
0/150
提交评论