多功能时钟

多功能时钟

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 GPIO 矩阵和引脚多路复用

ESP32 芯片有34个物理GPIO管脚。每个GPIO管脚都可用作一个通用IO,或连接一个内部的外设信号。IO_MUX ¹、RTC IO MUX 和GPIO交换矩阵用于将信号从外设传输至GPIO管脚。


ESP32Encoder:高效的ESP32旋转编码器库

ESP32Encoder库是一个利用ESP32脉冲计数器硬件外设实现高效旋转编码器读取的软件库。


适合学习物联网的几款盒子

本文对比了几款适合物联网开发的盒子硬件参数,供大家参考。


乐动掌控

乐动掌控采用掌控板作为主控,塑胶一体式外壳,侧面和底面开具多个乐高扩展孔位,兼容乐高积木,可完成多种创意应用。


ESP32 MicroPython存储数据到闪存

在MicroPython的ESP32库中,NVS类用于管理非易失性存储,支持 32 位有符号整数和 二进制blob。


Arduino-ESP32 Preferences库使用详解

Arduino-ESP32项目提供的Preferences库是一个专为ESP32设计的非易失性存储解决方案,它替代了传统的Arduino EEPROM库,提供了更强大、更可靠的数据存储功能。


小鹏物联网 MicroPython 图像采集方案

本方案是一个基于ESP32-CAM + 物联网的图像采集方案。


esp32cam开发板烧录micropython固件

‌ESP32-CAM与MicroPython结合可实现摄像头图像采集、视频流传输等功能,不过Micropython官方没有支持ESP32-CAM的固件,需要烧录第三方的专有固件。


小鹏物联网 MicroPython 智能浇花方案

相信很多人都有把绿植给养死的经历,可能是浇水过多、忘记浇水、较长时间不在家不能浇水等,本文介绍一种可以灵活定制的智能浇花方案。


MicroPython 开发ESP32应用之线程介绍及实例分析

MicroPython 在 ESP32 上支持线程(Thread)功能,通过_thread模块实现。线程允许程序并发执行多个任务,适合处理需要同时运行的场景,例如传感器数据采集和网络通信。

相关创作
太阳能电子纸天气显示器具有小巧、节能环保、易于制作安装等优势。通过利用太阳能充电和低功耗设计,使得这款天气站不仅适合家庭使用,也非常适合用于商业、学校等场所。
热度:16
基于ESP32的电子墨水屏日历,支持通过 OpenWeatherMap 实现天气显示等功能。
热度:89
最新资源
小鹏STEM教研服务

专属教研服务系统,助您构建STEM课程体系,打造一站式教学环境。