毕业论文-太阳能LED交通警示板设计01032.doc

上传人:韩长文 文档编号:3939622 上传时间:2019-10-10 格式:DOC 页数:36 大小:261.52KB
返回 下载 相关 举报
毕业论文-太阳能LED交通警示板设计01032.doc_第1页
第1页 / 共36页
毕业论文-太阳能LED交通警示板设计01032.doc_第2页
第2页 / 共36页
毕业论文-太阳能LED交通警示板设计01032.doc_第3页
第3页 / 共36页
毕业论文-太阳能LED交通警示板设计01032.doc_第4页
第4页 / 共36页
毕业论文-太阳能LED交通警示板设计01032.doc_第5页
第5页 / 共36页
点击查看更多>>
资源描述

《毕业论文-太阳能LED交通警示板设计01032.doc》由会员分享,可在线阅读,更多相关《毕业论文-太阳能LED交通警示板设计01032.doc(36页珍藏版)》请在三一文库上搜索。

1、烟台南山学院毕业设计(论文) 太阳能太阳能 LEDLED 交通警示板设计交通警示板设计 摘摘 要要 本设计采用软硬件结合的方式实现,硬件电路主要包括:充电电路(带充电保 护功能) 、放电保护电路、传感电路、计数与显示电路、稳压电路、A/D 转换电路、 太阳能光伏板自动跟踪控制系统七个模块。AT89S52 单片机是整个系统的核心部件, 通过软件控制多个硬件电路的执行。在编程时根据模块化的设计思路,采用 C51 语 言来编写程序,主要包括:昼夜的判断、白天时通过车辆的计数并用 LED 动态显示、 夜间警示 LED 闪烁、防瞬时光照、控制电机跟踪、恢复电机到初始位置等模块。 设计中实现了白天计数,晚

2、上闪烁,在光控开关控制下,白天开启、晚上关闭 的功能,以及防闪电、车灯干扰的功能,并加有过充、过放保护装置。除上述发挥 部分外,又新增两个功能:将太阳能光伏板安装在电机上,白天时通过控制电机旋 转来跟踪太阳,充分利用太阳能,对电池进行充电;黑夜到来时,将电机复位到初 始状态,第二天重新对太阳进行跟踪。 关键字:充电,保护,单片机,计数显示 The LED Solar Traffic Warning Board Design Abstract This design uses the way realization which the software and hardware unifies,

3、 the hardware electric circuit mainly includes: The charging circuit (belt charge protection function), the electric discharge protection circuit, the sensing circuit, the counting and the display circuit, the voltage-stabilizer circuit, the A/D switching circuit, the solar energy light bend down th

4、e board automatic following control system seven modules. The AT89S52 monolithic integrated circuit is the overall system core part, controls many hardware electric circuit through the software the execution. When programming acts according to modular the design mentality, uses the C51 language to c

5、ompile the procedure, mainly includes: When diurnal judgment, daytime through the vehicles counting and with the LED dynamic demonstration, at night police shows the LED twinkle, guards against the instantaneous illumination, the control electrical machinery track, restores the electrical machinery

6、to modules and so on initial point. In the design realized the daytime to count, evening glittered, controlled under the switch control in the light, daytime opened the function which, the evening closed, as well as guarded against the function which the lightning, the headlight disturbed, and Canad

7、a had has imitated has put the protective device. Besides above display part, also increases two functions: Bends down the board the solar energy light to install on the electrical machinery, when daytime tracks the sun through control electrical machinery revolving, uses the solar energy fully, car

8、ries on the charge to the battery;When dark night arrivals, repositions the electrical machinery to the original state, second days carry on the track again to the sun. Key words: : Charge,Protection,Monolithic integrated circuit 目 录 第 1 章 绪 论1 1.1 设计的目的和意义1 1.2 设计任务与要求1 第 2 章 方案设计选择2 第 3 章 系统设计.4 3

