Hello!
I'm working on a stirring hot plate that uses two quadrature encoders to set temperature and stir speed. Recently the encoders have begun to malfunction - resulting in values jumping rapidly or at times incrementing in the opposite direction to the actual knob turn. The encoders themselves seem to be fine - the signal looks pretty much as I'd expect on the scope, and I replaced one entirely with a known good encoder with no luck. The two channels of the encoder both appear to feed directly into the microcontroller on the board and the only other component attached to the path of a given encoder channel is a typical small value surface mounted decoupling cap.
I've read here that it's typical for encoders to use a first order RC filter to deal with mechanical noise and clean up the signal for the MCU but that doesn't seem to be the case here, so I'm stumped as to what else could be causing the issue. I don't know what the original value for the decoupling caps was or if it's worth trying to replace them ( they are flea bite sized and I get the impression small ceramic caps are not likely to fail anyways ). If the problem then is in the MCU, what might give rise to this kind of issue? Bad power to the MCU, a problem with the reference, clock issues?
I'm working on a stirring hot plate that uses two quadrature encoders to set temperature and stir speed. Recently the encoders have begun to malfunction - resulting in values jumping rapidly or at times incrementing in the opposite direction to the actual knob turn. The encoders themselves seem to be fine - the signal looks pretty much as I'd expect on the scope, and I replaced one entirely with a known good encoder with no luck. The two channels of the encoder both appear to feed directly into the microcontroller on the board and the only other component attached to the path of a given encoder channel is a typical small value surface mounted decoupling cap.
I've read here that it's typical for encoders to use a first order RC filter to deal with mechanical noise and clean up the signal for the MCU but that doesn't seem to be the case here, so I'm stumped as to what else could be causing the issue. I don't know what the original value for the decoupling caps was or if it's worth trying to replace them ( they are flea bite sized and I get the impression small ceramic caps are not likely to fail anyways ). If the problem then is in the MCU, what might give rise to this kind of issue? Bad power to the MCU, a problem with the reference, clock issues?


