• Skip to main content
  • Skip to header right navigation
  • Skip to site footer
Maker Hacks

Maker Hacks

Ideas, news & tutorials for makers and hackers – Arduino/Raspberry Pi, 3D printing, robotics, laser cutting, and more

  • Home
  • About
  • YouTube
  • Recommendations
  • Contact

3D Printed Kryptonite with Arduino Random RGB Glow

You are here: Home / Makes, Tests, and Builds / 3D Printed Kryptonite with Arduino Random RGB Glow
FacebookTweetPin
Author: Chris Garrett

In this make we 3d print Kryptonite, and add multi-coloured lighting effects using Arduino and RGB LED lights!

3D Printed Kryptonite with ArduinoMy daughter’s favourite TV show right now is Supergirl. She was feeling a bit grumpy so we joked that she had been exposed to Red Kryptonite. This inspired me to make her some, with a twist!

3D Printing the Kryptonite

I am fortunate to have multiple printers so I could cut the time spent on this greatly by dividing up the print between my Wombot and my Wanhao.

Grab the files for yourself from here.

Poor layersThe “rock” base was printed on the Wombot in Aurorum grey PLA. Unfortunately the first attempt had poor layer adhesion, so I quit the print and bumped up the temperature. On the second attempt it was borked by the spool jamming, and jerking the hot end back. This caused a huge layer shift.

I paused the print, took note of where the Z height had gotten to, pushed the object that far lower in Simplify3D, output the gcode, and started the second half of the print again.

Borked print Second attempt progress paused

Thankfully the second half printed ok. This is where in my haste I caused myself a pretty nasty injury.

The Wombot side had taken so long I was at this point impatient to get the whole thing done. I wanted to surprise my daughter and cheer her up before she went to sleep, which clouded my judgement. In taking the print off the bed I gave myself a severe gash in my arm (luckily reaching but not cutting muscle or veins).

Careful when removing prints
Be careful removing prints

Please don’t do what I did.

6 stitches later I was back in action.

On my Wanhao I printed the crystal in eSun natural PLA. I sliced it in vase mode. The idea here was to give it optimum opacity, because I wanted to shine LEDs through. I think it came out pretty well.

Clear Kryptonite on base

Next up was to cause the Kryptonite Glow.

Adding Simple Lights

The most basic version of the lighting is, of course, an LED and a battery.

Strictly speaking you should not connect a battery to an LED without a resistor, but as already established, I was in a rush. Batteries and LEDs are cheap anyway.

2016-04-10 14.58.07 3D Printed Kryptonite with Arduino

This gave the desired effect, and you could happily stop there, but I wanted more. I had in mind a gimmick.

Easy Multi-Coloured Lighting Effects with Arduino!

What started all this was me joking about Red Kryptonite. Red Kryptonite makes Kryptonians go from mild mannered to angry. I wanted to make a kind of superhero mood ring.

All you need is an Arduino (I chose a Nano for this, because cheap and because it has a USB connection), and of course at least one LED. Because of the colour change requirement I could either go with just a red LED and a green LED, but I chose instead an RGB LED. This means I could expand it to be any colour (the comics have had a whole bunch of them over the years).

Wiring up the RGB LED pins with Arduino
Wiring up the RGB LED pins with Arduino

Wiring up the RGB LED is very simple. The first leg of the RGB LED is the red pin, second leg is the ground, then there is green and last is blue. These are attached to Arduino PWM pins, in my case 3, 5 and 6. PWM pins allow you to not just supply “on” or “off”, but vary the value from 0 to 255. This means we can mix and match the R, G and B values to create many different colours, and fade gradually.

Easy multi-coloured lighting effects with Arduino
Easy multi-coloured lighting effects with Arduino

RGB LED Arduino Code

What I wanted was a random chance of getting red, but most of the time to present green. Thankfully, there is an easy random function just waiting to be used.

Random Kryptonite Code

Using the randomization code and the PWM signal, we can choose red or green, then fade the colour in and out in a kind of pulsing effect.

All that was left was to present it to my daughter. She found it funny but I am sure she would have liked it a heck of a lot more without a night time dash to the Urgent Care doctor 🙂

Related

Category: Makes, Tests, and BuildsTag: 3d printed, 3d printing, arduino, lighting, props
FacebookTweetPin

About Chris Garrett

Marketing Director by day, maker, retro gaming, tabletop war/roleplaying nerd by night. Co-author of the Problogger Book with Darren Rowse. Husband, Dad, 🇨🇦 Canadian.

Check out Retro Game Coders for retro gaming/computing.

☕️ Support Maker Hacks on Ko-Fi and get exclusive content and rewards!

Previous Post:3D Printing Quiz
Next Post:How to Play Better Arduino Sound Effects with the BY8301-16P MP3 Module

Sidebar

  • Facebook
  • Twitter
  • Instagram
  • YouTube

Recently Popular

  • Gweike Cloud Review
  • How to choose the right 3D printer for you
  • Glowforge Review – Glowforge Laser Engraver Impressions, Plus Glowforge Versus Leading Laser Cutters
  • Original Prusa i3 Mk3S Review
  • Best 3D Printing Facebook Groups
  • Elegoo Mars Review – Review of the Elegoo Mars MSLA Resin 3D Printer
  • Glowforge ‘Pass-Through’ Hack: Tricking the Front Flap of the Glowforge with Magnets to Increase Capacity
  • How to Make a DIY “Internet of Things” Thermometer with ESP8266/Arduino
  • Wanhao Duplicator i3 Review
  • IKEA 3D Printer Enclosure Hack for Wanhao Di3
  • Creality CR-10 3d printer review – Large format, quality output, at a low price!
  • 3D Printed Tardis with Arduino Lights and Sounds
  • Anet A8 Review – Budget ($200 or less!) 3D Printer Kit Review
  • Make your own PEI 3D printer bed and get every print to stick!
  • Upgrading the Wanhao Di3 from Good to Amazing
  • How to Install and Set Up Octopi / Octoprint
  • Creality CR-10 S5 Review

Copyright © 2023 · Maker Hacks · All Rights Reserved · Powered by Mai Theme