eduardostuart / pi-vinyl-record-player

🎶 Vinyl Record Player is a just-for-fun™️ project I made to play music using RFID tags on my Google Home devices.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Vinyl" Record Player

🎶 Vinyl Record Player is a just-for-fun project I made to play music using RFID tags on my Google Home device. The idea is to simulate a record player; don't take it too seriously.

I'm using a Raspberry Pi 3 B.

How it works

  1. The music catalog is defined on config.toml file. See config.toml.example for an example.
  2. When someone places an RFID tag on the reader, the music will play on the Google Home device.

Use the command python discovery.py to find your device information.

Hardware

This is what I'm using. Use whatever you want.

Demo

https://www.youtube.com/watch?v=OBsPoJM-FHk

How to run

Install dependencies:

pip install -r requirements.txt

Then:

python main.py my-config.toml

Keep it running

Create a service on /etc/systemd/system/. For example:

# cat /etc/systemd/system/vinyl.service
[Unit]
Description=Vinyl Player Service
After=network.target # Wait for the network to be available

[Service]
User=eduardostuart
WorkingDirectory=/home/eduardostuart/vinyl-record-player/
ExecStart=/usr/bin/python main.py config.toml
Restart=always

[Install]
WantedBy=multi-user.target

Then enable & start the service using:

sudo systemctl enable vinyl.service  # enable
sudo systemctl start vinyl.service   # start
sudo systemctl status vinyl.service  # check if the service is running
sudo systemctl daemon-reload

To-do list (a.k.a.: wishlist)

  • add a button to pause/play the music
  • add a motor to simulate the vinyl record rotation
  • 3d printed vinyl player

Vinyl builder

If you want to have your own fake vinyl, I created a super simple "vinyl" builder. You can find the app here. I'm basically printing and using an A4 laminator. (yes, a 3d printed one would look way nicer, but I don't have a 3d printer)

References & inspiration

There are a lot of projects out there that are similar to this. The main difference is that I use YouTube Music instead of Spotify and a Google Home device.

Inspiration list
References list

License

Vinyl Record Player is licensed under the MIT license. See LICENSE for more information.

Image created using DALL-E OpenAI.

About

🎶 Vinyl Record Player is a just-for-fun™️ project I made to play music using RFID tags on my Google Home devices.

License:MIT License


Languages

Language:Python 51.7%Language:Vue 33.7%Language:TypeScript 5.9%Language:HTML 4.5%Language:JavaScript 3.0%Language:CSS 1.3%