STM32F4 Dev. | #5 - PWM Servo

Поделиться
HTML-код
  • Опубликовано: 8 ноя 2024

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

  • @NaotOOtoni
    @NaotOOtoni 7 лет назад

    Great explanation! I revised a bunch of articles on how to set up PWM for servos and only here I saw a detailed explanation of how to set up Prescaler, Period and Frequency of TIMx

  • @BR549DBH
    @BR549DBH 9 лет назад +1

    Great presentation! I have been working on a servo control for about week. I haven't seen anybody do as thorough of a job at explaining these things like you do. I have tried to go through the RM0090 Reference manual for the micro-controller on the discovery board. but get lost. I could use some help to understand how to look at the header files and know just what to use or even how to use it. I find it very helpful to dissect the header file functions down to a reference manual level instruction in order to see why I have to do things that way or this way. Keep up the good work.

  • @marathiengineer6847
    @marathiengineer6847 6 лет назад

    This is great work. Perfectly written code and perfect explanation. Hope you post a lot more tutorials. AVR maybe?

  • @ЕгорЗахаров-д4й
    @ЕгорЗахаров-д4й 3 года назад

    Thank you! My prof couldn’t do it, you did!

  • @rikusouhou
    @rikusouhou 4 года назад +1

    can't figure it out why timer_freq = 20000 us * 50 ticks/s = 1MHz ?. Given APB timer clock is 72MHz, set prescalar = 1440, counter period = 1000, and set CCR from 50 to 100, should this work? had examined using oscilloscope, it seems correct, but didn't work for servo.
    please correct me.

  • @az76134
    @az76134 7 лет назад +4

    One small mistake. Prescaler value have to be 83 if you want to divide the counter frequency by 84.

  • @virtualoutlaws
    @virtualoutlaws 8 лет назад

    I don't know if I missed it but you mentioned you where going to show how to set it up using assembly macro in an earlier movie, did you show that?

  • @TheKulvir
    @TheKulvir 9 лет назад +2

    Great video thanks. Will the same program using the same header files and lib functions gonna work for my STM32F103....?

    • @tdabboud
      @tdabboud  9 лет назад

      Thanks. I do not think the header files and library functions will work on that board, but I could be wrong. The procedure should be almost identical however.

    • @concernedIndianCitizen
      @concernedIndianCitizen 8 лет назад

      it will work. the drivers are mostly constant across the f series

  • @beowes
    @beowes 9 лет назад +1

    Great video - thanks!

  • @jeremyviromek
    @jeremyviromek 7 лет назад

    I'm having a hard time connecting your diagram to what you did in code. isn't ccrx register the value when the counter reaches it turns logic level high? if so that would mean at 600us you are going logic high and staying high for the rest of the period?
    unless you are starting high and after 600 (0.6ms) going low

  • @nicolasfelipe1
    @nicolasfelipe1 7 лет назад

    would be great a tutorial but using the hal drivers.

  • @Debraj1978
    @Debraj1978 7 лет назад

    Very nice video. I am pretty sure, you have used STM32 for doing other stuffs, not just generation of PWM. Because, if you do so is analogous to using Sword for cutting vegetable.

  • @farmingmachine9723
    @farmingmachine9723 7 лет назад

    I have to controll 4 servos independantly in a project, is that possible? Over the same TIM?

  • @alexanderdikiy
    @alexanderdikiy 6 лет назад

    Hi Tiny, You have a link to file srdio.h, and this file doesn't have in github. Where can I get it?

  • @Abdulnur55
    @Abdulnur55 6 лет назад

    do you not need a circuit with transistor, resistor for that?

  • @concernedIndianCitizen
    @concernedIndianCitizen 8 лет назад

    Hey tony, I had a doubt regarding driving dc motors(not servo, the regular free running ones) . I am controlling them using a joystiick. I want them to have a soft ramp for a few miliseconds and than go into free running mode when I take my joystick to the highest point. Can you clear some of my fundamentals please?

    • @concernedIndianCitizen
      @concernedIndianCitizen 8 лет назад

      kind of like how we start the car through first,second,third gear and then completely throttle it at 4th gear

    • @EdwinFairchild
      @EdwinFairchild 8 лет назад

      i would say dynamically change the duty cycle in a loop and the duty cycle is equivalent to the joystick output

  • @Keysforjourney
    @Keysforjourney 8 лет назад

    exactly like yours but mine fails...well actually both.

  • @redsddd9876
    @redsddd9876 8 лет назад

    pwm - not control servo motor
    pwm pulse with modulation

  • @luisfranco8202
    @luisfranco8202 8 лет назад

    hi, i can implemented this code in my stm32f446 nucleo board? with mikroC???
    thanks