Arduino Ammeter

The voltage across an inductor is proportional to di/dt.

The basic principle in that circuit is to measure the change in current across Lx.