Accelerometer Bricklet 2.0

Features

  • 3-axis accelerometer
  • 0.0001g steps with 16bit resolution
  • Up to ±8g full-scale range
  • Date rate of up to 25.6kHz

Description

The Accelerometer Bricklet can be used to extend the features of Bricks with the capability to measure acceleration in x-, y- and z-axis. The measured acceleration can be read out in g. With configurable events it is possible to react on changing acceleration without polling.

A continuous acceleration callback can be used to transfer the acceleration data with the full rate of up to 25.6kHz. This high data rate is well suited for predictive maintenance applications.

The Bricklet has an LED that can be turned on trough the API, e.g. to show that a specific acceleration was reached.

Technical Specifications

Property Value
Sensor KX122
Current Consumption 30mW (6mA at 5V)
   
Resolution 0.0001g steps, 16bit resolution
Shock survivability 5000g for 0.5ms / 10000g for 0.2ms
Full-scale range ±2g / ±4g / ±8g (selectable with API)
Data Rate 0.781Hz - 25.6kHz (selectable with API)
   
Dimensions (W x D x H) 25 x 20 x 5mm (0.98 x 0.79 x 0.19")
Weight 2g

Resources

Test your Accelerometer Bricklet 2.0

To test a Accelerometer 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 Accelerometer 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 "Accelerometer Bricklet 2.0" in the Brick Viewer after a moment. Select this tab. If everything went as expected you can now see the acceleration in g, pitch and roll and a graph that shows the acceleration over time.

Point the Bricklet downwards along its x-, y- and z-axis one by one. The acceleration should be around 1g for the axis pointing downwards and around 0g for the other axes.

Accelerometer 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 Accelerometer Bricklet 2.0 and examples in different programming languages.

Case

A laser-cut case for the Accelerometer Bricklet 2.0 is available.

Case for Accelerometer Bricklet 2.0

The assembly is easiest if you follow the following steps:

  • Screw spacers to the Bricklet,
  • screw bottom plate to bottom spacers,
  • build up side plates,
  • plug side plates into bottom plate and
  • screw top plate to top spacers.

Below you can see an exploded assembly drawing of the Accelerometer Bricklet case:

Exploded assembly drawing for Accelerometer Bricklet 2.0

Hint: There is a protective film on both sides of the plates, you have to remove it before assembly.

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
TCP/IP API    
Modbus API