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...

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

  • @arahamabeddin7442
    @arahamabeddin7442 Год назад

    Love from India ❤

  • @fgregerfeaxcwfeffece
    @fgregerfeaxcwfeffece 6 месяцев назад +1

    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.

  • @fgregerfeaxcwfeffece
    @fgregerfeaxcwfeffece 5 месяцев назад

    Okay, tested it myself, straight PWM audio actually sounds acceptable for many use cases.

  • @DevonsWorkshop
    @DevonsWorkshop Год назад +3

    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.

    • @profgallaugher
      @profgallaugher  Год назад +1

      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

  • @profgallaugher
    @profgallaugher  Год назад

    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😊

  • @Sztuka01
    @Sztuka01 9 месяцев назад

    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?

    • @profgallaugher
      @profgallaugher  9 месяцев назад

      Hi. I don’t know how to fix this but you might check on Adafruit Discord. They may have some ideas. Good luck!

  • @michaelzhou5095
    @michaelzhou5095 Год назад

    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?

    • @profgallaugher
      @profgallaugher  Год назад

      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!

    • @michaelzhou5095
      @michaelzhou5095 Год назад

      @@profgallaugher Thanks for the input😀

  • @infernape28
    @infernape28 Месяц назад

    I appreciate you using the politically correct description for MISO

  • @nighthawkgaming1962
    @nighthawkgaming1962 7 месяцев назад

    what about reading stuff from external harddrive cuz for some reason i cant find anything showing how to use them useing a pico

  • @parinoidegg6103
    @parinoidegg6103 5 месяцев назад

    Does this work with other rpi s like the 4

  • @DevonsWorkshop
    @DevonsWorkshop Год назад +2

    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.

    • @profgallaugher
      @profgallaugher  Год назад +1

      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.

  • @keibodabedini-im9jk
    @keibodabedini-im9jk Год назад

    Can you do this in a Raspberry Pi Pico or does it only work with a Raspberry Pi Pico W?

    • @profgallaugher
      @profgallaugher  Год назад +1

      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.

  • @rahmahermes3149
    @rahmahermes3149 3 месяца назад

    Hello, can we install python modules in the sd card and import them from there into the code?

    • @profgallaugher
      @profgallaugher  2 месяца назад

      Unsure. That’s a good question for the Adafruit discord channel.

  • @paulbression5772
    @paulbression5772 2 месяца назад

    Hi, i did not succed to install numpy because i ran out if Space. Does your tutorial will help me ?
    Thanks

    • @profgallaugher
      @profgallaugher  2 месяца назад

      Hmmm not sure how to extend libraries to the sd card. Check Adafruit Discord for advice.