9、.1 系统硬件设计.4 3.1.1 充电电路(带充电保护功能)4 3.1.2 放电保护电路.5 3.1.3 传感电路6 3.1.4 计数、显示电路.7 3.1.5 稳压电路8 3.1.6 A/D 转换电路.9 3.1.7 太阳能光伏板自动跟踪控制系统.10 3.2 系统软件设计.12 3.2.1 昼夜判别12 3.2.2 白天时段流程图.13 3.2.3 黑夜时段流程图.15 第 4 章 系统调试.17 4.1 充电电路部分.17 4.2 放电保护电路部分17 4.3 计数、显示电路17 4.4 稳压电路17 4.5 太阳能光伏板自动跟踪控制系统.17 4.6 总系统运行调试18 结 论 19

10、 致 谢 20 参考文献21 附录 A 具体程序.22 附录 B 总原理图29 烟台南山学院毕业设计(论文) 第 1 页 第 1 章 绪 论 1.1 设计的目的和意义 太阳能 LED 交通警示板具有不用电、节能、快闪等特点,适合不便于安装交 流电源的路段,主要设置在路口、桥头等,夜间自身能够频闪红色光亮,提示过往 车辆注意行驶安全,特别是在能源短缺的我国更加具有实用价值。1 我所设计的太阳能 LED 交通警示板,能够全自动跟踪太阳,最大限度的将太阳 能转化为电能,通过蓄电池的贮能保证了警示板夜间的正常工作,甚至可以为其他 电器设备供电;同时还设计了充放电保护电路,延长了蓄电池的使用寿命,减小了

11、 故障发生的概率,为电路的实际应用做好了准备;通过对来往车辆的计数可以准确 的把握路段的交通状况,为疏导交通配合整顿交通秩序提供了依据。 1.2 设计任务与要求 1.设计任务 设计并制作一个交通警示板。该装置以太阳能为能源,铅酸蓄电池为储能部件 和电路工作电源。该警示板设置在夜间有事故隐患的路段,LED 不间断地闪烁。白 天可关闭。 2.设计要求 基本要求: (1)设计并制作太阳能光伏板对电池的充电装置。 (2)设计并制作以电池为电源的 LED 闪烁工作的装置。 (3)设计并制作以太阳能光伏板为传感器的光控电路,控制 LED 在白天关闭、 夜间开启。 发挥部分: (1)在基本要求的基础上,利用

12、 LED 作显示单元,设计制作该路段的白天通 过车辆数量的传感、计数、显示装置。最大显示数为 99。该装置在光控开关控制下, 白天开启、晚上关闭。 (2)给蓄电池加上充、放电保护装置。防止过充电和过放电。 (3)给光控电路增加避免瞬时光照(如夜间闪电、过往车辆灯光等)引起误动 作的功能电路。 烟台南山学院毕业设计(论文) 第 2 页 第 2 章 方案设计选择 方案一:模数结合 本设计可以单纯地通过模拟电路和数字电路相结合实现计数值的显示、直流电 机的驱动和控制等功能。在太阳能光伏板经充电电路对铅酸蓄电池进行充电后,由 该电池经放电保护电路对各模拟电路与数字电路供电,计数与显示电路主要是用集 成

13、计数器 CC40161、74LS48BCD 译码器和显示器组成,所计数值由光电传感器组成 的传感电路的脉冲提供。直流电机由三极管设计的 H 桥电路进行驱动,两端加光敏 电阻,通过 I-V 转换电路经 OP07 比较两者的大小来控制电机的左右旋转。经过以 上的方案大体可以实现设计要求。2 方案二:软硬结合 本设计还可以用软硬件结合的方式来实现,即通过单片机来设计一个总的控制 系 统。在由太阳能光伏板经充电电路对蓄电池进行充电后,蓄电池经放电保护电路和 稳压电路对单片机供电,单片机通过软硬件控制计数与显示电路、太阳能光伏板自 动跟踪控制系统等模块,其中的计数脉冲由传感电路(反射式光电传感器)从警示

