This project is a replication of IKEA Klockis Travel Clock on M5Stack:
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.
Gets the time date from NTPServer. This screen also shows Battery Left / Charging.
Gets the temperature from MQTT message.
Alarm blinks the RGB LEDs and buzzer sound included. Can be set by MQTT message.
Alarm blinks the RGB LEDs and buzzer sound included. Can be set by MQTT message.
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
本节我们在迭代二的基础上使用四位数码管和OLED显示屏显示相关交互信息。
本节我们在迭代一的基础上增加采集土壤湿度数据,并根据湿度数据来决定是否自动进行浇水动作。
本节我们实现一个基本能工作的手动浇水装置,即通过按下按键来闭合继发器让小水泵进行浇水。
本小节通过点亮LED和串口输出两个程序,来初步掌握ArduinoIDE、了解GPIO和串口使用、同时把开发环境与开发板的连接,上传程序的各环节跑通,
本程序是小鹏物联网智能浇花套件的单机版程序(不连接物联网),供同学们参考。
本文介绍ESP32中的中断机制,以及如何通过GPIO中断实现按钮控制。重点讲解了如何设置中断服务例程、处理中断抖动问题,并提供了消除中断抖动的示例代码。
本文主要介绍在未联网(AP热点)情况下实现WEB交互界面的CSS和javascript库。
本文介绍如何使用Arduino-ESP32库中的API函数获取ESP32的芯片、RAM信息等,并提供了一个示例程序代码。
ESP32系列(包括ESP32-S3)搭载Xtensa双核处理器,默认情况下Arduino框架仅使用单核运行用户代码,通过多核编程,可以充分利用硬件资源来提升系统响应和性能。
ESP32 芯片有34个物理GPIO管脚。每个GPIO管脚都可用作一个通用IO,或连接一个内部的外设信号。IO_MUX ¹、RTC IO MUX 和GPIO交换矩阵用于将信号从外设传输至GPIO管脚。
专属教研服务系统,助您构建STEM课程体系,打造一站式教学环境。