Close

Servo drive speed test

A project log for Brushed DC Servo Drive

Low cost PID servo drive for small CNC machinery

ottoragamottoragam 02/26/2016 at 07:350 Comments

I wanted to find if the controller could accept a higher STEP pulse frequency, so I took out a Mitsumi printer motor with an integrated encoder (334 divisions, 1336 cpr with 4x decoding) from my parts bin.

I programmed another MCU to generate a 83 kHz square signal, and fed that signal to the servo drive. I also updated the quadrature decoding routines to light the error LED when the encoder state changes to a value that doesn't correspond to the previous or next step with respect to the current step in the sequence. I couldn't make the LED to light, so I'm assuming that the AVR is not missing any pulses.

One could argue that the MCU may be missing more than one step pulse, thus not meeting the error condition, but I find very unlikely that the microcontroller misses the "correct" amount of puses tens of thousandths of times during the short test.

The video shows me measuring the signal frequency on one of the encoder channels, and then measuring the STEP input frequency, wich is nearly 4 times higher as is supposed to be.

You can see the error LED turning on at the end of the video when I disconnect the encoder, causing the drive to detect an erroneous quadrature sequence.

Discussions