14、 板所放路段中感应到车辆通过后提供给单片机,计数值又经三极管驱动后送到显示 器中显示,通过对单片机程序的编写可实现 LED 在晚上以“日”字形闪烁,同时还 能防止瞬时光照(如闪电、车灯)的干扰。为了降低蓄电池的工作电流,延长电池 工作时间,可通过夜间只显示一个数码管、将数码管的亮度调得较暗、将单片机特 殊功能寄存器 PCON 的第五位PCON.4 置 1 等途径来实现。 在太阳能光伏板自动跟踪太阳的控制系统中,我们可以通过脉冲来产生 PWM 信号、再通过程序控制电机左右旋转,驱动电路采用 H 桥电路,当由白天进入黑夜 后,电动机经软硬件控制 回到初始位置,等待新一天的开始。 通过两个方案的比较

15、,虽然都可以实现设计任务,但是前者使用器件比较多, 电路比较复杂。而后者相对来说比较简洁,控制比较方便,软件编程是主要设计的 任务,经过综合比较我们应该选择后者,总的系统框图如图 2.1 所示: 烟台南山学院毕业设计(论文) 第 3 页 太阳能光 伏板 充电电路 铅酸蓄电池 放电保护电 路 传感电路 单 片 机 计数、显示电路 太阳能光伏板自 动跟踪控制系统 A/D 转换电路 稳压电路 图 2.1 总的系统框图 烟台南山学院毕业设计(论文) 第 4 页 第 3 章 系统设计 3.1 系统硬件设计 3.1.1 充电电路(带充电保护功能) 充电电路是本次设计的基础,也是各部分电路工作的前提。 方案

16、一:恒流充电 恒流充电是充电过程中充电电流保持恒定的充电方法。阶段恒流充电是改进的 恒流充电,开始阶段用较大的恒定电流充电,当被充电电池的端电压达到预定值后 便转入较小的恒定电流充电阶段,直至充电结束。 方案二:全自动充电 利用 555 时基集成电路,设计一个简单、可靠、实用的全自动充电电路。将 555 集成时基电路 2 脚的电压调为 5.5V,这样当蓄电池电压低于 5.5V 时,充电器开 始对蓄电池电充电,此时 3 脚输出电压高于 6V;将 555 时基集成电路 6 脚的电压调 为 6.6V,这样当蓄电池电压高于 6.6V 时,此时 3 脚电压输出为零伏,充电器停止 对蓄电池电充电。 其中的

17、 D1 为二极管,型号是 IN4007,相当于开关的功能,在电路中起到充电 保护的作用。当蓄电池电压低于 5.5V 时,D1 导通,充电器开始对蓄电池电充电; 反之, 1K R1 4.3K R21K R4 50K P2 1K R3 D1 2CW132 1 2 3 4 5 6 8 NE555 50K P1 Vi GND 10K R5 GND Vo 图 3.1 充电电路 烟台南山学院毕业设计(论文) 第 5 页 当蓄电池电压高于 6.6V 时,D1 截止,该器件还实现了对蓄电池防过充电的保 护功能。其具体的充电电路如图 3.1 所示: 根据基本要求中的第 1 条,我们要通过太阳能光伏板对铅酸蓄电池

18、进行充电, 所采集到的电压不一定恒定,因此电流也不恒定,且从这些实际出发,选择方案二 较佳。 3.1.2 放电保护电路 为了防止蓄电池在给其他电路供电的过程中造成过放电的现象,应在电池引出 来的线后紧跟一个放电保护电路3,如图 3.2 所示: 500K R1 R4 560K D1 2CW130 R2 4.7K R3 10K Q1 QNPN 2 3 6 47 1 8 5 3140 R5 3K 12 LED3 GND 1 2 3 4 5 6 7 J 8 GND Vi 图中的 Vi从蓄电池两端直接引入,通过选定稳压管 D1、电阻 R1 、电阻 R2 和 电阻 R4 的值可以设定蓄电池电压降到某一值

19、X 以后进行放电保护,在电压低于 X 时由继电器实现防过放电的功能。图中的运算放大器 3140 为比较器,将 2 脚的输入 电压与 3 脚的基准电压进行比较,当 V2V3,表明此时的 ViX,6 脚输出低电平, 图 3.2 放电保护电路 烟台南山学院毕业设计(论文) 第 6 页 继电器的常开开关与常闭开关仍保持原状,发光二极管 LED3(红色)不亮;反之, 当 V2 #include #include /绝对地址访问库 #include #define uchar unsigned char #define uint unsigned int #define ulong unsigned lo

