Gem of Light [WITH JIGGLE BUTTON ACTION!]
by ericlikescats1 in Circuits > Arduino
135 Views, 1 Favorites, 0 Comments
Gem of Light [WITH JIGGLE BUTTON ACTION!]



Hello, this is a passion project I have been working on for a few months now. The design of the craft is highly inspired by a pink diamond from Steven universe. I would also like to quickly credit https://www.youtube.com/@JustBaselmansYT for the code which I have altered to fit the project.
Supplies









Supplies:
Small Breadboard with power lines
1 9V Battery
1 Arduino Nano
1 DFplayer mini
1 DPDT button and button cover
Assorted colors of solid core wire
1 1K resistor
1 Capacitor [I chose a 680uF/16V capacitor]
1 micro SD card
1 white LED
1 Speaker
Male to Male jumper cables
Female to Male jumper cables
Translucent Filament [I have chosen pink, but any color will work.]
Tools:
Hot glue gun
Access to a 3d Printer
Access to a solder station/gun
Access to a computer
Wire Strippers
Mini USB cable
Drill to make a hole...
3D Print the Gem Shell and Button
Currently the gem is split into 4 parts, the button, the top, and 2 split parts of the base. Priority for printing first should be the top and part 1 of the base.
Solder the LED
Solder 2 wires to each side of the LED. I personally used a LED that required soldering, but if your using a LED diode, you should be able to attach jumper cables to the pins without too much effort.
Solder the Speaker


Just like the LED, solder 2 wires to each side of the speaker.
Solder Button



This one will require some effort. cut off both jumper ends of the 9 V battery header, and strip it carefully using a pair of wire strippers. following the above image, choose one side of the DPDT button and solder the red wire to one of openly open pin and the black wire to the common pin.
Assemble Resistor
Grab 1 1k resistor and place it between 2 female ends of 2 jumper cables and set aside
Construct the Circuit


Now that we have all the parts required assembled and lets put together this circuit. grab the breadboard, arduino and DFplayer and speaker and resistor and place them on the breadboard. attach either jumper cables or stripped solid core wire and attached them to the assigned spot according to the diagram.
Download Arduino IDE and Formatter
Using a desktop or laptop, install the Arduino IDE software and SD card formatter.
Format and Fill Micro-SD
Using either a SD card slot on your desktop or laptop, use the formatter to format the micro-SD into a FAT32 or FAT16 format. after formatting, make a folder named 01 and fill it with the desired audio file. I included the song I used from the show this is based off of, but the song is up to you. after completed, attach into the DFPlayer's Micro-SD card slot
Write Arduino Code
open Arduino IDE after instillation and ensure it opens properly. after confirming, open the included file, this should open IDE and make a new project using the code.
Downloads
Upload Arduino Code
Using the above project, plug in your Arduino using the mini USB cable to the desktop. at the top left there is an arrow that should when hovered over it say "upload". press upload and wait for it to be finished and ensure it uploaded properly before continuing. IF IT DOES NOT UPLOAD, CHECK THAT NEXT TO THE UPLOAD IT SAYS "ARDUINO NANO" IF IT DOESN'T, PLEASE CLICK THE SELECT BOARD AND SELECT ARDUINO NANO FROM THE LIST.
Attach Battery and Converter



Using a hot glue gun, thread the button and header through the hole in the top of the gem. glue the converter to the gem top as shown and screw in the positive and ground wires.
Attach Breadboard


attach the breadboard as shown in the images to part 1 of the base, making sure to both thread the LED through the 2 holes and to place the speaker so the soldered part is in the curved end of the square shaped hole.
Attach Speaker


using hot glue, carefully glue down the corners of the speaker, being extremely careful not to get glue in the actual speaker itself.
Attach Buttons

carefully put glue on top of the small wall on the base and place the button on top making sure the button fits snugly on the wall
Attach LED


after all the parts have been been glued down, flip over the base and dab a small bead of hot glue and stick on the LED.
Glue Together the 2 Gem Pieces


after all parts have cooled and solidified, find the orientation which the second part of the gem base fits smoothly, then place glue around the rim of the gem, making sure you are gluing LED side up. place the final base piece on.
Add Electrical Tape to Cover Lights (optional)

reflip over the gem, grab a few pieces of electrical tape and cover both lights on the DFPlayer and arduino.
Attach Final Button


using a piece of tape, place it on the button and orient the 3d printed button to fit the top, pressing down so the tape sticks. using the tape as a guide, drill a hole into the button. glue one of the button caps into the newly made hole, making note of the button orientation. [Use enough hot glue inside the button to make for a firm and steady push. align the button and press down to attach the cap with the button on the circuit.
BASK IN ITS LIGHT

Your gem is officially done! the gem will run forever so long as it has power and hasn't been turned off. if you want the song to replay just turn it off and on again! THANK YOU SO MUCH FOR READING