Download as pdf or txt
Download as pdf or txt
You are on page 1of 13

instructables

Clapper LED Candle

by sbkirby

Three years ago I saw "My New Flame" by MORITZ There are seven of these around my house which I
WALDEMEYER, INGO MAURER UND TEAM 2012 use as ornamental candles and night lights. I keep
at the museum gift shop, and feel in love with the them plugged into a 5 VDC Cell Phone Charger to
idea. I hoped to recreate something mesmerizing, power the unit, and to recharge the Li-Ion battery.
enjoyable, functional and interesting to watch, but One charge can last around 18 hours, which makes
with a slight twist. I certainly couldn't make anything them great for emergency lighting.
comparable to the their beautiful work of art.
Therefore, I created a Clapper version of an LED Note: The Candle in the video on the right side with a
Candle. Clap twice to turn the candle ON or OFF. The cover isn't a Clapper Candle.
Clapper feature is optional, and can be turned ON or
OFF if included in the build. Or, this feature may be
omitted from the build entirely.

Clapper LED Candle: Page 1


https://www.youtube.com/watch?v=YwkaySPtAGk

Clapper LED Candle: Page 2


Step 1: Parts and Tools

Parts Needed for Project:

1 ea Lumiere Candles Smooth Resin Candle - 6" H x 3" OD


1 ea Arduino Pro Mini Board ATMEGA328P 16MHz 5V
1 ea LED Charlieplexed Matrix - 9x16 LEDs - Yellow [ID:2948]
1 ea Adafruit 16x9 Charlieplexed PWM LED Matrix Driver - IS31FL3731 [ID:2946]
1 ea Adafruit PowerBoost 500 Charger
1 ea 18650 Li-Ion Battery
1 ea 18650 Battery Holder
1 ea SPST Toggle Switch
1 ea Custom Printed Circuit Board
Clear Acrylic Plastic 6mm

With Clapper (Optional):

1 ea ATMEL / Microchip Technology DIP-8 ATTINY85-20PU


1 ea DIP-8 socket
1 ea LCB710 Solid State Relay
1 ea High Sensitivity Sound Detection Module
1 ea 220 Resistor
1 ea Sub-Miniature Toggle Switch 2MS1T1B1M2QES ON/ON 3P-SPDT
1 ea Custom Printed Circuit Board

Tools:

1 ea CP2102 Micro USB To UART TTL Module 6 Pin - ebay.com


Soldering Iron

Clapper LED Candle: Page 3


Step 2: Acrylic Base Assembly

Using the PDF Vector drawings supplied, the tool The mounting holes were manually located and
paths for cutting out the acrylic can be created. Each drilled by hand. Some of the holes should be drilled
PDF file contains Top, Bottom, two Sides and a small prior to assembly. For example, the holes to mount
rectangle that is used as a spacer underneath the the PowerBoost board.
Sound Module. This part is not needed if you're
building the non-Clapper (without Sound) version of Sand and test fit the all the pieces. I recommend
this LED Candle. using Plast-I-Weld to bond the pieces together.

I used a 1/8" end mill to cut the majority of the parts, Note: The diameter of the top and bottom must be
and I ran a finishing pass with a 1/16" end mill. The sized to the inside diameter (ID) of the resin candle
1/16" end mill is required for the narrow slots on the bodies you purchase.
sides and top.

Clapper LED Candle: Page 4


Download
https://www.instructables.com/ORIG/FMG/XM03/JR4TZ7KO/FMGXM03JR4TZ7KO.pdf

Download
https://www.instructables.com/ORIG/FJV/9X7M/JR4TZ7LG/FJV9X7MJR4TZ7LG.pdf

Clapper LED Candle: Page 5


Step 3: Circuitry With and Without Clapper

The basic LED Candle circuitry consist of a battery, clap from any other loud sounds, therefore, the circuit
switch, power supply and Candle Printed Circuit will activate if any two loud sounds are heard
Board (PCB) with a LED Charlieplexed Matrix, simultaneously.
Charlieplexed Matrix Driver and Arduino Pro Mini 5
VDC. An assembled version of the Candle Circuit I installed a DIP-8 socket on the Clapper PCB to
Board can be seen above. The only connection to this make it easy to install or remove the ATTiny85. All
PCB is 5 VDC provided by the power supply. The other components can be soldered to the board.
battery is connected to the PowerBoost power
supply, which can charge the Li-Ion battery, and Connect pins 1&2 of J1 for normal operation.
provide protection for a low voltage battery. The Secondly, connect the + & - pins of the Clapper PCB
power supply also provides a means of switching the to the + & - of the Candle PCB. Connect the 5V &
Candle ON or OFF by grounding the EN connection GND of the PowerBoost power supply to the + & - of
via the switch. "PWR IN" connections of the Clapper PCB. Connect
the Mini Toggle Switch SPDT to the "CLAPPER"
The Clapper PCB includes a solid state relay connection. Connect the pole of the switch to C and
(LCB710) and microcontroller (ATTiny85) to process the other two connections as desired. Finally, connect
the signals from the Sound Module and control the the VCC and GND of the Sound Module to the + & -
power to the Candle PCB. The ATTiny85 is of "SND MOD", and the OUT to the Out connection
programmed to listen for two loud simultaneous of the Clapper PCB.
sounds, and toggle the relay ON or OFF.
Unfortunately, this configuration cannot distinguish a

