I used an INA214 on low side sensing take the ref voltage out of the pic an= d then the 214 output goes straight back in and you can null the offset voltage works well and accurate... Steve -----Original Message----- From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf Of David C Brown Sent: 22 June 2015 14:19 To: Microcontroller discussion list - Public. Subject: [PIC} overcurrent detection I need an overcurrent detector for a small DC motor. I thought of using lo= w side sensing with the ADC of a PIC measuring the voltage across the sense resistor and then doing the integration and peak suppression in software. = I can tolerate half a volt or more voltage drop in normal operation. This seems to such an obvious idea that I am surprised that I can't find any reference to it in a search for "overcurrent detection using PIC". So is there some gotcha that I am too stupid to see? -- __________________________________________ David C Brown 43 Bings Road Whaley Bridge High Peak Phone: 01663 733236 Derbyshire eMail: dcb.home@gmail.com SK23 7ND web: www.bings-knowle.co.uk/dcb -- http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/chang= e your membership options at http://mailman.mit.edu/mailman/listinfo/piclist --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .