Hi all,
I have an opto sensor connected to a motor shaft which will be used to monitor the position of a linearly moving object. This object is moved 1mm with every 7 rotations from the motor and can move up to 200mm. This means that at 200mm the pulses should count 1400.
Now my question is, how can I count/store the pulses in an 8-bit microcontroller register?
Also, if the object moves at a speed up to 30mm per second, that makes up to 210 pulses per second. Is a microcontroller able to count at that frequency while proceeding with some other instructions?
Thanks in advance.
I have an opto sensor connected to a motor shaft which will be used to monitor the position of a linearly moving object. This object is moved 1mm with every 7 rotations from the motor and can move up to 200mm. This means that at 200mm the pulses should count 1400.
Now my question is, how can I count/store the pulses in an 8-bit microcontroller register?
Also, if the object moves at a speed up to 30mm per second, that makes up to 210 pulses per second. Is a microcontroller able to count at that frequency while proceeding with some other instructions?
Thanks in advance.