upm  0.4.1
Sensor/Actuator repository for libmraa (v0.8.0)
Public Member Functions | Static Public Attributes | List of all members

API for the ECS1030 Non-Invasive Current/Electricity Sensor. More...

Detailed Description

This non-invasive current sensor can be clamped around the supply line of an electrical load to tell you how much current is passing through it. It does this by acting as an inductor and responding to the magnetic field around a current-carrying conductor. This particular current sensor measures a load up to 30 A, which makes it great for building your own energy monitors.

ecs1030.jpg


ECS1030 Sensor image provided by SparkFun* under CC BY-NC-SA-3.0.

Public Member Functions

synchronized void delete ()
 
 ECS1030 (short pinNumber)
 
double getCurrency_A ()
 
double getPower_A ()
 
double getCurrency_B ()
 
double getPower_B ()
 
String name ()
 

Static Public Attributes

static final short DELAY_MS = javaupm_ecs1030JNI.ECS1030_DELAY_MS_get()
 
static final short VOLT_M = javaupm_ecs1030JNI.ECS1030_VOLT_M_get()
 
static final short R_LOAD = javaupm_ecs1030JNI.ECS1030_R_LOAD_get()
 

Constructor & Destructor Documentation

ECS1030 ( short  pinNumber)

Instantiates an ECS1030 object

Parameters
pinNumberNumber of the data pin

Member Function Documentation

double getCurrency_A ( )

Returns electric current data for a sampled period

double getCurrency_B ( )

Returns electric current data for a sampled period

double getPower_A ( )

Returns power data for a sampled period

double getPower_B ( )

Returns power data for a sampled period

String name ( )

Returns the name of the component


The documentation for this class was generated from the following file: