Thanks for the attention!
What I need is something like this: I'll have a robot running through a playing field, following white stripes, and doing some other tasks. The point is that I want the robot to do it only for one minute and thirty seconds, and I need to count this time, without stoping the rest of the activities. Hope I was clear enough! Thanks in advance, and I'm looking forward for the solution! ·
If this is a BOE-Bot, you could add a DS1302 RTC, and write some code to start the clock, then during your loop/routines that handle line tracking, etc. periodically check·the elapsed time.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ Chris Savage
Knight Designs 324 West Main Street P.O. Box 97 Montour Falls, NY 14865 (607) 535-6777
I would like to return the favor Jon...He could use a 555 timer the SAME way he could use a DS1302, but with less code...Maybe 2 pins..One to reset the time (Hardwired), and one to sense the output when the timing cycle is up...See, sometimes I overcomplicate things, simply because that's what *I* would do.
So you're right...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ Chris Savage
Knight Designs 324 West Main Street P.O. Box 97 Montour Falls, NY 14865 (607) 535-6777
Actually, I nearly suggested the same thing -- it's just that a 555 has limitied flexibility in timing range. If you're going to be sampling anyway, you might as well get the actual time with proper resolution, as well as the flexibility of having longer or shorter time periods without changing/adjusting external components.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ Jon Williams
Applications Engineer, Parallax
Dallas Office
You are, of course, correct!· My point was, however, that I myself didn't think to mention the 555 as a possibility until you mentioned it.· But I do think a DS1302 is a better choice...More flexibility!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ Chris Savage
Knight Designs 324 West Main Street P.O. Box 97 Montour Falls, NY 14865 (607) 535-6777
Thanks for everything until now, but I'm still having some trouble. I don't mean to abuse, but if it would be possible for someone to post an schematic of the circuit (DS1302) I'd appreciate it. I need to count seconds!
Thanks in advance (again!)
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
What I need is something like this: I'll have a robot running through a playing field, following white stripes, and doing some other tasks. The point is that I want the robot to do it only for one minute and thirty seconds, and I need to count this time, without stoping the rest of the activities. Hope I was clear enough! Thanks in advance, and I'm looking forward for the solution!
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Knight Designs
324 West Main Street
P.O. Box 97
Montour Falls, NY 14865
(607) 535-6777
Business Page:·· http://www.knightdesigns.com
Personal Page:··· http://www.lightlink.com/dream/chris
·
And, sorry about my original post -- you mentioned the 555 and I went down the software-like-a-555 path. That said, you still could use a 555.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
So you're right...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Knight Designs
324 West Main Street
P.O. Box 97
Montour Falls, NY 14865
(607) 535-6777
Business Page:·· http://www.knightdesigns.com
Personal Page:··· http://www.lightlink.com/dream/chris
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Knight Designs
324 West Main Street
P.O. Box 97
Montour Falls, NY 14865
(607) 535-6777
Business Page:·· http://www.knightdesigns.com
Personal Page:··· http://www.lightlink.com/dream/chris
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Terry
Thanks in advance (again!)
http://www.parallax.com/dl/docs/books/sw/stampworksmanualv1_2.pdf
Shows an example of connecting and using the DS1302.· I myself used it to develop my own code for specific applications.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Knight Designs
324 West Main Street
P.O. Box 97
Montour Falls, NY 14865
(607) 535-6777
Business Page:·· http://www.knightdesigns.com
Personal Page:··· http://www.lightlink.com/dream/chris
·
·