Crystal Nightlight

It looks... sinister, but is better for the circadian rhythm

 

Finally!  A project my 2-year-old understands and appreciates right out the gate.  She’s thrilled.  I’m thrilled.

At the beginning of the summer, my wife and I were discussing the design of our daughter’s “big-girl” room: paint, furniture, window treatments, etc.  Around the same time, we were watching Trollhunters on Netflix, and I discovered a subreddit dedicated to mineral photos.  The raw beauty of the natural structures our planet can generate under the correct circumstances came together with the whimsy and wonder of Troll Market, and the crystal nightlight was born.

Parts List:

Pro Trinket 5V 16MHz – Adafruit 2000

8/26/17 UPDATE: Super Bright Blue 5mm LED – Adafruit 301

Blue LEDs are not appropriate for nightlight, so they have been changed to Red.  Thank you to Reddit user u/-Fateless- for the info on that.

Super Bright Red 5mm LED – Amazon (You can find them on Adafruit too, but were out of stock when I needed them).

Silicone Covered 26AWG Stranded-Core Wire, Red – Adafruit 1877

Silicone Covered 26AWG Stranded-Core Wire, Black – Adafruit 1881

Silicone Covered 26AWG Stranded-Core Wire, Blue – Adafruit 1878

Insulated Reed Switch – Sparkfun COM-10601

1/4″ OD x 1/8″ THK NdFeB, Grade N42 Magnet – K&J Magnetics D42

1 kΩ Resistor – Amazon

10 kΩ Resistor – Amazon

Heat-shrink tubing

USB micro cable and outlet adapter.

Helpful Tools:

3D Printer (or printing service)

E6000 Glue

Soldering Iron

Wire Strippers

Flush Cutters

Helping Hands

Vice

  1. Print Parts

    All files can be found on Thingiverse, YouMagine, Cults3D, and MyMiniFactory.

    4/11/2018 UPDATE:  Consolidating the number of places hosting the files.  More changes to come, but they’re still available for free.

    March 2020 UPDATE: Files can be downloaded directly from this site at the bottom of the page.  They are also available on Prusa Printers!

    Material: PLA
    Color: Natural (for translucency) for all except CN-ElectronicHousing
    Infill: 20%
    Supports: CN-TriggerBottom only.
    Brim: CN-TriggerBottom and CN-TriggerTop

    Tried the electronic housing in a "PRO' filament and it failed ever time. I am disappoint.

  2. Prep LEDs

    Trim the negative lead and solder one 1 kΩ resistor to each one.  Solder a length of wire (BLACK) to the end of the resistor.  Cover area with heat shrink tubing.

    Trim the positive lead and solder a length of wire (BLUE).

    What you don't see is that this is already connected to the board.

    Do this for all five.

  3. Prep Switch

    Solder a length of wire (RED) to one end.  Solder a 10 kΩ resistor and length of wire (BLUE) in parallel to the other end.  Solder a length of wire (BLACK) to the end of the resistor.

    This too.

  4. Connect Components to Board

    Solder a length of wire (BLACK) to GND, and connect the rest of the wires as shown.

    Adafruit's photos are phenomenal.

    Connect all black wires from the LEDs with the length going to GND, solder together, and cover with heat shrink.

    See? Showing this alone would have just been a mess.

  5. Program Board

    As my first step into programming in Arduino, the code is far from elegant, but it works, and I’m happy with that.  It can be found either on TinkerCAD or GitHub.

    For flashier results, feel free to write your own code.  In the future, I’m intending to explore THIS resource recommended to me by the great Nate Philips.

    If you’re unfamiliar on how to set everything up for the Pro Trinket, Adafruit has detailed information HERE.

    Start up the board and test everything out before moving forward.

  6. Install Electronics

    Angle the Pro Trinket so that the end with the Micro USB connector fits into the connection area, and the mounting holes fit over the bumps.  When in position, press the back end into place until it locks into position.

    The little bumps for the mounting holes may have been overkill.

    If you need to remove the board at this point... You might need to break the snap... Sorry.

    Press fit the LEDs into their holders as shown.

    Fit the switch into CN-SwitchHolder, and press that assembly into CN-ElectronicsHousing.

    Positioning of LEDs is really your call.

  7. Assemble Cluster

    Press fit CN-Cluster onto CN-ElectronicsHousing.

    What a cluster.

  8. Assemble Trigger Crystal

    Press the magnet into the recess of CN-TriggerBottom.  Use a little E6000 glue and press CN-TriggerBottom into CN-TriggerTop.

    This fit so nicely...

    Trigger Crystal warning

  9. Light it Up

    Plug the micro USB cable into a power source and connect it to the assembly.

    Insert trigger crystal so that the part with the magnet is closest to the location of the reed switch.

    Should have included this before.

    Now with more red!

     

Like what you see here?  Follow me on Twitter @DragonMtnDesign for previews, updates, and to protect the world from Gunmar.

Full disclosure though, my wife and I are expecting our second child soon, so once DrachenDos decides to grace us with his or her presence, I’ll be taking  little sabbatical from projects. I hope to crank out one more post before then though…

…Maybe a Cheekymandos Series 1 Finale (hint hint).

.

.

.

March 2020 UPDATE:  Files are available here!  Click the Download button below for a zip file.

Files are available under the Creative Commons BY-NC-SA license.

License Deed

Legal Code

Categorised in: , , , , , , ,

1 Comment

Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.