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
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.
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
Thank you, great to hear!
I’ve learned new approaches to coding, thank you for your presentation!
Glad it was helpful!
What an awesome explanation 😮🤟
Thanks, glad it could help 👍
love this u made me understand notes clearer , ur amazing keep it up so inspiring
Thank you
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!
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! :)
Thank you very much for sharing with all of us! Wishing you lots of health and love!
I cannot thank you guys enough🎉
You rock!!!! Future engineers and your already ahead of most!
thank you, aprissiate it!
You guys are great!
This helped me so much. Thanks a lot.😇
Glad it helped!
Great cover of frecuency use, Thank you!!
Congratulations from India....
wow this is the new fronteer of this internet tutorials! quite cool boy!
Thanks!
youre awsome bro !!!!!
You are! Thanks for watching!
I should make a playlist from all of your videos and watch it everyday.. maybe i will do that..
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!
Very nice! Thank you…
เก่งมากครับ
13:08 line 10:
duty_cycle=int(35565/2)
Piano is tuned correctly to 432 mhz, where as radios and electrical devices emit 440 mhz because criminal minds in government want that.