20、ng #define ch0 XBYTE0x7FF8 #define ch1 XBYTE0x7FF9 #define ch2 XBYTE0x7FFA sbit ledL=P13; /定义字位低 sbit ledH=P14;/定义字位高 sbit EOC=P12;/定义字位高 sbit motor1=P10;/电机启动 sbit motor2=P11;/正反转 sbit east=P32; sbit west=P33; uchar adbuffer;/ uchar ch1buf; uchar ch2buf; uchar absolute; int num;/计数 uchar buffer2;/定

21、义显示缓冲区 uchar reg; 烟台南山学院毕业设计(论文) 第 22 页 uchar code TABLE1=0xc0,0xF9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90;/字 形 /* 延时函数, 延时单位 1ms */ void delay(int MS) int us,usn; while(MS!=0) usn = 2; while(usn!=0) us=0xf0; while (us!=0)us-; usn-; MS-; /* 16 进制转换成 BCD 码, 参数: 16 进制数 返回值:重量信号数组 weight */ uchar HEX_

22、TO_BCD(uchar temp1) uint div; uchar i; 烟台南山学院毕业设计(论文) 第 23 页 div=10; for(i=0;i=0xcc)/白天 reg=TL0; if (reg=0x63) TL0=0x00; /计数归零 HEX_TO_BCD(reg); ledL=0; P2=TABLE1buffer0; delay(1); 烟台南山学院毕业设计(论文) 第 25 页 ledL=1; ledH=0; P2=TABLE1buffer1; delay(1); ledH=1; ch1=0x00;/ch1 启动 delay(1); if(EOC=0) ch1buf=ch

23、1; ch2=0x00;/ch1 启动 delay(1); if(EOC=0) ch2buf=ch2; absolute=abs(ch1buf-ch2buf); if (absolute=0x06) if (ch1buf=ch2buf) motor2=1;/向右转 /motor1=1;/启动 else motor2=0;/向左转 /motor1=1;/启动 烟台南山学院毕业设计(论文) 第 26 页 if (motor2=0) else motor1=1; else motor1=0; else/黑夜 motor2=0; if (east=0) motor1=0; else /motor2=0

24、; motor1=1; TL0=0x00; /黑夜中,计数清零 switch(num)/消除干扰 case 0: break; default: ch0=0x00;/启动 烟台南山学院毕业设计(论文) 第 27 页 delay(1); if(EOC=0) adbuffer=ch0; if (reg=0x63) num=num-1; else num=1000; P2=0x00;/闪烁 ledL=0; ledH=1; delay(250); ledL=1; P2=0xff; ledH=0; delay(250); ledH=1; 附录 B. 总原理图 1 1 2 2 3 3 4 4 DD CC

25、BB AA Title NumberRevisionSize A4 Date:2006-12-4Sheet of File:E:保保保保保保保.SCHDOCDrawn By: P1.0/T2 1 P1.1/T2EX 2 P1.2 3 P1.3 4 P1.4 5 P1.5 6 P1.6 7 P1.7 8 RST 9 P3.0/RxD 10 P3.1/TxD 11 P3.2/INT0 12 P3.3/INT1 13 P3.4/T0 14 P3.5/T1 15 P3.6/WR 16 P3.7/RD 17 XTAL2 18 XTAL1 19 VSS 20 P2.0/A8 21 P2.1/A9 22 P

26、2.2/A10 23 P2.3/A11 24 P2.4/A12 25 P2.5/A13 26 P2.6/A14 27 P2.7/A15 28 PSEN 29 ALE 30 EA/VPP 31 P0.7/AD7 32 P0.6/AD6 33 P0.5/AD5 34 P0.4/AD4 35 P0.3/AD3 36 P0.2/AD2 37 P0.1/AD1 38 P0.0/AD0 39 VCC 40 U? P89C52X2BN IN3 1 IN4 2 IN5 3 IN6 4 IN7 5 START 6 EOC 7 D3 8 OE 9 CLK 10 VCC 11 VREF+ 12 GND 13 D1

