AltIMU-10 - IMU-System mit 10 Freiheitsgraden

47,55 EUR

incl. 19 % USt zzgl. Versandkosten

Gewicht: 0.0025 kg

Hersteller: Pololu

Lagerbestand: 0

Nicht auf Lager.

Nicht auf Lager.

Art.Nr.: 1269
     

Produktbeschreibung

Alternative: AltIMU-10 v4 Gyro, Beschleunigungssensor, Kompass, Altimeter

Auf diesem Breakout befinden sich:

  • Drucksensor LPS331AP
  • 3-Achsen Gyro L3GD20
  • 3-Achsen Beschleunigungssensor / Magnetormeter LSM303DLH

sodass man eine vollständige IMU mit 10 Freiheitsgraden besitzt. Zusätzlich wurde gleich ein Spannungsregler und Pegelwandler mit untergebracht, dadurch ist ein Betrieb an Systeme mit 2,5 - 5V möglich. Die Daten der einzelnen Sensoren sind über I2C auslesbar.


Technisch Daten:

  • Größe:25 mm × 13 mm × 3 mm
  • Gewicht (ohne Steckverbinder): 1.0 g (0.035 oz)
  • Versorgungsspannung: 2.5 V to 5.5 V
  • Stromaufnahme: 10 mA
  • Datenformatt (I²C):
    • Gyro: one 16-bit reading per axis
    • Accelerometer: one 12-bit reading (left-justified) per axis
    • Magnetometer: one 12-bit reading (right-justified) per axis
    • Barometer: 24-bit pressure reading (4096 LSb/mbar)
  • Messbereich:
    • Gyro: ±250, ±500, or ±2000°/s
    • Accelerometer: ±2, ±4, ±8, or ±16 g
    • Magnetometer: ±1.3, ±1.9, ±2.5, ±4.0, ±4.7, ±5.6, or ±8.1 gauss
    • Barometer: 260 mbar to 1260 mbar (26 kPa to 126 kPa)


Included Components

A 1×5 strip of 0.1″ header pins and a 1×5 strip of 0.1″ right-angle header pins are included, as shown in the picture below. You can solder the header strip of your choice to the board for use with custom cables or solderless breadboards or solder wires directly to the board itself for more compact installations. The board features two mounting holes that work with #2 or M2 screws (not included).

Using the AltIMU-10

Connections

A minimum of four connections are necessary to use the AltIMU-10: VIN, GND, SCL, and SDA. VIN should be connected to a 2.5 V to 5.5 V source, GND to 0 volts, and SCL and SDA should be connected to an I²C bus operating at the same logic level as VIN. (Alternatively, if you are using the board with a 3.3 V system, you can leave VIN disconnected and bypass the built-in regulator by connecting 3.3 V directly to VDD.)

Pinout

PIN Description
SCL Level-shifted I²C clock line: HIGH is VIN, LOW is 0 V
SDA Level-shifted I²C data line: HIGH is VIN, LOW is 0 V
GND The ground (0 V) connection for your power supply. Your I²C control source must also share a common ground with this board.
VIN This is the main 2.5 V to 5.5 V power supply connection. The SCL and SDA level shifters pull the I²C bus high bits up to this level.
VDD 3.3 V regulator output or low-voltage logic power supply, depending on VIN. When VIN is supplied and greater than 3.3 V, VDD is a regulated 3.3 V output that can supply up to approximately 150 mA to external components. Alternatively, when interfacing with a 2.5 V to 3.3 V system, VIN can be left disconnected and power can be supplied directly to VDD. Never supply voltage to VDD when VIN is connected, and never supply more than 3.6 V to VDD.

The data ready and interrupt pins of the LPS331AP, L3GD20, and LSM303DLHC are not accessible on the AltIMU-10; if you need these outputs, consider using our LPS331AP carrier, L3GD20 carrier, and LSM303DLHC carrier boards.

The above schematic shows the additional components the carrier board incorporates to make the LPS331AP, L3GD20, and LSM303DLHC easier to use, including the voltage regulator that allows the board to be powered from a single 2.5 V to 5.5 V supply and the level-shifter circuit that allows for I²C communication at the same logic voltage level as VIN. This schematic is also available as a downloadable pdf: AltIMU-10 schematic (193k pdf).

I²C Communication

