Gas light flicker

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
User avatar
RobH
Posts: 95
Joined: Wed Sep 11, 2013 7:51 pm
Contact:

Gas light flicker

Post by RobH »

Could someone help me with a small FC code to make an LED flicker with an adjustable rate?

User avatar
Benj
Matrix Staff
Posts: 14950
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: Gas light flicker

Post by Benj »

Hello Rob,

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

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 9023
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Contact:

Re: Gas light flicker

Post 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
Attachments
Flame simulation.fcf
(6.5 KiB) Downloaded 119 times
Martin

User avatar
RobH
Posts: 95
Joined: Wed Sep 11, 2013 7:51 pm
Contact:

Re: Gas light flicker

Post by RobH »

That's perfect guys. Thanks. I'll play with those files an see how bad I can break them. ;)

Post Reply