27、14 D2 15 VREF- 16 D0 17 D4 18 D5 19 D6 20 D7 21 ALE 22 ADD C 23 ADD B 24 ADD A 25 IN0 26 IN1 27 IN2 28 U? ADC0809CCN 4 CLK 3 D 2 1 Q 5 Q 6 CLR PR U?A SN74HC74D 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 OE 1 LE 11 D0 3 Q0 2 D1 4 Q1 5 D2 7 Q2 6 D3 8 Q3 9 D4 13 Q4 12 D5 14 Q5 15 D6 17 Q6 16 D7 18 Q7 19 VDD 20 GN

28、D 10 U? MC74HC373AN 0 1 2 3 4 5 6 7 1 2 3 U?A MC74HC00AD 1 2 3 U?A MC74HC00AD 12 Y? 12HZ 30pF C? Cap 30pF C? Cap 33UF C? Cap Pol2 1K R? Res2 +5 Q? 2N3904 1K R? Res2 1K R? Res2 100K R4 * 100K R5 * 100 R1 * 510 R2 * 510 R3 * +5 * 保保 * TAIYANGNENG DIANCHI 保保保保保保 保保保保保保 P1.3 a bf c g d e VCC1 2 3 4 5 6

29、7 a b c d e f g 8 dp dp 9 10 NC DS1 Dpy Red-CA a bf c g d e VCC1 2 3 4 5 6 7 a b c d e f g 8 dp dp 9 10 NC DS2 Dpy Red-CA +5V+5V Q2 PNP Q1 PNP 510 R3 Res2 510 R4 Res2 510 R2 Res2 510 R1 Res2 P1.4 1 2 3 4 * R1R2 +5V VCC 1K R3 * Q1 * 6v保保保 DC-DC保保保保 保保保保 保保保保保保 ag an employment tribunal clai Emloyment

30、 tribunals sort out disagreements between employers and employees. You may need to make a claim to an employment tribunal if: you dont agree with the disciplinary action your employer has taken against you your employer dismisses you and you think that you have been dismissed unfairly. For more info

31、rmu, take advice from one of the organisations listed under Further help. Employment tribunals are less formal than some other courts, but it is still a legal process and you will need to give evidence under an oath or affirmation. Most people find making a claim to an employment tribunal challengin

32、g. If you are thinking about making a claim to an employment tribunal, you should get help straight away from one of the organisations listed 烟台南山学院毕业设计(论文) 第 28 页 under Further help. ation about dismissal and unfair dismissal, see Dismissal. You can make a claim to an employment tribunal, even if y

33、ou havent appealed against the disciplinary action your employer has taken against you. However, if you win your case, the tribunal may reduce any compensation awarded to you as a result of your failure to appeal. Remember that in most cases you must make an application to an employment tribunal wit

34、hin three months of the date when the event you are complaining about happened. If your application is received after this time limit, the tribunal will not usually accept i. If you are worried about how the time limits apply to you If you are being represented by a solicitor at the tribunal, they m

35、ay ask you to sign an agreement where you pay their fee out of your compensation if you win the case. This is known as a damages-based agreement. In England and Wales, your solicitor cant charge you more than 35% of your compensation if you win the case. youre clear about the terms of the agreement.

36、 It might be best to get advice from an experienced adviser, for example, at a Citizens Advice Bureau. To find your nearest CAB, including those that give advice by e-mail, click on nearest CAB. For more information about making a claim to an employment tribunal, see Employment tribunals. The (lack

37、of) air up there Watch m Cay man Islands-based Webb, the head of Fifas anti-racism taskforce, is in London for the Football Associations 150th anniversary celebrations and will attend Citys Premier League match at Chelsea on Sunday. “I am going to be at the match tomorrow and I have asked to meet Ya

