Dear all,
Referring to this video, I have bought the same photoelectric rotary encoder.
In the picture below, I have attached a microbrushless DC motor to the rotary encoder to control using PID in Arduino. When I tried to write a simple program to run both encoders together with a fixed PWM to be fed into the microbrushless DC motor and without PID, the encoder keeps skipping steps.
I am certain that the encoder cannot handle small high frequency vibrations from the microbrushless DC motor because when I disconnect the DC motor and tried to rotate it by my hand, it works perfectly fine. I have also give it a recommended voltage of 5-12V DC using a lithium ion battery.
Is this photoelectric rotary encoder not able to handle small high frequency vibrations? Is there any other encoder recommendation that is not so susceptible to vibration noise?
A lot of highly efficient code is posted at playground.arduino.cc/Main/RotaryEncoders , and all of them I tried to run using arduino but still the encoder keep skipping steps when undergo mini vibrations from the mini microbrushless motor. If anyone has this encoder at home (mine is 600 steps/rev) , you can try to attach a low power microbrushless motor there and the encoder readings will jump up and down and will skip steps. Not sure what can I do to resolve it
Mine one after a 10seconds, can accumulate a 200 steps skipped from a 600 steps/rev encoder, very disapointing after 2 days fixing this
Referring to this video, I have bought the same photoelectric rotary encoder.
In the picture below, I have attached a microbrushless DC motor to the rotary encoder to control using PID in Arduino. When I tried to write a simple program to run both encoders together with a fixed PWM to be fed into the microbrushless DC motor and without PID, the encoder keeps skipping steps.
I am certain that the encoder cannot handle small high frequency vibrations from the microbrushless DC motor because when I disconnect the DC motor and tried to rotate it by my hand, it works perfectly fine. I have also give it a recommended voltage of 5-12V DC using a lithium ion battery.
Is this photoelectric rotary encoder not able to handle small high frequency vibrations? Is there any other encoder recommendation that is not so susceptible to vibration noise?
A lot of highly efficient code is posted at playground.arduino.cc/Main/RotaryEncoders , and all of them I tried to run using arduino but still the encoder keep skipping steps when undergo mini vibrations from the mini microbrushless motor. If anyone has this encoder at home (mine is 600 steps/rev) , you can try to attach a low power microbrushless motor there and the encoder readings will jump up and down and will skip steps. Not sure what can I do to resolve it
Mine one after a 10seconds, can accumulate a 200 steps skipped from a 600 steps/rev encoder, very disapointing after 2 days fixing this
Last edited by a moderator: