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.
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||5mW (1mA at 5V)|
|Acceleration||0.001g steps, 16bit resolution|
|Full-scale range||±2g / ±4g / ±6g / ±8g / ±16g 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 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 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" 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 and examples in different programming languages.
A laser-cut case for the Accelerometer Bricklet 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.
|Visual Basic .NET||API||Examples||Installation|