UPM

The UPM API is a high level sensor library for IoT devices using MRAA. See examples here. Back to index page.
SparkFun sensor images provided under CC BY-NC-SA-3.0.

ECS1030 Class

Module: ecs1030

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

Methods

ECS1030

(
  • pinNumber
)
Number

Instantiates an ECS1030 object

Parameters:

  • pinNumber Number

    Number of the data pin

Returns:

Number:

getCurrency_A

() Number

Returns electric current data for a sampled period

Returns:

Number:

getPower_A

() Number

Returns power data for a sampled period

Returns:

Number:

getCurrency_B

() Number

Returns electric current data for a sampled period

Returns:

Number:

getPower_B

() Number

Returns power data for a sampled period

Returns:

Number:

name

() String

Returns the name of the component

Returns:

String: