MrDEB
Well-Known Member
I read Ghostmans post.
OBJECTIVE is to simulate a candle
PWM might be desired as looking at a candle, it tends to go slightly dim then bright. IMO I call this a flicker. The timer code posted after I changed the post scale seems ok but contemplating a 1 second "burst" of color to simulate the slight flicker if the PWM doesn't work. One issue with the PWM is it might require a mosfet thus increasing cost. COST is a major consideration.
USE a RGB common ANODE led. KEEP current below 20ma (15-18ma for battery considerations) I have 200 of these on hand
Use a 18F13K22 as it is low in price and available in an soic pkg.
Need to control 3 RGB leds per micro (candles (LEDs) are placed at 2 foot intervals connected with cat5 cable).
One battery pack supplying 4.5v
Rechargeable would be nice but cost and project to be used once per year.
At present dissecting the timer code to see what does what and how to change for desired effect if possible. Inserting an LED code snippet to indicate where and what the code is doing (code flow)
OBJECTIVE is to simulate a candle
PWM might be desired as looking at a candle, it tends to go slightly dim then bright. IMO I call this a flicker. The timer code posted after I changed the post scale seems ok but contemplating a 1 second "burst" of color to simulate the slight flicker if the PWM doesn't work. One issue with the PWM is it might require a mosfet thus increasing cost. COST is a major consideration.
USE a RGB common ANODE led. KEEP current below 20ma (15-18ma for battery considerations) I have 200 of these on hand
Use a 18F13K22 as it is low in price and available in an soic pkg.
Need to control 3 RGB leds per micro (candles (LEDs) are placed at 2 foot intervals connected with cat5 cable).
One battery pack supplying 4.5v
Rechargeable would be nice but cost and project to be used once per year.
At present dissecting the timer code to see what does what and how to change for desired effect if possible. Inserting an LED code snippet to indicate where and what the code is doing (code flow)