This is the software of a variation of the LED clock from DIY Machines A configuration which works on the original version of the clock is also part of the source code.
I decided to code it completely from scratch at I wanted to use a ESP32 instead of the Arduino nano and RTC that is used in the original project. This enables some cool features like smartphone app control, OTA updates and fetching of the time using the internet.
Additionally this has full support for animations. By default I provide all needed animations for a 12h clock to morph one digit into another soothly. Further animations can be easily added and existing animation can be adjusted to your liking.
The whole codebase is highly modular and configurable and can be tweaked exactly to your preferences.
Detailed documentation is available on read the docs.
If you are interested in my variation of the design which uses a lot of wood instead of the 3D prints and is a bit bigger than the original you can find it on thingiverse here
I am using VScode with PlatformIO. VSCode can be downloaded from here. And PlatformIO is an extension that can easily be installed from inside of VSCode.
Via the PlatformIO home the following libraries have to be installed:
“Blynk” by Volodymyr Shymanskyy
“FastLED” by Daniel Garcia
“LinkedList” by Ivan Seidel
A quick list of things that have to be done to get this project up and running:
Make sure you have VS Code and the PlatformIO extension installed
Download the source either via the releases tab or by downloading or cloning this git repository
Go to lib/LEDclock and choose one of the library*.json files and rename it to library.json
Check that you have all the above mentioned Platform IO libraries installed either system wide or in the project itself.
If you want to modify any of the configuration options you can do so by editing the files in
Build and upload
If you want a more detailed walk through of the installation process take a look at the setup wiki page.
First of all thanks to DIY machines for the awesome idea!
Also thank you to the great people who developed the libraries that I am using for this project:
Volodymyr Shymanskyy for the Blynk library
Daniel Garcia for the FastLED library
Ivan Seidel for his LinkedList implementation
Andy Brown for the Easings library that I modified a bit to suit my needs better
If you would like to say thank you:
Where to go from here
- Wiring setup
- The Development environment
- The first Startup
- Default blynk config
- General Configuration
- Available Animations
- Library API