Project

General

Profile

Statistics
| Branch: | Revision:

root / toolbox / current.c @ master

History | View | Annotate | Download (1.54 KB)

# Date Author Comment
e2a3c71f 10/18/2014 03:27 PM Thomas Mullins

Added shutoff when current is sensed when enabling tool

Also made a number of fixes to current sensing, which was quite broken.

e8960789 02/28/2013 09:32 PM Thomas Mullins

Fixed another overflow bug and removed isqrt

db11713d 02/27/2013 08:38 PM Thomas Mullins

Fixed timing in current sensing

The ADC interrupt didn't clear the TIFR timer interrupt flag, which
means the ADC wasn't triggered again on the next compare match.

975af07c 02/18/2013 12:05 AM Thomas Mullins

Fixed overflow in current calculation

f4df665c 02/10/2013 03:20 PM Thomas Mullins

Switch ADC to timer 1 because timer 0 was taken. Oops.

cbda92cc 02/09/2013 10:40 PM Thomas Mullins

Untested current RMS calculation

It's not actually RMS, it's variance. Same general idea.

10936c07 12/11/2012 03:39 PM Thomas Mullins

Added current sensing to toolbox