Timers and Elapsed timers
Hi, My project needs to accomplish·several things with timing.
1. Count an event up or down and be able to send that serial out to another stamp.· This would be an optical reader on a wheel that would count revolutions up or down.· I will be able to determine what the direction is (up or down) by knowing what the direction of the motor contol is.
2. Another counters or elasped timer would be used as a failsafe to take action in the event that it does not receive a signal from the controler. When the time has elapsed an event will start. If a signal is received, the event timer or count down timer will start again.
3. An additional timer that will keep a total time on a motor. Either time power has been applied via the motor control circuit or revolution count of some type. This will be kept in an eprom and added to.
I have been surfing and reading all I can about timers, but would like suggestions on any similiar projects that anyone has done.
Thanks.
JG
1. Count an event up or down and be able to send that serial out to another stamp.· This would be an optical reader on a wheel that would count revolutions up or down.· I will be able to determine what the direction is (up or down) by knowing what the direction of the motor contol is.
2. Another counters or elasped timer would be used as a failsafe to take action in the event that it does not receive a signal from the controler. When the time has elapsed an event will start. If a signal is received, the event timer or count down timer will start again.
3. An additional timer that will keep a total time on a motor. Either time power has been applied via the motor control circuit or revolution count of some type. This will be kept in an eprom and added to.
I have been surfing and reading all I can about timers, but would like suggestions on any similiar projects that anyone has done.
Thanks.
JG

Comments
This might help you for part of what you want to do but for you timer you will need to use a DS1302 time chip which Parallax sells
("3. An additional timer that will keep a total time on a motor. Either time power has been applied via the motor control circuit or revolution count of some type. This will be kept in an eprom and added to.")
·················································Here·are two··
Here·are two Post that·can help you write part of your code routine
Try the Example that is DS1302_Counter.bs2· this will help you to understand how to use it as a countdown timer
http://forums.parallax.com/showthread.php?p=568430
·
This is where i learned how to write the counting routines
http://forums.parallax.com/showthread.php?p=595018
I hope this helps you in what you want to do
Sam
Ill get a chip and try it.
JG
When you get the Time Chip And you need any help just PM me and i will try to help you if i can
Sam