ข้อมูล
น้ำหนัก
บาร์โค้ด
ลงสินค้า
อัพเดทล่าสุด
รายละเอียดสินค้า

เซนเซอร์ GY-6500 6-axis  สามารถวัดได้ 6 แกน ได้แก่ 
1. 
Accelerometer วัดความเร่ง 3 แกน 
2. Gyroscope วัดความเร็วเชิงมุม 3 แกน
หน้าตาเหมือน GY-9250 ทุกอย่างต่างกันที่ Chip เท่านั้นโดยต่อแบบ i2c หรือ  SPI ใช้งานและยังวัดอุณหภูมิได้ในตัว


MPU-6500 module (three-axis gyroscope + three-axis acceleration)

Module model : GY-6500

Using the chip: MPU-6500

Power supply: 3-5v (internal low dropout voltage regulation)

Communication method: standard IIC/SPI communication protocol

Chip built-in 16bit AD converter, 16-bit data output

Gyro range: ±250 500 1000 2000 °/s

Acceleration range: ± 2 ± 4 ± 8 ± 16g   

Adopting Shenjin PCB, the machine welding process guarantees the quality

Pin pitch 2.54mm

Module size 15 mm *25mm



load :
https://github.com/tockn/MPU6050_tockn
C
ode:

#include "MPU6050_tockn.h"

#include "Wire.h"

 

MPU6050 mpu6050(Wire);

 

long timer = 0;

 

void setup() {

  Serial.begin(115200);

  Wire.begin();

  mpu6050.begin();

  mpu6050.calcGyroOffsets(true);

}

 

void loop() {

  mpu6050.update();

 

  if(millis() - timer > 1000){

    

    Serial.println("=======================================================");

    Serial.print("  temp : ");Serial.println(mpu6050.getTemp());

    Serial.print("  accX : ");Serial.print(mpu6050.getAccX());

    Serial.print("  accY : ");Serial.print(mpu6050.getAccY());

    Serial.print("  accZ : ");Serial.println(mpu6050.getAccZ());

  

    Serial.print("  gyroX : ");Serial.print(mpu6050.getGyroX());

    Serial.print("  gyroY : ");Serial.print(mpu6050.getGyroY());

    Serial.print("  gyroZ : ");Serial.println(mpu6050.getGyroZ());

  

    Serial.print("  accAngleX : ");Serial.print(mpu6050.getAccAngleX());

    Serial.print("  accAngleY : ");Serial.println(mpu6050.getAccAngleY());

  

    Serial.print("  gyroAngleX : ");Serial.print(mpu6050.getGyroAngleX());

    Serial.print("  gyroAngleY : ");Serial.print(mpu6050.getGyroAngleY());

    Serial.print("  gyroAngleZ : ");Serial.println(mpu6050.getGyroAngleZ());

    

    Serial.print("  angleX : ");Serial.print(mpu6050.getAngleX());

    Serial.print("  angleY : ");Serial.print(mpu6050.getAngleY());

    Serial.print("  angleZ : ");Serial.println(mpu6050.getAngleZ());

    Serial.println("=======================================================");

    timer = millis();

  }




เงื่อนไขอื่นๆ
Tags

วิธีการชำระเงิน

บมจ. ธนาคารกรุงไทย สาขาโรงไฟฟ้าบางปะกง ออมทรัพย์
ธนาคารกรุงเทพ จำกัด (มหาชน) สาขาบิ๊กซี ฉะเชิงเทรา 2 ออมทรัพย์
บมจ. ธนาคารกรุงไทย สาขาบิ๊กซี ฉะเชิงเทรา 2 ออมทรัพย์
พร้อมเพย์ สาขา- -
Scan this!
สนธยา ใจผ่อง
063-xxxxxx-8
Accept All Banks | รับเงินได้จากทุกธนาคาร
พูดคุย-สอบถาม