I have an audio measurement system. The system is connected to and powered by a laptop. The system has no other connection to the AC grid. Now, if the laptop is connected to the AC grid and i measure an audio channel, the resulting digital signal contains a lot of humming. However, if I disconnect the laptop from the AC grid, i.e. let the whole system run on the laptop battery, there is usually no humming, at least if the whole setup is not next to a grid component like a multi socket.
This confuses me. Often, 50 Hz hum is said to be caused by ground loop. However, connecting the system at one point to the AC grid, cannot create any loop. A ground loop as I understand it can only occur if two devices are connected to different grounds. Additionally, the laptop has a euro connector, thus, it is not even connected to the earth / ground line, but only the two AC lines. Why seems there by 50 Hz induced into the signal line, but only if the system is connected to the grid? Or is it just remaining ripple in the power supply? That humming also occurs if the system is disconnected from the grid is even more strange, though I suppose both error cases could be unrelated in the sense that in the first case, the ripple of the power supply is the baddie, and in the second case sth is just induced into the audio lines directly.