- music box for Sol
This repository provide a source code for music box - a tool for kids. Just swipe the card and enjoy your favorite music.
sudo apt-get install libusb
lsusb
Here is my current values:
# RFID Device ID
VENDOR_ID = 0x08ff
PRODUCT_ID = 0x0009
sudo nano /etc/udev/rules.d/99-rfid.rules
SUBSYSTEMS=="usb", ATTRS{idVendor}=="08ff", ATTRS{idProduct}=="0009", MODE="666"
sudo udevadm trigger
pip3 install virtualenv
virtualenv solbox
source solbox/bin/activate
sudo apt-get install libusb-1.0-0-dev
pip install -r requirements.txt
Update your tags id to code.json
file and save your music to data
folder.
Then,
sh run.sh