I have re read this thread. And i am now sure of two things, 1) you need or want a RGB candle. 2) You need this fairly quickly now.
The rest I have no idea about, one minuet i think i have it, then the next post I dont!
So lets work with the facts we know.
1) You need a LED RGB candle.
Go here
https://www.wire2wire.org/LED_candle/LED_candle.html
1). Download the zip file. actually dont there are several files so to save confusion here is the one you want
It's in ASM, I know nothing about ASM, Also note that it is for another chip. The source file, seems well commented, I dont think it would be difficult, for one the ASM guy's to alter the config for your chip.
Inside the file it also comments on what you can change to alter the effect's, so you can play with it.
There is a video on the site, this will show you how it looks.
There is a 5 channel option, so it will do what you want.
Also there is a pcb board layout! This will give you an idea on the layout, i think though you will have to alter a couple of things, mainly because it is for another chip.
Use this, get your candle going and be happy. You can then play with SF and the candle untill doom's day, but at least if you fail, you will have RGB led candles for your dinner night
Regards
GM11
edit
Just in case the page is down the following is taken from it
"Download the full package (micro code and PCB data) here
[LED_candle.zip].
The core of this project is a PIC12F508 which was strictly picked based on cost and availability. This firmware should be easy to port to just about any PIC micro. Code only uses 1 timer, no interrupts, 22 bytes ram, and 369 words of flash.
The core of the firmware is 5 independent 16 bit linear feedback shift registers generating pseudo random bit streams. These bits streams are used to generate both the brightness level and dwell of a given output to approximate the flicker of the candle. Also included in the firmware is a "wind" function that will randomly activate for a random amount of time that switches from the normal bright slow flicker to a dimmer fast flicker just as if there was a wind gust / draft in a room with a candle.
In the firmware source code there is a set of constants near the top that can be used to customize the operation to taste. These include min / max brightness and dwell for both the normal and wind states as well as the wind gust timings.
As stated in the logics and videos there are 2 different populations of this circuit value and premium. Value mode has the minimum parts count and is good for small candles and / or proto boarding. Premium has more parts and allows the brightest and smoothest flickering. (see videos) If using the value build make sure to limit your LED current to 20mA or less per LED and no more than 60mA for all LEDs attached to the micro. For the premium version the only limitation is 200mA per led with no practical group limitations. Even this limitation can be extended with the use of higher power NPN transistors and or LED drivers. Note if building the value version make sure to pull pin 4 of the PIC low instead of high. This sets the outputs to active low instead of high to drive the LEDs directly (else your flicker will be inverted).
Power supply can either be a 5V adapter or a 6V battery pack. 6V is a little over recommended ratings but well under max. Also soon as the batteries start to run down a little it will be well under the 5.5V recommended max. On the topic of batteries the estimated life on a set of 4AA with 5 50mA LEDs is about 5 hours. Will update once I have some testings done. By picking lower power / less LEDs this time can easily be extended. To calculate the LED resistor value use this formula Rled = (Vsupply - Vled)/Iled if this does not result in a exact resistor value (more than likely) round the value up to the next larger resistor. Also water clear LEDs with a narrow (~25deg) seem to work best."