MPU 9DOF Click-Platine
MPU 9DOF Click-Platine
Overview
Das MPU 9DOF Click Board™ von MikroE ist eine Mess-Zusatzkarte, die das MikroBUS-Modul MPU-9150 zur Bewegungsverfolgung enthält.
Das Click Board™ umfasst zwei Geräte: einen MPU-6050 3-Achsen-Beschleunigungsmesser und 3-Achsen-Gyroskop sowie einen AK8975 3-Achsen-Kompass.
The MPU 9DOF Click Board™ carries the MPU–9250 System in Package, which is the world's first 9-axis Motion Tracking device. MPU–9250 comprises two chips. One is the MPU–6050 that contains a 3-axis accelerometer, a 3-axis gyroscope, and a DMP (digital motion processor); the other is AK8975, a 3-axis digital compass. It is designed for the low power, low cost, and high-performance requirements of consumer electronics equipment and wearable sensors. The ability to track motion in free space also makes the MPU 9DOF Click Board™ a suitable sensor for RC vehicles (e.g. quadcopters) and camera stabilization systems.
Specifications
Type | Acceleration, Gyroscope, Compass |
Applications | Cost-effective 9-axis motion tracking for quadcopters, wearables, camera stabilization systems, game controllers and other devices |
On-board modules | MPU–9150 comprises two chips. One is the MPU–6050 that contains a 3-axis accelerometer, a 3-axis gyroscope, and a DMP (digital motion processor); the other is AK8975, a 3-axis digital compass |
Key Features | 3-axis accelerometer, 3-axis gyroscope, 3-axis compass |
Interface | GPIO,I2C |
Compatibility | mikroBUS |
Click board size | S (28.6 x 25.4 mm) |
Input Voltage | 3.3V |
Software Support
Software Support
Application Inititialise
Initialization driver enable's - I2C, initialize MPU-9150 XL G & MPU-9150 MAG and start write log.
void application_init ( void )
{
log_cfg_t log_cfg;
mpu9dof_cfg_t cfg;
// Logger initialization.
log_cfg.level = LOG_LEVEL_DEBUG;
LOG_MAP_USB_UART( log_cfg );
log_init( &logger, &log_cfg );
log_info( &logger, "---- Application Init ----" );
// Click initialization.
mpu9dof_cfg_setup( &cfg );
MPU9DOF_MAP_MIKROBUS( cfg, MIKROBUS_1 );
mpu9dof_init( &mpu9dof, &cfg );
Delay_10ms( );
mpu9dof_default_cfg ( &mpu9dof );
}
Application Task
This is a example which demonstrates the use of the MPU 9DOF Click Board™. Measured accel, gyro and magnetometer coordinates values ( X, Y, Z ) and temperature value in degrees celsius [ �C ] are being sent to the uart where you can track their changes. All data logs on usb uart for aproximetly every 1 sec.
void application_init ( void )
{
log_cfg_t log_cfg;
mpu9dof_cfg_t cfg;
// Logger initialization.
log_cfg.level = LOG_LEVEL_DEBUG;
LOG_MAP_USB_UART( log_cfg );
log_init( &logger, &log_cfg );
log_info( &logger, "---- Application Init ----" );
// Click initialization.
mpu9dof_cfg_setup( &cfg );
MPU9DOF_MAP_MIKROBUS( cfg, MIKROBUS_1 );
mpu9dof_init( &mpu9dof, &cfg );
Delay_10ms( );
mpu9dof_default_cfg ( &mpu9dof );
}
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
Other mikroE Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.Mpu9Dof
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.
Software Support
Software Support
Application Inititialise
Initialization driver enable's - I2C, initialize MPU-9150 XL G & MPU-9150 MAG and start write log.
void application_init ( void )
{
log_cfg_t log_cfg;
mpu9dof_cfg_t cfg;
// Logger initialization.
log_cfg.level = LOG_LEVEL_DEBUG;
LOG_MAP_USB_UART( log_cfg );
log_init( &logger, &log_cfg );
log_info( &logger, "---- Application Init ----" );
// Click initialization.
mpu9dof_cfg_setup( &cfg );
MPU9DOF_MAP_MIKROBUS( cfg, MIKROBUS_1 );
mpu9dof_init( &mpu9dof, &cfg );
Delay_10ms( );
mpu9dof_default_cfg ( &mpu9dof );
}
Application Task
This is a example which demonstrates the use of the MPU 9DOF Click Board™. Measured accel, gyro and magnetometer coordinates values ( X, Y, Z ) and temperature value in degrees celsius [ �C ] are being sent to the uart where you can track their changes. All data logs on usb uart for aproximetly every 1 sec.
void application_init ( void )
{
log_cfg_t log_cfg;
mpu9dof_cfg_t cfg;
// Logger initialization.
log_cfg.level = LOG_LEVEL_DEBUG;
LOG_MAP_USB_UART( log_cfg );
log_init( &logger, &log_cfg );
log_info( &logger, "---- Application Init ----" );
// Click initialization.
mpu9dof_cfg_setup( &cfg );
MPU9DOF_MAP_MIKROBUS( cfg, MIKROBUS_1 );
mpu9dof_init( &mpu9dof, &cfg );
Delay_10ms( );
mpu9dof_default_cfg ( &mpu9dof );
}
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
Other mikroE Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.Mpu9Dof
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.