38、 ya Toure,“ he told BBC Sport. “For me its about how he felt and I would like to speak to him first to find out what his experience was.“ Uefa has opened disciplinary proceedings against CSKA for the “racist behaviour of their fans“ during Citys 2-1 win. Michel Platini, president of European footbal

39、ls governing body, has also ordered an immediate investigation into the referees actions. CSKA said they were “surprised and disappointed“ by Toures complaint. In a statement the Russian side added: “We found no racist insults from fans of CSKA.“ Age has reached the end of the beginning of a word. M

40、ay be guilty in his seems to passing a lot of different life became the appearance of the same day; May be back in the past, to oneself the paranoid weird belief disillusionment, these days, my mind has been very messy, in my mind constantly. Always feel oneself should 烟台南山学院毕业设计(论文) 第 29 页 go to do

41、 something, or write something. Twenty years of life trajectory deeply shallow, suddenly feel something, do it. 一字开头的年龄已经到了尾声。或许是愧疚于自己似乎把转瞬即逝的很多 个不同的日子过成了同一天的样子;或许是追溯过去,对自己那些近乎偏执的怪异 信念的醒悟,这些天以来,思绪一直很凌乱,在脑海中不断纠缠。总觉得自己似乎 应该去做点什么,或者写点什么。二十年的人生轨迹深深浅浅,突然就感觉到有些 事情,非做不可了。 The end of our life, and can meet

42、many things really do? 而穷尽我们的一生,又能遇到多少事情是真正地非做不可? During my childhood, think lucky money and new clothes are necessary for New Year, but as the advance of the age, will be more and more found that those things are optional; Junior high school, thought to have a crush on just means that the real grow

43、th, but over the past three years later, his writing of alumni in peace, suddenly found that isnt really grow up, it seems is not so important; Then in high school, think dont want to give vent to out your inner voice can be in the high school children of the feelings in a period, but was eventually

44、 infarction when graduation party in the throat, later again stood on the pitch he has sweat profusely, looked at his thrown a basketball hoops, suddenly found himself has already cant remember his appearance. 童年时,觉得压岁钱和新衣服是过年必备, 但是随着年龄的推进,会越来越发现,那些东西根 本就可有可无;初中时,以为要有一场暗恋才意味 着真正的成长,但三年过去后,自己心平气和的写 同

45、学录的时候,突然就发现是不是真正的成长了, 好像并没有那么重要了;然后到了高中,觉得非要 吐露出自己的心声才能为高中生涯里的懵懂情愫划 上一个句点,但毕业晚会的时候最终还是被梗塞在 了咽喉,后来再次站在他曾经挥汗如雨的球场,看着他投过篮球的球框时,突然间 发现自己已经想不起他的容颜。Originally, this world, can produce a chemical reaction to an event, in addition to resolutely, have to do, and time.原来,这个世界 上,对某个事件能产生化学反应的,除了非做不可的坚决,还有,时间。

46、A persons time, your ideas are always special to clear. Want, want, line is clear, as if nothing could shake his. Also once seemed to be determined to do something, but more often is he backed out at last. Dislike his cowardice, finally found that there are a lot of love, there are a lot of miss, li

47、ke shadow really have been doomed. Those who do, just green years oneself give oneself an arm injection, or is a self-righteous spiritual. 一个人的时候,自己的想法总是特别地清晰。想要的,不想要的,界限明 确,好像没有什么可以撼动自己。也曾经好像已经下定了决心去做某件事,但更多 的时候是最后又打起了退堂鼓。嫌恶过自己的怯懦,最终却发现有很多缘分,有很 多错过,好像冥冥之中真的已经注定。那些曾经所谓的非做不可,只是青葱年华里 自己给自己注射的一支强心剂,或者说

48、,是自以为是的精神寄托罢了。 At the moment, the sky is dark, the air is fresh factor after just rained. Suddenly thought of blue plaid shirt; Those were broken into various shapes of 烟台南山学院毕业设计(论文) 第 30 页 stationery; From the corner at the beginning of deep friendship; Have declared the end of the encounter that havent start planning. Those years, those days of

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 其他


经营许可证编号:宁ICP备18001539号-1