Page 1 of 1

Gas light flicker

Posted: Thu Nov 06, 2014 7:13 pm
by RobH
Could someone help me with a small FC code to make an LED flicker with an adjustable rate?

Re: Gas light flicker

Posted: Fri Nov 07, 2014 12:59 pm
by Benj
Hello Rob,

This article may help: http://www.matrixtsl.com/article.php?a=52

Re: Gas light flicker

Posted: Fri Nov 07, 2014 1:04 pm
by medelec35
Hi Rob,
I created flame simulation software for a fire in a dolls house using a bright orange LED.
Looked affective when LED was behind light diffusing material.
Target was 12F1824 running at 4MHz to reduce power.
You will be able to use any target device at any clock speed, but make sure PWM is set at the correct period.
Flowchart combined with Ben's article should get you on your way.

Because I limited my current to less than maximum permitted current and only used one LED I did not use transistors to control LED.
Your setup may be different, so you may need to use a transistor?
Hope it helps

Martin

Re: Gas light flicker

Posted: Fri Nov 07, 2014 3:12 pm
by RobH
That's perfect guys. Thanks. I'll play with those files an see how bad I can break them. ;)