Fibonacci numbers are seen in the natural structures of various plants, such as the florets in sunflower heads, areoles on cacti stems, and scales in pine cones. [HackerBox] has developed aĀ Fibonacci Spiral LED BadgeĀ to bring this natural phenomenon to your electronics.
To position each of the 64 addressable LEDs within the PCB layout, [HackerBox] computed the polar (r,Īø) coordinates in a spreadsheet according to theĀ Vogel modelĀ and then converted them to rectangular (x,y) coordinates. A little more math translates the points āoff originā into the center of the PCB space and scale them out to keep the first two 5 mm LEDs from overlapping. Finally, the LED coordinates were pasted into the KiCad PCB design file.
An RP2040 microcontroller controls the show, and a switch on the badge selects power between USB and three AA batteries and a DC/DC boost converter. The PCB also features two capacitive touch pads. [HackerBox] has published the KiCad filesĀ for the badge, and the CircuitPython firmware isĀ shared with the project. If C/C++ is more your preference, the RP2040 MCU can also be programmed using the Arduino IDE.
For more details on beautiful RGB lights, weāve previously presentedĀ Everything You Might Have Missed About Addressable LEDs, and for more details on why they can be so fun to wear, check out ourĀ Hackaday Badgelife Documentary.
(Editorās note: HackerBox makes and sells kits, is run by Hackaday Contributor [Joseph Long] IRL.)
Source: MATH YOU CAN WEAR: FIBONACCI SPIRAL LED BADGE