What are shunts, as related to their use in current sensing in microcontrollers?
The purpose of the shunt is to convert the current through the loop to a voltage (by using a known resistance). The voltage can then be measured using an analog to digital converter and the current through the loop can be calculated.