Home \ Help \ Search \ Login RSS

Welcome, Guest. Please Login

This forum is now READ-ONLY! Please visit http://forum.wiring.co/ for the new forum.

Wiring ForumProgramming Questions & HelpPrograms › how much delay?

Page Index Toggle Pages: 1
how much delay? (Read 3448 times)
09/22/06 at 17:47:34

roy_pardi   Offline
YaBB Newbies
Boston USA

Posts: 49
*
 
All the examples I have seen (I think) have some amount of delay in their loop().

I'm wondering: is a delay required for the board to take a breathe (or something...  Wink
Is 100 ms the best value? Just wondering
 
IP Logged
 
Reply #1 - 09/23/06 at 03:55:52

barragan   Offline
YaBB Administrator

Posts: 939
*****
 
hi Roy, it depends on what you're doing, for example if a sensor or device requires a time for acquiring a "good" reading, also because there are phenomena which takes time to happen, for example when positioning a servo, it takes some time for the servo shaft to get there, if you send values to it continuously it will act erratic, it is needed to wait for the servo to get there then mark another position. When using devices like shift registers there is no need for delays they can respond very fast, so no need for delays in the loop.
So there is no something like breathing for the board. Smiley
 
IP Logged
 
Reply #2 - 09/23/06 at 04:08:25

roy_pardi   Offline
YaBB Newbies
Boston USA

Posts: 49
*
 
heh... ok, thanks. I was just wondering if the board needed some time to itself... (to reset serial ports or do some housekeeping, answer email, reflect on being abused by neophytes..).
 
IP Logged
 
Page Index Toggle Pages: 1