I need to regulate current going into batteries.
Wish I had a dollar for everytime I've stated this.
The IL300 is a linear optocoupler.
Personally, I make the circuit ground be the end of the shunt, and use an op-amp to amplify the shunt voltage, and forget the opto.
http://www.fieldlines.com/story/2004/9/4/193922/2839
Amanda