Hall Effect Bricklet 2.0


  • Measures magnetic flux density between -7mT and 7mT
  • Counter with configurable thresholds, bipolar and unipolar
  • Can count with a frequency of up to 10kHz


The Hall Effect Bricklet extends Bricks and can magnetic flux density (magnetic induction) from -7mT to 7mT (milli Tesla). It can count the (dis-)appearances of magnetic fields and can for example be used to measure the speed of a wheel with attached magnet with a frequency of up to 10kHz.

The low/high threshold for the counter as well as a debounce time can be configured and adjusted to a specific application.

Example applications are:

  • Detect if a door is open or closed
  • Reading out water/electricity meters
  • Counting RPM of motors

The Hall Effect Bricklet 2.0 has a 7 pole Bricklet connector and is connected to a Brick with a 7p-10p Bricklet cable.

Technical Specifications

Property Value
Sensor DRV5053
Current Consumption 59mW (11.8mA at 5V)
Operation Omnipolar (North and South pole is detected)
Detection Range -7mT to 7mT
Counter Trigger Point Configurable (unipolar and bipolar)
Counter Sampling Rate 10kHz
Dimensions (W x D x H) 25 x 15 x 5mm (0.98 x 0.59 x 0.19")
Weight 2g


Test your Hall Effect Bricklet 2.0

To test a Hall Effect Bricklet 2.0 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 Hall Effect Bricklet 2.0 to a Brick with a Bricklet Cable.

If you connect the Brick to the PC over USB, you should see a new tab named "Hall Effect Bricklet 2.0" in the Brick Viewer after a moment. Select this tab. If everything went as expected you can now see the measurement of the magnetic flux density. You can move a magnet near the Bricklet to test it.

Hall Effect Bricklet 2.0 in Brick Viewer

After this test you can go on with writing your own application. See the Programming Interface section for the API of the Hall Effect Bricklet 2.0 and examples in different programming languages.

Programming Interface

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
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
Modbus API