Go Down

Topic: Aloha! Will trade Tiki Mugs/Tiles for coding help (Read 2 times) previous topic - next topic

Coding Badly


One potential hitch-in-your-get-along is the number of available PWM pins.  The Instructables tutorial uses three of the six 1 PWM pins for one flame.  PWM is also used to brighten / dim an LED; an effect you may want for the blue LEDs. 

This hitch can be overcome with software.  But, potentially, the more independent dimming and flickering LEDs, the more complicated the software becomes.

From your description, I gather that you want three independent flames (eyes and mouth) and a set of LEDs (the blue ones) to brighten and dim.  Correct?

Quote
I have both a full size arduino board


Which one?


1 Assuming you have a Uno or similar Arduino.

Jack Christensen

MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Bainesbunch

One option to overcome the shortage of PWM pins is to use the soft PWM library

http://code.google.com/p/rogue-code/wiki/SoftPWMLibraryDocumentation

I use this for LED driving where timing is not critical.

EmbeddedAT .. From Concept to Prototype to Production

Electronics and firmware design and project mentoring

VanTiki

Wow!  Those flicker LEDs from Mad Science look great!  I just ordered a few to test.  Thank you for the heads up!

Henrik "VanTiki"

Jack Christensen


Wow!  Those flicker LEDs from Mad Science look great!  I just ordered a few to test.  Thank you for the heads up!

Henrik "VanTiki"


You bet. I've used the 10mm yellow ones to make Christmas window candles, they work quite well.
MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Go Up