motor's encoder not working
Posted: Mon 2 Jan 2023 17:50
Hello,
I ordered two of the following motors from MChobby shop: https://shop.mchobby.be/en/dc-motor/143 ... 14343.html, because of the encoders.
Unfortunately, one of the encoder seems not to work anymore.
I am using a Pi Pico to read the encoder's A and B wires and I am supplying 3.3V (from the pico) to the encoder. Both are wires in the same way and use the same C function to read the square wave of the encoder A and B wires. For a about a week, I could measure both encoders and generate counts. Now, one of the encoders does not generate counts.
With a multimeter, I read the voltage of both A and the B wires of the good encoder. As expected, I see the voltage going from high to low, and vise-versa, as I very slowly rotate the motor. For the bad encoder, the voltage is always high.
Could this be a defected unit? Any suggestion on what could be wrong?
Please advice, your help is much appreciated.
I ordered two of the following motors from MChobby shop: https://shop.mchobby.be/en/dc-motor/143 ... 14343.html, because of the encoders.
Unfortunately, one of the encoder seems not to work anymore.
I am using a Pi Pico to read the encoder's A and B wires and I am supplying 3.3V (from the pico) to the encoder. Both are wires in the same way and use the same C function to read the square wave of the encoder A and B wires. For a about a week, I could measure both encoders and generate counts. Now, one of the encoders does not generate counts.
With a multimeter, I read the voltage of both A and the B wires of the good encoder. As expected, I see the voltage going from high to low, and vise-versa, as I very slowly rotate the motor. For the bad encoder, the voltage is always high.
Could this be a defected unit? Any suggestion on what could be wrong?
Please advice, your help is much appreciated.