Home > other >  Using 32 MCU so that when the motor rotation over a particular time automatic stop program how to wr
Using 32 MCU so that when the motor rotation over a particular time automatic stop program how to wr

Time:09-18

Please you ask and do you know about the

CodePudding user response:

Start the motor rotates at the same time start the timer, repeatedly reading a timer to time after the stop the motor,

CodePudding user response:

This is easy to implement, open the systick timer, set the timer interrupt, if 1 ms interrupt
Let each time, set a variable into the interrupt this variable + 1, can control time, time to
Close the motor
  • Related