The minuscule size of the Raspberry Pi Zero makes it perfect for hacks where size is a factor. For example, a small, standalone device for getting streaming audio into your speakers. The RPi Zero doesn’t have an audio output on board, so PolyVection paired it up with their PlainDAC to build a minimal audio streaming device.
Their build uses a few lines from the GPIO header to drive an I2S digital to analog converter. The DAC is a PCM5142 from Texas Instruments that provides high quality sound output, and contains a built in programmable DSP.
The hardware fits into a 3D printed case, coming in at 68 mm by 48 mm. There’s no WiFi inside, but this can be added with an external USB device for wireless streaming. The DAC used is supported by the Linux kernel, so a simple configuration is all that’s needed to pipe audio out.
Once you have a device like this assembled, you can install a server like Music Player Daemon to remotely control the device and cue up internet radio channels.
The RPi Zero definitely does have audio out on board – just not audiophile-quality, which is what PolyVection was trying for. For basic audio you can just use the PWM outputs as here:
https://learn.adafruit.com/introducing-the-raspberry-pi-zero/audio-outputs
Streaming? With a zero? Without network port or WLAN chip? Impressive! ;-)
looks suspiciously like a regular sized rpi now.
yeah but pat’s comment leads me to believe that the onboard audio of a regular pi is low quality. so this is basically the size of a regular pi but with high end audio.
All we need now is a click wheel, LCD, and Rockbox!
And if you want to spend 1/2 the money again and use PWM http://www.esp8266.com/viewtopic.php?p=33313
I’m looking to do the reverse. I need a high quality ADC so I can encode to mp3 live and spit that stream out at a shoutcast server Yes that means using a full pi with network. But the choices for a decent quality ADC are incredibly slim.
cirrus logic has one: http://www.element14.com/community/community/raspberry-pi/raspberry-pi-accessories/cirrus_logic_audio_card , but kernel support for pi2 (3.18+) is still a bit flaky and it aint cheap
external usb (and while not relevant here, old school firewire) sound boxes are your solution.
old favorites for audio testing: m-audio firewire (audiophile, I think is the model name) and the creative emu-0404usb are well regarded in their a/d performance. have not checked if linux supports the 0404 – but I think it does.
external usb ‘sound cards’ that are pro audio quality would be what you should look for.
Is something like the VS1053 good enough for you? As well as being a MP3 player it can also encode from a line in.
All you’d have to do is read in the MP3 data via SPI and pass it onto shoutcast/icecast
that’s a cheap sound chip, iirc. nothing ‘high quality’ about something that does mp3 playback in hardware.
what the poster wants is pro audio quality a/d. and for that, you need what I pointed him to.
Those who actually care about high quality audio won’t be encoding to MP3. As for a good audio digitizer, the PCM2902 (used in some older Behringer boxes) is enough for just about anything audio short of HD music recording. If you want true HD, there are considerably fewer choices available.
Or pay $10 more and get an Orange Pi PC with integrated Audio codec, 1.6GHz quad core, double the RAM, 100Mbit Ethernet, 3 USB A sockets, IR receiver, a real power switch, etc.
And it isn’t bigger than the Raspi Zero solution, give the fact that the Zero needs additional USB adapters or a hub to connect a WiFi dongle.
Where can I get the Orange Pi for $15? (I was able to buy the raspberry Pi 0 for exactly $5 at microcenter)
He was comparing the total system cost to build the same thing, not just one component. The Pi zero may be $5, but it needs stuff around it to make it work.
http://www.aliexpress.com/store/product/Orange-Pi-PC-linux-and-android-mini-PC-Beyond-Raspberry-Pi-2/1553371_32448079125.html plus postage.
I did a brief check to see if anyone was using the Orange Pi PC in the real world last week. Didn’t find much but reports of trouble finding a Linux build for it that was stable and supports all available functions, in particular the Ethernet. Maybe I didn’t look hard enough, but I think it’s safe to expect you’ll invest more time and frustration in getting an OPiPC working than a RPi. Depending on how you prioritize such things, it may not be the bargain it seems.
Another interesting board coming soon is this one:
https://www.kickstarter.com/projects/pine64/pine-a64-first-15-64-bit-single-board-super-comput
dont expect ANY software support EVER
https://groups.google.com/forum/#!topic/linux-sunxi/Ze_UhiO00t8
Well I can’t buy the damn thing anywhere, unless I want to pay like $30NZD…
The site’s color is torture
Ummm where does it stream from?
I’d love to see a development kit for bluetooth (non-BLE) audio application.. something that uses bluetooth classic 2.1 EDR, to transmit (FTP profile) real-time audio that can be captured from a receiver. At the moment all, bt wireless profiles (ex. A2DP) must sink the audio data directly to the headphones !
I bought one PlainDSP and I’m now using it on a Raspberry PI Model B rev2 with the “Volumio” image!
This has no network device (no wifi, no ethernet). So, how fair is it to call it a “streaming device”. It could be done with a usb wifi dongle, but most those on the market are full size, whereas the usb port here is micro. So you’d either need a converter and the noraml usb wifi or a special micro usb wifi dongle (I don’t know if these exist).
I have this setup working fine in my car. Even with the DAC and USB wifi adapter, it’s a fraction of the size of a normal RPi and case. Volumio provides the music player and a wifi hotspot, so easily controlled from my mobile.
hi can you throw some light on how you have this setup in your car? was thinking on doing the same in mine
RPi0 + DAC +wifi dongle + Volumio. Output from DAC to aux input on car. I use a Xiomi 10000mAh power bank connected to a cigarette lighter charger for uninterupted power supply (and I can use it portably too). If you’re buying the RPi, then go for a RPi0 W for an even more compact solution.
Orange pi FTW