UPDATE: The Fibonacci Clock is now live on Kickstarter! I have 30 days to fund this project … head up to Kickstarter to support me!
I present to you the Fibonacci Clock, a clock for nerds with style. Beautiful and fun at the same time, the clock uses the famous Fibonacci sequence to display time in a brand new way.
How do I tell time?
The Fibonacci sequence is a sequence of numbers created by the Italian mathematician Fibonacci in the 13th century. This is a sequence starting with 1 and 1, where each subsequent number is the sum of the previous two. For the clock I used the first 5 terms: 1, 1, 2, 3 and 5.
The screen of the clock is made up of five squares whose side lengths match the first five Fibonacci numbers: 1, 1, 2, 3 and 5. The hours are displayed using red and the minutes using green. When a square is used to display both the hours and minutes it turns blue. White squares are ignored.
To tell time on the Fibonacci clock you need to do some math. To read the hour, simply add up the corresponding values of the red and blue squares. To read the minutes, do the same with the green and blue squares. The minutes are displayed in 5 minute increments (0 to 12) so you have to multiply your result by 5 to get the actual number.

Often, there are multiple ways to display a single time. To add to the challenge, the combinations are picked randomly from all the different ways a number can be displayed. There are, for example, 16 different ways to display 6:30 and you never know which one the clock will use!
Circuit
I built the Fibonacci clock using an Atmega328P micro-controller using Arduino. You could buy an Arduino board and a DS1307 real-time clock break-out board and build a custom shield for your circuit but I preferred to build my own circuit board. That allows me to keep size small and price low.
Buttons
The three buttons attached to Arduino pins #3,#4 and #6 are used together to change time. Button on pin #3 can be used alone to change the color palette of the LEDs. An extra button is attached to pin #5 to change between different modes of the clock. Two modes are lamp modes and the default mode is the clock. All buttons are connected to the Arduino pins with a 10K pull-down resistor in parallel.
Real-Time Clock
The real-time clock chip DS1307 is connected to the Arduino analog pins 4 and 5 with two 2.2K pull-up resistors. The clock pin 5 (SDA) is connected to the Atmega328P pin 27 (Arduino A4) and the clock pin 6 (SCL) is connected to the Atmega329P pin 29 (Arduino A5). To keep time while unplugged the DS1307 chip needs a 3V battery connected to pint 3 and 4 of the chip. Finally, the real-time clock is driven by a 32KHz crystal connected on pins 1 and 2. A 5V power is applied on pin 8.
LED Strip
I am using LED pixels built on top of the WS2811 drivers. These microcontrollers allows me to set the color of each individual LED with a single output on the Arduino microcontroller. The Arduino pin used to control the LEDs in this project is pin #8 (Atmega328P pin #14).
Atmega328P
You will find all the details on how to connect the Atmega328P to make an Arduino clone on my post “Build an Arduino Clone“. I added a new feature in this project, an FTDI port to program your Arduino microcontroller directly on this circuit. You connect pin one to the reset pin of the Arduino trough a 0.1uF capacitor to synchronize your uploader with the chip bootup sequence.
Pin 2 (RX) of the FTDI port connects to pin 3 of the Atmega328P(Arduino 1-TX) and pin 3 (TX) of the FTDI connector connects to pin 2 of the Atmega328P (Arduino 0 – RX). Finally FTDI pin 4 goes to 5V and 5 and 6 to ground.
The enclosure
The following video presents all the steps for the construction of the Fibonacci clock enclosure. The idea is to create 5 square compartments in the clock, two inches deep, matching the size of the five first terms of the Fibonacci sequence, 1, 1, 2, 3 and 5. The LEDs are distributed in all squares and connected in the back of the clock to the circuit board.
The enclosure is built out of birch plywood. The frame is 1/4″ thick and the back panel is 1/8″ thick. The separators are 1/16″ thick and can be made of any opaque material. The dimensions of the clock are 8″x5″x4″. The front of the clock is a piece of 1/8″ thick semi-transparent plexiglass. The separators are marked using a Sharpie pen.
The wood finish is a water based varnish applied after a good sanding using 220 sand paper.
Pick your colors
There are 5 different color palettes built in the clock. The default RGB mode, a Mondrian mode with red, blue and yellow and some more contemporary color palettes I would not be able to name!

