# 电话闹铃助手 **Repository Path**: hugoyuen/telephone-alarm-assistant ## Basic Information - **Project Name**: 电话闹铃助手 - **Description**: 使用ESP32单片机给当地农民工兄弟设计一款电话闹铃工具 - **Primary Language**: C - **License**: BSD-2-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2024-09-03 - **Last Updated**: 2024-09-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 电话闹铃助手 #### 介绍 当时农民工兄弟说自己从事一些机械设备的操作(收割机、拖拉机等)噪音特别大,而目前他们基本都换上了智能手机,但智能手机来电话提示音太小,在工地上很难接听到电话,于是联系我,开发了这款电话闹铃助手。由于网络上资料较少,ESP32的开发都得阅读源代码,所以共享出来给后来的朋友做参考。 #### 信号传输协议 使用HFP蓝牙传输 #### 设计指标 1. 输入电压: 9v~15v 2. 连接有效范围: 空旷区域>=5m 有障碍物区域>=3m 3. 蜂鸣器音压: >=83db 4. 闪光亮度: Max>500lux, 可根据环境亮度自动调节 #### 编译环境 1. 平台: Windows 2. 编译工具: [esp-idf-2.3](https://dl.espressif.com/dl/esp-idf-tools-setup-2.3.exe) #### 编译运行 1. 打开ESP-IDF Command Prompt命令行 2. 编译: idf.py build 3. 烧录: idf.py -p COM4 flash 4. 串口调试: idf.py -p COM4 monitor 5. 按一次复位按钮 #### 使用说明 1. 打开手机蓝牙 2. 会搜索到一个名为"来电话提醒",配对并连接 3. 此时来电话时板子上的蜂鸣器便会嘟嘟响,RGB灯也会闪烁 #### PCB视图 ![输入图片说明](https://images.gitee.com/uploads/images/2020/0913/180517_61315171_5112567.png "PCB.png") #### 其它 ##### 若在其它工程中需要使用此源码, 需配置(供参考) 1. 打开图形配置菜单: idf.py menuconfig 2. 设置flash大小: Serial flasher config -> Flash size -> 4M 3. 关闭电压过低复位: Component config -> ESP32-specific ->Hardware brownout detect & reset -> 按N取消选择 4. 启用蓝牙: Component config -> Bluetooth -> 按Y选择 5. 设置支持传统蓝牙 ###### Component config -> Bluetooth -> Bluetooth control1er mode -> 选择 BR/EDR Only ###### Component config -> Bluetooth -> Bluedroid Options -> Classic Bluetooth -> 按Y选择 ###### -> Hands Free/Handset Profile -> 按Y选择