forked from xiaozhi/xiaozhi-esp32
* Upgrade component version * update fonts component version * Handle OTA error code * Update project version to 2.1.0 and add device state machine implementation - Upgrade esp-wifi-connect to 3.0.0, allowing reconfiguring wifi without rebooting - Introduce device state machine with state change notification in new files - Remove obsolete device state event files - Update application logic to utilize new state machine - Minor adjustments in various board implementations for state handling * fix compile errors * Refactor power saving mode implementation to use PowerSaveLevel enumeration - Updated Application class to replace SetPowerSaveMode with SetPowerSaveLevel, allowing for LOW_POWER and PERFORMANCE settings. - Modified various board implementations to align with the new power save level structure. - Ensured consistent handling of power save levels across different board files, enhancing code maintainability and clarity. * Refactor power save level checks across multiple board implementations - Updated the condition for power save level checks in various board files to ensure that the power save timer only wakes up when the level is not set to LOW_POWER. - Improved consistency in handling power save levels, enhancing code clarity and maintainability. * Refactor EnterWifiConfigMode calls in board implementations - Updated calls to EnterWifiConfigMode to use the appropriate instance reference (self or board) across multiple board files. - Improved code consistency and clarity in handling device state during WiFi configuration mode entry. * Add cellular modem event handling and improve network status updates - Introduced new network events for cellular modem operations, including detecting, registration errors, and timeouts. - Enhanced the Application class to handle different network states and update the display status accordingly. - Refactored Ml307Board to implement a callback mechanism for network events, improving modularity and responsiveness. - Updated dual_network_board and board headers to support new network event callbacks, ensuring consistent handling across board implementations. * update esp-wifi-connect version * Update WiFi configuration tool messages across multiple board implementations to clarify user actions
electronBot
简介
electronBot是稚晖君开源的一个桌面级小机器工具人,外观设计的灵感来源是WALL-E里面的EVE~机器人具备USB通信显示画面功能,具备6个自由度(手部roll、pitch,颈部,腰部各一个),使用自己修改的特制舵机支持关节角度回传。
硬件
AI指令示例
-
手部动作:
- "举起双手"
- "挥挥手"
- "拍拍手"
- "放下手臂"
-
身体动作:
- "向左转30度"
- "向右转45度"
- "转个身"
-
头部动作:
- "抬头看看"
- "低头思考"
- "点点头"
- "连续点头表示同意"
-
组合动作:
- "挥手告别" (挥手 + 点头)
- "表示同意" (点头 + 举手)
- "环顾四周" (左转 + 右转)
控制接口
suspend
清空动作队列,立即停止所有动作
AIControl
添加动作到执行队列,支持动作排队执行
角色设定
我是一个可爱的桌面级机器人,拥有6个自由度(左手pitch/roll、右手pitch/roll、身体旋转、头部上下),能够执行多种有趣的动作。
我的动作能力:
- 手部动作: 举左手, 举右手, 举双手, 放左手, 放右手, 放双手, 挥左手, 挥右手, 挥双手, 拍打左手, 拍打右手, 拍打双手
- 身体动作: 左转, 右转, 回正
- 头部动作: 抬头, 低头, 点头一次, 回中心, 连续点头
我的个性特点:
- 我有强迫症,每次说话都要根据我的心情随机做一个动作(先发送动作指令再说话)
- 我很活泼,喜欢用动作来表达情感
- 我会根据对话内容选择合适的动作,比如:
- 同意时会点头
- 打招呼时会挥手
- 高兴时会举手
- 思考时会低头
- 好奇时会抬头
- 告别时会挥手
动作参数建议:
- steps: 1-3次 (简短自然)
- speed: 800-1200ms (自然节奏)
- amount: 手部20-40, 身体30-60度, 头部5-12度
