QUICK BACKGROUND:
I’m having an issue with a circuit, and could use some help. It works fine in my home studio, but misbehaves in the location where it will be used. I have limited access to that location, and I’m looking for suggestions to help point me in the right direction.
WHAT SHOULD HAPPEN:
The specific goal here is simple: when a Mac is powered down (by a user), I want an audio interface to also power down. There’s a USB cable from the Mac to an Arduino pin (not the micro USB port), which acts as a sort of sensor, when the Macs turn off, the voltage drops on the USB cable’s +/- wires, the Arduino notices and drops a MOSFET gate’s voltage to LOW (0V) and the audio interfaces turn off. This works as expected in my studio with a Mac and a test device in place of the audio interface (details below), but when I bring the project into the orchestra pit at my show (the ultimate destination), something unexpected happens.
All devices are powered by DC Power Adapters (‘wall wart’ style), except for a MacMini which plugs into a UPS device, which is plugged into A/C.
Most of it is working surprisingly well, except one part of the circuit. The schematic shows the smallest subset of connections which still allow the problem to persist, so I figured it was a good place to start.
WHAT DOES HAPPEN:
The problem is as long as the Mac’s USB cable is plugged in, I seem to be unable to turn off the MOSFET. As mentioned, when the Mac is powered down, the Arduino attempts to set the pin controlling the MOSFET’s Gate to LOW (0V), but current seems to keep flowing from Drain to Source, and the connected audio interface remains powered ON. If I physically remove either end of the USB cable, the connected device immediately powers OFF. Plug the USB cable back in, device turns ON, pull it out, device turns OFF.
Can someone explain to me how a USB cable from a powered down MacMini is able to turn the MOSFET on and off?
Again, if I exchange the audio interface with the test device (equipment details below), the MOSFET behaves just fine - the device turns ON and OFF as expected. But when I re-instate the actual device, the audio interface, the MOSFET behaves as before, turning OFF only if the USB plug is physically removed.
I should note that the audio interface also runs a separate usb cable to the MacMini so maybe power is coming from there somehow? But these particular audio interfaces cannot run on usb power alone (RME Audio Interface Bus Power), plus the Mac is powered DOWN and shouldn’t be sending any power thru USB.
And, the audio interface is connected to a keyboard controller via a MIDI cable. But as far as I know there isn’t enough power running down MIDI cables to run these audio interface.
The problem persists even if I remove the DC power from the Arduino. (I realize I'm risking frying the Arduino - I'm OK with that).
All these devices are ultimately connected to the same A/C circuit (our ‘audio power’ circuit), so they should be sharing the same ground (I hope). The one exception might be the Macs, which are plugged into the UPS, which is plugged into audio power as well. But could the UPS isolate the ground somehow and cause this weirdness? I only started suspecting the UPS at the end of the last session, so I’ll plug everything directly into audio power next time to see if that helps.
Again, I only have access to this equipment for 4 hours a week, and it takes about an hour to setup and another hour to break it down and be sure we’re ready for the evening’s performance. So 2 hours a week is all I get. I want to hit the ground running next week, so any suggestions by y’all would be most gratefully appreciated!
p<
(more equipment details to follow)