If you want to monitor current over a wide range of values with low precision, using a diode as a logarithmic
converter is one trick - use schottky for lower voltage drop, and ideally you need to compensate for temperature,
but its possible with a 10 bit ADC to monitor from < 1uA to > 1A, since the forward voltage is a logarithmic
function of current.