murgrabia
Posts: 14
Joined: Sat Jun 11, 2016 7:40 pm
Location: warsaw

music

Thu Jun 23, 2016 6:08 pm

what should i do to play music on my raspberry? can i use gpio pins , mini-jack or hdmi?

User avatar
DougieLawson
Posts: 39181
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: music

Thu Jun 23, 2016 8:18 pm

HDMI is easiest.
3.5mm is a passable alternative.
GPIO is impossible without extra hardware to emulate the 3.5mm jack. (It uses a pair of GPIOs)

USB audio or a special audio HAT are your other options.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

murgrabia
Posts: 14
Joined: Sat Jun 11, 2016 7:40 pm
Location: warsaw

Re: music

Thu Jun 23, 2016 8:23 pm

Thanks for answer, can you explain me in details how to emulate 3.5 jack using GPIO, i want to play mp3 music file. I have RPI 2B

User avatar
DougieLawson
Posts: 39181
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: music

Thu Jun 23, 2016 9:49 pm

See here: https://learn.adafruit.com/adding-basic ... o/overview emulating the hardware is the only way to get sound on a Zero.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
HawaiianPi
Posts: 5847
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: music

Fri Jun 24, 2016 1:33 am

murgrabia wrote:Thanks for answer, can you explain me in details how to emulate 3.5 jack using GPIO, i want to play mp3 music file. I have RPI 2B
If you have a Pi2B, why not just use the actual 3.5mm jack?
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

murgrabia
Posts: 14
Joined: Sat Jun 11, 2016 7:40 pm
Location: warsaw

Re: music

Fri Jun 24, 2016 6:37 pm

when i put headphones into mini-jack i hear strange noise and cant listen to music, its brand new

User avatar
HawaiianPi
Posts: 5847
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: music

Fri Jun 24, 2016 7:07 pm

murgrabia wrote:when i put headphones into mini-jack i hear strange noise and cant listen to music, its brand new
Just tried headphones in my Pi3, and while it's not audiophile quality, it's not awful either.

What kind of strange noise are you hearing? And have you tried cleaning the plug on your headphones?
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

murgrabia
Posts: 14
Joined: Sat Jun 11, 2016 7:40 pm
Location: warsaw

Re: music

Fri Jun 24, 2016 7:43 pm

similar to the sound of the sea, but i can also hear the music but not very loudly

User avatar
HawaiianPi
Posts: 5847
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: music

Fri Jun 24, 2016 7:54 pm

Try cleaning your headphone's plug, and make sure it is inserted into the jack properly.
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

java
Posts: 226
Joined: Mon Jul 21, 2014 9:41 am

Re: music

Sat Jun 25, 2016 7:53 am

Try a mini headphone jack to RCA connector cable and play your music back thru a normal amp - then you should know whether your headphones are at fault - most likely - or the fault lies with the RPi. If the RPi there are somethings that can influence the audio produced.

Both my RPi B and RPi 2, produce decent sound out of the Headphone jack. For great sound a Asus U3 Xonar USB or Iqaudio Pi - Dac +, are used. Your headphones might just need a headphone amp to drive them properly - way too many variables involved.

Return to “Beginners”