In the two articles FibonacciClock – An Unusual Time Indicator other Fibonacci Clock Assembly, the FibonacciClock was introduced and described how you can assemble your own FibonacciClock. Now that you've finished assembling, it's time to program the clock.
This is described in the following article.
Hints for our lovely english readers: Basically, many of the articles on Nerdiy.de are translations from the original german articles. Therefore, it may happen here and there that some illustrations are not available in english and that some translations are weird/strange/full of mistakes or generally totaly wrong. So if you find some obvious (or also not obvious) mistakes don't hesitate to leave us a hint about that in the comment section.
Also please don't get confused, that instead of a "dot" often a "comma" is used as decimal separator. 🙂
I know the following hints are always a bit annoying and seem unnecessary. But unfortunately, many people who knew it "better" from carelessness lost their eyes, fingers or other things or hurt themselves. In comparison, a loss of data is almost not worth mentioning, but even these can be really annoying. Therefore, please take five minutes to read the safety instructions. Even the coolest project is worth no injury or other annoyance. https://www.nerdiy.de/en/sicherheitshinweise/
Affiliate links / advertising links
The links to online stores listed here are so-called affiliate links. If you click on such an affiliate link and store via this link, Nerdiy.de receives a commission from the online store or provider concerned. The price doesn't change for you. If you do your purchases via these links, you will support Nerdiy.de in being able to offer further useful projects in the future. 🙂
To program your FibonacciClock, you need to connect it to your computer via a micro USB cable.
You also need the Arduino IDE.
How to install these is described in this post: Installing programs
In addition, here are some tips described on the Arduino IDE, which give you a first overview of the Arduino IDE: ArduinoIDE Tips and Tricks
Download firmware from the Nerdiy.de-GitHub
Have you prepared everything so far you just have to download the firmware from the Nerdiy.de-GitHub.
How to download GitHub software is described in the article GitHub – How to copy files from a GitHub to my computer.
The FibonacciClock software can be found at: https://github.com/Nerdiyde/NerdiysFibonacciClock
Before you can transfer the firmware to your FibonacciClock, it must first be set correctly.
Depending on whether you have installed an OLED display and/or an LDR when assembling the clock, you must activate or deactivate these functions in the firmware.
By default, both the LDR and OLED displays are enabled.
If you have installed in your Fibonacci Clock no LDR you have to disable this feature in the software now. This is done by commenting out the part "#define LDR_INSTALLED", which precedes a "//".
So in complete "#define LDR_INSTALLED" will be replaced by "//define LDR_INSTALLED".
The procedure is similar for the OLED display.
If you have not installed OLED display you have to disable this feature in the software. This is done by commenting out the part "#define I2C_DISPLAY_INSTALLED", which precedes a "//".
So in complete "#define I2C_DISPLAY_INSTALLED" is therefore replaced by "// # define I2C_DISPLAY_INSTALLED".
Setting the Arduino Type and Programming Interface
As a last step before the actual programming you have to adjust now the correct Arduino and the programming interface in the ArduinoIDE. Only then the program can be correctly translated and programmed for the Arduino or used microcontroller.
You can read more about this in the article ArduinoIDE Tips and Tricks.
That's it with the configuration.
Start programming process
In the article Fibonacci Clock – user manual is a small user manual put together, which should help you with the next steps. 🙂
Have fun with the project
I hope everything worked as described. If not or you have any other questions or suggestions, please let me know in the comments. Also, ideas for new projects are always welcome. 🙂
P.S. Many of these projects - especially the hardware projects - cost a lot of time and money. Of course I do this because I enjoy it, but if you appreciate that I share this information with you, I would be happy about a small donation to the coffee box. 🙂