Note
The Voltage/Current Bricklet is discontinued and is no longer sold. The Voltage/Current Bricklet 2.0 is the recommended replacement.
The Voltage/Current Bricklet can be used to extend Bricks by the possibility to measure power/voltage/current. To do this you only have to put the Bricklet between your power supply (e.g. battery) and your load (e.g. motor).
In case of battery powered systems you can measure the state of the battery by bidirectional current measurement (charge/discharge).
Property | Value |
---|---|
Sensor | INA226 with 4mΩ Shunt Resistor |
Current Consumption | 1mA |
Maximum Current | ±20A |
Maximum Input Voltage | 36V |
Dimensions (W x D x H) | 30 x 30 x 18mm (1.18 x 1.18 x 0.67") |
Weight | 10g |
You have to connect the Voltage/Current Bricklet between your power supply and your load. Connect the power supply with the terminal marked with "IN" and the load with the terminal marked "OUT". The polarity is marked with "+" and "-".
Warning
Keep the polarity in mind! This Bricklet is not protected against polarity reversal!
The Bricklet measures the voltage between "+" and "-" of the "IN" terminal as well as the current flow from "+" of the "IN" terminal to "+" of the "OUT" terminal.
To test a Voltage/Current Bricklet you need to have Brick Daemon and Brick Viewer installed. Brick Daemon acts as a proxy between the USB interface of the Bricks and the API bindings. Brick Viewer connects to Brick Daemon. It helps to figure out basic information about the connected Bricks and Bricklets and allows to test them.
Connect the Voltage/Current Bricklet to a Brick with a Bricklet Cable.
Connect a motor and a battery to the Bricklet as displayed in the following picture.
If you connect the Brick to the PC over USB, you should see a new tab named "Voltage/Current Bricklet" in the Brick Viewer after a moment. Select this tab.
If everything went as expected you can now see the current used by the motor and a graph that shows the current over time. You can see that the voltage drops a bit because of the high load. In this example the motor utilizes about 40W power.
After this test you can go on with writing your own application. See the Programming Interface section for the API of the Voltage/Current Bricklet and examples in different programming languages.
The current measurement of the Voltage/Current Bricklet is factory calibrated at room temperature. The readings can shift by a few mA if the environment is very cold or very hot. In this case you can recalibrate the Bricklet with a precise multimeter:
Start Brick Viewer and set "Gain Multiplier" and "Gain Divisor" to 1, press "Save Calibration". Now read the real current measurement from your multimeter and put it in the "Gain Multiplier" field. Put the current current measurement from the Voltage/Current Bricklet in the "Gain Divisor" field and press "Save Calibration" again.
Now the Voltage/Current Bricklet is calibrated for the new environment.
A laser-cut case for the Voltage/Current Bricklet is available.
The assembly is easiest if you follow the following steps:
Below you can see an exploded assembly drawing of the Voltage/Current Bricklet case:
Hint: There is a protective film on both sides of the plates, you have to remove it before assembly.
See Programming Interface for a detailed description.
Language | API | Examples | Installation |
---|---|---|---|
C/C++ | API | Examples | Installation |
C# | API | Examples | Installation |
Delphi/Lazarus | API | Examples | Installation |
Go | API | Examples | Installation |
Java | API | Examples | Installation |
JavaScript | API | Examples | Installation |
LabVIEW | API | Examples | Installation |
Mathematica | API | Examples | Installation |
MATLAB/Octave | API | Examples | Installation |
MQTT | API | Examples | Installation |
openHAB | API | Examples | Installation |
Perl | API | Examples | Installation |
PHP | API | Examples | Installation |
Python | API | Examples | Installation |
Ruby | API | Examples | Installation |
Rust | API | Examples | Installation |
Shell | API | Examples | Installation |
Visual Basic .NET | API | Examples | Installation |
TCP/IP | API | ||
Modbus | API |