Raspberry Pi Pico Tutorial 2 | PWM and Servo Motor | MicroPython | VS Code | pico-go extension

Поделиться
HTML-код
  • Опубликовано: 30 мар 2021
  • Get 30 days free trial Altium Designer - www.altium.com/yt/robocircuits
    Raspberry Pi Pico tutorial using micropython and visual studio code (vs code) with MicroPython by installing the pico-go extension.
    Previous Video - • Raspberry Pi Pico Tuto...
    Code and Schematics -
    Control LED brightness with PWM
    Pulse width modulation, allows you to give analog behaviors to digital devices, such as LEDs. This means that rather than an LED being simply on or off, you can control its brightness.
    The frequency (pwm.freq) tells Raspberry Pi Pico how often to switch the power between on and off for the LED.
    The duty cycle tells the LED for how long it should be on each time. For Raspberry Pi Pico in MicroPython, this can range from 0 to 65025. 65025 would be 100% of the time, so the LED would stay bright. A value of around 32512 would indicate that it should be on for half the time.
    Have a play with the pwm.freq() values and the pwm.duty_u16 values, as well as the length of time for the sleep, to get a feel for how you can adjust the brightness and pace of the pulsing LED.
    Controlling Servo Motors such as 9g Micro Servo is fun with PWM signals from the RP2040 microcontroller mounted on the raspberry pi pico board.
    Social Links
    Facebook - robocircuits
    Instagram - / robocircuits
    Twitter - / robocircuits
    Instructables - www.instructables.com/member/...
    Arduino CC - create.arduino.cc/projecthub/...
  • НаукаНаука

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

  • @RealtyElectronics
    @RealtyElectronics 3 года назад +2

    I like your way of explaining. Keep it up bro.

  • @dumb_didi
    @dumb_didi 3 года назад +1

    Very well explained!!!❤️

  • @x-6790
    @x-6790 3 года назад +1

    excellent explanation

  • @anokhautomation4453
    @anokhautomation4453 3 года назад +1

    Very useful 🙏. Thanks for sharing

  • @sonaljaglan1654
    @sonaljaglan1654 3 года назад +1

    Chha gye guru👍🤣😂😍😍

  • @creativeelectronics6266
    @creativeelectronics6266 3 года назад +2

    Nice

  • @electronic7979
    @electronic7979 3 года назад +2

    👏👏👏

  • @shivamsingh7111
    @shivamsingh7111 3 года назад

    sir i want to write a program for servo motor in raspberry pi pico that servo first rotate from 0 to 180 degree and after 45 mins it rotate from 180 to 0 degree sir plz help me to write this program..

    • @RoboCircuits
      @RoboCircuits  3 года назад

      Give a delay of 45 minutes in between two it will work

    • @shivamsingh7111
      @shivamsingh7111 3 года назад

      plz reply quick i have an emergency

    • @RoboCircuits
      @RoboCircuits  3 года назад

      You will need to use the same code as written in this video
      You will have to reduce the max value a little and add a delay of 45 min

    • @shivamsingh7111
      @shivamsingh7111 3 года назад

      @@RoboCircuits sir not working plz write the code here it will be very helpful full for me

    • @shivamsingh7111
      @shivamsingh7111 3 года назад

      sir actually i have that day to complete my project i am using servo sg 90
      sir plz help me