upm
0.4.1
Sensor/Actuator repository for libmraa (v0.8.0)
|
API for the TA12-200 Current Transformer. More...
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.
Public Member Functions | |
synchronized void | delete () |
TA12200 (int pin) | |
long | getMillis () |
void | initClock () |
long | highestValue () |
float | milliAmps (long val, int res) |
float | milliAmps (long val) |
long getMillis | ( | ) |
Returns the number of milliseconds elapsed since initClock() was last called.
long highestValue | ( | ) |
Gets the conversion value from the sensor
void initClock | ( | ) |
Resets the clock
float milliAmps | ( | long | val, |
int | res | ||
) |
Computes the measured voltage
val | Value measured by highestValue() |
res | ADC resolution |