Electrical – Sensing voltage with respect to virtual ground

groundoperational-amplifiervirtual-ground

enter image description here

I want to sense a near-ground voltage in this circuit which is Vsense, but its maximum voltage would be 0.5 V so I designed an op amp amplifier with a gain of 10.

I used another op amp to split the 12 V supply into +6 V and -6 V to power the amplifying op amp.

enter image description here

The problem is: the amplified output of UB is measured referenced to the virtual ground (GNDREF in the circuit) and I want to send this voltage to a microcontroller to sense it. But since the MCU uses a different ground, I'm afraid there will be a problem.

I thought about simply connecting both grounds and everyone will be happy but it came to my mind that MCU's ground is the same of battery's 12v ground which is the same negative rail of the op amp so I want to know if that would be a problem.

Best Answer

The LM358 you've shown in your schematic is a single-supply op amp capable of an input common mode range down to 0 V (i.e. ground) and an output swing down to 20 mV maximum. Therefore you don't need to produce a 6 V GNDREF: just reference everything to GND.