Why Fibonacci?

75 points by _Microft 13 hours ago on hackernews | 15 comments

I was inspired to create my first Fibonacci LED piece after seeing this video by Jim Bumgardner in 2015. I credit him for starting my Fibonacci obsession.

Fast forward to 2026. I’ve made dozens of Fibonacci designs. Recently, I saw this brilliant post by Nick Pisarro explaining the use of the golden angle in creating his beautiful Halo Pixel. It got me thinking about how to explain the techniques I use.

Every Fibonacci board I make, from the tiny One Inch Fibonacci64 to the Fibonacci1024, puts its LEDs on a Fermat spiral, the same pattern as the seeds in a sunflower. It’s different from the “Fibonacci spiral” drawn from squares, which is a single curve. The Fibonacci step shows where the name comes from.

The rules

Start at the center. Then repeat:

  1. Step out a little.
  2. Add an LED.
  3. Turn 137.508°.

Every LED on every¹ Fibonacci board is placed by those rules. LED n sits n × 137.508° around from the first, and about √n out from the center. The next two steps explain those two numbers.

¹ There are exceptions to the √n rule, of course, like Fibonacci64 Flower and Fibonacci256 Expanding.

The golden angle

Any simple fraction of a turn makes spokes. At 90° (a quarter turn), every 4th LED lands on the same line. 120° makes 3 spokes, and 135° (3/8 of a turn) makes 8.

At 137° the LEDs still bunch into arms with gaps between them. 137.5° is exactly 55/144 of a turn, so the edge starts to crowd.

The golden angle, 360° ÷ φ² ≈ 137.508°, can’t be written as a fraction at all, so the LEDs never line up. The animation measures how close the two nearest of 600 LEDs get, as a percentage of the spacing in a perfect honeycomb.

angle closest two LEDs
90° 4%
135° 9%
137° 55%
137.5° 82%
137.508° (golden) 87%

The golden angle isn’t the only angle that scores well, though. Other “noble” angles, like 99.5°, come close. The golden angle is the one that’s furthest from every fraction.

Angles past 180° just mirror these: 222.492° (360° − 137.508°) makes the same spiral, flipped. That’s why you’ll sometimes see the golden angle given as about 222.5°.

√n spacing

With the angle set, the next question is how far each LED steps out from the center. Each cell in the animation is the part of the board that’s closer to its LED than to any other.

If every step out is the same size, the edge has far more room than the middle but gets no more LEDs, so the LEDs end up crowded together in the middle and far apart at the edge. The biggest cell is about 150 times the size of the smallest.

A disc’s area grows with the square of its radius, so the steps out have to shrink as you go. Stepping out by √n gives every LED the same share of the board, and neighboring LEDs end up evenly spaced. The biggest cell is then only 1.3 times the smallest. If the steps shrink faster than that, it flips, with the LEDs far apart in the middle and crowded at the edge.

With equal area for every LED, the pixel density is the same all the way across the board.

You can always add one more

A square grid only looks tidy at square numbers, rings only when every ring is full, and a hex grid only at 7, 19, 37, 61… The faint outlines in the animation show the spots each layout still needs to fill before it looks right again.

The spiral is an even, round disc at every count, and adding an LED never moves any of the others. The Fibonacci32, Fibonacci64, Fibonacci128, Fibonacci256, Fibonacci512 and Fibonacci1024 all use the same layout, with differently sized LEDs and different spacings, each stopped at a different count.

Where the Fibonacci numbers come from

Look closely at any of the boards and you’ll see spiral arms. Connect every 3rd LED and you get 3 arms, because the golden angle is close to 1/3 of a turn. Every 5th LED makes 5 arms curving the other way, every 8th makes 8, and so on. Each of those fractions (2/5, 3/8, 5/13, 8/21…) is a little closer to the golden angle than the last, so each set of arms is a little straighter.

Any other count, like 4 or 30, zigzags or wobbles across the board instead.

The arm counts are 3, 5, 8, 13, 21 and 34. Put 1, 1 and 2 in front and each number is the sum of the two before it. They’re the Fibonacci numbers, which is where the boards get their name. Count the spirals in a sunflower head and you’ll find Fibonacci numbers there too.

Real boards

The video shows a real Fibonacci256, then the One Inch Fibonacci64, One Inch Fibonacci128, Fibonacci512 and Fibonacci1024. All of them follow the same rules.

The animations and videos in this post are © Evil Genius Labs LLC, licensed CC BY-NC 4.0. You’re welcome to share and adapt them with credit, but not commercially.