LED Dimming using PWM | STM32 G474 Nucleo | Episode 8

Поделиться
HTML-код
  • Опубликовано: 6 фев 2025
  • #arm #nucleo #programming
    In last video, we have understood clearly about generating a PWM signal at timer output channels.
    Today we can do a LED dimming program using the same PWM feature of the stm32 controller. We will be increasing and decreasing (controlling) brightness of the LED on the Nucleo board.
    The amazing fact is you don't need an additional LED or any other circuit to do this project.
    Just your Nucleo board will do this magic!
    Code Repo link : github.com/vde...
    ------------------------------------------------
    If you want to build a career in embedded systems and arm platform areas, I've started this video series (Master your controller) and it will teach you all the necessary peripherals associated with microcontrollers. You can consider subscribing to my channel if you like my videos.
    ------------------------------------------------
    You can also watch following videos in this series:
    1. Why ARM controllers are so popular?
    • Why ARM Microcontrolle...
    2. How to blink an LED using STM32 Nucleo Board
    / ei0u9lig9e
    3. STM32 Push Button Example
    • Push Button Example | ...
    4. STM32 Clock and Timers Explained with Example (Part 1)
    / p1ee7gvol8
    5. STM32 Clock and Timers Explained with Example (Part 2)
    • Clock and Timers Expla...
    6. STM32 Basic Timer Code Explained (Part 1)
    • Basic Timer Code Expla...
    7. STM32 Basic Timer Code Explained (Part 2)
    • GPIO Handling Explaine...
    8. STM32 PWM Generation
    • PWM Generation | STM32...
    9. STM32 PWM Generation Code Explained
    • Understanding PWM Gene...
    10. LED Dimming using PWM
    • LED Dimming using PWM ...
    11. Code explanation of LED Dimming Project
    • How does PWM control t...
    12. Setup a github repository
    • Let's upload our proje...
    13. Connecting sourcetree to our github account
    • How to connect sourcet...
    14. Configure STM32 Controller UART using Polling method
    • Let's send using UART ...
    ------------------------------------------------
    Other Topics
    1. Integrate Clang Format Styling with Visual Studio Code
    • Integrate Clang Format...
    2. Integrate Clang Format Styling with IAR Embedded Workbench
    • Integrate Clang Format...
    3. Enabling Internet in Beaglebone black board
    • Enabling Internet in B...
    4. Generic Logic Analyzer Unboxing
    • Generic Logic Analyzer...
    5. Evolution of C Programing Language
    • Evolution of C Program...

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

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

    Nice explanation. Wishes to continue your work.

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

      Thanks a lot😊

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

    very good video, it changes to bare métal coding!!

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

      Thanks Guillaume!
      We are still playing with HAL libraries. We can do a session exclusively with Bare-metal coding if you're interested🙂.

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

    Can you also put a video on implementing this on controlling dc motors?

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

      Yes. I'll try to post that👍

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

      @@vdevelop Can you tell me why have you enabled the auto-reload preload ?
      Cant PWM pulse be generated by simply inserting PSC/ ARR values?

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

    Merci

  • @animegamerzone-
    @animegamerzone- 2 года назад

    How do you control the brightness of the LED using a Potentiometer

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

      1. Read pot value using analog channel
      2. Do necessary scaling to get the duty cycle, and update the pwm duty cycle

  • @animegamerzone-
    @animegamerzone- 2 года назад

    can you do a video about
    HAL_StatusTypeDef HAL_TIM_PWM_Start(TIM_HandleTypeDef * htim,uint32_t Channel )
    HAL_StatusTypeDef HAL_TIM_PWM_Stop(TIM_HandleTypeDef * htim,uint32_t Channel )

    • @animegamerzone-
      @animegamerzone- 2 года назад

      sorry i think i see it in the previous videos