Cover image for Worlds most advanced Bauble

Videos

Watch the associated videos here:


Overview

In this tutorial weā€™ll look at:

  • Cheerlights - The Inspiration
  • Wheatley - 3d design
  • 3d Design - The printable parts
  • Electronics - Wiring up
  • MicroPython - Code

Bill of Materials

Item Description Qty Price
Pimoroni Plasma Stick 2040 W Raspberry Pi Pico, aboard 1 Ā£12.00
Adafruit Jewel 7x Neopixel model 7 RGB unit 1 $5.95

Cheerlights

What is it?

  • CheerLights is an ā€œInternet of Thingsā€ project created byĀ Hans ScharlerĀ in 2011
  • Allows peopleā€™s lights all across the world to synchronize to one color set by Twitter
  • This is a way to connect physical things with social networking experiences

You can change the colour of all cheerlights globally by Tweeting (from Twitter):

#cheerlights blue

Checkout Hansā€™ amazing Cheerlights website here: https://www.cheerlights.com


Wheatley - 3d design

Wheatley - the Portal 2 Character.

slide 4

Portal & Portal 2 are amongst my favourite games, I played portal which was bundled as part of the Orange Box Xbox 360 game a couple of years ago.

Wheatley is an AI character from Portal 2, and is described as an Intelligence Dampening Sphere.

Heā€™s round, so Iā€™ve chosen to make a model based on this design, and it was also a reason to design something fun in Fusion 360.


Wheatley 3d design

slide 5

The design is made up of 4x 3d printable parts:

  • Two main halves (left and right)
  • Eye piece
  • Top holder loop

It was quite a complex design to model, involving the creation of a number of smaller and larger sphere, which are then use to subtrack material away from each other.

The design is also round - just like a Christmas Bauble! It also about the same size a regular Christmas Tree Bauble.

Grab the STL files here


Left Half

slide 6

As you can see in the slide above, the left half has a hollow center, where the electronics are housed.

It also has two recessed sections that enable the eye piece and the top loop to be locked into place.

The tolerances are such that using the eye piece between the two halves provides sufficient friction and purchase to keep both halves together.

If the fit is different on your 3dprinted model, you can also use 2x M2 screws to secure the two halves together.


Loop

The loop is simply for hanging the bauble from a tree (like a regular decoration).

slide 7

It features:

  • Simple loop
  • Attach some thread/cord to the loop
  • Is secured by the small lip that extrudes all the way round
  • Allows the USB cable to push into the center

Eye

Diffuses the LED lights.

slide 8

The eye features:

  • A simple, coin like, circle
  • Attach the RGB LED using Hot-Glue / Blutac to the back of the eye
  • Is secured be a small slot within each half
  • Print in white, use an infill pattern to make the light defuse in interesting ways (I used hexagonal pattern)

Electronics

slide 11

The electronics for this project are super simple:

  • The Pimoroni Plasma Stick 2040 W
    • Has a Raspberry Pi Pico W aboard
    • Has a reset button
    • QW/ST connector
    • 3 screw terminal for connecting the LED Strips
  • Adafruit Neopixel Jewel (or compatible), watch out for RGB or RGBW, and RGB order

Wiring up Electronics

slide 12

  • Solder 3 wires to the back of the RGB led module:
    • 5v - red wire
    • GND - black wire
    • Data in - blue wire

MicroPython code

Download the project files from: https://www.github.com/kevinmcaleer/christmas-cheer

The main MicroPython code you will need is:

  • rgb.py - the RGB helper library
  • pattern.py - contains the code for cheerlight_bauble.py
  • cheerlight_bauble.py - the main webserver code
  • index.html - the web page template
  • header.html - the web page header template
  • footer.html - the web page footer template

There are also a couple of stand-alone demo programs:

  • colour.py - a simple solid colour test
  • spin.py - spins colours round the display
  • glow.py - glow colours on the display

STL files

Grab the 3d printable STL files here:


Did you find this content useful?


If you found this high quality content useful please consider supporting my work, so I can continue to create more content for you.

I give away all my content for free: Weekly video content on YouTube, 3d Printable designs, Programs and Code, Reviews and Project write-ups, but 98% of visitors don't give back, they simply read/watch, download and go. If everyone who reads or watches my content, who likes it, helps fund it just a little, my future would be more secure for years to come. A price of a cup of coffee is all I ask.

There are a couple of ways you can support my work financially:


If you can't afford to provide any financial support, you can also help me grow my influence by doing the following:


Thank you again for your support and helping me grow my hobby into a business I can sustain.
- Kevin McAleer