Introduction: LED Gyro Sphere - Arduino
Runner Up in the
Arduino Contest 2017
This is an entry in the
Epilog Challenge 9
Build this unique, cool interactive free-standing LED Sphere with multiple sensors that can be used to provide a fun platform for further development - interaction, lighting or games.
The unit is 3D printed and uses an Arduino Nano, Gyro Board, Audio Mic sensors controlling 130 independently controlled colored LEDs. There are two buttons for adding effects and menus for this unique gadget - the possibilities for effects can be endless.
The current code provided uses the Gyro output to change the color based on the rotation or attitude of the sphere which gives a unique effect as seen in the Youtube clip. I am progressively releasing example effects over the next few days that can be accessed through menus and displayed on the LED Gyro Sphere.
Step 1: Gather the Materials
WS2812 LEDs x 130 (Purchased in bulk from Ali Express)
Access to a 3D Printer
USB Cable - suitable to be modified
Single core hookup wire
Hot Glue Gun
15cmx5cm Vero Board
Step 2: 3D Print Case
The Sphere is 110mm in diameter with a wall thickness of approx 3mm using Black PLA filament. There are 130 LEDs to connect in the unit so it was more practical to print the unit in four components to make it easier to access the inside of the sphere with a soldering iron.
The files can be found on Thingiverse here
I used a Robo C2 printer which performed well for the print. By splitting the build into 4 units and printing two small pieces at the same time reduces the print time significantly.
Step 3: Build the LED Array
Preparing the Case For Assembly
Once the case has been printed in four pieces remove all excess plastic. This can be done using a pair of pliers and side cutters. I did use a lot of 3D model supports, so this will take some time and should be done carefully so as not to damage the case.
Tip: Use a Hot Glue Gun tip to melt some of the rough edges off on the inside of the case to reduce the effort involved and make it easier to smooth.
My LEDs needed a 7mm Diameter Hole to be able to fit snuggly into the case. Test one of your LEDs fit correctly and use a 7mm Drill Bit to clean out any excess plastic.
Fix the LEDs into the case
Starting at the bottom of the case push an LED into position. Use a blob of hot glue to hold into place and move onto the next hole. Ensure that the 5v contacts oriented in vertically and in a consistent manner as per the photographs.
Once one section is complete go over the LEDs again and put another blob of Hot Glue on the other side of the hole inside the unit so that at least two blobs of glue fasten each LED. Take care not to get the glue on the electrical contacts of LED. However, the Glue will burn off with the soldering iron if there is some spillage.
Preparing the LEDs
Once the LEDs are in place then using your soldering iron gently "Tin" each of the contacts on the LED with solder. This makes soldering the wires onto the contacts the process much easier. This is a very delicate touch with the soldering iron, simultaneously adding a touch of solder to the tip of your soldering iron and then moving away. TOO MUCH HEAT WILL DAMAGE THE LEDs - so be careful.
Connecting Up the LEDs
The LEDs are connected together using single core bell telephone hookup wire. This may look daunting however when done methodically is actually not too difficult.
Start by stripping the insulation off the hookup wire and build a pile of 25cm lengths.
Starting at the top of the section run a wire along the 5v contacts of one circular row of LEDs. Solder the end onto the contacts then bend the wire into position in an arc across all other contacts. Systematically tin the wire at each intersection point prior to attempting to solder to the LED. Then gently touch the iron on the wire and contact with some solder. Practice makes perfect - and you're about to get a lot of practice!!
Once complete repeat for the earth connection.
For the Data connection its the same process, however, I found that the best way is to solder one wire across both contacts on each LED (given they are in the centre) and then once complete come back with a sharp pair of side cutters and cut out the section of wire between each Input/Output contact on each LED. This speeds up the process considerably and is perfectly safe to do.
Joining the Layers
This is done as per the photographs in a pattern that ensures the LEDs travel around the Sphere sequentially. Carefully connect earth, Positive and Data In and Out contacts to each layer. then apply lots of glue to insulate and avoid movement.
At the completion of each section of LEDs I recommend you load the test code into an Arduino Nano and run to ensure all LEDs are working. The test pattern will light up all LEDs sequentially and will identify any issues.
Step 4: Building and Testing the Circuit
A small piece of Vero board has been used to mount eh Arduino Nano and the MPU6050 on the side of the power bank. The relatively simple wiring diagram in the Circuit Diagram shows the connection points on the board. The lions share of the effort is in the wiring of the LEDs which requires careful attention on polarity.
A Power Bank was added to the center of the unit with careful cutouts for charging. Hot glue was used for mounting all components.
Test programs have been included for each part of the build so you can check your LEDs are working.
The latest version of code V4 includes 6 different effects accessible through the two buttons which increment and decrement through the menu.
Step 5: Putting It All Together
Once tested then combine the units and the load the code provided. Fitting the unit together requires careful alignment of the top and bottom units and clearance of any hot glue or excess plastic.
Now go and enjoy your LED Gyro Sphere!
We have a be nice policy.
Please be positive and constructive.
I'm wondering, I knew I can't power and drain a power bank in the same time. Can you please detail more the power bank connectivity?
Hi, sure thing. The power bank I'm using cannot charge and deliver power to the circuit simultaneously, however, I have noticed that if you start the LED Gyro Sphere using the power switch then insert the USB cable into a PC the Powerbank either accommodates this or switches off the battery and supplies directly from the PC USB cable. I will update the instructable circuit with a pin out diagram. Hope this helps.
Please ignore my question about the connectivity.