I tried to make some audio recordings with 2 mics battery powered to XLR (they outputs a minijack TRS that connects to an adapter XLR with pin 1-3 shorted).
Well, I get some different behaviour:
a) main problem is with device powered by transformer (12Vdc):
a1) in one building I get HORRIBLE and strong hum+lot of harmonics
a2) in another building I get little hum on the mains frequency of 50-100Hz
a3) in the 2 last building tests, I get no hum at all (it was 2 commercial centers, maybe lot of filtering on mains?)
b) all these hum problems disappear when I disconnect from the transformer, with device battery powered the signal is perfect (it's perfect even when using balanced mics with phantom power, device also powered by transformer). But they remains if I leave the transformer's cable near (some cm) the input of the device: it needs to be far away to be ok!
Then I tried to disconnect the mic and leave only one short cable connected to XLR adapter: the same hum result! So, it's not the mic battery powered but just one cable connected, making an "antenna"?
Just to see the spectrogram:
worst, awful hum:
little hum, even when power cable near the device:
perfect signal (commercial center, even if there are some higher frequencies with mains):
So, my questions are:
1) why these problems only when connected to mains through the transformer or when near to the device only on some buildings? This does not seem a ground loop at all (I'm connecting this only device to mains, no other connected to it).
It seems the external cable becames an antenna and with battery not... so it should become a long antenna through mains cables? (It is also when not connected, only at short distance.)
2) If the problem is the mains on a specific building, should I see the bad frequency signals making a FFT on the mains, or similar test?
Why there is no hum on commercial center, how they filters their mains?
3) The more important one: the easy solution is recording with batteries, but anyway, how could I solve the problem on the transformer connected through mains, if I had to power it for many hours/days?