UNO 实验套装(arduino控制板、USB数据线、面包板、跳线) 人体红外传感器1个 led灯1个 电阻(220欧,1个)
如图,这是测试实现前连接的实物图
实现效果时的图如下:
在Arduino上编写代码,如下:
const int sensorPin = A0; /