Digital DC ammeter using pic16f877a microcontroller http://microcontrollerslab.com/digital-ammeter-pic/