STM32 stepping motor control procedures
2016-11-09
1 0 0
4.1
Other
Earn points
System is the s-curve of speed and time, Vmax parameter is the acceleration a, maximum speed, minimum speed, speed changes DT,4 interval parameters, without considering the distance, the whole process is the sensor in place to locate
An array of build speed, interrupted calls void VarrayupMake () { while (n*DT<=a&&n<=300)//up to record 300 speed speedometer Varrayup[] { If ((n*DT) >=0&& (n*DT) ≪= (a/2))// S-curve velocity records in the first half of the formula { v=2* (VMAX-VMIN)/(a*a) * (n*DT*n*DT) +VMIN; } Else if (n*DT<=a)//s curve half speed record formula { v=-2* (VMAX-VMIN)/(a*a) * (n*DT-a) * (n*DT-a) +VMAX; } Varrayup[n]=v;//table records to speed Varray[] n++; } }
Related Source Codes
Android AOA Android Open Accessory Development Usi
0
0
no vote
Golang AOA Android Open Accessory HID Control
0
0
no vote
PClite
0
0
no vote
GMSK Linear Receiver
0
0
no vote
The golden version of AFT that has been passed dow
0
0
no vote
No comment