当前位置:网站首页>Arduino flame sensor (with code)
Arduino flame sensor (with code)
2022-06-23 05:10:00 【Loading_ create】
Flame sensor wiring
Flame module modules and numbers 13 The interface comes with LED Build a simple circuit , Make a flame light . Use numbers 13 The interface comes with LED, Connect the flame sensor to the digital 3 Interface , When the flame sensor senses a key signal ,LED bright , On the contrary, it will extinguish ..
Here's the picture :
Routine source code :
int Led=13;// Definition LED Interface
int buttonpin=3; // Define the flame sensor interface int val;// Define digital variables val
void setup()
{
pinMode(Led,OUTPUT);// Definition LED Is the output interface
pinMode(buttonpin,INPUT);// Define the flame sensor as the output interface
}
void loop()
{
val=digitalRead(buttonpin);// Connect the digital interface 3 Read the value assigned to val
if(val==HIGH){
// When the flame sensor detects a signal ,LED flashing
digitalWrite(Led,HIGH);
}
else{
digitalWrite(Led,LOW);
}
}
If help , Please praise the collection , In case of problems , Please send a private message directly .
边栏推荐
- UI自动化定位利器-xpath实战
- 396. mine site construction
- Official download and installation of QT and QT vs tools plug-ins
- 【毕业季_进击的技术er】送别过去两年迷茫的自己。重整旗鼓,大三我来啦
- DO280OpenShift命令及故障排查--常见故障排除和章节实验
- 【C语言】关键字
- Seven year manong Road
- 飞桨框架v2.3发布高可复用算子库PHI!重构开发范式,降本增效
- Automatically add watermark to screenshot
- 使用teqcplot对teqc 质量分析结果进行可视化展示
猜你喜欢
随机推荐
Li Kou today's question 513 Find the value in the lower left corner of the tree
dolphinscheduler 2.0.5 任务测试(spark task)报错:Container exited with a non-zero exit code 1
2020:VL-BERT: Pre-training of generic visual-linguistic representation
Arduino温湿度传感器DHT11(含代码)
PHP move_uploaded_file上传移动图片失败
笔者认为所谓的产业互联网,就是一个产业与互联网深度融合的过程
ICer技能02makefile脚本自跑vcs仿真
[graph theory] - bipartite graph
传统意义上的互联网式的平台或将不复存在,一个融合的产业特质和互联网特质的全新产业
单行或多行文本溢出,省略号代替
JSP入门级笔记
Direct insertion sort - [common sort method (1/8)]
How to use data to tell a wonderful story?
【OFDM通信】基于matlab OFDM多用户资源分配仿真【含Matlab源码 1902期】
Small problems in the spoole framework for TCP communication in PHP
UI自动化定位利器-xpath实战
Getting started with the shutter AppBar
OSPF分流实验
HCIP第五次作业
Unity中,如何在【编辑器】和【运行时】状态下读写一个ScriptableObject对象









