12:17 PM
Now I am coming to your second question: I connected motor drivers encoder pins to motors. Do I need a microcontroller to get information about the step losses or precision of the motor? or motor and driver will handle by themself ?
It is a bit confusing, perhaps you got the direction of the encoder signals wrong. The user manual says the following:
The P3 connector in Figure 2 is for encoder signal connection. Refer to the following table for details, ...
It appears that the motor's encoder signal is an output signal, inputting to the encoder input connector of the driver. In other words, the stepper motor driver reads/inputs the output signal from the motor encoder and then calculates the speed (from step pulses per unit time (per second) and/or the distance moved.
Now I am using my stepper motor with encoder (20 signals per revolution, or 360 degrees / 20 = 18 degrees every signal) to prove my concept.
def testTmc2225V02(): # 1/4 microstepping, CCW, 2,000,000 1m2 step pulses printProgramName() # Print program name, author name, data tmcSetOneFourthStep(ms1PinNum, ms2PinNum) # Set microstepping resolution 1/4 tmcSetDirCcw(dirPinNum = 21) # Set direction CCW tmcSendOneMilliSecondStepPulses(stepPinNum = 22, pulsesTotal = 2000000) # Send 2000000 1ms width step pulses return
« first day (2 days earlier) ← previous day next day → last day (18 days later) »
Transcript for
Feb26
Feb '2227
Mar2
Discussion between tlfong01 and Tryin…
Imported from a comment discussion on electronics.stackexchang...