Generate PWM Signal in STM32 Microcontroller- Brightness Control of LED

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ก.ค. 2024
  • Learn how to generate PWM signal in STM32 Microcontroller. The pulse width modulation technique is used to change duty cycle of a clock, which in result control brightness of an LED. We will use internal timer of STM32 Nucleo board to generate PWM signal.
    [SUPPORT]
    ►► Try the world's most trusted PCB design software, Altium Designer with 365, for free and 25% off your purchase: www.altium.com/yt/binaryupdates
    ►► Free search engine for the best quality components from Octopart: octopart.com/
    [RESOURCES]
    ►► Need Help? To Learn Embedded Systems: courses.binaryupdates.com
    ►► Single Channel ADC Lesson: • How to use ADC in STM3...
    ►► Serial UART STM32 Tutorial: • Serial UART with STM32...
    [TIMESTAMPS]
    00:00 Introduction
    00:14 PWM Basics
    01:14 Create STM32 Project
    02:35 Configure Timer in PWM Mode
    03:10 Calculate PWM Frequency
    05:40 Program for PWM Generation
    11:22 LED Brightness Control
    11:30 outro
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @abelashenafi6291
    @abelashenafi6291 4 หลายเดือนก่อน +1

    Thanks I've learned quite a lot from your video series. Thanks

    • @BINARYUPDATES
      @BINARYUPDATES  3 หลายเดือนก่อน

      Glad to hear it. Thank you so much!

  • @OmidAtaollahi
    @OmidAtaollahi 7 หลายเดือนก่อน

    Great tutorial. Tnx.🥰

  • @unknown.477
    @unknown.477 7 หลายเดือนก่อน

    thanks for the video series.this helped me to learn stm32.waiting for communication protocols videos...

    • @BINARYUPDATES
      @BINARYUPDATES  6 หลายเดือนก่อน +1

      Soon, I'll making STM32 lessons covering UART, I2C and SPI communication protocols. Good luck and best wishes!

  • @indumathisivanadham2785
    @indumathisivanadham2785 8 หลายเดือนก่อน

    Great work. Your lpc2148 program was useful while i am very new to embedded system. Thanks bro. This is very clear and very very easy....

    • @BINARYUPDATES
      @BINARYUPDATES  7 หลายเดือนก่อน

      Hi Indumathi, thank you so much, best wishes!

  • @theengineer4072
    @theengineer4072 8 หลายเดือนก่อน +1

    Hey there !
    First of all, I've gotta say I'm a huge fan of your embedded systems videos - they're super insightful and fun to watch! I recently graduated with a degree in electromechanical engineering, and I've fallen head over heels for embedded systems.
    Now, I'm dreaming of freelancing in this field and turning my hobby into something more. I'd love to get your take on a few things:
    What do you think are the absolute must-have skills for someone like me who's just starting out in embedded systems and wants to dive into freelancing?
    How can I kickstart my portfolio and gain practical experience that's gonna impress potential clients or employers?
    Any friendly advice for a newbie like me looking to dip my toes into the freelance world of embedded systems?
    I know you've got tons of wisdom to share, and I'm all ears (well, eyes, in this case) for your insights! Your videos have been a real game-changer for me, and I can't wait to hear what you have to say.
    Cheers,

    • @BINARYUPDATES
      @BINARYUPDATES  6 หลายเดือนก่อน

      Thank you so much for your words! Good luck and best wishes!

  • @osama.elsalamony
    @osama.elsalamony 6 หลายเดือนก่อน

    Could u please clear the settings of Clock Configuration?
    Because I did as you but there is something missing

  • @qhr_5
    @qhr_5 วันที่ผ่านมา

    Good day, I've stumbled upon your TH-cam stm32 series and am interested to buy one of your courses. I am an electronics student and new to stm32 programming. Our curriculum covers mostly the HAL aspect of the programming process. Which course of yours would you recommend? I like your teaching!

  • @SaiKumar-hv3qd
    @SaiKumar-hv3qd 8 หลายเดือนก่อน +3

    Please try to implement serial communication protocols like spi, i2c using stm32

    • @BINARYUPDATES
      @BINARYUPDATES  8 หลายเดือนก่อน +1

      Hi SaiKumar, Yes, I'll soon make a video lessons for Serial SPI and I2C communication to demonstrate how to interface various digital sensors to STM32 Microcontroller. I hope you've enjoyed this PWM with STM32 tutorial. Wish you a beautiful day. Thank you!

    • @SaiKumar-hv3qd
      @SaiKumar-hv3qd 8 หลายเดือนก่อน

      @@BINARYUPDATES yeah

  • @axramar7743
    @axramar7743 4 หลายเดือนก่อน

    Awesome 🎉 Sir please connect Stm32 to Aws using GSM module

    • @BINARYUPDATES
      @BINARYUPDATES  4 หลายเดือนก่อน +1

      Hi, I'm considering making video to connect STM32 to AWS IoT Core. Thanks for the suggestions!

  • @mahmoudkafafy6409
    @mahmoudkafafy6409 2 หลายเดือนก่อน

    Why this make max output 5v while the max output of stm is 3.3v?

  • @sudhansumtripathy
    @sudhansumtripathy 6 หลายเดือนก่อน +1

    hi, thank you for the video, how do I plot it to the swv?

    • @BINARYUPDATES
      @BINARYUPDATES  6 หลายเดือนก่อน

      Hi, under SWV viewer console there is option to plot the variable value while debugging code on STM32 Microcontroller. I'll try to make video on this topics in future. Good luck and best wishes!

    • @sudhansumtripathy
      @sudhansumtripathy 6 หลายเดือนก่อน

      @@BINARYUPDATES I want to plot the PWM, this will be a great help, like you need to explain the code , how to save the pwm value into a variable and plot it. I searched a lot did not find any thing how to do it.

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

    Please make CAN communication tutorial with this board.

    • @BINARYUPDATES
      @BINARYUPDATES  5 หลายเดือนก่อน +1

      Hi Sarkatesiddhant, I'll soon make video tutorial about CAN protocol with STM32 Microcontroller. It may take sometime but will do soon. Thanks for your patience and support!

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

      @@BINARYUPDATES thank you, please try doing it on register level programming.

  • @harkeeratsingh2509
    @harkeeratsingh2509 7 หลายเดือนก่อน

    Hi sir. I want to understand the working of Arduino and also how to code on it. If you can help it would mean a lot. I have an idea we can try and see if it works.

    • @BINARYUPDATES
      @BINARYUPDATES  6 หลายเดือนก่อน

      Hi Harkeerat, I've created plenty of videos for programming arduino step-by-step. please check Arduino Tutorial Playlist. There you have everything you need for programming Arduino and AVR Microcontroller. Good luck and best wishes!

  • @christiankoch4627
    @christiankoch4627 4 หลายเดือนก่อน

    I would speak faster

    • @BINARYUPDATES
      @BINARYUPDATES  4 หลายเดือนก่อน

      Thanks for feedback. I thought slower video makes viewer sleepy. So made little fast. Maybe next will be STM32 lesson will be bit slow.