Close
0%
0%

Bright.

An advanced, realistic LED candle

Similar projects worth following
The big problem with LED candles is that they try to imitate the look and feel of a real candle, but come off looking cheap and sloppy. I'm trying to make a modern-looking digital candle that doesn't try to imitate the real thing, but has it's own unique design as well as more options for controlling the 'flame.' Ultimately, I want this project to serve as an exercise in DFM (short for Design For Manufacturing), where I will take it from a rough prototype to a manufacturing-ready prototype, optimized for low cost mass production.

Bright will have two rings of LEDs driven by a microcontroller. An ambient light sensor will adjust the brightness of the digital flame on the fly. Two buttons on the bottom will control the power and toggle between modes.

  • 'auto' mode, flame brightness controlled by light sensor
  • flame brightness not influenced by light sensor
  • accent light, 50% brightness
  • accent light, 100% brightness
  • strobe light

The entire setup will be powered by a 20mm coin cell battery.

  • 1 × ATTINY102-SSNR Microprocessors, Microcontrollers, DSPs / ARM, RISC-Based Microcontrollers
  • 10 × LEDs Electronic Components / Misc. Electronic Components
  • 2 × Tactile switch
  • 1 × 20mm coin cell battery holder
  • 1 × Ambient light sensor

View all 6 components

  • Deadbug Prototype

    qquuiinn07/29/2016 at 23:30 0 comments

    I recently got a message from a 'community manager' at hackaday.io requesting that I post more pictures of bright. I threw together a rough prototype on a breadboard with an arduino pro mini, but ultimately didn't want to post pictures of it. I wanted something impressive-looking that would attract attention (and skulls) to my project. So, I took a couple hours out of a rainy day to assemble a 'dead bug' freeform circuit that would more or less be electrically similar to the final version of bright. I used an attiny85 because I already have a few of those on hand. It's my first attempt at deadbug style design, and while the main reason I built it was lack of any protoboard, I have to say it looks very cyberpunk-ish and intriguing.

    I'm crossing my fingers that it will work, given that I didn't even test out the schematic beforehand to make sure everything was OK, nor have I written a single line of code. However, the hardware will be the easy part of this project-it's essentially a fancy blinkinlight, but the software is going to take a little while. I'll have to do a quick sketch in arduino before porting the code over to GCC and optimizing it to take up as little space as possible while still looking like a semi-realistic candle.

    The schematic is above. I didn't feel like spending another half hour on EAGLE so I sketched out a rough draft on paper in 5 minutes. The thing on the left is my attempt at drawing an LDR (I don't know what the symbol is). I probably won't be making very fast progress on this project; I'm working on a paid freelance job while working fast to finish up #bioloop, all before school starts.

  • Choosing a microcontroller

    qquuiinn07/26/2016 at 19:33 0 comments

    I searched around for small, low cost microcontrollers that would be ideal LED candle drivers. At the very least, I needed something with 5 i/o pins, including one ADC pin for a light sensor. It was tempting to pick something from the tiny*5 family, simply because the Arduino IDE support is so good, but it would come at a cost in terms of volume production.

    Nameprice/1 (USD)price/1K (USD)
    MSP430G21311.510.55
    STM32F0301.370.62
    ATTINY1021.440.62
    MSP430G22521.590.67
    LPC8221.640.75
    ATTINY131.840.85
    EFM32ZG1101.361.01
    ATSAMD092.321.09
    ATTINY252.741.27

    (prices are based off digikey as of 7/25/2016 and may change)

    It's interesting to see how much processing power a dollar (or less) can buy in volume. Even light ARM cores are cheaper now than hobbyist mainstays like the ATTINY25. The microcontroller I'll probably go with is the ATTINY102, because of it's low cost. Besides, I've always worked with ATTINY chips. And lack of Arduino IDE support will provide the right amount of motivation for me to finally learn C.

    The other challenge is the fact that I can't seem to find the ATTINY102 in stock anywhere on the internet. The official dev board is available, but not the actual IC. I can improvise and work with the TINY85, which I already have on hand, hoping that the 102 will go on sale or Atmel can provide me with free samples :).

View all 2 project logs

Enjoy this project?

Share

Discussions

zakqwy wrote 08/24/2016 at 15:59 point

Also, I'm a big fan of the freeform deadbug-style construction technique!

  Are you sure? yes | no

zakqwy wrote 07/30/2016 at 20:13 point

Neat project, seems like a great ATtiny application. I've had good luck getting up and running fast using Adafruit's USBtinyISP along with their AVRdude command line instructions; if you haven't seen it already, the guide is an awesome way to get started programming ATtinys in C using a fully open-source toolchain: https://learn.adafruit.com/usbtinyisp/avrdude

  Are you sure? yes | no

qquuiinn wrote 08/25/2016 at 20:29 point

I used to use the arduino IDE to flash fuses, but recently I was forced to learn AVRdude to finish a project. It's actually pretty intuative. However, I'll probably stick to my standby 'Arduino as ISP' setup simple because I can't be assed to get a USBtinyISP or equivalent. I supposed I could just hack a programming adapter together, but I don't have any leftover protoboard to do that with. Mabye a dedbug AVR prggrammer is the way to go ???. 

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates