updated to use 0.5 ohm cur sense resistor