摘 要:Arduino UNO 控制多个LED 实验在硬件连接不变的情况下,通过改变程序实现多种特效,展现不同的效果。将各项功能封装成不同的模块,初始化模块和其他功能模块组合可实现不同的功能特效。通过项目实例化教学手段举一反三引导学生深入思考,加深理解,让学生敢于灵活使用和改变程序,使学习过程更加生动。通过对功能模块设计和分析,Arduino UNO控制多个LED 特效模块,达到操作使用简单明了,特效清晰直观的效果。
关键词:Arduino UNO;LED;项目实例化;模块化
中图分类号:TP211;TN873 文献标识码:A 文章编号:2096-4706(2020)22-0045-03
Arduino UNO Controls Multiple LEDs to Achieve Multiple Special Effects
LI Na1,MENG Dongxiao2
(1.Department of Mechanical and Electrical Engineering,Tianjin Hedong District Staff and Workers University,Tianjin 300162,China;2.Coficab(Tianjin)Co.,Ltd.,Tianjin 301726,China)
Abstract:Arduino UNO controls multiple LED experiments,under the condition that the hardware connection remains unchanged,various special effects are realized by changing the program to show different effects. The various functions are packaged into different modules,and the initialization module and other function modules are combined to achieve different function special effects.Through the teaching method of project instantiation,we can draw inferences from one instance,guide students to think deeply,deepen their understanding,let students dare to use and change the program flexibly,and make the learning process more vivid. Through the design and analysis of functional modules,Arduino UNO controls multiple LED special effect modules to achieve the effect of simple operation and clear and intuitive special effects.
Keywords:Arduino UNO;LED;project instantiation;modularization
参考文献:
[1] 黄焕林,丁昊. 从零开始学Arduino 电子设计 [M]. 北京:机械工业出版社,2018.
[2] 陈吕洲.Arduino 程序设计基础:第2 版 [M]. 北京:北京航空航天大学出版社,2015.
[3] 谭浩强.C 程序设计:第3 版 [M]. 北京:清华大学出版社,2005.
[4] 彭秋洁,刘凯磊,康绍鹏,等. 基于Arduino 的多功能自动跟随行李箱设计 [J]. 物联网技术,2020,10(8):63-65+70.
作者简介:
李娜(1984—),女,汉族,山东泰安人,教师,讲师,硕士研究生,研究方向:电气自动化;
孟东晓(1980—),男,汉族,山东聊城人,维修经理,工程师,学士学位,研究方向:电气自动化。