Files
Rader_IQ/README.md
2026-02-27 11:23:47 +08:00

60 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ESP32 雷达项目
## 项目介绍
这是一个基于ESP32的雷达项目使用雷达模块进行人体存在检测、呼吸率和心率监测。
## 功能特性
- 人体存在检测
- 人体活动状态监测
- 呼吸率监测
- 心率监测
- BLE通信
- WiFi配置
- 设备ID管理
## 硬件要求
- ESP32开发板
- 雷达模块
- 必要的连接线
## 软件要求
- PlatformIO
- Arduino框架
- ESP32 BLE Arduino库
- ArduinoJson库
## 配置说明
1. 通过BLE进行WiFi配置
2. 通过BLE查询设备状态
3. 通过BLE查询雷达数据
4. 长按BOOT按钮3秒重置配置
## 编译和上传
使用PlatformIO编译和上传代码
```bash
platformio run
platformio run --target upload
```
## 项目结构
- `src/` - 源代码目录
- `main.cpp` - 主程序
- `ble_api.cpp` - BLE API实现
- `radar_vitals.cpp` - 雷达数据处理
- `io_flash.cpp` - IO和Flash操作
- `wifi_manager.cpp` - WiFi管理
## 注意事项
- 确保雷达模块正确连接
- 确保ESP32有足够的电源
- 避免在强电磁干扰环境下使用