Attiny85 candle with LDR

Probably many of you will say that nothing can change real candy. Real candles have their smell and “warmth”. But please tell this to tech guys… they say – everything is possible.

Pete without hesitation found the purpose for LED candle and made one using Attiny85 MCU.

Actually there is not much about schematic – a microcontroller, resistor, LED and … LDR. So instead of trying to mimic candle flame flickering Pete decided to leave this job to higher forces – nature. As you know nature is dynamic and so ambient light is always flickering at some level, so he measures this pattern with LDR and logs to EEPROM. And then uses it to generate PWM for LED.

[..Source link..]

Bookmark the permalink.

Comments are closed.