Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1
    Junior Member
    Join Date
    Jun 2011
    Posts
    11

    Another Jukebox concept for kids

    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 :
    Name:  20201214_223724.jpg
Views: 745
Size:  230.3 KB

    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 :
    Name:  20201214_215100.jpg
Views: 690
Size:  244.6 KB
    Name:  20201214_223655.jpg
Views: 683
Size:  225.7 KB
    Hope you enjoy
    Attached Files Attached Files
    Last edited by Bill0t; 2020-12-16 at 02:57.

  2. #2
    Senior Member Greg Erskine's Avatar
    Join Date
    Sep 2006
    Location
    Sydney, Australia
    Posts
    2,314
    Great project.

  3. #3
    Junior Member
    Join Date
    Jun 2011
    Posts
    11
    Quote Originally Posted by Greg Erskine View Post
    Great project.
    Thx
    I don't know who enjoyed the most, me doing it or my daughter playing with the box

  4. #4
    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 down
    Last edited by cubii; 2020-12-22 at 07:44.

  5. #5
    Junior Member
    Join Date
    Jun 2011
    Posts
    11
    Quote Originally Posted by cubii View Post
    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 down
    I didn't experience any issue with spidev, did you load the module in PCP (from the extension web page) ? Anyway, if you finally managed to make it work. Let me kwnow if you improved the scripts

  6. #6
    Quote Originally Posted by Bill0t View Post
    did you load the module in PCP (from the extension web page)
    No, installed it from MFRC522 library
    Could you give me the exact name of the extension, cannt find it (with picore 6.1), Thanks
    Quote Originally Posted by Bill0t View Post
    Let me kwnow if you improved the scripts
    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

  7. #7
    Junior Member
    Join Date
    Jun 2011
    Posts
    11
    Quote Originally Posted by cubii View Post
    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
    I don't remember which modules are loaded by default and the ones I added.
    In my memory I had to load :
    compiletc, binutils, gcc, pcp-sbpd, python3.6, pigpio

    Happy Holidays too !

  8. #8
    Junior Member
    Join Date
    Apr 2019
    Posts
    9
    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

  9. #9
    Junior Member
    Join Date
    Jun 2011
    Posts
    11
    Quote Originally Posted by chschind View Post
    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
    As you, I use tweaks/User commands without any issue. Don't know what could be wrong

  10. #10
    Junior Member
    Join Date
    Apr 2019
    Posts
    9
    Quote Originally Posted by Bill0t View Post
    As you, I use tweaks/User commands without any issue. Don't know what could be wrong
    Now it's working
    I had to add "PYTHONPATH" and the script to .profile.
    Maybe there is a better solution but this one works for me.

    Thanks again for this project, now I can continue building a nice jokebox for my children.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •