TA12200 Class
- ID: ta12200
- Name: AC Current Sensor
- Other Names: Grove Electricity Sensor
- Category: electric
- Manufacturer: seeed
- Link: http://www.seeedstudio.com/wiki/Grove_-_Electricity_Sensor
- Connection: analog
UPM module for the TA12-200 current transformer found, for instance, in the Grove Electricity Sensor. This module can measure AC moving through a wire at up to 5 A.
Item Index
Methods
Methods
TA12200
(
Number
-
pin
TA12200 constructor
Parameters:
-
pin
NumberAnalog pin to use
Returns:
Number:
getMillis
()
Number
Returns the number of milliseconds elapsed since initClock() was last called.
Returns:
Number:
Elapsed milliseconds
initClock
()
Resets the clock
highestValue
()
Number
Gets the conversion value from the sensor
Returns:
Number:
Highest value obtained over 1 second of measuring or -1 if error
milliAmps
(
Number
-
val
-
res
Computes the measured voltage
Parameters:
-
val
NumberValue measured by highestValue()
-
res
NumberADC resolution
Returns:
Number:
Measured current in mA