Energy Meter Block

The Energy Meter block gets data from the Energy Meter. The Energy Meter is part of the Renewable Energy Add-On Set. The Energy Meter block can measure the electrical energy storage, input, and consumption of the electrical components connected to the Energy Meter. You can also compare the data to a Threshold Value to get a Logic (True or False) output.

See Using the Energy Meter for more information about the data that the Energy Meter provides.
Tips and Tricks
The Energy Meter block outputs data with a Data Wire. See Using the Energy Meter for other ways to use the Energy Meter that don’t require a data wire.
Choose the Sensor Port and Mode


Port Selector
Mode Selector
Inputs
Outputs

Use the Port Selector on the top of the block to make sure that the sensor port number (1, 2, 3, or 4) matches the port on the EV3 Brick that the Energy Meter is connected to.

Use the Mode Selector to select the mode for the block. The Inputs and Outputs available will change depending on the mode.
Modes
Measure Modes


The seven Measure modes each output one of the types of electrical data to the Measured Value.
Compare Modes


The seven Compare modes each compare one of the types of electrical data to the Threshold Value using the selected Compare Type. The True/False result is output in Compare Result, and the electrical data is output in Measured Value.
Inputs and Outputs
The inputs available for the Energy Meter block will depend on the mode selected. You can enter the input values directly into the block. Alternatively, the input values can be supplied by Data Wires from the outputs of other Programming Blocks.
InputTypeAllowed ValuesNotes
Compare Type Numeric0 - 50: = (Equal to)
1: ≠ (Not Equal to)
2: > (Greater than)
3: ≥ (Greater than or Equal to)
4: < (Less than)
5: ≤ (Less than or Equal to)
Threshold Value NumericAny numberValue to compare sensor data to
The outputs available will depend on the mode selected. To use an output, use a Data Wire to connect it to another Programming Block.
OutputTypeNotes
Measured Value NumericOne of the seven types of electrical data from the Energy Meter. See Using the Energy Meter.
Compare Result LogicTrue/False result of a Compare mode.
Energy Meter
Quick links