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.
|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")|
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.
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.
A laser-cut case for the Accelerometer Bricklet 2.0 is available.
The assembly is easiest if you follow the following steps:
Below you can see an exploded assembly drawing of the Accelerometer 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.
|C/C++ for Microcontrollers||API||Examples||Installation|
|Visual Basic .NET||API||Examples||Installation|