Today I was repairing some proprietary equipment made by engineers who fled the company a long time ago.
The device is mounted in a cab that gets dark at night so the driver can see the road better, so the display is supposed to dim to reduce eye strain and avoid glare.
There's an LDR used for the display dimming, which I simply decided not to connect to save some annoying wiring while diagnosing an audio problem.
That put me in a situation we had never tested before: audio with a dimmed display.
We always tested each part separately, and well... the audio came out with a terrible square-wave-like sound!
Looking around, I found the noise was being generated at the microphone input, with nothing connected!
I spent quite some time trying to figure out where it was coming from, then I noticed the display PWM was running at 244 Hz, which to my ears was close to the noise pitch, so I decided to connect the LDR. The moment the display went to full brightness, the noise went away!
There was also a small 20 mV ripple on the 5V rail while the dimming was active... strange, since the dimmer is powered from 12V on a different board, but go figure, maybe a ground loop...
The real surprise came when I got the schematics out.
It looks like an inverting op-amp where the output loads the input...
The output is taken from the IN- pin...
And one side of the transformer goes straight to a 2.5V Vreg to make a VCC/2 bias.
I've never seen anything like this, and I really can't understand that circuit.
Is this a real thing, or an immensely botched job that somehow turned out to work?