8000 GitHub - ismaia/bturntable
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Mar 8, 2024. It is now read-only.

ismaia/bturntable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BTurntable : Making a vintage turntable connect to a bluetooth speaker

Intro

AF180 AF180

When my nice yellow philips vinyl turntable (AF180) broke I was very sad and decided to fix it, The motor circuit was still working properly but the audio speaker and the volume were broken. but instead of fixing the old electronic components I had an idea: why not connect my turntable to a Bluetooth speaker ?

Turntable devices can be adapted with a RIAA phono preamplifier who is a perfect match but these modules are usually expensive

Instead of buying relatively expensive electronics (RIAA module + power supply), I decided to try a cheap solution ( ~ $2 ) : An USB audio adapter

As the turntable's cartridge produce very small voltage levels (uV ~ mV ) the mic preamp inside the USB adapter is certainly not a perfect match but it worked very well after my first tests. Once we're in digital domain we can improve sound quality by doing some equalization, noise removal and everything we want, including RIAA equalization. We can do it all these with a swiss knife called SoX

The main advantage of this approach is that if you have a bt speaker (almost sure!) you can build this system for less than $20 (rpi zero + audio usb adapter) and all sound control can be done by MQTT protocol

I coded a bash script that automates everything, all you need is to install dependencies on the rpi and a MQTT client into your phone.

Parts

  • A Raspberry PI zero or a Raspberry PI 3
  • Any Audio USB Adapter that works on linux
  • Micro-usb to usb female adapter cabe

Wiring

  • Cartridge : As we want to send audio over a small bluetooth speaker, it makes no sense separating left and right channels from the cartridge. We must mix the two channels by shorting both wires into a single one. This wire (white on the image) has a signal mixed from two channels. By doing this approach we'll need a single audio usb adapter instead of two as mic input is mono

Cartridge wiring

  • USB Audio adapter : The Mic input of the usb audio adapter has only one input wire who is shorted as shown on the image, these two soldering joints (white rectangle) are the same wire on the adapter.

usb audio adapter

  • Rpi connections :

RPI0

  • Ground : To avoid noise make sure that all grounds are connected together, even the wire coming from the outlet. Don't forget to connect all these on the turntable's metal case

The Assembly

The result of all parts assembled into the plastic case of my turntable assembly

Installation

Raspberry PI
 apt install bluez-alsa sox mosquitto mosquitto-clients make
 git clone https://github.com/ismaia/bturntable
 cd bturntable
 make install
MQTT client

We can use a smartphone or a PC to control everything

  • MQTT Topic : btt
  • MQTT Messages:
    • Speaker setup and connection : mosquitto_pub -t "btt" "connect=SPKR_NAME_PREFIX"
    • Volume+ : mosquitto_pub -t "btt" "vol=5%+"
    • Volume- : mosquitto_pub -t "btt" "vol=5%-"
    • Mute/Toggle : mosquitto_pub -t "btt" "bass=10%-"
    • Bass+ : mosquitto_pub -t "btt" "bass=10%-"
    • Bass- : mosquitto_pub -t "btt" "bass=10%-"
    • treble+ : mosquitto_pub -t "btt" "treble=10%+"
    • treble+ : mosquitto_pub -t "btt" "treble=10%-"
    • noise reduction: mosquitto_pub -t "btt" "noise_red=2%+"

Playing some Vinyl LP

Turn on the speaker and put it on pairing mode

Once you've installed rpi side you can start the system by running the script btt.sh:

./btt

From a PC:

mosquitto_pub -h RPI_IP -t "btt" "connect=SPKR_NAME_PREFIX"

It's very convenient to install a MQTT client on the phone and to control everything I'm using the app MQTT Dashboard you can donwlod a pre-configured MQTT file for this app from project's conf dir and import it

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0