Cov txheej txheem:

Arduino-raws li txhuam hniav Cov Ntaub Ntawv Saib: 4 Cov Kauj Ruam (nrog Duab)
Arduino-raws li txhuam hniav Cov Ntaub Ntawv Saib: 4 Cov Kauj Ruam (nrog Duab)

Video: Arduino-raws li txhuam hniav Cov Ntaub Ntawv Saib: 4 Cov Kauj Ruam (nrog Duab)

Video: Arduino-raws li txhuam hniav Cov Ntaub Ntawv Saib: 4 Cov Kauj Ruam (nrog Duab)
Video: Computer Vision with Python! Resizing Images 2024, Kaum ib hlis
Anonim
Arduino-raws li txhuam hniav Cov Ntaub Ntawv Saib Xyuas
Arduino-raws li txhuam hniav Cov Ntaub Ntawv Saib Xyuas
Arduino-raws li Txhuam Hniav Cov Ntaub Ntawv Saib Xyuas
Arduino-raws li Txhuam Hniav Cov Ntaub Ntawv Saib Xyuas

Qhov txhuam hniav ntawm Arduino tso cai rau koj los tshuaj xyuas cov qauv siv 3-axial nrawm cov ntaub ntawv.

Kauj Ruam 1: Kauj Ruam 1: Cov Khoom

Kauj ruam 1: Cov ntaub ntawv
Kauj ruam 1: Cov ntaub ntawv
Kauj ruam 1: Cov ntaub ntawv
Kauj ruam 1: Cov ntaub ntawv
Kauj ruam 1: Cov ntaub ntawv
Kauj ruam 1: Cov ntaub ntawv
Kauj ruam 1: Cov ntaub ntawv
Kauj ruam 1: Cov ntaub ntawv

Txhuam hniav

Arduino Nano Cov

MPU-6050 3-axis IMU

6ft (1.8m) USB mini-B cable

Kauj Ruam 2: Kauj Ruam 2: Txuas Hluav Taws Xob

Kauj ruam 2: Kev thaiv kab
Kauj ruam 2: Kev thaiv kab

Txuas MPU-6050 thiab Arduino Nano siv cov hlau txuas. Saib daim duab saum toj no kom ntxaws.

Kauj Ruam 3: Kauj Ruam 3: Programming Arduino

#suav nrog

const int MPU = 0x68; // MPU6050 I2C chaw nyob

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

tsis muaj dab tsi tau txais 6050 ();

void teeb tsa ()

{

Hlau.begin ();

Wire.beginTransmission (MPU);

Hlau.write (0x6B);

Hlau.write (0);

Wire.endTransmission (muaj tseeb);

Serial.begin (9600);

}

void voj () {

tau 6050 ();

Serial.print (AcX);

Serial.print ("");

Serial.print (AcY);

Serial.print ("");

Serial.print (AcZ);

Serial.println ();

ncua (15);

}

tsis tau txais 6050 ()

{Wire.beginTransmission (MPU);

Hlau.write (0x3B);

Wire.endTransmission (tsis tseeb);

Wire.requestFrom (MPU, 14, muaj tseeb);

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 ();

}

Kauj Ruam 4: Kauj Ruam 4: Ntaus Serial Plotter thiab Saib Cov Duab

Kauj Ruam 4: Ntaus Serial Plotter thiab Saib Daim Duab
Kauj Ruam 4: Ntaus Serial Plotter thiab Saib Daim Duab
Kauj Ruam 4: Ntaus Serial Plotter thiab Saib Daim Duab
Kauj Ruam 4: Ntaus Serial Plotter thiab Saib Daim Duab
Kauj Ruam 4: Ntaus Serial Plotter thiab Saib Daim Duab
Kauj Ruam 4: Ntaus Serial Plotter thiab Saib Daim Duab

Mus rau Cov Cuab Yeej-Cov phiaj xwm phiaj xwm (lossis Ctrl + Ua haujlwm + L), thiab koj yuav pom lub sijhawm tiag tiag nrog 3-axial nrawm los ntawm MPU-6050

Co txhuam txhuam thiab pom qhov sib txawv.

yog xav paub ntxiv: thov mus saib

blog.naver.com/roboholic84

Pom zoo: