基于单片机的红外遥控小车控制电路的设计(共49页).doc
《基于单片机的红外遥控小车控制电路的设计(共49页).doc》由会员分享,可在线阅读,更多相关《基于单片机的红外遥控小车控制电路的设计(共49页).doc(49页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、精选优质文档-倾情为你奉上目 录专心-专注-专业基于单片机的红外遥控小车控制电路设计设计总说明 红外线是近距离、高速无线通信的一种手段,一直以来,红外遥控、遥测技术在玩具生产、家电制造及工业测控等领域得到了广泛的应用.作为近距离、室内通信的手段,红外线具有无线电无法比拟的优势.因此,遥控加智能的技术研究、应用都是非常有意义而且有很高的市场价值的。红外遥控的特点是利用红外线进行点对点通信的技术,不影响周边环境,不干扰其他电器设备。通过基于单片机的控制指令来对多种设备进行远程控制,可以选择不同的按键来控制不同的设备,从而方便快捷的实现远程控制。智能小车的控制在科研等各个领域中都被广泛的应用,具有很
2、大的实用价值。 本设计就是利用红外线及单片机系统对小车进行无线控制,通过红外灯发送无线红外信号,通过红外接收器接收信号经过单片机处理对电机进行控制,进而实现小车的动作。该系统以P06单片机为核心,采用低功耗8位微处理器高速CMOS技术。拥有电气一次可编程存储器和数记忆。p06适用于在嘈杂的环境中工作因此,它是适用于家用电器电机控制中的应用。因为p06工作在一个非常低的电流消耗,它在低功耗的应用是有利的,如远程控制器和电池供电系统。红外线通讯的发送部分主要是把待发送的数据转换成一定格式的脉冲,然后驱动红外发光管向外发送数据。接收部分则是完成红外线的接收、放大、解调,还原成同步发射格式相同,但高、
3、低电位刚好相反的脉冲信号,其主要输出TTL兼容电平。最后通过解码把脉冲信号转换成数据,从而实现数据的传输。红外线接收器是一种可以接收红外信号并能独立完成从红外线接收到输出与TTL电频信号兼容的器件,体积和普通的塑封三极管差不多,适合于各种红外线遥控和红外线数据传输。主要硬件电路包括:(1) 单片机模块:对红外信号进行处理,控制设计功能的实现。(2) 按键模块:包括四个按键,表示小车的动作即前进、后退、左右转动。(3) 无线红外信号的发送及接收模块:按键按下时红外发射管发送红外信号,红外接收器接收到信号后送入单片机处理。(4) 四个选项通道:发送和接收部分别带有四个选项开关,进项选择控制,当发送
4、与接收选择同一通道时才能正确的发送和接收信号。只有接收端的地址码和发射端的地址码设置完全相同,输出端才有输出信号。解码芯片 将数据输入端接收到的信号,经内部电路解码辨识确认。如果所接收到的信号地址码与本机地址编码相同,AUXOUT1AUXOUT4 输出与无线电发射系统所发射的相对应的开关信息给单片机电路,由单片机控制相应的开关电路动作。否则,解码芯片不解码,单片机电路不响应。(5)电机的正反转控制模块:对单片机输出的控制信号进行放大处理通过改变两对大功率PNP、NPN三极管的导通,控制流入直流动电机里的电流方向。以实现直流电动机的正反转。工作时两对三极管为了避免发热过多损坏和对电机造成不良影响
5、等问题采用大功率三极管,通过控制三极管的基极的高低电位使一对PNP或NPN导通即可控制电流的方向实现直流电机正反转。设计中的软件部分要求实现发送装置的按键控制、接收装置的输出控制、发送与接收的通道检测控制。发送信号采用载波38KHZ进行发送,接收装置有相应的延时时间。本系统采用的是上电复位的复位方式。本设计要求作出实物,所以要求每步的设计都具有可行性,不只是单单的只停留在原理阶段。要想做出实物PCB电路板的制作是非常重要的一部分,要进行电路板的设计,采用Protel99se进行原理图和PCB图的设计,作出实际符合要求可行的电路板。其次就是选择元器件进行焊接调试,随着设计的进行发现用LED发光二
6、极管来代替电机来实现功能的指示更加方便可行,因此就用四个发光二极管来指示小车的前进后退左右转的动作。最后通过调试发送装置能在六米左右的范围内对接收装置进行控制。该系统具有结构简单,低功耗,抗干扰性强等特点,能准确的达到对小车的控制目的。关键词:红外线;单片机;小车;控制IntroductionInfrared ray is a means of near distance, high-speed wireless communication,All along, the infrared remote control, remote sensing technology has been wi
7、dely used in the production of toys, home appliances and industrial control etc.As a close distance, indoor communication means, has the incomparable advantage of infrared radio Therefore, remote control and intelligent technology research, application is very meaningful and very high market value.C
8、haracteristics of infrared remote control is the point to point communication technology using infrared, does not affect the surrounding environment, does not interfere with other electric equipment.Through the control instruction based on single-chip microcomputer for remote control of a variety of
9、 equipment, can choose different buttons to control the different devices, thus convenient remote control.Intelligent vehicle control has been widely used in scientific research in various fields, and has great practical value. This design is the use of infrared and single-chip microcomputer system
10、for wireless control of the car, through the wireless infrared signals to control the car.P0X is an 8-bit microprocessor with low-power and high-speed CMOS technology. It is equipped with an electrical one time programmable memory and a data memory.P0X is designed to work in noisy environment。Theref
11、ore, it is suitable to be used in application of home appliance motor control. Because P0X operates in a very low current consumption, it is advantageous in low-power application, like remote controller and battery-powered system.This design is the use of infrared and single-chip microcomputer syste
12、m for wireless control of the car, through the wireless infrared signal transmitted by infrared light, infrared receiver receives the signal through the MCU to control the motor, and then realize the car movement. The system uses P06 microcontroller as the core, using low-power 8 bit microprocessor
13、speed CMOS technology. Have electrical one-time programmable memory and memory. P06 is applicable to working in a noisy environment therefore, it is suitable for use in motor control of the household electric appliances. Because P06 consumption at a very low current, its application in low power con
14、sumption is beneficial, such as remote controller and battery power supply system. The sending part of infrared communication is mainly for conversion of the data to be transmitted into pulse a certain format, and then drive the infrared emitting tube out data. The receiving part is to complete the
15、infrared receiving, amplification, demodulation, restore the synchronous firing of the same format, but the high and low potential, just the opposite of the pulse signal, the output TTL compatibility level. Finally the pulse signal into data by decoding, thus achieving data transmission. The infrare
16、d receiver is a kind of can receive infrared signals and can independently from the infrared receiver to output and TTL power frequency signal compatible devices, volume and plastic triode ordinary tube almost, suitable for all kinds of infrared remote control and infrared data transmission.The main
17、 hardware circuit includes:(1)SCM module: carries on processing to the infrared signal, realize the control function.(2)The key module: includes four keys, said car motion forward and backward, turning left and right.(3)Wireless infrared signal transmitting and receiving module: the infrared emissio
18、n tube infrared signal is sent when a button is pressed, the infrared signal received by the receiver into the SCM treatment.(4)The four option channel: sending and receiving part dont with four options, select the control input, and the received signal when sending and receiving the same channel to
19、 send the correct. Only address code and transmitter receiver address code set up exactly the same, the output is the output signal. Decoding chip data input signal end received, confirmed by the internal circuit decoding identification. If the signal received by the address code and the address of
20、the machine code the same, emission of the AUXOUT1AUXOUT4 output and radio transmission system corresponding to the switch information to the microcontroller circuit, MCU control switch circuit corresponding action. Otherwise, decoding chip is not decoded, the singlechip circuit does not respond.(5)
21、Positive inversion control module, motor control signal for the microcontroller output: the amplified by changing the two pairs of large power PNP, a NPN triode conduction, control flows into the DC current direction of the motor. In order to achieve positive DC motor. When the two pair of transisto
22、rs in order to avoid too much heat damage and adverse effects on motor problems with large power triode, through the high and low potential control triode base to make a pair of PNP or NPN conduction can control the direction of the current implementation The software part of the design to realize t
23、ransmitting device, receiving device keys to control output control, sending and receiving channel detection control. Send a signal with carrier 38KHZ transmitting, receiving device with a delay time corresponding. This system is used in the way of reduction on reset. The design requirements to make
24、 real, so that each step of the design is feasible, not just only stay in the theory stage. Production to make real PCB circuit board is an important part, in order to design a circuit board, designed by Protel99se for schematic diagram and PCB diagram, to meet the requirements of circuit board is f
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 基于 单片机 红外 遥控 小车 控制电路 设计 49
限制150内