ESP32-S3 WiFi CSI运动检测固件
来自 Wikiprompt,自由的提示词百科全书
ESP32-S3 WiFi CSI运动检测固件 用于生成ESP32-S3固件的提示,该固件利用WiFi CSI检测室内运动,并通过串口输出带有可调阈值的JSON数据。
提示词内容收藏
🌐
Write me an ESP32-S3 firmware that captures WiFi CSI data and detects movement in a room.
Requirements:
Connect to my home WiFi as a passive client
Capture CSI packets continuously
Calculate the variance of CSI amplitude over a 2-second window
When variance exceeds a threshold, mark the state as "motion detected"
When it drops below, mark as "still"
Output JSON over serial: timestamp, state, variance_value
Use the official esp_wifi.h CSI API.
Add comments explaining each section so I can tune the threshold later.
用法
此提示词专为 coding 设计。复制上方内容并粘贴到你常用的 AI 工具中。
为获得最佳效果,可将占位符(方括号或大写字母标示)替换为你的具体需求。
讨论
0 条评论