TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Reverse Engineering a Real Candle

172 pointsby liyanageover 9 years ago

12 comments

stygiansonicover 9 years ago
The part about the harmonic oscillation frequency in the flame flicker is most interesting:<p>&quot;<i>The frequency of these oscillations seems to be around 5 Hz, drifting up, and seems to be a fundamental parameter of the flame since it appears to be relatively constant in all observations.</i>&quot;<p>It appears that some (optical) flame detectors work by obtaining the frequency of this flicker: [1]<p>&quot;<i>This flame scanner also monitors the rate of combustion by analysing the flicker frequency, or the fingerprint, of the flame... Since the flame is always burning back to the fuel source, the flame is always in motion. This motion allows the intensity of the flame to vary across a flame flicker frequency spectrum.</i>&quot;<p>From that link, it appears that the &quot;flicker frequency&quot; would be related to the exact fuel source and possible fuel&#x2F;air mixture ratio, as the &quot;flame is always burning back to the fuel source&quot;.<p>Some other information about flame frequency-flicker: [2]<p>&quot;<i>Under normal gravity conditions, the flames have a well defined oscillation frequency which is inversely proportional to the square root of the burner diameter, D, and to a good approximation can be written as f » 1.5&#x2F;D½, with D given in meters.</i>&quot;<p>So, it would indeed seem that the flicker frequency is related to the particulars of the candle, its wick, etc.<p>Very interesting article!<p>1. <a href="http:&#x2F;&#x2F;www.coen.com&#x2F;wp-content&#x2F;uploads&#x2F;2010&#x2F;05&#x2F;HydrocarbonWorld.pdf" rel="nofollow">http:&#x2F;&#x2F;www.coen.com&#x2F;wp-content&#x2F;uploads&#x2F;2010&#x2F;05&#x2F;HydrocarbonWo...</a><p>2. <a href="http:&#x2F;&#x2F;www.dantecdynamics.com&#x2F;flow-characterization-of-flickering-methane-air-laminar-diffusion-flames-using-piv" rel="nofollow">http:&#x2F;&#x2F;www.dantecdynamics.com&#x2F;flow-characterization-of-flick...</a>
评论 #10852730 未加载
jedbergover 9 years ago
This is awesome! Finally empirical evidence to back up what I&#x27;ve felt all along -- that those fake LED candles don&#x27;t look anything like a real candle and are actually kind of distracting.<p>That animation at the end really sums it up nicely.
评论 #10853533 未加载
评论 #10855301 未加载
jawarnerover 9 years ago
Great breakdown. The animation at the end is more convincing than any fake candle I&#x27;ve seen. I&#x27;ll make sure to use your model if I ever need to simulate flame lighting in a game.<p>Nitpicking, but I think this is technically data modeling and not reverse engineering.
dexwizover 9 years ago
I wonder how you could apply something like this to transition animations. The simulated flicker ended up looking much better than the LED flicker.<p>Sometimes I see animations in UI. Some look completely natural, and some are horribly jarring. I know there are all sorts of curves that tweening uses to time its path. I wonder if reversed engineered curves would look better.
评论 #10852657 未加载
评论 #10854489 未加载
aidenn0over 9 years ago
FWIW, the initial loss of brightness is almost certainly due to a reduction in temperature a the fuel&#x2F;air mixing piont. Blowing on a fire actually increases the oxygen available.
iamleppertover 9 years ago
Very interesting take on the subject. Of course, I think to simulate a real candle, one would have to have some way of measuring air current. If I see a fake candle flickering, and feel no air current, I&#x27;m going to be less likely to think it&#x27;s a real candle.<p>An LED candle the responds to its environment, could be &quot;blown out&quot; for instance would make a great little hack project.
guitarbillover 9 years ago
This is cool. Is the candle-flicker gif based on the algorithm, or the actual output from the LED? Because I assume the LED will smooth out some features. Vice versa, the LED probably needs to be driven with different data to produce the equivalent brightness variation.
评论 #10852739 未加载
TeMPOraLover 9 years ago
The article[0] linked as an example of constrained random walk has a video that&#x27;s creepy and pretty unsettling. It&#x27;s interesting how sprinkling some randomness on things we&#x27;re used to can make our brains go weird on us.<p>[0] - <a href="http:&#x2F;&#x2F;cnr.lwlss.net&#x2F;ConstrainedRandomWalk&#x2F;" rel="nofollow">http:&#x2F;&#x2F;cnr.lwlss.net&#x2F;ConstrainedRandomWalk&#x2F;</a>
OrdaGarbover 9 years ago
I&#x27;ve had breadboards like his react to air flow. Those cheap ones especially have such horrible connections that the slightest motion of flimsy part like a resistor or LED wagging in the breeze will cause a significant change in impedance where the leads meet the contacts.<p>Since this signal is dependent upon the series resistance, the output could vary as a result.
miniatureapeover 9 years ago
Reminds me of: <a href="http:&#x2F;&#x2F;tomgerhardt.com&#x2F;fireLight&#x2F;" rel="nofollow">http:&#x2F;&#x2F;tomgerhardt.com&#x2F;fireLight&#x2F;</a>
knicholesover 9 years ago
I can imagine feeding in the output of the photoresistor into char-rnn and sample from that to &quot;randomize&quot; the light intensity.
baroaover 9 years ago
I would buy an artificial candle that flickers when it detects air