Play audio file in pi pico

RP2040 based microcontroller boards running MicroPython.
Target audience: MicroPython users with an RP2040 boards.
This does not include conventional Linux-based Raspberry Pi boards.
Post Reply
nayanagg
Posts: 11
Joined: Mon May 03, 2021 8:26 pm

Play audio file in pi pico

Post by nayanagg » Tue Jun 01, 2021 5:35 pm

Hi,
how to play audio file format(mp3,wav) in pi pico?

danjperron
Posts: 51
Joined: Thu Dec 27, 2018 11:38 pm
Location: Québec, Canada

Re: Play audio file in pi pico

Post by danjperron » Thu Jun 03, 2021 8:03 pm


nayanagg
Posts: 11
Joined: Mon May 03, 2021 8:26 pm

Re: Play audio file in pi pico

Post by nayanagg » Thu Jun 17, 2021 8:22 am

IMG_1973 (1).png
speaker
IMG_1973 (1).png (154.38 KiB) Viewed 11753 times
Hi,

I followd your Git repo and tried to run the wav file from speaker but no sound was played.

kindly help!
Last edited by nayanagg on Thu Jun 17, 2021 7:03 pm, edited 2 times in total.

fdufnews
Posts: 76
Joined: Mon Jul 25, 2016 11:31 am

Re: Play audio file in pi pico

Post by fdufnews » Thu Jun 17, 2021 12:51 pm

Your are talking abour a speaker, maybe you can describe your configuration in more detail, it will be easier to help you

nayanagg
Posts: 11
Joined: Mon May 03, 2021 8:26 pm

Re: Play audio file in pi pico

Post by nayanagg » Fri Jun 18, 2021 6:04 am

I've connected 150ohm small speaker to GP2 and GND pin of pico with 2k2 resistor on GP2 and 2200uF capacitor connected to GP2 TO GND.

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Play audio file in pi pico

Post by Roberthh » Fri Jun 18, 2021 6:21 am

You have to connect the speaker and the capacitor in series between GP2 and GND. Then you may hear some very faint sound. If I see that sample video right, the RP2 was connected to an active speaker with built-in Amplifier. That is the best approach to take.

nayanagg
Posts: 11
Joined: Mon May 03, 2021 8:26 pm

Re: Play audio file in pi pico

Post by nayanagg » Thu Jul 08, 2021 8:22 am

Hi,

I've attached GROVE SPEAKERS WITH BUILTIN AMPLIFIER with Pi Pico VCC : 5V, GND : GND, SIG : GP2
but still getting very low sound.
help!
Attachments
IMG_2108.jpg
IMG_2108.jpg (166.33 KiB) Viewed 11538 times

Post Reply