Minimalist LED light detecting candle

Our flickering LED circuit combined two known circuit, and certainly wasn’t graceful because of it. [sprite_tm] saw quite a few areas where the circuit could be reduced. He ended up taking it down to just two LEDs, a battery, and an ATtiny13. The first step was getting rid of the current limiting resistors. The datasheet shows that with a 3V supply the AVR will limit the current well below the maximum current. The light sensor was removed next. [sprite_tm] referenced an earlier post on sensing with LEDs. He measures the voltage across one of the LEDs while it is off to see how much light is hitting it. The current draw while on is 10mA and 50uA while off.

Comments

  1. Fool2cool says:

    Elliot you mentioned battery twice in the description :) Brilliant bit of work otherwise good job sprite you obviously know your stuff very well.

  2. Tony K says:

    Really slick! Nice work. Add a timer to the micro so that the LED’s turn off ~4 hours after dusk and it would make a great internal replacement for controlling solar garden lights. These things run all night and are usually dead the next morning. Your attiny 13 with a timer would leave energy in the battery for another night of accent lighting despite a cloudy day.

  3. Franklyn says:

    How is the LED sensing performed here ? , all the material I’ve read on it requires that the LED is switched on , shutoff and then timed which doesn’t seem to be the case here.

  4. maathieu says:

    Did you mention the battery?

  5. strider_mt2k says:

    in jokes

    super

  6. fartface says:

    what the heck are lead’s? Those look like L.E.D’s to me.

    Why is it that most hobbiests cant pronounce the acronyms? It’s pronounced. Ellll EEEEE DeeEe
    not lead.. See what happens when you guys dont go to college?

  7. mikey says:

    just two LEDs, a battery, an ATtiny13, and a battery.

    did thy purposely put battery in twice?

  8. pb says:

    I think it’s because there are two batteries …

  9. pokey says:

    @franklyn: LEDs are essentially photodiodes. They put out a small current when they’re exposed to light. Sprite is just using that fact in this project. The light-then-wait approach uses a different characteristic of the LED, something more akin to a CCD.

    @fartface: It’s spelled “hobbyist”.

  10. pokey says:

    this is a good reference on both approaches: http://www.edn.com/article/CA6387024.html

  11. gokul says:

    Now _this_ is an LED hack.
    Go go go!

    (Why?:
    1. Using the same LEDs as photosensitive devices (yes I know it’s a well known old idea (though many of us would be still be surprised such a thing could happen))
    2. The minimalism of the circuit – the way it makes you smile when you look at the circuit diagram.
    )

  12. Sprite_tm says:

    Fartface: I’m Dutch, and in Dutch, LED (or any pronounciation of it) doesn’t have a special meaning aside from the semiconductor photon emittor thingies. We all pronounce it as ‘led’ here (as one word) and I probably used it in my English explanation by habit.

  13. @Fool2cool Fixed. Thank you.

  14. anon says:

    Just a quick note: High-Brightness LEDs typically show only a very small voltage as a light detector. Maybe not even enough to perform an A/D reliable on. I’m guessing that is why you see the older type LEDs in this demo. Test your LEDs before use. Of course a cheap old LED that is only used as a light detector is still much cheaper than a cDs cell, transistors, etc.

  15. anon says:

    Made this exact same circuit for having blinking white LEDs all over my house for Christmas. During my tests the 2032 lasted about 6 mo with using the WDT in interrupt mode and having a 6s interval. So a year is pushing it but still pretty good. I don’t have to buy 2032s every year.

  16. MattieShoes says:

    If we’re going minimalist, we really only need one LED, right? It’d be easy enough during the flickering to test the ambient light, right?

    I pronounce LED like “lead”, as in pencil lead…

    Though I wouldn’t ever write out lead to refer to a LED… :-)

  17. Tony says:

    Are there instructions on how to make? I am new to this and don’t know much about for example programming the ATtiny13.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 91,915 other followers