多功能时钟

多功能时钟

Multifunctional alarm clock for M5Stack Fire
electronics 创客电子 esp32 时钟

This project is a replication of IKEA Klockis Travel Clock on M5Stack:

多功能时钟
IKEA Klockis Clock

M5stack Version shows date and time, and when you roll it over 90 degrees it shows temperature, and roll it again there comes timer and roll one more time, there it is.

1. Clock / Date Page:

Gets the time date from NTPServer. This screen also shows Battery Left / Charging.

多功能时钟

2. Temperature Page:

Gets the temperature from MQTT message.

多功能时钟

3. Alarm Page:

Alarm blinks the RGB LEDs and buzzer sound included. Can be set by MQTT message.

多功能时钟

4. Timer Page:

Alarm blinks the RGB LEDs and buzzer sound included. Can be set by MQTT message.

多功能时钟

MQTT API:

Command Topic: m5ikea/command

Command message:

{
    "temperature": -8,
    "brightness": 10,
    "powersave": true,
    "timer" : "03:15",
    "alarm" : "14:12"    
}

You can use only one of, or more of the commands in the json like:

{"temperature": 34}

temperature (signed float): It still will show as signed integer in the clock.

brightness (unsigned integer): Between 0-100, 100 being brightest, 1 dimmest, 0 shut down LCD.

powersave (boolean): true dims the LCD to "10" after keeping the clock some sceonds in the same position, whether plugged in or battery.

timer (char, XX:XX): 00:00 to 99:99

alarm (char, XX:XX): 00:00 to 23:59

This uses the MPU8668 accelerator version of M5Stack Fire (core). If your m5Stack has MPU9250 (Early version) or other, you need to change the accelerometer code.
Compiled with Arduino IDE 2.0

代码:https://github.com/febalci/M5Stack_IKEA_Clock


评论:
相关文章
【ESP32 C++教程】Unit9-2:文件系统应用

本小节是一个Web服务结合SD卡文件系统的应用示例。


【ESP32 C++教程】Unit9-1:文件系统

本节主要讲解FileSystem类的使用,以及Flash文件系统配置和SD存储模块的使用。


【ESP32 C++教程】Unit8-2:Wifi热点和网页上控制设备

本节主要讲解Wifi热点的Web服务使用,以及使用网页交互来控制LED。


【ESP32 C++教程】Unit8-1:WiFi连接和HTTP请求

本节主要讲解WifiBoard类的功能和HTTPClient库及cJSON的使用。


【ESP32 C++教程】Unit7-3:TFT-LCD显示屏

本节主要讲解TFT-LCD显示屏的使用和Window派生类与TFT_eSPI库的使用。


基于STEAM教育和设计思维的初中化学跨学科实践活动——基于血氧指标控制的简易供氧器设计与制作

这篇文章展示了如何将化学与工程、信息技术、现代制造技术紧密结合,以“血氧指标控制的简易供氧器”为载体,组织一次真实的跨学科项目。设计中突出“从需求出发”“闭环控制”“可视化反馈”,不仅呼应了新课标中“跨学科实践”的要求,更贴近生活实际需求,尤其适用于对科技应用、健康关怀有兴趣的学生群体,可作为项目式学习或社团活动的优质课例。


【ESP32 C++教程】Unit7-2:OLED显示屏

本节主要讲解OLED显示屏的使用和Display类及派生类的介绍及使用。


【ESP32 C++教程】Unit7-1:四位7段式数码管

本节主要讲解用TM1650来驱动四位7段式数码管模块的显示使用。


【ESP32 C++教程】Unit6-4:资源互斥访问

本节主要讲解FreeRTOS任务间如何使用互斥对象来实现资源互斥访问。


ESP32 Guru Meditation Error报错定位分析

在ESP32的开发,经常会有系统崩溃一直重启的情况,那么如何快速定位出现异常的代码呢?