Wow, I have been following your video. It's clear and educative. Please sir, help do tutorial on sinewave inverter using stm32; hbridge driven 220v, 50hz output with transformer. Could also have LCD to print data like battery parameters, ac out . Also using grid charging system. Expecting your reply. God bless you for this generation.
I really liked you are on of who did stm32 with stepper motor here in youtube with clear explanation..great keep doing please i would like to use by nextion control it... also i have i question this is codes works during plug in power and run automatically repit codes from up to down and loop it ..but if i would like to stoped clicking by button interrupt and then clicking by button want to keep contunie the codes what to do any chance to do video for it???
Is there any sort of library or easier way to set Speed, Acceleration, Relative and Absolute Position of each motor so that you can easially control them for robotic arm etc?
This code is busy-waiting (burning cpu cycles) in the microDealy function. This is impractical for applications. Is there a way of doing it just using timers?
just great video just quick question how can i control it through nextion display clicking by button on touch screen to run the codes and stop also manually run/stop clicking on button without codes?? will be very useful and helpfull any chance to do that??? my appreciate it or who knows people can help me on it?? thanks and regards, Talgat
Hi Виталий Филинков, According to A4988 data-sheet "The A4988 is a complete microstepping motor driver with built-in translator for easy operation. It is designed to operate bipolar stepper motors in full-, half-, quarter-, eighth-, and sixteenth-step modes, with an output drive capacity of up to 35 V and ±2 A" 2Amp is sufficient for many applications. If you want to drive heavy works then you may need mosfets which I don't know how to connect yet. Thank you very much
A simple way is to use FreeRTOS and put each motors code in different threads. Another way is to use different timer interrupts as I have shown in video-62 without blocking delay Thanks
I am using STM32f446 with the same code and did all the configurations correct but still my motor isn't working, can you explain me please why it is happening so?
htim4.Init.Prescaler = 72-1; htim4.Init.CounterMode = TIM_COUNTERMODE_UP; htim4.Init.Period = (72000000 / (72 * pwm_frequency)) - 1; sConfigOC.OCMode = TIM_OCMODE_PWM1; sConfigOC.Pulse =(htim4.Init.Period*0.1); sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH; sConfigOC.OCFastMode = TIM_OCFAST_DISABLE; i used pwm channel 1 for step signal. i did like this and worked quite well. But when i looked at the internet i couldn't found like my solituon. i wonder mine is wrong or something?
Wow, I have been following your video. It's clear and educative. Please sir, help do tutorial on sinewave inverter using stm32; hbridge driven 220v, 50hz output with transformer. Could also have LCD to print data like battery parameters, ac out . Also using grid charging system. Expecting your reply. God bless you for this generation.
I really liked you are on of who did stm32 with stepper motor here in youtube with clear explanation..great keep doing please i would like to use by nextion control it... also i have i question this is codes works during plug in power and run automatically repit codes from up to down and loop it ..but if i would like to stoped clicking by button interrupt and then clicking by button want to keep contunie the codes what to do any chance to do video for it???
Is there any sort of library or easier way to set Speed, Acceleration, Relative and Absolute Position of each motor so that you can easially control them for robotic arm etc?
It can be done
I haven’t seen any library on the github so far
Thanks
Hi, I am using Discovery Kit, can I use Blue Pill's code to control stepper motor? Looking forward to your answer
Great 👍
Thank you! Cheers!
This code is busy-waiting (burning cpu cycles) in the microDealy function. This is impractical for applications. Is there a way of doing it just using timers?
Thank you my brother
You are welcome
Nice one
Thank you very much Vinod
just great video just quick question how can i control it through nextion display clicking by button on touch screen to run the codes and stop also manually run/stop clicking on button without codes?? will be very useful and helpfull any chance to do that??? my appreciate it or who knows people can help me on it?? thanks and regards,
Talgat
Thanks. I am sorry I don’t have nextion setup with me at the moment.
Can you explain what is the function of the timer ?
Nothing actually. He is using the timer for busy-wait with microsecond-precision. This is impractical for serious application.
I think a MOSFET needed between the driver and the motor
Hi Виталий Филинков,
According to A4988 data-sheet
"The A4988 is a complete microstepping motor driver with
built-in translator for easy operation. It is designed to operate
bipolar stepper motors in full-, half-, quarter-, eighth-, and
sixteenth-step modes, with an output drive capacity of up to
35 V and ±2 A"
2Amp is sufficient for many applications.
If you want to drive heavy works then you may need mosfets which I don't know how to connect yet. Thank you very much
How can make to control 3 motor at same time?
A simple way is to use FreeRTOS and put each motors code in different threads.
Another way is to use different timer interrupts as I have shown in video-62 without blocking delay
Thanks
I am using STM32f446 with the same code and did all the configurations correct but still my motor isn't working, can you explain me please why it is happening so?
If you set Clock Configuration tab → HCLK (MHz) to 180 for STM32F446RE
Then, Configuration → Parameter Settings → Prescaler set to 179
thanx a lot can you use mcp2551 with stm32 ?
Thank you. Yes you can. I don't have mcp2551 module with me at the moment.
@@NizarMohideen u dont have ci ?
I have placed the purchase order for mcp2551 few minuets ago.
Lets see
@@NizarMohideen thanks a lott
htim4.Init.Prescaler = 72-1;
htim4.Init.CounterMode = TIM_COUNTERMODE_UP;
htim4.Init.Period = (72000000 / (72 * pwm_frequency)) - 1;
sConfigOC.OCMode = TIM_OCMODE_PWM1;
sConfigOC.Pulse =(htim4.Init.Period*0.1);
sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH;
sConfigOC.OCFastMode = TIM_OCFAST_DISABLE;
i used pwm channel 1 for step signal.
i did like this and worked quite well. But when i looked at the internet i couldn't found like my solituon. i wonder mine is wrong or something?
The timer used in this example is for micro-second delay. As long as you get 1us, it should be ok