Cov txheej txheem:
- Kauj Ruam 1: Kauj Ruam 1: Cov Khoom
- Kauj Ruam 2: Kauj Ruam 2: Txuas Hluav Taws Xob
- Kauj Ruam 3: Kauj Ruam 3: Programming Arduino
- Kauj Ruam 4: Kauj Ruam 4: Ntaus Serial Plotter thiab Saib Cov Duab
Video: Arduino-raws li txhuam hniav Cov Ntaub Ntawv Saib: 4 Cov Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
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
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
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
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:
Txhuam txhuam hniav: 3 Kauj Ruam (nrog Duab)
Txhuam Txhuam Txhuam Txhuam: Ua kom yooj yim txav cov neeg hlau nrog cov laus txhuam hniav txhuam thiab qee yam khoom siv kos duab. Peb tab tom siv tus txhuam hniav txhuam vim tias nws muaj lub cav vibrating hauv nws. Nov yog tib lub cav uas nyob hauv tus tswj game lossis xov tooj & ua
Tus Txhuam Txhuam Hniav Dawb: 6 Kauj Ruam (nrog Duab)
Tus Txhuam Txhuam Hniav Dawb: Cov txhuam hniav tsis muaj tes yog tes haujlwm ua los ntawm Michael Mitsch, Ross Olsen, Jonathan Morataya, thiab Mitch Hirt. Peb xav mus rau qhov teeb meem uas tuaj yeem muaj kev daws teeb meem lom zem los tsim, yog li peb txiav txim siab ua qee yam uas tuaj yeem ua rau koj yog li koj tsis txhob h
Yuav Siv Xim Li Cas Txhuam Txhuam Txhuam Txhuam Txhuam Txhuam Txhuam Txhuam Txhuam Txhuam Dej thiab Dej los Kos Duab ntawm Xov Tooj lossis Xov Tooj Ntawm Tes: 4 Kauj Ruam
Yuav Ua Li Cas Siv Xim Txhuam Txhuam Txhuam Txhuam Txhuam Txhuam Txhuam Txhuam Txhuam Txhuam Txhuam Dej thiab Dej rau Kos Duab ntawm Xov Tooj lossis Xov Tooj Ntawm Tes: Kev pleev xim nrog txhuam yog kev lom zem. Nws nqa nrog nws ntau lwm yam kev txhim kho rau cov menyuam
USB Txhuam Txhuam Txhuam Txhuam: 5 Kauj Ruam
USB Txhuam Txhuam Txhuam Txhuam: Txhuam hniav thaum koj nyob ze ntawm USB chaw nres nkoj rau ob DOLLARS
Qhov ncauj-B Sonic Txhuam Txhuam Txhuam Txhuam Txhuam Txhuam Txhuam Txhuam: 8 Kauj Ruam
Qhov ncauj-B Sonic Txhuam Txhuam Txhuam Txhuam Txhuam Txhuam Txhuam Txhuam Txhuam Txhuam: Qhov haujlwm no qhia koj yuav hloov lub roj teeb li cas hauv qhov ncauj-B Sonic Txhuam txhuam hniav. Nov yog txhuam hniav hluav taws xob zoo, tab sis Qhov ncauj -B qhia koj kom pov nws thaum lub roj teeb Ni-CD tso rau sab hauv tuag. Ib cag los ntawm kev pov tseg ntawm tha