The Compass Bricklet is equipped with a 3-axis ±8 Gauss magnetic sensor. It can measure the magnetic flux density for all three axis as well as the heading with a resolution of 0.1° and accuracy up to 1°.
The update rate is configurable and can go as high as 600Hz.
The Compass Bricklet has a 7 pole Bricklet connector and is connected to a Brick with a 7p-10p Bricklet cable.
|Current Consumption||40mW (8mA at 5V)|
|Magnetic Flux Density Range||-800µT to 800µT (microtesla)|
|Magnetic Flux Density Resolution||0.01µT (microtesla)|
|Heading Range||0° to 360°|
|Heading Accuracy||Up to 1° at 100Hz update rate*|
|Update Rate||100Hz-600Hz (configurable)|
|Dimensions (W x D x H)||25 x 20 x 5mm (0.98 x 0.79 x 0.19")|
*: Depends on the quality of the calibration for the specific environment the Bricklet is used in.
To test a Compass 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 Compass 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 "Compass Bricklet" in the Brick Viewer after a moment. Select this tab. If everything went as expected you can now see the measured magnetic flux density as well as the heading and inclination.
After this test you can go on with writing your own application. See the Programming Interface section for the API of the Compass Bricklet and examples in different programming languages.
A laser-cut case for the Compass Bricklet is available.
The assembly is easiest if you follow the following steps:
Below you can see an exploded assembly drawing of the Compass 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|