Cloudwraith
Member
Hello all.
I recently purchased a Teensy 4.0 with the intent to use it with Paul's encoder library to track the position of an optical linear encoder. This seems to work really well while manually pushing the encoder back and forth on the scale. When I hook a motor up to a belt drive system to move a robot (using the linear encoder for position feedback) I get runaway counts from the encoder. I assume this is noise generation from the motor as it only happens when the motor is energized.
I've read that quadrature encoders can have a differential signal to elliminate these false pulses due to noise. My linear encoder has A, B, /A and /B outputs and I'm wondering if the encoder library supports this or if the T4's hardware support for encoders can with some other library.
Thanks for your time.
I recently purchased a Teensy 4.0 with the intent to use it with Paul's encoder library to track the position of an optical linear encoder. This seems to work really well while manually pushing the encoder back and forth on the scale. When I hook a motor up to a belt drive system to move a robot (using the linear encoder for position feedback) I get runaway counts from the encoder. I assume this is noise generation from the motor as it only happens when the motor is energized.
I've read that quadrature encoders can have a differential signal to elliminate these false pulses due to noise. My linear encoder has A, B, /A and /B outputs and I'm wondering if the encoder library supports this or if the T4's hardware support for encoders can with some other library.
Thanks for your time.