This story begins on the eve of the last new year. Sister asked me to make a fairylight for their New Year costume of firefly. Light should look fabulous and unusual. At the attic long was lying an old lamp which had been fitted with paraffin candle. Variant with a real candle was rejected immediately because of its flammability and in head immediately appeared idea to show engineering ingenuity.
And so as manager was selected ATtiny2313 controller which controls brightness using PWM modulation to flame twinkling natural controller adjusts the brightness and glow during this brightness using random, so value generated by random numbers, but in a certain range. Constructively candle made in a plastic tube a suitable diameter, covered with yellow LED silicone sealant to give it shape candle flame is fueled construction of 3v lithium batteries.
Project in CodeVision [member]