Skip to main content
5 of 11
added 87 characters in body
Ephemeral
  • 2.2k
  • 1
  • 7
  • 19

About my comment : I think you can use 2 IR Leds and RPi GPIO and use some code for detect cable if really necessary. I have not tested but I'm pretty sure it makes sense. Maybe that can help you. With this you can detect the cable presence BUT not identify the headphone.

enter image description here

With this you can put your music name (or headphone ID) in a QR code for each headphones (presence and identification).

enter image description here

Here is just an example for presence. If you want you can use another wires and UART or I2C and you can put your music name or headphone ID in Chip memory and read that on the RPi. ATtiny can be very small. This require another 'cable' attached to the ATtiny itself attached to your headphone cable with 3 wires for power-on, gnd and presence and 1 or more wire for identification.

enter image description here

But as you can see, it either requires DIY or having a camera.

Ephemeral
  • 2.2k
  • 1
  • 7
  • 19