Home Creators Posts Import Register Favorites Logout

Downloads

Content

Hi lovely patreons, here's a little extra content just for you :)

While researching different possible approaches for the "Blow Out Candles" puzzle, I came across an interesting article by Paul Dietz describing how an LED could be used as an input sensor. In theory that meant that an LED could itself detect whether it was being "blown out", with no additional hardware. 

You can see it in action, here: https://youtu.be/k7RG8DhFx1U

I was intrigued but, after trying it out, I concluded that it was not reliable enough for use in a practical scenario like an escape room, and I ended up taking an alternative approach. But as it's an interesting novelty I thought I'd share it with you anyway. 

The way it works is as follows:

LEDs (like pretty much all electronic components) get hot in use. 

Temperature causes a change in electrical characteristics; specifically, as an LED heats up, the forward voltage across it falls.

Increasing the airflow across an LED by blowing on it cools it down, increasing its forward voltage again.

The change in voltage is only slight - typically around 2mV (i.e. 0.002V) per °C in temperature - but it is (just!) detectable using the analog in pin of an Arduino.

It is possible to measure and plot the voltage using the Arduino Serial Monitor, or to write a function when the voltage changes by more than a specified threshold. If that function turns off the same LED, it simulates blowing the LED out. 

I'm using a very small 0402 LED - just 4mm x 2mm in size - attached to very thin wires, which reduces the possible surfaces through which heat can be lost and emphasises the  temperature change caused by blowing, making it more detectable. I'm also sampling the analog reading 200 times per frame to magnify any changes

The circuit is very simple. The LED is wired between a digital pin and GND, via a 220Ω series resistor as standard. However, at the point between the resistor and the anode of the LED, a wire is taken to an analog input pin, which uses the fixed resistor and LED as a potential divider to measure how voltage varies across the LED. This can then be output to the serial monitor, or used for any additional code logic.

I've attached the Arduino code I'm using if you'd like to have a go or study it in more detail - it's a bit more complicated than it really needs to be because I structured it with the intention of using four (or more) separate LEDs. In fact, I did get it to work, but the problem was that the very action of blowing out, or relighting, any one of the candles inevitably causes a slight voltage ripple - in normal operation this would have had no noticeable effect, but when trying to monitor such tiny voltage fluctations of a few milliVolts across the LED, this just made the puzzle logic unusable.

Files

Comments

No comments found for this post.