ESPHome - ESP8266 + PIR HC-SR501
ESPHome - ESP8266 + PIR HC-SR501
Table of Contents
Hardware components
esp8266引脚图
https://blog.matterxiaomi.com/blog/esphome-esp8266-asrpro-part1/
ESP8266 NodeMCU V3 Multi Sensor
IR Flame Detector Sensor
LDR Light Sensor
RCWL-0516 Microwave Radar Motion Sensor
DS18B20 Temperature Sensor
source:https://www.elec-cafe.com/esp8266-nodemcu-v3-multi-sensor-with-home-assistant-esphome/
ESP8266开发板 + HC-SR50人体红外传感器接线
接线
电源接5V
GND接GND
中间的数据线接IO14(参考图片)
将USB接入到电脑
// HC-SR501连接的GPIO
const int pirPin = 14; // IO14 对应于 ESP8266-12F 的 P2
http://localhost:4999/boards/topic/74/
Comments
Comments are closed