R
Rolavine
Guest
'waiting for the other switch to be made routine' for a long time, maybe aSubject: Timer/Control Circuit
From: wfoondirt@hotmail.com
Date: 1/11/05 9:49 PM Pacific Standard Time
Message-id: <1105508980.046159.303830@f14g2000cwb.googlegroups.com
Hello,
I'm looking for a little direction for a project. The workflow is
pretty straight forward. I have a pneumatic cylinder with 2 hall effect
switches. The order of events need to be as follows.
1.)trigger cylinder to extend
2.)start timer with switch A
3.) stop timer with switch B
4.)pause ~10 sec & output time
5.)trigger cylinder to retract
6.) start timer with switch B
7.) stop timer with switch A
8.) output time
The interval between switch A&B will be 2-10 sec and I would like it to
be accurate to .01s or better. In its simplist form I could trigger the
cylinder manually and read the output off of a array of 7 seg displays.
Idealy I would like to beable to output them to a .txt file on a pc so
I can import them into excel to beable to graph the output.
Now onto my questions.
I think I can handle the simple approach with a 555>counter>7 seg
driver, but I haven't been able to find anything reguarding the
accuracy of this method.
I've also though of interfacing though the parallel port of a pc and
doing all the functions via software, but I've seen alot of concerns
over accuracy of the clock in pc.
Yes, the clock stinks, only 18 increments a second, however you could time your
million iterations, then find the time that took, and divide by iterations,
then simply keep track of the number of loops you go though waiting for the
switch. I've used this approach since the PC was made and it works very well.
Since you only need a .1 second accuracy this approach would work great, plus
you write your file directly from the program.
Rocky