Using PWM on the RPi PICO microcontroller

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 เม.ย. 2022
  • Learn how to use Pulse Width Modulation (PWM) on the Raspberry Pi PICO microcontroller. Explanations will cover theory, applications of PWM, what a PWM signal looks like, how to set frequency and duty cycle. Several examples will be provided including controlling LED brightness control as well as variable power output.
    VISIT OUR COMPANION WEBSITE -- makingstuffwithchrisdehut.com
    DOWNLOAD FILES HERE -- makingstuffwithchrisdehut.com...
    SOURCED ITEMS USED IN SOME OF THE VIDEOS
    3 pack of breadboards amzn.to/3oAkK3H
    450 pc assortment of LEDs amzn.to/3sr1vKL
    38 value / 1200 pcs resistor assortment amzn.to/3Llxq8k
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    You are now my go to on the Pico and revision later on.

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

      Hi Nigel,
      Thanks for being a part of our community here.
      Cheers!
      chris

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

    i just want to say thank you sir from the bottoms of my heart im trying to learn raspberry pi pico and there are not enough tutorials on youtube or in the internet in general but when i discovered your channel it was like a savior. your explanations are wonderful thank you again sir ❤. And sorry for my broken english 😅

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

      Hi PC,
      THANK YOU SO MUCH!!! I really enjoy doing these videos and sharing what little I know with anyone willing to take the time to listen. I hope you will stick around as I have a lot of videos here, and MANY more coming up.
      As for your "broken English", sir, your English is much better than most of the people I train out in the field these days. You are doing might fine!
      Cheers!
      Chris

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

    nice explanation with good presentation ... (font size is a bit small)
    maybe 4 leds could have shown the difference better between 25/50/75 duty cycle and no power.

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

    Great video thank you. I am experimenting with RioRand 3 phase bldc motor drivers and hoverboard motors. Can't find much information about driving these controllers with pwm input signal. Spec sheet says it wants to see bwtn 1k-20khz freq. Hobby servo freq (50hz) is apparently too slow. Motor goes haywire. Might need to write some custom code to use these controllers in pwm mode. Your code is a good start.

  • @user-nn5wf3fk4g
    @user-nn5wf3fk4g 3 หลายเดือนก่อน

    I have 100 MHz of DSO and 133 MHz of RP2040, sir.I want to make a pwm at a frequency of 1 MHz, however the square wave has a lot of noise in it. Is there anything I can do to reduce this, sir?Additionally, a PWM may produce a 65 MHz square wave. I'm using micro Python and Thonny IDE . I want to make 65 MHz. Is this possible, sir? If not, what is the maximum frequency that I can generate? Please let me know.

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

      Those are some pretty high frequencies to do. I doubt that it can be done using MicroPython directly. The PICO can also be programmed using PIO which is a much lower level to the hardware and allows you to achieve much higher performs. Unfortunately I have no advice on how to work with PIO.
      Cheers!
      Chris