Santa Tracker using M5StickC Plus for an M5Stack Christmas
2024-07-25 | By M5Stack
License: General Public License Displays Arduino M5Stack M5Stick ESP32
Thanks for the source code and project information provided by @onredpaper
I created this to get more familiar with UI Flow for the M5StickC Plus.
Just download the m5f file to load into UI Flow and attach the images. Then update the "time_offset" variable to your UTC offset, currently, it is set to mine PST with a value of "-8". The Wi-Fi credentials also need to be updated to get the correct time.
This project uses NTP over Wi-Fi to get the time and if Santa is delivering gifts, then shows where he is based on the time zone where it is Christmas. This also provides a countdown to how many days until Christmas (as long as it is December) by pressing button A.
The music is provided by converting a midi and using the code info provided by the project:
https://github.com/bstein2379/M5StickC-Plus-Ringtone-Jukebox
and
https://github.com/dhylands/upy-rtttl
To avoid waiting for Christmas Eve / Christmas Day to see this work, I have added a debugging mode to change the time to 10 seconds before the change of the hour of Christmas Eve or Christmas Day. The debug is set by pressing button B (to see the battery charge) and then pressing B again before the main screen is shown. On the debug screen, pressing Button A, the hour will change from 0 - 23 on Christmas Eve, then option to use the current time (with the new date), then 0-23 on Christmas Day, and then option to use the current time on Christmas Day.
Video showing the program and how to use the debug feature to make it Christmas all year.
Schematics
Map Background
Have questions or comments? Continue the conversation on TechForum, DigiKey's online community and technical resource.
Visit TechForum