ESPectre Interference with PIR Sensors #41
Replies: 1 comment 3 replies
-
|
Hi @bugensui2022, thank you for the detailed report! This is a very interesting observation. What you're experiencing is most likely RF interference from ESPectre's traffic generator affecting the analog circuits of your PIR sensor. ESPectre needs continuous WiFi traffic to extract CSI (Channel State Information) data. By default, it sends 100 UDP broadcast packets per second ( You may ask why only the PIR sensor is affected?
You can try to: 1. Physical separationIf possible, increase the distance between the ESPectre device and the PIR sensor. Even 1-2 meters can make a significant difference. 2. Use different WiFi channelsTry changing your router's WiFi channel. Some frequencies may cause less interference with your specific PIR sensor's circuitry. 3. Reduce traffic generator rateLower the packet rate to reduce RF emissions while maintaining motion detection: espectre:
traffic_generator_rate: 50 # default is 100The motion detection will still work, though with slightly reduced responsiveness. 4. Add software debounce to your PIR sensorIn your PIR sensor configuration, add filtering: binary_sensor:
- platform: gpio
pin: GPIOxx
name: "Kitchen PIR"
device_class: motion
filters:
- delayed_on: 100ms # Ignore short spikes
- delayed_off: 5s # Keep motion active for 5s5. Hardware shieldingIf the above don't help, you could add a small metal shield around the PIR sensor or its wiring. Please let me know if reducing the This is valuable feedback - I'll add a note about potential EMI interference with sensitive analog sensors in the documentation. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I deployed the Spectre project using my ESP32s3 at home, and it performed very well, exceeding my expectations and being very accurate. I added sample code in ESPHome to implement it, so it does not affect the functionality of other devices on ESP32s3. The principle of this project should be to detect the waveform of WiFi. I don't know if it caused WiFi storms or interference, but it can lead to frequent misjudgment of the human infrared sensor on my other ESP32 development board. If I delete the code of this project, the misjudgment situation will disappear. It's really strange. I'm not an expert in WiFi, and I don't know if you have encountered it before. My Spectre project is deployed in the living room and kitchen. I use ESP32 for my ESP32 development board. We have deployed millimeter wave radar for detecting human presence and human infrared sensors, which are also implemented using ESPHome to detect human presence and absence, Spectre can interfere with the frequent misjudgment of human infrared sensors in the kitchen, but it does not affect the presence of human bodies in millimeter wave radar, and devices in other areas are also not affected. I don't know what happened?
Beta Was this translation helpful? Give feedback.
All reactions