[James Bruton], from the XRobots YouTube channel is known for his multipart robot and cosplay builds. Occasionally, though, he creates a one-off build. Recently, he created a video showing how to build a LED ball that changes color depending on its movement.
The project is built around a series of 3D printed “arms” around a hollow core, each loaded with a strip of APA102 RGB LEDs. An Arduino Mega reads orientation data from an MPU6050 and changes the color of the LEDs based on that input. Two buttons attached to the Mega modify the way that the LEDs change color. The Mega, MPU6050, battery and power circuitry are mounted in the middle of the ball. The DotStar strips are stuck to the outside of the curved arms and the wiring goes from one end of the DotStar strip, up through the middle column of the ball to the top of the next arm. This means more complicated wiring but allows for easier programming of the LEDs.
Unlike [James’] other projects, this one is a quickie, but it works as a great introduction to programming DotStar LEDs with an Arduino, as well as using an accelerometer and gyro chip. The code and the CAD is up on Github if you want to create your own. [James] has had a few of his projects on the site before; check out his Open Dog project, but there’s also another blinky ball project as well.
We did something similar, but with a *few* more LEDs: https://youtu.be/NjKuOHK_gLE?t=984
( large ball at https://youtu.be/NjKuOHK_gLE?t=1248 )
Similar hardware (large lipo, 5V regulator, Wemos D1, BNO055) in many ways.
One important thing though – put your IMU in the *centre* of the ball, not way off to the side.
Hmm, raises the idea of a surreptitious ball which can ‘do things when you don’t expect email too’ and which looks completely benign and even feels like an ordinary softish rubber ball ;-)
Maybe for some next Halloween toys, chance to flood the western world with more chaotic junk…
Impressive and original. A little advanced for me but I’ll get there eventually and all for only 11 volts if I understoood correctly.
DotStar APA107 is better…or the coming one dotstar NS107S