Arduino--火焰传感器

Arduino--火焰传感器

 

实例:

把火焰传感器接到A0引脚

void setup() {  
   
  Serial.begin(9600); 
}

void loop() {   
  int i=analogRead(A0); 
  Serial.println(i,10); 
  delay(1000);
  
}

Arduino--火焰传感器

没有火焰时,返回1000以上,前面有火焰时输出30多

 

 

 

 

 

 

 

Arduino--火焰传感器

相关文章:

  • 2021-06-28
  • 2021-04-06
  • 2021-03-31
  • 2021-10-09
  • 2021-06-04
  • 2021-11-18
  • 2021-11-18
  • 2021-07-31
猜你喜欢
  • 2021-10-26
  • 2021-11-25
  • 2021-08-04
  • 2021-06-12
  • 2021-11-18
  • 2021-11-18
  • 2022-01-19
相关资源
相似解决方案