当前位置:网站首页>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实战
- PHP move_uploaded_file上传移动图片失败
- 笔者认为所谓的产业互联网,就是一个产业与互联网深度融合的过程
- Mini Homer - can you get a remote map data transmission link for hundreds of yuan?
- AlertManager告警的单独使用及prometheus配置告警规则使用
- Decompile
- Install and run mongodb under win10
- Banner banner
- [MAC] there is no source option in security and privacy
猜你喜欢

Architecture à trois niveaux MVC

百度飞桨“万有引力”2022首站落地苏州,全面启动中小企业赋能计划

【Proteus仿真】Arduino UNO+PCF8574+LCD1602+MPX4250电子秤

GNSS速度解算的三种方法

强推,软件测试快速入门,一看就会

Install and run mongodb under win10

Course design C for freshmen -- clothing management system

Cloud native database is in full swing, and the future can be expected

ICER skills 03design compile

Metadata management Apache Atlas Compilation (embedded) deployment and various error records encountered
随机推荐
滑块视图的实现
【OFDM通信】基于matlab OFDM多用户资源分配仿真【含Matlab源码 1902期】
ICER skill 02makefile script self running VCs simulation
Chrome debugging tips
② Cocoapods principle and podspec file uploading operation
UI自动化定位利器-xpath实战
With the arrival of intelligent voice era, who is defining AI in the new era?
2022-06-22:golang选择题,以下golang代码输出什么?A:3;B:1;C:4;D:编译失败。 package main import ( “fmt“ ) func mai
Small problems in the spoole framework for TCP communication in PHP
[C language] keyword
Emergency response HW review
Composer by installation laravel
Banner banner
Amazing tips for using live chat to drive business sales
掌握 Shell,一篇就够了!
微信小程序:老年祝福短视频
当SBAS遇上rtklib
Thesis reading_ Relation extraction_ CASREL
超越芯片和AI,硬科技资本为什么越来越“硬核”?
《微信小程序-基础篇》带你了解小程序的路由系统(二)