Difference between revisions of "Fire Evacuation Drill"
(→Programming) |
(→Required Program Block) |
||
Line 45: | Line 45: | ||
==Programming== | ==Programming== | ||
===Required Program Block=== | ===Required Program Block=== | ||
− | *[["Analog | + | *[["Analog write" program block]] |
*[["Delay" program block]] | *[["Delay" program block]] | ||
+ | |||
===Programming Thought=== | ===Programming Thought=== | ||
If you want to implement the effect of flashing of the LED, you need "analog output" program block to control the brightness of it, and "delay" program block to control the time interval. Through different brightness and time intervals, simulate the light flashing. | If you want to implement the effect of flashing of the LED, you need "analog output" program block to control the brightness of it, and "delay" program block to control the time interval. Through different brightness and time intervals, simulate the light flashing. |
Latest revision as of 10:24, 9 October 2016
ContentsOutlineLet us make a fire indicating light, which will flash unceasingly to warn people to leave at once when a fire appear. Suitable kits: mCookie102, mCookie202, mCookie302, IBC
Module BillModule
Other Equipment
Module Setup
ProgrammingRequired Program BlockProgramming ThoughtIf you want to implement the effect of flashing of the LED, you need "analog output" program block to control the brightness of it, and "delay" program block to control the time interval. Through different brightness and time intervals, simulate the light flashing. Programming1.LED is on for 1s in weaker brightness.
2.LED is on in relatively bright light for 1s
3.Link the two program blocks together, and choose the core and port to download the program.
Can It Be Played in Another WayQ: Can you set the fire alarming light of three kinds of brightness, and make it flash quicker at the same time? So that it will be easier to attract the intention of people.
FAQ
|