6 hours later…
7:11 AM
7:37 AM
Another question on PID: electronics.stackexchange.com/questions/608956/…. Can you let me know if you are using a similar cct to to do PID of motor torque, instead of motor position?
6 hours later…
1:16 PM
Now I have written a micropython function to use GP pin#22 to toggle High/Low every millisecond, thus creating a step/pulse rate of 1,000 pulses per second (pps). I used this step pulse to input to the tmc2225 driver to verify can also smoothly move the motor, same as the xy-pwm sig gen or pcio pwm pin in earlier experiments.
# *** 1 kHz (1k step pps) function definition *** def toggleGpOutPin1kHz(gpOutPinNum): print('Begin toggleGpOutPin1kHz') toggleGpOutPin(gpOutPinNum, highTime = halfMilliSecond, lowTime = halfMilliSecond, repeatTimes = once, totalToggleTimes = tenMillionTimes) print('End toggleGpOutPin1kHz') return # *** Sample Test *** toggleGpOutPin1kHz(gpOutPinNum = 22)
« first day (9 days earlier) ← previous day next day → last day (21 days later) »
Transcript for
Feb17
Feb '2218
Feb19
Discussion between tlfong01 and kyrpav
Imported from a comment discussion on electronics.stackexchang...