Expand Your Raspberry Pi Pico's Memory by Adding a microSD Card Reader! Plus SPI & Module Creation.
HTML-код
- Опубликовано: 2 мар 2023
- Has your Pico run out of space? The Raspberry Pi Pico & Pico W are great, inexpensive boards, but they have an anemic amount of storage. But you can fix this with a $3.50 SD card reader. In this lesson I show how to wire up the reader and access it using CircuitPython. We'll also create a module to easily import the code to setup and mount the SD card to any program. We'll play both mp3 and wav files from the SD card, and we'll learn top stop a sound playing when a touch pad is released.
Part of Prof. John Gallaugher's Physical Computing course. For more info see: gallaugher.com/physical-compu...
Love from India ❤
I did not expect straight PWM Audio from the rp2040 to be this good
Okay, that means I can absolutely cut a few parts in some projects if I use the 16MB china boards.
Really gotta test just connecting it to an amplifier board and calling it a day.
Okay, tested it myself, straight PWM audio actually sounds acceptable for many use cases.
With audio mixer you can specify the volume but i think the pop comes from the initial ground coupling/decoupling every time. I found with my particular project using the 20w amp theres an i2c amp volume control and by muting the amp for 1 second the initial click is bypassed. Thats pretty important for a 20w amp as the pop and buzz is ear shattering at full volume and can blow speaker diaphragms.
The audio noise reduction here is what I plan to cover in a future lesson. My students don’t have these parte so it’ll be an add on when I finish this semester’s updates. learn.adafruit.com/breakbeat-breadboard/build-the-breakbeat-breadboard
Yeah, at about 7 mins I mix up my right and my left. I’m sure you could follow, though. This is why things are color coded😊
Good morning!
Very cool tutorials, helped me get started with Rasbery Pi Pico :)
I have a problem though. As you mentioned playing multiple files with audiomixer doesn't work when trying to play files from a micro SD card. I've checked it on my own, and unfortunately it doesn't actually work (for more than one file, for one file it does manage). So my question is, have you found a solution to this issue? Or do you have any other library to recommend that allows mixing several sounds at once?
Hi. I don’t know how to fix this but you might check on Adafruit Discord. They may have some ideas. Good luck!
very clear instructions. Thank you! One Q, I am using a SPI ili9341 display for some animation while playing sound, will there be any performance issues if both animation/audio play together and both from a sd card also wired to a SPI?
Unsure. There are additional ways to wire this card up for even faster performance. I'd give it a try. Also note for more advanced work, sometimes the Adafruit Discord forums are very useful. I get so much help from them! adafru.it/discord. Cheers!
@@profgallaugher Thanks for the input😀
I appreciate you using the politically correct description for MISO
what about reading stuff from external harddrive cuz for some reason i cant find anything showing how to use them useing a pico
Does this work with other rpi s like the 4
I like the idea of color coding the wiring. Its just too hard to standardize since pcb silkscreens are usually only 1 color. Maybe someday multicolor silkscreens will make that easier to standardize.
I tried to match what folks see with the STEMMA-QT wiring. Yellow clock, blue is data so I figured I’d use green for other data and white for cs. Hopefully it’ll help students to follow but this is the first time we are using this board.
Can you do this in a Raspberry Pi Pico or does it only work with a Raspberry Pi Pico W?
Pico is the same as Pico W except for WiFi and Bluetooth so adding an SD card should work the same way on both. Feel free to check out the full playlist on the site and be sure to subscribe.
Hello, can we install python modules in the sd card and import them from there into the code?
Unsure. That’s a good question for the Adafruit discord channel.
Hi, i did not succed to install numpy because i ran out if Space. Does your tutorial will help me ?
Thanks
Hmmm not sure how to extend libraries to the sd card. Check Adafruit Discord for advice.