Arduino--人体触摸模块

Arduino--人体触摸模块

 

实例:

把人体触摸模块接入A0引脚(模拟输入口)

 

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

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

Arduino--人体触摸模块

效果:人体没有触摸时,输出1020以上,人体触摸时,输出30左右 

 

 

 

Arduino--人体触摸模块

相关文章:

  • 2022-01-13
  • 2021-04-19
  • 2022-12-23
  • 2021-08-01
  • 2021-11-25
  • 2021-12-24
  • 2021-06-15
猜你喜欢
  • 2021-08-29
  • 2021-06-14
  • 2022-01-03
  • 2021-08-10
  • 2021-11-25
  • 2021-09-28
  • 2021-05-17
相关资源
相似解决方案