Data Sheet

19
Lesson7: Flame detect
Have you seen the fire-fighting robots? Why it can find the source of fire?In this lesson, we will
tell you the principle about it and you can make a robot like that.
Material:
Crowtail- ESP8266 NodeMCU x 1
Crowtail- Flame Sensor x 1
Crowtail- buzzer x 1
Hardware Connection
Open the LuaLoader, click the “Upload File…”choo se ESP8 266 NodeM CU kit demo
code -> P07_Flame_detect -> init.lua. After the upload completed then click “Download to
download the init.lua file.
Demo code:
a=gpio.read(2)
if (a==1) then
gpio.write(1,gpio.LOW)
if (a==0) then
gpio.write(1,gpio.HIGH)
end
end
When detect the flame, buzzer alarming. The adjustable resistance may be adjusted to vary
sensitivity of detection.
Lesson8: Motion Detect
Do you want to make something to detect movement , there is a PIR Motion Sensor that can
help you, when there is an object in its detection range and has a movement, this action will be
captured and respond as alarm or take photo.
Material:
Crowtail- ESP8266 NodeMCU x 1
Crowtail- PIR Motion Sensor x1
Crowtail- Buzzer x1
Hardware Connection