|
Last update: 250928 20:38:34 Arduino cansat and IMUsThere are many IMU boards to be used with Arduinos, ESP32, Teensy etc In general they have
GY boardsThere exist a number of GY boards - lower number oldest
All are based on IMUs from Invensense and Bosch(pressure) Please notice the different sensors for same functionallity. This means you need to download the right drivers GY boardzz
Datasheetslook into datasheet folder Src folder list: here bewareHW290 is based on on QMC5883 and NOT HMC5883L read here and find the right driver QMC5883 is a cheap non compatible clone of hmc5883 - b…shit See here for library - not tested by me - https://github.com/dthain/QMC5883L Notes:on the boards with MPU6050 the the hmc5883L accelerometer is located on a secundary I2C bus behind the MPU6050 See snippets code below See full code here
#include <Wire.h>
#include <MPU6050.h>
#include <hmc5883l.h>
#include <bmp085.h>
#include "I2Cdev.h"
MPU6050 mpu;
hmc5883l compass;
int error;
void setup() {
...
// 2000 degrees pr second max and +/- 16 g max
mpu.begin(MPU6050_SCALE_2000DPS, MPU6050_RANGE_16G);
mpu.setI2CBypassEnabled(true); // set bypass mode for gateway to hmc5883L
// now we can reach hmc5883L
compass = hmc5883l(); // Construct a new HMC5883 compass.
...
See full code here DriversAll drivers is a zip file you instal in your Arduino IDE by menu sketch -> include library -> add ZIP library BEFORE starting install drivers you must install I2Cdev driver (link below)
Extra infoDriver/library SW for ArduinoSrc folder list: here You install the ZIP file libraries as usual:
Plug in replacementGY-80 and GY-87 can both be used on the AAU cansat shield version 4. The GY-80 fills all holes - the GY-87 shall be located most far away from the openlog as shown on image below.
|