Pages: [1]   Go Down
Author Topic: Recommendations on getting things to blink?  (Read 497 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

SE USA
Offline Offline
Faraday Member
**
Karma: 41
Posts: 3783
@ssh0le
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

555 timer

Logged


Denmark
Offline Offline
Edison Member
*
Karma: 35
Posts: 1057
Happy Hobbyist
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

http://www.cappels.org/dproj/simplest_LED_flasher/Simplest_LED_Flasher_Circuit.html

or even simpler, yoy can buy flashing LED's
Logged

Valencia, Spain
Offline Offline
Faraday Member
**
Karma: 144
Posts: 5351
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.

Logged

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

Offline Offline
God Member
*****
Karma: 17
Posts: 723
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

The Netherlands
Online Online
Edison Member
*
Karma: 47
Posts: 1537
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

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

Sydney, Australia
Offline Offline
Edison Member
*
Karma: 33
Posts: 1259
Big things come in large packages
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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().
Logged

Arduino libraries http://arduinocode.codeplex.com
Parola hardware & library http://parola.codeplex.com

Offline Offline
Edison Member
*
Karma: 29
Posts: 2362
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

just what hardware do you have? 

Logged

Pages: [1]   Go Up
Jump to: