by geon · 2y ago · 0 comments
That sounds like an all around bad idea.
and, yeah, square. i want to do higher data rates and simpler electronics than an actual audio interface can handle, though
And for people concerned about accidentally shorting a power line when inserting the plug, hypothetically could use a socket with built in switches so power is only sent once the plug is fully inserted into the socket.
it would still probably burn out my earbuds if i put 5 volts at 100 milliamps on the tip connector once the plug was fully inserted
I am hesitant to give advice because I don't know a great way, but a possible method of detecting what type of device (a headphone or USB device) is plugged in could work by doing an impedance measurement right after the device is inserted. USB standard specifies that the signal-to-ground impedance on the data lines is 30 ohms and between data lines is differential impedance of 90 ohms. The right and left channel of headphones meanwhile have an impedance to ground (from 4 ohms to 32 ohms or higher), but aren't set to a differential impedance between the left and right channel. So maybe there is a simple circuit that could measure the differential impedance that is triggered just after a device is inserted, and if it matches 90 ohms, then will treat the device as a USB device, but if a measurement matches a headphone, then treat the device as a headphone. But the specifics on how to do this, I'm not sure.
thank you!
as for usb, i won't be using it