Sound & Music Using MicroPython & CircuitPython - Coding Session On a Raspberry Pi Pico

Поділитися
Вставка
  • Опубліковано 4 січ 2025
  • In depth coding session using both MicroPython and CircuitPython showing how to make sound and music on a Microcontroller. We used a Raspberry Pi Pico.
    We also went as far as making our own instrument and hooking it up to the Raspberry Pi Pico.
    ✨Link to the code:
    github.com/gur...
    00:00 Introduction
    01:12 Equipment needed
    01:41 Explanation of basic circuit being used
    02:15 Starting the MicroPython code
    02:17 Importing what's needed for both MicroPython and CircuitPython
    02:35 Writing the code in MicroPython
    02:37 Setting the Duty Cycle
    03:28 Making the Speaker Sound
    03:50 Looking up the Frequencies
    04:30 Testing the Code
    04:58 Creating more notes
    05:56 Testing the Code
    06:20 Adding and explaining Dictionaries
    07:32 Adding a Function
    08:25 More on Dictionaries
    09:01 Back to the Function
    09:58 Calling the Function and testing it works
    11:05 Adding a chip
    12:20 Using a Tiny2040 instead of Raspberry Pi Pico and writing the code in CircuitPython
    12:45 Code above replicated in Circuitpython
    12:47 Comparing the MicroPython Code and the CircuitPython Code in VS Code
    14:33 Creating and Explanation of a list
    16:05 For Loop
    16:58 Testing the code
    17:40 Putting rests into the Music
    19:43 What to expect in the next video Part 2 of this one
    ✨Videos mentioned in this tutorial are
    ⁕Your first Super easy Electronics Project - The Amazing Amp
    • Your first super simpl...
    ⁕Playing with RGB LEDs, PWM, Sound, & more on Tiny2040, Raspberry Pi Pico & Microcontrollers
    • Playing with RGB LEDs,...
    ✨Equipment
    LM386 Chip
    Speaker
    1k resistor
    Breadboard
    Raspberry Pi Pico or Pimoroni Tiny 2040 or any other Microcontroller
    ✨Parts can be obtained from Amazon
    amazon.co.uk/s... - UK
    amazon.com/sho... - US
    We have an affiliated partnership with Amazon, any money (pennies or cents) we make goes into our University or College fund.
    ★ Please 👍 like, subscribe & comment to our channel, it is really appreciated. 🙏
    If you like our work you may want to help us with the costs to keep producing and buy us a pizza 🍕 the link to buymeacoffee.com : www.buymeacoff.... Thanks as always for your support.
    #raspberryPiPico
    #microPython
    #circuitPython

КОМЕНТАРІ • 30

  • @tubegor
    @tubegor 3 роки тому +1

    You conveyed a lot of knowledge in a playful way while trying out and improving. It's fun to be part of it. I'm looking forward to the next episodes.

  • @flywittzbeats4008
    @flywittzbeats4008 2 роки тому

    This is the best coding video I’ve seen ever! I had no idea how these libraries worked, and how to make functions. It feels like so much makes so much more sense

  • @carltonkess862
    @carltonkess862 Рік тому

    I’ve learned new approaches to coding, thank you for your presentation!

  • @alham__aa
    @alham__aa 2 роки тому

    What an awesome explanation 😮🤟

    • @GurgleApps
      @GurgleApps  2 роки тому +1

      Thanks, glad it could help 👍

  • @tinatoka
    @tinatoka 7 місяців тому

    love this u made me understand notes clearer , ur amazing keep it up so inspiring

  • @kieranhughes
    @kieranhughes 2 роки тому +1

    Thirty-five your old guy here. Great job! Nice clear explanations. I'm learning micropython for work, and also to teach my daughter when she's old enough, which going by your family, might be sooner than I thought!

    • @GurgleApps
      @GurgleApps  2 роки тому

      Thanks! Such nice comments like these really inspire us to keep posting content. We hope you daughter enjoys it as much as we do - and yes, you are never too young to learn! :)

  • @tonysfun
    @tonysfun 3 роки тому

    Thank you very much for sharing with all of us! Wishing you lots of health and love!

  • @flywittzbeats4008
    @flywittzbeats4008 2 роки тому

    I cannot thank you guys enough🎉

  • @dmyers9230
    @dmyers9230 2 роки тому

    You rock!!!! Future engineers and your already ahead of most!

  • @MrVipulLal
    @MrVipulLal 3 роки тому +2

    You guys are great!

  • @srivatsanshreya9203
    @srivatsanshreya9203 6 місяців тому

    This helped me so much. Thanks a lot.😇

  • @ralphasendeteufrer6575
    @ralphasendeteufrer6575 3 роки тому

    Great cover of frecuency use, Thank you!!

  • @innovativelearning8212
    @innovativelearning8212 2 роки тому +1

    Congratulations from India....

  • @fablapp
    @fablapp 11 місяців тому

    wow this is the new fronteer of this internet tutorials! quite cool boy!

  • @manuelr7121
    @manuelr7121 2 роки тому +1

    youre awsome bro !!!!!

    • @GurgleApps
      @GurgleApps  2 роки тому

      You are! Thanks for watching!

  • @bananahacks2813
    @bananahacks2813 3 роки тому +1

    I should make a playlist from all of your videos and watch it everyday.. maybe i will do that..

  • @elizabethvargas5104
    @elizabethvargas5104 2 роки тому

    Thank you so much!!! Could you explain how to convert an mp3 or wav file to play on a speaker from the Raspberry Pi PICO using micropython? God Bless!

  • @toddknudsen9192
    @toddknudsen9192 3 роки тому

    Very nice! Thank you…

  • @sathapornprom
    @sathapornprom 3 місяці тому

    เก่งมากครับ

  • @BarackBananabama
    @BarackBananabama 3 роки тому +1

    13:08 line 10:
    duty_cycle=int(35565/2)

  • @bradleylomas7525
    @bradleylomas7525 29 днів тому

    Piano is tuned correctly to 432 mhz, where as radios and electrical devices emit 440 mhz because criminal minds in government want that.