how do I do this?
bobsmith
Posts: 36
I am programming a stamp so each time the microswitch is activated it activates the solenoid.
If microswitch = 1 then
High noid
Pause
Low noid
Pause
Etc etc
I want to read the number of cycles that happen per second to the solenoid. How do I do that?
If microswitch = 1 then
High noid
Pause
Low noid
Pause
Etc etc
I want to read the number of cycles that happen per second to the solenoid. How do I do that?
Comments
This subroutine runs for about 1 second (20 x (25 ms x 2).· On entry the fireCount variable is cleared and will be incremenet through the loop when the fire button is pressed.· What this code does not account for is the fire button being held.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office