73. STM32CubeIDE A4988 & NEMA 17 Stepper Motor with STM32F103C8T6

Поделиться
HTML-код
  • Опубликовано: 20 июл 2024
  • STM32 Blue Pill for beginners
    Code and diagram are at www.micropeta.com/video73

Комментарии • 29

  • @adesuyisunday4287
    @adesuyisunday4287 2 года назад

    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.

  • @talgtalga3767
    @talgtalga3767 2 года назад +1

    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???

  • @Sam-dv3vt
    @Sam-dv3vt 2 года назад +2

    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?

    • @NizarMohideen
      @NizarMohideen  2 года назад

      It can be done
      I haven’t seen any library on the github so far
      Thanks

  • @nhatpham5797
    @nhatpham5797 Год назад

    Hi, I am using Discovery Kit, can I use Blue Pill's code to control stepper motor? Looking forward to your answer

  • @shambhusingh5094
    @shambhusingh5094 2 года назад +1

    Great 👍

  • @rajatmond
    @rajatmond 11 месяцев назад

    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?

  • @Halyconist
    @Halyconist 2 года назад

    Thank you my brother

  • @vinodkinoni4863
    @vinodkinoni4863 2 года назад +1

    Nice one

  • @talgtalga3767
    @talgtalga3767 2 года назад

    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

    • @NizarMohideen
      @NizarMohideen  2 года назад

      Thanks. I am sorry I don’t have nextion setup with me at the moment.

  • @khoinguyen4862
    @khoinguyen4862 2 года назад

    Can you explain what is the function of the timer ?

    • @rajatmond
      @rajatmond 11 месяцев назад

      Nothing actually. He is using the timer for busy-wait with microsecond-precision. This is impractical for serious application.

  • @aka_vitfil
    @aka_vitfil 2 года назад +1

    I think a MOSFET needed between the driver and the motor

    • @NizarMohideen
      @NizarMohideen  2 года назад +2

      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

  • @makergaragediy
    @makergaragediy 2 года назад +2

    How can make to control 3 motor at same time?

    • @NizarMohideen
      @NizarMohideen  2 года назад +2

      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

  • @atharvsawant723
    @atharvsawant723 3 месяца назад

    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?

    • @NizarMohideen
      @NizarMohideen  3 месяца назад

      If you set Clock Configuration tab → HCLK (MHz) to 180 for STM32F446RE
      Then, Configuration → Parameter Settings → Prescaler set to 179

  • @mohamedriadhgrioune8945
    @mohamedriadhgrioune8945 2 года назад +1

    thanx a lot can you use mcp2551 with stm32 ?

  • @sabbrush6001
    @sabbrush6001 11 дней назад

    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?

    • @NizarMohideen
      @NizarMohideen  11 дней назад

      The timer used in this example is for micro-second delay. As long as you get 1us, it should be ok