MARLIN Box
This project aims to take another approach at RFID-Jukeboxes like the toniebox.
Our goal is to empower parents to make their kids happy - on their own terms.
Prerequisites
The project is currently in the development but is already used in production.
If you wish to try the MARLIN Box in this state you will need the following:
- Raspberry Pi Zero 2W
- Raspbian OS
- Packages:
portaudio19-dev
- Packages:
- Raspbian OS
- Powerbank
- USB-Hub
- Speakers
- USB-Soundcard
- USB-RFID-Reader (EM4100)
- RFID-Cards
- Some cables
- Some .mp3-Files
- Optional:
Setup
- Setup your Raspberry Pi Zero 2 W as usual or use the Raspberry Pi Imager on your Computer and insert the configured SD-Card into your Raspberry Pi Zero 2 W
- Once online and connected to your network ssh into the Raspberry
- Update and Restart the Pi using
sudo apt-get -y update && sudo apt-get -y upgrade && sudo reboot now
- ssh back
- Install
curl
andportaudio19-dev
if it's not already there usingsudo apt-get -y install curl portaudio19-dev
- Download golang using
curl -OL https://go.dev/dl/go1.19.4.linux-armv6l.tar.gz
- Extract the archive using
tar -xf go.19.4.linux-arm6l.tar.gz
- Clone this repository
git clone https://github.com/itsscb/marlinbox
cd marlinbox/cmd
- Build the software
~/go/bin/go build main.go && mv cmd marlinbox
- Create or modify the file
playlist.json
in the same directory - Create the
systemd service
withsudo nano /etc/systemd/system/marlinbox.service
[Unit]
Description=Runs the binary of the marlinbox
[Service]
ExecStart=/home/marlinbox/marlinbox/cmd/cmd
WorkingDirectory=/home/marlinbox/marlinbox/cmd
Type=simple
User=root
IMPORTANT: Update the path of ExecStart
and WorkingDirectory
according to your setup.
- Enable the
systemd service
withsudo systemctl enable marlinbox.service
- Restart the Pi with
sudo reboot now
Your MARLINBOX should be up and running.
Description
Languages
Go
100%