STEPPER Motor and STM32 || Angle, RPM and Direction control || CubeIDE

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ต.ค. 2024

ความคิดเห็น • 52

  • @thad0905
    @thad0905 ปีที่แล้ว

    Is there a way to make an initial angle sir, before rotating or after rotating, the motor will return to that specific angle ?

  • @pavelmokrov710
    @pavelmokrov710 4 ปีที่แล้ว +2

    A very necessary project. Thank you so much for your work.

  • @Alexcymantrene
    @Alexcymantrene 3 วันที่ผ่านมา

    thank you dear friend! The best project!

  • @khwajamoinuddin4629
    @khwajamoinuddin4629 5 หลายเดือนก่อน

    i had done as you said but its vibrating instead of rotating and i have read all the comments and one stood out of it and i interchanged the input terminals though it not working plz drop the solution for this....

  • @kutluhantaylaniren5422
    @kutluhantaylaniren5422 3 ปีที่แล้ว

    Firstly, thank for the video. Is there any possibility about making rpm float or double ? I want it to have 6.5 rpm for example. Thanks for answering.

  • @tahaosman791
    @tahaosman791 4 ปีที่แล้ว +2

    Thanks for the video! It helps me a lot. Can we also set start point? And can we also calculate the times of rotate? I want to use it like Rotate 10 times then wait on the angle of 30.

    • @ControllersTech
      @ControllersTech  4 ปีที่แล้ว +1

      Yeah maybe you can rotate it in a for loop ( 10 times) for an angle of 360.

    • @tahaosman791
      @tahaosman791 4 ปีที่แล้ว

      @@ControllersTech Thank you Sir. I ll try

  • @The2Coolest2
    @The2Coolest2 3 ปีที่แล้ว

    I have a question. I am using a L298N which I connect the two phases of a Nema 11 stepper motor. I am using the full step sequence provided by the data sheet. But it seems for stepper_step_angle does not work properly. The RPM part seems fine, but the angle seems off. For example, if I set it to 45 degrees, 7.5RPM then Hal_Delay(1000), every second it moves 180 degrees instead of 45. If I set it to 11 degrees, it does around 45 degrees. It seems to take the degrees input and multiply it by 4. Any ideas why? It could be the angle per step is wrong, but the sheet says 1.8 degrees, and so 360/1.8 = 200.

  • @manishrao8326
    @manishrao8326 3 ปีที่แล้ว

    Good video sir. ..But one question how ur building the logic behind it?? Please reply

  • @rathanshidling1856
    @rathanshidling1856 4 ปีที่แล้ว +2

    can you upload stm32 stepper code for 1000 rpm in tb6600 stepper driver.

  • @RESPECT-yb1dm
    @RESPECT-yb1dm 2 ปีที่แล้ว +1

    Can you make AVR development board dual motor rpm controller program

  • @fatemehmahdavi3272
    @fatemehmahdavi3272 3 ปีที่แล้ว

    hello, thank you so much. Can I use this project for TB6612 driver?

  • @masterzerox2009
    @masterzerox2009 4 ปีที่แล้ว +1

    Hello, I've proved this code for an 17HS3401 NEMA 17 stepper motor, with the L298N driver, this code doesn't functions in the right way, what considerations should we have to run this electrical machine?

    • @ControllersTech
      @ControllersTech  4 ปีที่แล้ว

      What doesn't work ? Can u provide a bit more details. Everything is explained in the video and the article.. which part is the issue ?

  • @davidbalog1014
    @davidbalog1014 3 ปีที่แล้ว

    What about STM32+stepper shield? Is that as same as in the video?

  • @jorgejacome4269
    @jorgejacome4269 4 ปีที่แล้ว

    Firsly , Thank you very much not only for this video ; for all the time and effort on them.
    I did buy the same blue pill development board on eBay that you are using in this video; and it comes with a preprogrammed file on it (blinking a led about 1 sec on/off ) but unfortunately I can not download my file on it
    I did use the st-link utility software to erase the chip without success; and I think for any reason does not allow me
    to communicate with the chip, it is not the case when the first time development board manufacture download the file on it
    left the pins CLK and DIO for SWV communication as output pins ?
    If that is the case how can I fix this problem.
    Thanks

    • @ControllersTech
      @ControllersTech  4 ปีที่แล้ว

      All bluepills comes pre-programmed with that blink thingy. There are 2 boot pins on your board. Yellow color ones maybe. connect both of the middle ones to 0. Now try to erase.
      Also in st link utility, you can go to settings and select connect under reset instead of hardware reset

    • @m4nuz
      @m4nuz 4 ปีที่แล้ว

      sometimes it's useful to go in ST-Link->Target->Enable debug in Low power mode. Connect, Disconnect, Try again with cube/attolic

  • @Alan96555
    @Alan96555 2 ปีที่แล้ว

    how can i make it work for bipolar stepper motor? i tryed changing the stepsperrev to 200 and the anglepersequence to 14.4 but it didnt work, the motor its stuck

    • @ControllersTech
      @ControllersTech  2 ปีที่แล้ว +1

      Bipolar works on different sequence. This code won't work, but if you understand the logic, that's pretty much the same

  • @salihay
    @salihay 4 ปีที่แล้ว +1

    Thanks for this educational video! :)

  • @bennguyen1313
    @bennguyen1313 4 ปีที่แล้ว

    I'd like to use ST's L6474 stepper controller/driver with a Nucleo.. any thoughts on using the ST software for development: STSW-SPIN002 or X-CUBE-SPN1/3/6?

  • @EmbSysDev
    @EmbSysDev 4 ปีที่แล้ว

    Hello ! Nice video; any chance you will make a video for USB pen drive storage using CH375B ?

    • @ControllersTech
      @ControllersTech  4 ปีที่แล้ว +1

      Yeah sure maybe in the near future..

  • @aerography641
    @aerography641 2 ปีที่แล้ว

    Hi,
    I have copied the code as is and made the connections which I have double checked. When I run the code, my motor vibrates but doesn't rotate.
    I have tested with two different motors and driver boards but no luck.
    Can anyone please help.

    • @aerography641
      @aerography641 2 ปีที่แล้ว +1

      Issue resolved. MY wiring was not correct. Swapped IN1 and IN2 and the motor started spinning.

  • @jaxxteller9960
    @jaxxteller9960 4 ปีที่แล้ว

    What software did you use for text to speech? and what voice?

  • @md.omaerfaruqgoni7902
    @md.omaerfaruqgoni7902 ปีที่แล้ว

    Why is 60M used to calculate rpm? Could you please explain

    • @ControllersTech
      @ControllersTech  ปีที่แล้ว +1

      Because 60M microseconds makes 1 minute.

  • @SmeeUncleJoe
    @SmeeUncleJoe ปีที่แล้ว

    At time 2:00 , what values is he entering and where ?

    • @ControllersTech
      @ControllersTech  ปีที่แล้ว

      It's the timer setup to generate microsecond delay. The video link is in the description

    • @SmeeUncleJoe
      @SmeeUncleJoe ปีที่แล้ว

      @@ControllersTech Yes I got that, but what values were you entering into which text boxes ? You stopped narrating when you passed through that step. I cannot see what is typed there.

    • @ControllersTech
      @ControllersTech  ปีที่แล้ว

      It's the setup for generating 1 microsecond delay. Like i said it's explained in the video in description, including the values and boxes.. everything

    • @SmeeUncleJoe
      @SmeeUncleJoe ปีที่แล้ว

      @@ControllersTech If you are talking about that other video linked to, you use "180 and 90" in that one. The 180 is changed a minute or so later to 100 but so what was the point of setting it to 180 in the first place ? In both videos, you stop talking while changing a bunch of boxes. I take you think we can see what you are doing but as I said, even when i zoom, I'm not able to see clear text. In this video you start with 72 MHZ. These are different numbers and I presume will require different prescaler values etc downstream. You also repeatedly highlight certain boxes, but for what reason you don't explain and it's not clear if you are entering new values at that point. I can't see it when it's highlighted into reverse video. A zoom in on the boxes , in focus, or values/steps slowly mentioned for which boxes explained would be a remedy. Cheers.

    • @SmeeUncleJoe
      @SmeeUncleJoe ปีที่แล้ว

      I found another video or series of videos you did and it is much better. Quite a bit more complicated but the images are clear and you make a point of zooming in when you edit the values. This is more what I was hoping for and hopefully after getting through it, I'll understand what is going on: th-cam.com/video/GJ_LFAlOlSk/w-d-xo.html

  • @christoshaju2595
    @christoshaju2595 4 ปีที่แล้ว

    Is that a simulator shown?

  • @ecarvalho17
    @ecarvalho17 4 ปีที่แล้ว

    which video on the top right? 1:58

    • @ControllersTech
      @ControllersTech  4 ปีที่แล้ว +1

      Sorry about that...its still a wip... You can read it in the description though.. it's there

    • @ecarvalho17
      @ecarvalho17 4 ปีที่แล้ว +1

      @@ControllersTech just kidding.. Great video. +1sub

  • @The2Coolest2
    @The2Coolest2 3 ปีที่แล้ว

    Do not understand where 60M comes from in your set rpm function

    • @ControllersTech
      @ControllersTech  3 ปีที่แล้ว +3

      60M us = 1 min
      1min / (total steps) = time delay between each step

  • @vikneswaranrajandaran6588
    @vikneswaranrajandaran6588 3 ปีที่แล้ว

    how bout servo motor?

    • @ControllersTech
      @ControllersTech  3 ปีที่แล้ว

      What about it ?

    • @vikneswaranrajandaran6588
      @vikneswaranrajandaran6588 3 ปีที่แล้ว

      @@ControllersTech replacing stepper with servo?

    • @ControllersTech
      @ControllersTech  3 ปีที่แล้ว

      There are 2 tutorials on servo. Just look for them. The latest one covers the angle and all..

  • @eduardodelarosaferrer2205
    @eduardodelarosaferrer2205 4 ปีที่แล้ว

    Thanks a lot !!!

  • @adnansayder2148
    @adnansayder2148 4 ปีที่แล้ว

    Great very thanks