Make it a lamp
The Fibonacci clock can also be converted into an ambiant lamp! The code published already support two lamp modes. Simply push the mode button to toggle between the three modes. The code is open for you to hack, feel free to implement your own modes!
The source code
You can find my source code on my github account:
https://github.com/pchretien/fibo
May 7, 2015
[…] pleasing. With that in mind, the clock that [Philippe] created must mathematically be the best looking clock we’ve ever featured, even if it is somewhat difficult to tell time from […]
May 7, 2015
[…] pleasing. With that in mind, the clock that [Philippe] created must mathematically be the best looking clock we’ve ever featured, even if it is somewhat difficult to tell time from […]
May 7, 2015
[…] pleasing. With that in mind, the clock that [Philippe] created must mathematically be the best looking clock we’ve ever featured, even if it is somewhat difficult to tell time from […]
May 7, 2015
How did you go about getting that custom PCB made? that is something I’ve always wanted to do but never could get a simplified (and cheap) answer.
Looks amazing!
Friendly,
May 7, 2015
Hello Luka,
I uses Fritzing to design the circuit. This is an open source software perfect for small projects like this one. To print the pcb I used one of the suppliers you can find on PCBShopper, a web app that will find best places to produce your PCB.
Thanks for your comment,
Phil
June 14, 2015
Phil…heard the interview on cbc this morning and would like you to come speak to the montreal group for 40 minutes.Check us out at Tiger21.com.
Let me know
May 7, 2015
[…] pleasing. With that in mind, the clock that [Philippe] created must mathematically be the best looking clock we’ve ever featured, even if it is somewhat difficult to tell time from […]
May 7, 2015
[…] pleasing. With that in mind, the clock that [Philippe] created must mathematically be the best looking clock we’ve ever featured, even if it is somewhat difficult to tell time from […]
May 8, 2015
[…] Someone built a really fancy clock using Fibonacci numbers, which looks really nice but is fairly unusable. Just the way we like it! Let’s recreate this. […]
May 8, 2015
[…] O engenheiro da computação Philippe Chrétien adora projetos faça-você-mesmo baseados na plataforma Arduino. Normalmente, são empreitadas individuais, cujos detalhes ele divulga em seu site. Desta vez, ele preparou algo que pode chegar a mais pessoas: o relógio de Fibonacci. […]
May 8, 2015
[…] Blog de Philippe Chrétien […]
May 8, 2015
There are many ‘clock’ projects out there and I rarely care for them, but this one is clever and pretty. Pretty enough to excuse the lack of practicality (and since we all have multiple clocks, we don’t need a practical clock). Well done!
If you make it a construction kit, i might buy one.
(can the colours fade rather then be switched?)
May 8, 2015
Hello Guenther,
Thanks for your comment, it’s very much appreciated!
The clock is now available as a Kit on Kickstarter … You still have 27 days to place your order! :)
Thanks,
Phil
May 8, 2015
[…] Blog de Philippe Chrétien […]
May 8, 2015
[…] O engenheiro da computação Philippe Chrétien adora projetos faça-você-mesmo baseados na plataforma Arduino. Normalmente, são empreitadas individuais, cujos detalhes ele divulga em seu site. Desta vez, ele preparou algo que pode chegar a mais pessoas: o relógio de Fibonacci. […]
May 11, 2015
I think this is wonderful and I’d love to get one but I won’t have the money until after the campaign closes… :-(
May 11, 2015
Thanks for your message Paul,
I will be selling these clocks after I fulfilled all my Kickstarter pledges. I’ll post an update here and on Kickstarter when pre-orders are available.
Thanks,
Phil
May 12, 2015
That’s wonderful news :D
May 11, 2015
Really beautiful, looking forward to mine!
You should produce a companion smartphone app doing the same thing…
c
May 11, 2015
Thanks Chris,
Yes, I have some friends interested in coding the thing! I’ll post updates here about their project.
Phil
May 11, 2015
How long did it take you to make this?
May 11, 2015
Hi Madison,
Thinkering + prototypes + woodworking + photos + video … I would say 2 months. :)
Phil
May 11, 2015
I’m trying to create this for a school project and all I really have is 1 week…
May 11, 2015
I was just wondering about some parts for the project. Where is the FTDI port used? I’m just slightly confused on some parts of the clock
May 11, 2015
The FTDI port is used to reprogram the microcontroller withour having to remove the chip and place it on an Arduino board.
November 15, 2015
Bonjour,
Votre création est extrêmement bien réussie et mon épouse a été immédiatement emballée. Mes enfants vous en commanderont surement lorsqu’ils l’auront vue. Bravo!
Questions 1) Quelles pièces de remplacement devrais-je commander pour que le systeme dure looooongtemps? 2) Je ne suis pas un ”geek” mais j’aimerais savoir si l’on peut réduire la vitesse des changements de couleurs lorsqu’on utilise le boitier comme lampe. Peut-on acheter une piece additionnelle? Qui peut faire cette adaptation? Merci encore pour ses instants de plaisir. Une suggestion. Pourquoi ne pas faire la version lampe seulement et la vendre moins cher. Vous auriez je le crois un tres grand succes dans les grandes surfaces.
Jean-Pierre Rémillard
December 8, 2015
Bonjour M. Rémillard,
Merci pour vos commentaires! Vous ne devriez pas avoir à acheter de pièses pour plusieurs milliers d’heures! La pile à l’intérieur devrait durer quelques années et il est très facile d’en retrouver sur le marché. Les lumières elles sont plus difficile à trouver et peuvent être achetées sur mon site à http://store.basbrun.com. Il n’y a cependant pas d’urgence car elles ne devraient pas “brûler” avant quelques années elles aussi.
Pour la vitesse de changement des couleurs il faudrait changer le code à l’intérieur de l’horloge. Je vais bientôt écrire un article sur cette technique ici sur mon blogue. Vous pouvez joinder ma liste de courriels pour être avisé quand je publie un article.
Merci,
Philippe
May 12, 2015
[…] Chrétien buscó financiación colectiva para fabricar una idea, el Reloj Fibonacci, y ya hay miles de personas interesadas que han multiplicado por 20 sus […]
May 13, 2015
Hi,
what pretty project. When i look at your board there are two ideas.
Instead of 3 V battery it is possible to make it with a goldcab super capacitor (it is 4 of 1N4148, 0,047 µ goldcab and 2 resistors (910 Ohm and 4,7 kOhm). So you never have to change a battery – goldcab never needs support.
The case of the crystall for the DS1307 should be grounded (see data sheet), i think this is because of sometimes bad power supplies.
Greetings from Fred
May 13, 2015
Hello Fred,
Thank you for your great input! This is much appreciated! The idea of the battery was to make sure I could preset the clock for my clients and not worry about them not plugging it on reception. How long do you think this capacitor could hold on?
I didn’t know about the case having to be grounded! I’ll look forward to that.
Have a nice day,
Philippe
May 16, 2015
i do the goldcab things for wordclock project (Arduino Atmega 328-p-pu and ds 1307^^) and i let it away from power for more than 2 weeks and still time is correct there… (so mayby time is 3 or 4 or more weeks still there) DS 1307 does not need much power… if you whish i send you a assembld pcb for your own tests (of course for free – we are all builders).
You can send me a Email to f.holtkamp (at) gmx.de
May 30, 2015
Salut je suis de Trois-Rivières… Puis-je passer à Montréal chercher une horloge tout assemblée et prêt pour l’achat ? Au courant la semaine qui vient … 1 au 4 juin ? Merci d’avance.
May 31, 2015
Bonjour,
Merci pour votre message! Les horloges assemblées ne seront pas prêtes avant le mois d’août. De plus, je me dois de fabriquer et envoyer les horloges et kits à tous ceux qui ont appuyé mon projet sur Kickstarter avant de les vendres à l’extérieur de leur plateforme.
Bonne journée,
Philippe
May 31, 2015
Merci de votre réponse.
Ok… Mais est-ce possible pour une non assemblée ?
Avec tout inclus pour le fonctionement… J’ai quand même de l’expérience en assemblage électronique…. J’etais juste un peu paresseux ces temps ci… LoL
May 31, 2015
Hi Philippe,
I’d love to congratulate you on your invention and being ‘the inspiration’ for my first beautiful Android wear Watch Face! Thanks man! :-) You can check it out here https://goo.gl/xM3Zut
June 3, 2015
Hey Philippe,
I’m a huge fan of your fibonacci clock and I wanted to purchase a DIY kit from you, however I missed the kickstarter reward for that by a day! I was just wondering if you still had the Fritzing .fzz file that has the schematics for the circuit board lying around, and possibly if I could have a copy to try and build a clock myself!
Thanks!
June 3, 2015
Thanks for your messsage!
You can still buy the 75$ DIY kit on Kickstarter for an other 40 hours!
I will publish all the schematics at the end of the Kickstarter campaign!
June 8, 2015
This looks really great! I’d love to build one from scratch but can you upload better schematics, for instance; dimensions and diagrams for the case and a fritzing sort of file for the electronics
Thanks!
June 8, 2015
Hello Tom,
Thanks for your message!
I’ll post the schematics in a couple of days … Still have to clean the Fritzing file.
Phil
June 16, 2015
You I2C pull-up resistors seem like over kill at 22K. Your schematic shows 2.2K resistors? I am confused as to which they are? Also if your using 5V logic which from your schematic your it would seem the pull-up resistors would be 4.7K.
June 17, 2015
Hello Chris,
My bad, that’s a typo! It’s actually 2.2K.
Thanks for the hint, just fixed it!
July 9, 2015
Hi Philippe,
Can I use Led pixels strip driver IC INK1003 instead of WS2811? Which driver IC can you use to replace WS2811?
Regards
September 20, 2015
Hi,
I’m using the WS2811 because the libraries for Arduino are solid and well maintained. You can use any LED controller but I don’t know much about the different libraries available.
Regards,
Phil
July 25, 2015
[…] me go crazy. Fibonacci Clock (Quora link: http://goo.gl/oUVtZs) (Original Idea: basbrun.com) The idea was simple yet amazing! Using the fibonacci series to display the […]
October 12, 2015
Just got my clock this weekend. Thanks its fabulous.
October 24, 2015
Hi Malcom,
I’m glad you like it! Would love to see a picture of the clock in it’s new home!
October 13, 2015
This clock is beautiful! I’ve had it setup for about a week now and it makes me smile every time I see it. The colors are great and it give me a periodic math geek diversion.
It would be nice if there were also a smaller version, since this one is a little big to put on my desk at work next to my LED Binary Clock
(http://www.thinkgeek.com/product/59e0/).
…Walt
October 24, 2015
Ah ah… The Fibonacci Clock brings happiness! Glad you like it! Thanks for sharing…
November 12, 2015
Bought this clock as a gift for my partner and I don’t want to have to wait until Christmas to set it up! He may get it early…
I live in north Scotland and just wanted to say how impressed I was at the efficiency of delivery, thanks :)
November 13, 2015
Thank you Rebecca!
Hoping your partner will love the clock!
December 7, 2015
Hi,
I have been reading alot about woodworking when I came across steve Ramsey on Youtube. I think he made your clock and I thought its amazing! So I am very interested in buying a pre-soldered kit…. Only problem is I’m living in Germany, do you have these available for shipping if “yes”, what speed/costs are likely to be incurred or do you have any 3rd party suppliers that which can send to either the UK or Germany?
December 8, 2015
Hi Jake,
Thanks for your comment! You can get a kit on my store at http://store.basbrun.com. I ship worldwide and shipping to UK or Germany takes between 5 and 10 business days.
Regards,
Phil
December 15, 2015
What is the shipping time in US. Do you think I will get it for Christmas?
December 16, 2015
Hi Lori,
Sorry for the delay, I don’t read these messages often! I see you already ordered your clock…It shipped this afternoon and UPS estimate the time of delivery for the 22nd … Let’s say 23rd to be on the safe side. Should be good for Christmas!
Thanks for supporting this weird project of mine!
February 19, 2016
Hi Philippe…
Very pleased to receive my Fibonacci Clock this afternoon. (Ipswich, UK)
Came as a bit of a shock to have to pay £23 tax at the door; perhaps that could be mentioned somewhere on here? (Or did I miss it?)
Easy to set up, and it’s in pride of place mantlepiece.
Merci, Philippe!
March 2, 2016
Hello David,
Thank you for your message …
Unfortunately these fees are being charged by your government, not me. I apologize for any inconvenience, but I have no control over the customs authorities in the UK or any other of the 40+ countries.
Yes, I will add a note on my site for international buyers.
Thank you for your feedback,
Philippe
May 10, 2016
[…] https://basbrun.com/2015/05/04/fibonacci-clock/ […]
June 12, 2016
hello
i’m from china. i love it very much last year since i know it. but i see your web until today. i want to have it(fibonacci clock). Could i buy it?(It’s my first time shopping aboard). i’m very excited to send this message. Looking forward to your reply.
Thank you.
June 15, 2016
Hello,
Yes you can buy a clock or a kit at https://store.basbrun.com
Thanks
January 13, 2017
Why did you choose not to display 12 hours from 12:00 to 12:59?
Red and blue are more appealing to me than White and green.
Has anyone offered the code to do this?
Thank you,
Barry
September 28, 2017
If you modified your design using my source code that I used to make a Windows executable application and screensaver, your clock would have a wider appeal and be much easier to read.
https://www.youtube.com/watch?v=IFEdMHbIu7I
http://www.qb45.org/files.php?action=showfile&id=1759