Mundarija:

Arduino-ga asoslangan tish cho'tkasi ma'lumotlari monitor: 4 qadam (rasmlar bilan)
Arduino-ga asoslangan tish cho'tkasi ma'lumotlari monitor: 4 qadam (rasmlar bilan)

Video: Arduino-ga asoslangan tish cho'tkasi ma'lumotlari monitor: 4 qadam (rasmlar bilan)

Video: Arduino-ga asoslangan tish cho'tkasi ma'lumotlari monitor: 4 qadam (rasmlar bilan)
Video: Crypto Pirates Daily News - Tuesday January 19th, 2022 - Latest Crypto News Update 2024, Noyabr
Anonim
Arduino-ga asoslangan tish cho'tkasi ma'lumotlari monitor
Arduino-ga asoslangan tish cho'tkasi ma'lumotlari monitor
Arduino-ga asoslangan tish cho'tkasi ma'lumotlari monitor
Arduino-ga asoslangan tish cho'tkasi ma'lumotlari monitor

Arduino-ga asoslangan tish cho'tkasi sizga 3 o'qli tezlashtirish ma'lumotlari yordamida naqshlarni kuzatish imkonini beradi.

1 -qadam: 1 -qadam: Materiallar

1 -qadam: materiallar
1 -qadam: materiallar
1 -qadam: materiallar
1 -qadam: materiallar
1 -qadam: materiallar
1 -qadam: materiallar
1 -qadam: materiallar
1 -qadam: materiallar

Tish cho'tkasi

Arduino Nano

MPU-6050 3 o'qli IMU

6 fut (1,8 m) USB mini-B kabeli

2 -qadam: 2 -qadam: simlarni ulash

2 -qadam: simlarni ulash
2 -qadam: simlarni ulash

Tel lehim yordamida MPU-6050 va Arduino Nano-ni ulang. Tafsilot uchun yuqoridagi rasmga qarang.

3 -qadam: 3 -qadam: Arduino dasturlash

#qo'shing

const int MPU = 0x68; // MPU6050 I2C manzili

int AcX, AcY, AcZ, Tmp, GyX, GyY, GyZ;

void get6050 ();

bo'sh o'rnatish ()

{

Wire.begin ();

Wire.beginTransmission (MPU);

Wire.write (0x6B);

Wire.write (0);

Wire.endTransmission (haqiqiy);

Serial.begin (9600);

}

void loop () {

get6050 ();

Serial.print (AcX);

Serial.print ("");

Ketma -ket chop etish (AcY);

Serial.print ("");

Serial.print (AcZ);

Serial.println ();

kechikish (15);

}

void get6050 ()

{Wire.beginTransmission (MPU);

Wire.write (0x3B);

Wire.endTransmission (noto'g'ri);

Wire.requestFrom (MPU, 14, to'g'ri);

AcX = Wire.read () << 8 | Wire.read ();

AcY = Wire.read () << 8 | Wire.read ();

AcZ = Wire.read () << 8 | Wire.read ();

Tmp = Wire.read () << 8 | Wire.read ();

GyX = Wire.read () << 8 | Wire.read ();

GyY = Wire.read () << 8 | Wire.read ();

GyZ = Wire.read () << 8 | Wire.read ();

}

4 -qadam: 4 -qadam: Seriya chizgichini bosing va grafikni ko'ring

4 -qadam: Seriya chizgichini bosing va rasmga qarang
4 -qadam: Seriya chizgichini bosing va rasmga qarang
4 -qadam: Seriya chizgichini bosing va grafikni ko'ring
4 -qadam: Seriya chizgichini bosing va grafikni ko'ring
4 -qadam: Seriya chizgichini bosing va rasmga qarang
4 -qadam: Seriya chizgichini bosing va rasmga qarang

Asboblar-ketma-ket Plotter-ga o'ting (yoki Ctrl + Shift + L) va siz MPU-6050-dan 3 o'qli tezlashtirish bilan real vaqtda grafikni ko'rasiz.

Tish cho'tkasini silkiting va farqni ko'ring.

Qo'shimcha ma'lumot uchun: tashrif buyuring

blog.naver.com/roboholic84

Tavsiya: