基于单片机的心形流水灯设计  被引量:2

Heart-shaped Running Light Design Based on Microcontroller

在线阅读下载全文

作  者:张扬 张妍 Zhang Yang;Zhang Yan(College of Information Engineering,Dalian Ocean University,Dalian Liaoning 116023)

机构地区:[1]大连海洋大学信息工程学院,辽宁大连116023

出  处:《现代工业经济和信息化》2021年第9期89-91,共3页Modern Industrial Economy and Informationization

基  金:大连海洋大学2020年大学生创新创业训练计划项目(项目编号B202010158041);大连海洋大学“课程思政”教学改革项目:电子信息类导论;大连海洋大学教育教学改革研究项目:基于应用型人才培养的数字信号处理教学改革。

摘  要:随着时代的推移,许多产品在保证其性能的前提下也开始变得越来越美观。其中LED流水灯的应用也越来越广泛起来。利用单片机进行控制使得LED产生流水效果由于成本低廉,操作便捷而便备受青睐。本文选择使用C51单片机利用C语言编程控制LED小灯的闪烁,利用单片机P0-P3口输出的高低电平差异使得不同的小灯发生不同的明暗变化从而产生流水的效果。并引入循环语句和分值语句完成流水灯样式的循环和自动切换。With the passage of time,many products have started to become more and more beautiful while ensuring their performance.Among them,the application of LED flowing lights is also becoming more and more widespread.The use of microcontrollers to control LEDs to produce the effect of running water is very popular because of the low cost and easy operation.In this paper,we choose to use C51 microcontroller to control the flashing of LED lights using C language programming,and use the difference between the high and low levels of the output of the P0-P3 ports of the microcontroller to make different lights change to produce the effect of flowing water.It also introduces the loop statement and fractional statement to complete the cycle and automatic switching of the flowing light style.

关 键 词:流水灯 单片机 C语言 LED小灯 

分 类 号:TP212[自动化与计算机技术—检测技术与自动化装置]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象