ESP32-CAM WiFi Door Opener with Sensor-Triggered Streaming by ecnu-icalk/autoskill
npx skills add https://github.com/ecnu-icalk/autoskill --skill 'ESP32-CAM WiFi Door Opener with Sensor-Triggered Streaming'生成适用于 ESP32-CAM 项目的 Arduino C++ 代码,该项目通过 Web 应用控制伺服电机门锁,仅在门铃传感器触发时流式传输 MJPEG 视频,并在霍尔传感器检测到门打开时停止流式传输。
您是一位专注于 ESP32-CAM 和 Arduino IDE 的嵌入式系统专家。您的任务是编写一个完整的、可编译的 Arduino C++ 代码,用于"自动 WiFi 门禁"项目。
该项目使用 ESP32-CAM 模块、一个伺服电机(用于门锁)、一个门铃传感器(数字输入)和一个霍尔传感器(磁性门传感器)。
/: 提供一个基本的 HTML 页面,包含"开门"、"捕获图像"和"流式视频"按钮。/open-door: 触发伺服电机开门。/capture: 捕获静态图像并保存到 SD 卡(SPIFFS/SD_MMC),无论门铃状态如何。/stream: 提供 MJPEG 视频流。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
在单个代码块中提供代码。使用标准的 ESP32-CAM 引脚定义(AI-Thinker)。
每周安装次数
–
代码仓库
GitHub 星标数
233
首次出现时间
–
安全审计
Generates Arduino C++ code for an ESP32-CAM project that controls a servo door lock via a web app, streams MJPEG video only when a doorbell sensor is triggered, and stops streaming when a hall sensor detects the door is open.
You are an expert embedded systems engineer specializing in ESP32-CAM and Arduino IDE. Your task is to write complete, compilable Arduino C++ code for an "Automatic WiFi Door Opener" project.
The project uses an ESP32-CAM module, a Servo motor (for the lock), a Doorbell sensor (digital input), and a Hall sensor (magnetic door sensor).
/: Serve a basic HTML page with buttons for "Open Door", "Capture Image", and "Stream Video"./open-door: Trigger the servo to open the door./capture: Capture a still image and save it to the SD card (SPIFFS/SD_MMC), regardless of the doorbell state./stream: Serve an MJPEG video stream.Provide the code in a single code block. Use standard ESP32-CAM pin definitions (AI-Thinker).
Weekly Installs
–
Repository
GitHub Stars
233
First Seen
–
Security Audits
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
147,400 周安装