Hi,
I'm used to spend time finding useful information in the forum...My turn to share a project I have in mind for a long time
Since we love hearing music in the family, my little daughter wanted to have her own music player...so the question was how to use our music collection and not buy a cd player or whatever, and it has to be a device without screen...So here is the project :
Hardware
Raspberry pi 3
RPI HiFi AMP HAT TAS5713 Amplifier Audio Module 25W Class-D
Rotary encoder
Stateless Push button switchs
RFID Card Reader CRFM-522 RC522
RFID Cards
2 8ohms speakers
Software
LMS 7.9.1 - 1504317335 on DSM 6.2.3-25426 Update 2
piCorePlayer 6.1.0
LMSTools port to python3
Pi-rc522python library
The way to use it has to be very simple :
Rfid card to start the wanted song or playlist
2 push buttons for skiping track or going backward
1 rotary encoder switch for volume and play / pause
I wrote 2 python scripts :
One to add new rfid cards and the corresponding playlist name. Everything is stored in a simple txt file
A 2nd one wich is a loop wich is waiting for a rfid card and read the id and start the song/ playlist
The playlists have been created in LMS
Improvements :
Create a web page to manage playlists et RFID cards
Being newbie with Python, I guess it is not a "state of the art" work but it does the job, your recommendations are welcome![]()
Thanks to developers who made my life simpler (LMSTools, Pi-RC522, PCP, LMS, etc…) !
Other photos :
Hope you enjoy![]()
Results 1 to 10 of 19
Thread: Another Jukebox concept for kids
-
2020-12-15, 14:00 #1
- Join Date
- Jun 2011
- Posts
- 11
Another Jukebox concept for kids
Last edited by Bill0t; 2020-12-16 at 02:57.
-
2020-12-15, 16:03 #2
-
2020-12-20, 10:58 #3
- Join Date
- Jun 2011
- Posts
- 11
-
2020-12-21, 01:28 #4
- Join Date
- Dec 2016
- Posts
- 58
Nice one,
I am very interessted in your python scripts.
I also have some working jukeboxes for my kids, but its complicated to setup and use. I would like to test and help improve your script!
Greetings
cubii
EDIT: Testing now, first problem is missing spidev.ko
Tried it as Paul sugessted years ago:
https://forums.slimdevices.com/showt...l=1#post899949
and copied spidev to the resent kernel folder?: /lib/modules/4.19.122-pcpCore_v7/kernel/drivers/spi is this correct?
But still missing spidev..
Installing https://github.com/pimylifeup/MFRC522-python works, perhaps i should switch the library? or somebody has a hint for me
Cubii
EDIT: Never mind, it works now.
Perhaps i find time to write the needed steps downLast edited by cubii; 2020-12-22 at 07:44.
-
2020-12-22, 12:21 #5
- Join Date
- Jun 2011
- Posts
- 11
-
2020-12-22, 15:51 #6
- Join Date
- Dec 2016
- Posts
- 58
No, installed it from MFRC522 library
Could you give me the exact name of the extension, cannt find it (with picore 6.1), Thanks
Will do that!
I also dream of a website or LMS plugin to add/change RFID chips. Would be a great improvement. I don't know enough programming to do this, but would be eager to help!
Happy Holidays, Cubii
-
2020-12-25, 06:52 #7
- Join Date
- Jun 2011
- Posts
- 11
-
2020-12-28, 10:05 #8
- Join Date
- Apr 2019
- Posts
- 7
Very nice project
got everything working.
But how can I run PlayTagId.py at startup?
Adding "python3 /home/tc/PythonScripts/PlayTagId.py" to tweaks/User commands
and also a script
code:
#!/bin/sh
#start rfid script
python3 /home/tc/PythonScripts/PlayTagId.py &
does not work.
Any hints ?
piCorePlayer 7.0.0
LMS 8.1.0
Raspberry Zero
-
2020-12-30, 01:25 #9
- Join Date
- Jun 2011
- Posts
- 11
-
2020-12-30, 07:36 #10
- Join Date
- Apr 2019
- Posts
- 7