- 29a Bùi Xuân Phái, P.Tây Thạnh, Quận Tân Phú, TPHCM
- linhkienduchuy2018@gmail.com
- TƯ VẤN, GIẢI ĐÁP, HƯỚNG DẪN, MUA HÀNG (ZALO): 0966515049 - 0942954739
Giao miễn phí chuyển phát nhanh trong nội thành TPHCM đối với đơn hàng trên 1 triệu đồng
Giảm 5k cho đơn hàng trên 300k đồng
Giảm 10k cho đơn hàng trên 500k đồng
Giảm 15k hoặc freeship chuyển phát nhanh cho đơn hàng trên 1tr đồng
Giảm 25.000đ hoặc freeship cho đơn hàng trên 2tr đồng.
Cảm biến GY-85 9DOF IMU ITG3205 + ADXL345 + HMC5883L được sử dụng để đo 9 thông số: 3 trục Góc quay (Gyro), 3 trục gia tốc hướng (Accelerometer), 3 trục từ trường (Magnetometer) bằng cách kết hợp 3 loại cảm biến trên cùng 1 board mạch sử dụng giao tiếp I2C:
Thông số kỹ thuật:
THƯ VIỆN GY - 85
CODE TEST MODULE GY - 85
#include "GY_85.h"
GY_85 GY85;
void setup() {
Serial.begin(9600);
GY85.init();
}
void loop() {
int* accelerometerReadings = GY85.readFromAccelerometer();
int ax = GY85.accelerometer_x(accelerometerReadings);
int ay = GY85.accelerometer_y(accelerometerReadings);
int az = GY85.accelerometer_z(accelerometerReadings);
int* compassReadings = GY85.readFromCompass();
int cx = GY85.compass_x(compassReadings);
int cy = GY85.compass_y(compassReadings);
int cz = GY85.compass_z(compassReadings);
float* gyroReadings = GY85.readGyro();
float gx = GY85.gyro_x(gyroReadings);
float gy = GY85.gyro_y(gyroReadings);
float gz = GY85.gyro_z(gyroReadings);
float gt = GY85.temp(gyroReadings);
Serial.print("accelerometer");
Serial.print(" x:");
Serial.print(ax);
Serial.print(" y:");
Serial.print(ay);
Serial.print(" z:");
Serial.print(az);
Serial.print("\t compass");
Serial.print(" x:");
Serial.print(cx);
Serial.print(" y:");
Serial.print(cy);
Serial.print(" z:");
Serial.print(cz);
Serial.print("\t gyro");
Serial.print(" x:");
Serial.print(gx);
Serial.print(" y:");
Serial.print(gy);
Serial.print(" z:");
Serial.print(gz);
Serial.print("\t gyro temp:");
Serial.println(gt);
delay(100);
}
2,000₫
3,000₫
70,000₫
5,000₫
42,000₫
48,000₫
80,000₫
85,000₫
100,000₫
4,000₫
40,000₫
13,000₫
28,000₫
2,000₫
23,000₫
25,000₫
50,000₫
70,000₫
6,000₫
6,000₫
7,000₫
5,000₫
8,000₫
13,000₫
3,000₫
120,000₫
120,000₫
120,000₫
120,000₫
120,000₫
120,000₫
120,000₫
45,000₫
25,000₫
25,000₫
25,000₫
Bình luận