Maker.io main logo

Button that records the time you press it

2023-10-09 | By M5Stack

Share

Wifi M5Stack

* Thanks for the source code and project information provided by @Inaba

 

1

2

3

 

Video

 

Displays the time the switch was pressed.

Connect the switch to G33 (HY2.0-4P of M5CoreInk).

The idea is to put it over a device switch like this and record the last time it was pressed.

Development Platform

2

System configuration

When the button is pressed, it wakes up from deep sleep and displays the date and time. After displaying, it goes into deep sleep again and waits for the next button press.

The button is pressed to wake up from deep sleep and display the date and time of the pressed button. After displaying, it goes into deep sleep and waits for the next button press.

Background

Since I don't have a good memory and forget whether I started the dishwasher or not, I added a function to record the time when I pressed the button.

I am satisfied with the simple mechanism of just sticking it on top of the button.

In the future, I hope to be able to support buttons of various shapes.

 

Code

https://github.com/hollyhockberry/ClickTimeRecorder

Mfr Part # K048
ESP32 COREINK DEV KIT 1.54" EINK
M5Stack Technology Co., Ltd.
Add all DigiKey Parts to Cart
Have questions or comments? Continue the conversation on TechForum, DigiKey's online community and technical resource.