Go Down

Topic: Recommendations on getting things to blink? (Read 569 times) previous topic - next topic

mewshi

Hey there, everyone!  I'm trying to create a project that requires lights to blink after a button is pressed, but it requires that buttons still be 'listened' for.  I can design something using interrupts, but I would much prefer to just turn on a digital output and have some auxiliary circuitry to handle the blinking part, rather than it being handled by the software, since that is ridiculously expensive to get done.

So, any recommendations or suggestions on what sort of components I can use to get the blinking done?


Erni


fungus


I would much prefer to just turn on a digital output and have some auxiliary circuitry to handle the blinking part, rather than it being handled by the software, since that is ridiculously expensive to get done.


Huh? Software was free last time I checked.

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

Delta_G

Look at the example called blink without delay.  Understand how it works.  Welcome yourself to the world of non-blocking code.

MAS3


Huh? Software was free last time I checked.


Costs can be much higher than any monetary expression can describe.
To blink using "blink", might cost you too much time to see a key being pressed.
So Delta_G's solution is the best.
Delay is a waste in all kinds of meaning of that word.
Have a look at "blink without delay".
Did you connect the grounds ?
Je kunt hier ook in het Nederlands terecht: http://arduino.cc/forum/index.php/board,77.0.html

marco_c

Don't use delay then.  Look at the blink without delay example.  There is a lot of processing power that you are wasting with delay().
Arduino libraries http://arduinocode.codeplex.com
Parola hardware & library http://parola.codeplex.com

cjdelphi


Go Up