Why Fibonacci?

Hacker News by 5 min read 139x views
Why Fibonacci?

Share Post

I was inspired to create my archetypal Fibonacci LED part following seeing this video by Jim Bumgardner in 2015. I credit him for starting my Fibonacci obsession.

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

Every Fibonacci commission I make, from the small One Inch Fibonacci64 to the Fibonacci1024, puts its LEDs on a Fermat spiral, the identical form as the seeds in a sunflower. It’s distinct from the “Fibonacci spiral” drawn from squares, which is a sole curve. The Fibonacci stage shows anywhere 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 commission is placed by those rules. LED n sits n × 137.508° about from the first, and concerning √n out from the center. The next two steps explain those two numbers.

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

The aureate angle

Any uncomplicated fraction of a rotate makes spokes. At 90° (a fourth turn), all 4th LED lands on the identical line. 120° makes 3 spokes, and 135° (3/8 of a turn) makes 8.

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

The aureate angle, 360° ÷ φ² ≈ 137.508°, can’t be written as a fraction at all, so the LEDs never row up. The animation measures how near the two nearest of 600 LEDs get, as a percent of the spacing in a ideal honeycomb.

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

The aureate viewpoint isn’t the lone viewpoint that scores well, though. Other “noble” angles, akin 99.5°, arrive close. The aureate viewpoint is the one that’s furthest from all fraction.

Angles former 180° fair mirror these: 222.492° (360° − 137.508°) makes the identical spiral, flipped. That’s why you’ll sometimes see the aureate viewpoint stated as concerning 222.5°.

√n spacing

With the viewpoint set, the next inquiry is how far all LED steps out from the center. Each division in the animation is the part of the commission that’s nearer to its LED than to any other.

If all stage out is the identical size, the border has far additional area than the center but gets no additional LEDs, so the LEDs end up crowded together in the center and far distinct at the edge. The biggest division is concerning 150 times the size of the smallest.

A disc’s area grows alongside the quadrate of its radius, so the steps out have to shrink as you go. Stepping out by √n gives all LED the identical portion of the board, and neighboring LEDs end up evenly spaced. The biggest division is afterward lone 1.3 times the smallest. If the steps shrink faster than that, it flips, alongside the LEDs far distinct in the center and crowded at the edge.

With equal area for all LED, the pixel density is the identical all the way throughout the board.

You can continually add one more

A quadrate grid lone looks tidy at quadrate numbers, rings lone whenever all circle is full, and a hex grid lone at 7, 19, 37, 61… The faint outlines in the animation display the spots all layout motionless needs to inhabit before it looks correct again.

The spiral is an even, circular disc at all count, and adding an LED never moves any of the others. The Fibonacci32, Fibonacci64, Fibonacci128, Fibonacci256, Fibonacci512 and Fibonacci1024 all use the identical layout, alongside alternatively sized LEDs and distinct spacings, all stopped at a distinct count.

Where the Fibonacci numbers arrive from

Look closely at any of the boards and you’ll see spiral arms. Connect all 3rd LED and you get 3 arms, since the aureate viewpoint is near to 1/3 of a turn. Every 5th LED makes 5 arms curving the another way, all 8th makes 8, and so on. Each of those fractions (2/5, 3/8, 5/13, 8/21…) is a small nearer to the aureate viewpoint than the last, so all set of arms is a small straighter.

Any another count, akin 4 or 30, zigzags or wobbles throughout the commission instead.

The arm counts are 3, 5, 8, 13, 21 and 34. Put 1, 1 and 2 in forefront and all figure is the sum of the two before it. They’re the Fibonacci numbers, which is anywhere the boards get their name. Count the spirals in a sunflower caput and you’ll discover Fibonacci numbers there too.

Real boards

The video shows a genuine Fibonacci256, afterward the One Inch Fibonacci64, One Inch Fibonacci128, Fibonacci512 and Fibonacci1024. All of them prosecute the identical rules.

The animations and videos in this article are © Evil Genius Labs LLC, licensed CC BY-NC 4.0. You’re greeted to portion and modify them alongside credit, but not commercially.

Other Article Hacker News
↑
Close Right Ads
Close Left Ads