Arduino Ammeter

BTW, the only purpose the inductor performs is to "choke" the current, thus providing an average.