Skip to the content
PCBKitNew board
2 layers105 × 90 mmFibonacci clock pcb, the printed circuit board in 3D

Fibonacci clock pcb

alphaseneca/fibonacci_clock

A unique clock that uses the Fibonacci sequence to display time with colored squares, combining math and art in an innovative timekeeping design.

Size
105 × 90 mm
Copper layers
2
Thickness
1.6 mm
Parts
13
Nets
52
Pads
127
Tracks, vias
314, 7
Pours
1
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
15 Jul 2024
Updated
25 Oct 2024

Overview

Fibonacci clock pcb is an open-source printed circuit board by alphaseneca, from the alphaseneca/fibonacci_clock repository on GitHub. It is a 2-layer board of 105 × 90 mm with 13 parts on 52 nets, routed with 314 tracks and 7 vias.

It is built around the WEMOS D1 MINI. Its parts include 5 ICs and 3 connectors. It belongs with the lEDs and displays boards and the ESP8266 boards of this library.

Main components

1

README

README.md

Fibonacci Clock

A unique clock project that combines math and electronics using the Fibonacci sequence to display time with colored segments. Powered by a Wemos D1 Mini, it fetches the current time using NTP. This repository serves as a learning journal, tracking the development process, inspirations, troubleshooting, and future improvements.



Repository Structure

  • images/: Photos of the clock and its working principle.
  • fibonacci_clock_code/: Contains the code to run the Fibonacci clock logic.
  • fibonacci_clock_pcb/: Files and documentation for the PCB design.
  • debugging/: Logs of issues encountered and solutions applied during development.

How It Works

The Fibonacci Clock displays time by lighting up segments of a matrix corresponding to Fibonacci numbers.

  • Microcontroller: Wemos D1 Mini (ESP8266).
  • Time Sync: Fetches the current time via NTP (Network Time Protocol).
  • Hour Representation:
    Example: If the time is 6:42, segments 1 and 5 are lit RED, which sum to 6 for the hour.
  • Minute Representation:
    For 42 minutes, segments 3 and 5 are lit BLUE, resulting in (3 + 5) × 5 = 40 minutes.
  • Overlap:
    When a segment represents both hours and minutes (e.g., segment 5), it is lit GREEN to indicate overlap.

Working Principle Diagram:
Fibonacci Clock Working

Segments only represent numbers between 1 - 12, and minute values are scaled by multiplying by 5.
Time increments are in 5-minute intervals, so valid minute values range between 40 - 45 minutes.


The Journey So Far

Building this clock has been an exciting adventure. It started as a simple idea to make a desktop artpiece that is bit unique and looks cool and ended up being a timekeeping device. Using the Wemos D1 Mini to sync time with NTP added complexity but opened new possibilities.

Creating the PCB design was also a journey in its own. I started with the prefboard and the main project is still on the prefboard but for the further development and to make the device look clean and more presentable the PCB design was created.

The pcb that I created is not complete. It is still a work in progress and nowhere near to the original design. I am planning to make the project like the main original design itself.

Future iterations may include offline timekeeping by integrating an RTC module to eliminate reliance on NTP. Wireless control and animations are also on the horizon!


Debugging Log

  • Issue 1: Incorrect color when hours and minutes overlapped.
    • Solution: Modified the RGB blending logic to correctly show GREEN for overlaps.
  • Issue 2: Incorrect minute calculation when sum exceeded valid range.
    • Solution: Added checks to restrict values between 0-12 for valid Fibonacci sums.
  • Issue 3: The light is not bright enough and flickers a lot.
    • Solution: Removed the delay in the main loop to reduce flickering.

      Just a current solution though. Planning to remove the second solution in the future busing MAX7219 chip rather than the LM74HC595 chip.


Future Improvements

  • RTC Integration: Add an RTC module (like DS3231) for offline timekeeping.
  • PCB Enhancements: Optimize the layout for smaller size and better wiring.
  • Dynamic Patterns: Add animations or interactive light sequences. There could be much more animations and the rgb led can be used to show some patterns.
  • Battery Power: Implement battery-powered functionality for portability.

References and Inspirations


This repository will continue to evolve as I experiment with new features and improvements.

Parts

13
QtyValueFootprintReferences
4MountingHole_PadMountingHole:MountingHole_3mm_Pad_TopBottomH1, H2, H3, H4
1BluePackage_DIP:DIP-16_W7.62mmU4
1Bottom 16Connector_PinSocket_2.54mm:PinSocket_1x16_P2.54mm_VerticalJ2
1CathodePackage_DIP:DIP-16_W7.62mmU1
1GreenPackage_DIP:DIP-16_W7.62mmU3
1Jack-DCConnector_BarrelJack:BarrelJack_HorizontalJ3
1LOGOAssets:logoG***
1RedPackage_DIP:DIP-16_W7.62mmU2
1Top 16Connector_PinSocket_2.54mm:PinSocket_1x16_P2.54mm_VerticalJ1
1WeMos_D1_miniModule:WEMOS_D1_mini_lightU5

Questions

How big is the Fibonacci clock pcb PCB?

It measures 105 × 90 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Fibonacci clock pcb use?

13 parts, built around the WEMOS D1 MINI. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Fibonacci clock pcb KiCad files?

From the alphaseneca/fibonacci_clock repository on GitHub, at the commit this page was made from: the board is fibonacci_clock_pcb/fibonacci_clock_pcb.kicad_pcb and its schematic fibonacci_clock_pcb/fibonacci_clock_pcb.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Fibonacci clock pcb design in my own project?

Its repository states no licence, so its author keeps all rights: ask alphaseneca before reusing the design.

Similar boards

  • 2 layers70.1 × 43.2 mmIaq device, the printed circuit board in 3D

    Iaq device

    nkitanov/iaq_board

    IAQ Board is a DIY (Do-It-Yourself) device for measuring internal air quality

    19 parts396
  • 2 layers32.1 × 40.8 mmPower Monitor Version 1, the printed circuit board in 3D

    Power Monitor Version 1

    alcar21/WemosEM

    Cheap power monitor (STC013) with Home Assistant Discover and Wemos D1 Mini / PRO (esp8266)

    8 parts122
  • 2 layers91 × 49 mmWled, the printed circuit board in 3D

    Wled

    wladwnt/wled

    Simple WLED Board (SW: https://github.com/Aircoookie/WLED)

    9 parts102
  • 2 layers97.5 × 59.3 mmControl Board, the printed circuit board in 3D

    Control Board

    kholia/Easy-Digital-Beacons-v1

    A simple and easy Arduino / Pi Pico / ESP8266-powered WSPR, FT8, and FT4 beacon system which uses NTP + DS3231 RTC for timing. Super extensible! Now comes with optional GPS support.

    17 parts89
  • 2 layers64.6 × 36.9 mmNavien latest, the printed circuit board in 3D

    Navien latest

    htumanyan/navien

    Navien water heater wire protocol for communication with NaviLink and other attached devices

    30 parts65
  • 2 layers49.5 × 30 mmAirpcb smd old, the printed circuit board in 3D

    Airpcb smd old

    issalig/toshiba_air_cond

    AB protocol decoder for toshiba air conditioners

    30 parts65
  • 2 layersTcsmonitor pcb, the printed circuit board in 3D

    Tcsmonitor pcb

    Syralist/tcs-monitor

    ein Bus-Monitor für TCS Klingelanlagen

    14 parts37MIT