I have a microcontroller which has an analog output which I can set anywhere between 0V and 3.3V. I use this to drive one side of a TL072, configured as a voltage follower. The microcontroller and the TL072 currently share a common 0V. The TL072's output drives an LED which illuminates an LDR which its part of an audio circuit. The LED can be set anywhere from completely dark (or as close as possible), to fully lit (or as close as possible). I've designed the circuit to include a voltage follower because I think the current draw of the LED might be too large for the microcontroller. In the diagram below, the microcontroller uses GND as its ground, and 5V as its supply.
When the microcontroller's analog out is close to 0V, the output from the TL072 swings up to the +ve supply voltage. The datasheet for the TL072 tells me that it's not rail-to-rail, and so I understand that this swing to the supply voltage is expected. But it is a problem.
Therefore, I'd like to give the microcontroller and the LED a different ground reference, perhaps around 2V, so that the analog out's 0V isn't close to the 0V rail of the TL072. I'm wondering if I can use the other side of my TL072 to provide a virtual ground, as in the diagram below. In this schematic, the microcontroller uses the virtual ground as its ground, and vGnd+5V as its supply.
Is this workable? Is there a better approach?