Step 4: Printed Circuit Boards

Attached are the Gerber files I created with KiCad to order the two Printed Circuit Boards. I recently ordered 10 of
the Candle Flame PCBs for $5. It so happens, I ordered twice as many boards at half the price of my original 2016
order.

Clapper LED Candle: Page 6


Clapper LED Candle: Page 7
Download
https://www.instructables.com/ORIG/FQR/73I9/JR6OCISS/FQR73I9JR6OCISS.zip

Download
https://www.instructables.com/ORIG/F46/J8F4/JR6OCIST/F46J8F4JR6OCIST.zip

Step 5: Printed Circuit Board Assembly

1. Install the male headers from the back of the PCB with longest portion protruding out the front. Do
not install male header where indicated.
2. Secure the headers to the back, and flip the board. Solder all header pins on the front side of PCB.
3. Trim all pins, as indicated in photo, flush to the board.
4. Orient the Top of the LED Charlieplexed Matrix as seen in photo.
5. Flip LED Matrix over and install LEDs UP, and solder module to pins.
6. Solder header to Arduino Pro Mini Board ATMEGA328P 16MHz 5V and solder from bottom of PCB
with the longest portion protruding from top of PCB. This will be used later to program the Arduino.
After soldering the header, I recommend prying the plastic portion of the header off of the pins. This
is because the length of the pins will be trimmed prior to mounting the PCB in the Acrylic Base.
7. Flip the PCB over to the back and fit the Ardiuno onto the header pins and solder.
8. Orient and mount the Matrix Driver on the pins at the top of the back and solder.
9. Attach the USB to UART TTL Module to the header pins of the Arduino. 5 VDC -> VCC, GND ->
GND, TX -> RX, RX -> TX.
10. Connect USB of module to PC and open Arduino IDE to load program.

Clapper LED Candle: Page 8


Clapper LED Candle: Page 9
Step 6: Programs for Arduino Pro Mini and ATTiny85

Adafruit provides a tutorial on the use of the LED The ATTiny85 uses a sketch I found at Henry's
CharliePlexed Matrix and Driver at Animated Flame P Bench -Arduino Sound Detection Sensor: Tutorial an
endant. I used the same sketch for my Arduino Pro d User Manual. This page will guide you through the
Mini, but change the data.h to a flame of my making. configuration and tuning of the Sound Sensor Module
This tutorial provides everything you need to get and Arduino. My sketch (ClapperCandle_V2.ino) for
started with the LED CharliePlexes. the ATTiny is almost identical to his example.

Download
https://www.instructables.com/ORIG/F84/YO7T/JR6OCI1H/F84YO7TJR6OCI1H.h

Download
https://www.instructables.com/ORIG/F1V/07E8/JR6OCIJI/F1V07E8JR6OCIJI.ino

Clapper LED Candle: Page 10


Step 7: Final Assembly

Once the PCBs have been assembled, they can now and connect the Sound Module to the "SND MOD" as
be installed on the acrylic base. As mentioned before, instructed earlier. The respective connections (+ -
the drilling of holes is recommended prior to gluing. If TRG) of the Clapper PCB are connected to the
you are building the Clapper version, the rectangular Candle PCB. The TRG connection is not connected
spacer piece cut out earlier is located on the side of to anything.
the Sound Module mounting location. This can be
seen in the photo above. The Clapper PCB is Check your wiring against the schematics, and when
mounted below the Sound Module and on the same you're ready install the battery and turn it ON.
side.
The resin Candle requires a hole for the micro USB
Wire the PowerBoost 500 power supply to the battery cable to connect to the power supply. Therefore, I
and main power switch, and if the Clapper PCB isn't mounted these on my CNC and cut a hole the correct
used wire the 5 VDC and GND directly to the "PWR distance from the bottom.
IN" connection of the Candle PCB. Otherwise, wire
the output voltage of the power supply to the + & - of ENJOY!
the Clapper PCB. Wire the SPDT toggle switch to the
"CLAPPER" connections as instructed previously,

Clapper LED Candle: Page 11


Love it! Good Job!

This is one of the more interesting and unique projects I've seen. Very realistic!

Thank you!

thank you for response, here is my candle project which i created before Christmas. it just used
attiny13 and coded in assembly, it was planed to be my first project on Instructable website but i
just hanged in trouble for creating a well formed candle cover, i selected many materials consist of
resin epoxy. but no success in building it by self. i think a real candle can be sloted to be used as
cover.

Hi,

i've made those with a little bit more focused to the original design:

Clapper LED Candle: Page 12


https://www.instructables.com/id/Matrix-LED-Light/
Nice design and more like "My New Flame".

You might be interested to replace the 'clap' feature with the 'blow out' feature. Imagine 2 contacts
made of copper foil that are placed inside the candle's body face to a hole. You blow into the hole,
the contacts close, which provokes a 'reset' impulse, then the contacts return to their initial position
because of elasticity. The candle goes OFF, you'll have to turn it ON again with the switch.

Clapper LED Candle: Page 13

You might also like