The LPS331AP’s barometer, the L3GD20’s gyro, and the LSM303DLHC’s accelerometer and magnetometer can be queried and configured through the I²C bus. Each of the four sensors acts as a slave device on the same I²C bus (i.e. their clock and data lines are tied together to ease communication). Additionally, level shifters on the I²C clock (SCL) and data lines (SDA) enable I²C communication with microcontrollers operating at the same voltage as VIN (2.5 V to 5.5 V). A detailed explanation of the protocols used by each device can be found in the LPS331AP datasheet (453k pdf), the L3GD20 datasheet (2MB pdf), and the LSM303DLHC datasheet (629k pdf). More detailed information about I²C in general can be found in NXP’s I²C-bus specification (371k pdf).

The barometer, gyro, accelerometer, and magnetometer each have separate slave addresses on the I²C bus. The board pulls the SA0 pins on the gyro and barometer high.

In our tests of the AltIMU-10, we were able to communicate with all three chips at clock frequencies up to 400 kHz; higher frequencies might work but were not tested. The chips themselves and carrier board do not meet some of the requirements to make the devices compliant with I²C fast mode. They are missing 50 ns spike suppression on the clock and data lines, and additional pull-ups on the clock and data lines might also be necessary to achieve compliant signal timing characteristics.

Sample Code

We have written a basic LPS331 Arduino library, L3GD20 Arduino library, and LSM303 Arduino library that make it easy to interface the AltIMU-10 with an Arduino. They also make it simple to configure the sensors and read the raw pressure, gyro, accelerometer, and magnetometer data.

For a demonstration of what you can do with this data, you can turn an Arduino connected to a AltIMU-10 into an attitude and heading reference system, or AHRS, with this Arduino program. It uses the data from the AltIMU-10 to calculate estimated roll, pitch, and yaw angles, and you can visualize the output of the AHRS with a 3D test program on your PC (as shown in a screenshot above). This software is based on the work of Jordi Munoz, William Premerlani, Jose Julio, and Doug Weibel.

Protocol Hints

The datasheets provide all the information you need to use the sensors on the AltIMU-10, but picking out the important details can take some time. Here are some pointers for communicating with and configuring the LPS331AP, L3GD20, and LSM303DLHC that we hope will get you up and running a little bit faster:

  • The pressure sensor, gyro, accelerometer, and magnetometer are all off by default. You have to turn them on by setting the correct configuration registers.
  • You can read or write multiple pressure sensor, gyro, or accelerometer registers in a single I²C command by asserting the most significant bit of the register address to enable address auto-increment.
  • The magnetometer will not update its data until all 6 data bytes have been read during a single I²C transfer. All the bytes can be read in the same transfer using the magnetometer’s automatic sub-address updating feature (this feature is enabled by default).
  • The pressure sensor has a 24-bit pressure reading. The gyro, accelerometer, and magnetometer all output readings in a 16-bit format (obtained by combining the values in two 8-bit registers for each axis), but only the gyro readings contain 16 bits of precision. The accelerometer and magnetometer readings contain a maximum of 12 bits of precision; for the accelerometer, at least the lowest 4 bits of the output values are always 0, and for the magnetometer, the highest 4 bits of the output values are always 0.
  • The accelerometer gives low-resolution 10-bit readings by default (the lowest 6 bits of the output are always 0). To get the full 12-bit resolution, you must set the HR (high resolution) bit in the CTRL_REG4_A register.
  • The LSM303DLHC combines an accelerometer and a magnetometer made by separate manufacturers into one IC, so there are fairly significant differences in their features, functionality, and interfaces. The interfaces of the LPS331AP and L3GD20 are similar to that of the accelerometer in the LSM303DLHC.

Kunden kauften auch

Adapter SMA zu U.FL

Adapter SMA zu U.FL

5,36 EUR

Pololu A4988 Schrittmotortreiber

Pololu A4988 Schrittmotortreiber

6,44 EUR

Arduino Micro - 5V 16MHz - (ATmega32u4)

Arduino Micro - 5V 16MHz - (ATmega32u4)

21,42 EUR

Thermoelement Verstärker MAX31855 (MAX6675 upgrade)

Thermoelement Verstärker MAX31855 (MAX6675 upgrade)

16,66 EUR

GM12a 100:1 Mini Getriebemotor

GM12a 100:1 Mini Getriebemotor

15,00 EUR