RPi-Jukebox-RFID with a Pi Zero?

Created on 28 Feb 2018  ·  18Comments  ·  Source: MiczFlor/RPi-Jukebox-RFID

Has anyone tried this project using a Raspberry Pi Zero?
I have an unused Pi Zero and would like to avoid buying an additional pi 3 if I don't have to. I'm wondering if anyone has tried, or has any thoughts on, using a Pi Zero with a Micro USB to USB OTG hub.

Additionally, this Pi Zero already has pins soldered in from a previous project, so I plan on adding the GPIO button functionality.

I'm curious if anyone has any experiences or thouhgts on this before I get started.

Thanks,
PJ

Project Info enhancement

Most helpful comment

Yes, verified on Pi Zero W

All 18 comments

Yes, verified on Pi Zero W

Excellent! Thank you!

In case you want to go down that RPI Zero Route, please bear in mind that the Zero does not offer audio output on the board. So you will need to output audio either over USB or (as I did) using a soundcard. I've used the Hifiberry miniamp, which allows you to drive the speakers directly. You will also need to follow these instructions: https://www.hifiberry.com/build/documentation/adding-software-volume-control/ to ensure that you can set volume levels in alsamixer. Out of the box, the volume was unbearably loud on my jukebox.

Did someone already try to play music over Bluetooth (e.g. with pulseaudio) so that there is no need for a soundcard?

hi @ghostdex and welcome. I haven't tried it yet, but it would be good to get this into the manual as a "howto" section. Possibly open a new "issues" with this title and see if somebody joins the process? As you can see: the "issues" here are more like forum threads than bug reports ;) and the bluetooth issue has no thread yet. Start it, fix it and create a pull request for the documentation and possibly code. Thanks

Hello, thanks a lot for your work. It's very easy to use it and so cool. I made my jukebox with a raspberry pi zero WT and used a cheaper soundcard. https://www.aliexpress.com/item/Raspberry-Pi-pHAT-Sound-Card-I2S-interface-PCM5102-DAC-Module-24-bit-Audio-Board-With-Stereo/32742608325.html

For installation of the homemade DAC on a Raspbian, you can use the pHAT DAC's one line installer command:

curl -sS https://get.pimoroni.com/phatdac | bash

See the link for connection : https://www.hackster.io/shiva-siddharth/audio-dac-hat-for-pi-with-headphone-jack-and-3w-speaker-out-51bad6

Everythink work well.

Yes, I verfied on the PI Zero without W ;-)
It's works very well.

I also try to set this up with a PI Zero W. How can I connect the RFID-Reader (not USB) to the Raspberry Zero W? Type is RFID-RC522. Is there a how to? How to wire this? I totaly newby. My prototype with a PI 3 and USB RFID Reader did well...

Hi I've just found an tutorial where you can see how to wire the RC522:
https://pimylifeup.com/raspberry-pi-rfid-rc522/
or an alternative german article for an door opener:
https://tutorials-raspberrypi.de/raspberry-pi-rfid-rc522-tueroeffner-nfc/

Short Update from me:
i currently running phoniebox 1.1.5 on a Pi Zero W with an RC522 Reader and one active USB-Speaker.

Hi together,
i have a seriouse problem now. I tried to install the project on ZeroW and use a Bluetooth speaker.
But i cant set the speaker as output in the Phoniebox.
Insted now i cant change the volume in interce at all......

Did anyone test these and can give me the needed configurations?

Speaker in Desktop mode i working. even, when i use the aplyer to play directy by device adress i also can here the sound.

in webinterface is written nor volume -1%

@vw2audi

You have to set this value „Speaker“ in settings/Audio_ifacename
and in /etc/mpd.cfg search for PCM section Audio Output

I hope this helps

Hi together,
i got it. Now system is running and i wanted to use my RFID NFC Tags, but with tese it isnt working ;-(
i have here one typical Card with RFID, these works and even can read the UID.

But i also have here some Tags witch give me a Serial No. insted of UID.
Is possible to use them too? The last scanned UID keep the same if i bring these TAG to the reader.

But with other programm on saame pi i can read the Tags.

Hi @vw2audi
which version of Phoniebox are you running? This can be found in the file settings/version or in the web app under info.
There was a code issue with the reader, so you might have that problem. Please take a look here:
https://github.com/MiczFlor/RPi-Jukebox-RFID/issues/231#issuecomment-427675366
and your best bet would be to reinstall Phoniebox by deleting the entire folder RPi-Jukebox-RFID and use the one line script for the installation again.

Hi @MiczFlor
thnaks a lot for the hint. I have Version 1.1.6. is a fresh installation.
If i place the RFID nothing happend. If i place an RFID Card is working .....

But if i use my RFID Reader in my mobile i can read both chip.

What kind of cards are it that are not working? The suggested reader here is able to read EM4100 125khz cards.
The reader in RC522 seems to use other radio channels

Ok in these case i have found the difference.
But isnt it possible to use also other chips?

Not as far as I know the reader and cards needs the same communication stanard. I had seen on eBay a dual frequency reader but no idea if you get it connected and working:
https://www.ebay.de/itm/Dual-Frequenz-125kHz-und-13-56MHZ-WG26-34-RFID-Lesegeraet-/172666970376

I think buy the working cards would be cheaper and less time consuming

Was this page helpful?
0 / 5 - 0 ratings