Cov txheej txheem:
- Kauj Ruam 1: Cov Ntaub Ntawv Yuav Tsum Tau
- Kauj Ruam 2: MPU6050 Lub Tsev Qiv Ntawv
- Kauj ruam 3: Calibration
Video: MPU6050 Teeb thiab Kev Qhia Ua Ntej: 3 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
MPU6050 yog 6 DoF (Qib ntawm kev ywj pheej) IMU uas sawv rau chav ntsuas inertial, lub ntsuas zoo tiag tiag kom paub Angular acceleration los ntawm 3 Axis Gyroscope thiab Kev Tawm Tsam dhau los ntawm Linear Accelerometers.
Nws tuaj yeem nyuaj rau lub sijhawm kom pib thiab teeb tsa, tshawb cov tsev qiv ntawv thiab cov haujlwm thoob plaws hauv is taws nem, tab sis tsis txhob txhawj tam sim no, cov lus qhia no thiab cov vis dis aus qhia txuas hauv qab no yuav ua rau koj pib tsis muaj sijhawm.
Kauj Ruam 1: Cov Ntaub Ntawv Yuav Tsum Tau
1.) MPU6050 lossis GY521 IMU
2.) Arduino (Kuv siv Nano)
3.) Khoos phis tawj nrog Arduino IDE teeb tsa hauv
4.) USB Cable rau Arduino
5.) 4 F rau F Jumper Cables txuas Arduino rau MPU6050
Txhua lub Cheebtsam, thawj thiab zoo tshaj tuaj yeem nrhiav tau ntawm www. UTsource.net
Kauj Ruam 2: MPU6050 Lub Tsev Qiv Ntawv
Yog tias koj muaj teeb meem ua raws cov kauj ruam no, Kuv pom zoo kom saib cov vis dis aus txuas nrog hauv cov lus qhia.
Lub tsev qiv ntawv yog cov cuab yeej yooj yim uas ua rau nws yooj yim rau cov pib siv cov khoom sib xws xws li MPU6050 hauv qhov yooj yim tiag tiag, nws yog txheej uas twb tau saib xyuas ntau ntau yam nyuaj kom peb tuaj yeem tsom mus rau ntau qhov kev siv lub tswv yim xwb ntawm teeb tsa txhua yam.
Qhib Arduino IDE
Mus rau Cov Cuab Yeej thiab nyem rau ntawm Tswj Cov Tsev Qiv Ntawv
Lub qhov rai tshiab yuav qhib uas yuav muaj kab tshawb nrhiav, nyob rau hauv no hom MPU6050, koj yuav tau txais tos nrog ntau dua ib qho txiaj ntsig, tab sis teeb tsa ib qho uas yog bt Electronic Cats.
Koj ua tiav, tam sim no cia ntsuas!
Kauj ruam 3: Calibration
Txhua lub ntsuas hluav taws xob sib txawv thiab txawv, yog li peb yuav tsum nrhiav qhov tshwj xeeb Offset Tus nqi rau lub sensor peb muaj.
Qhib Cov Ntaub Ntawv thiab mus rau Piv Txwv hauv Arduino IDE.
Nyob ntawd, koj yuav pom lub tsev qiv ntawv tshiab uas hais tias MPU6050 uas muaj qhov program hu ua - IMU_Zero qhib nws.
Rub nws mus rau arduino thiab xyuas kom qhov kev sib txuas los ntawm Arduino rau Sensor tau ua tiav raws li hauv qab no -
TSO - A5
SDA - A4
Tswv yim - 5V
GND - NCO
Tom qab ua tiav qhov kev tso tawm, qhib Cov Cuab Yeej Thiab Tom Qab Saib Xyuas, tab sis nco ntsoov khaws lub ntsuas kab rov tav thiab tseem tseem muaj peev xwm ua tau thaum lub sijhawm txheej txheem no.
Ib txoj kab "----- ua tiav -----" yuav qhia tias nws tau ua tiav qhov zoo tshaj plaws. Ntawm tam sim no cuam tshuam txog qhov cuam tshuam (NFast = 1000, NSlow = 10000), nws yuav siv ob peb feeb los txog ntawd.
Nrog txoj kev, nws yuav tsim kaum ob lossis ntau kab ntawm cov zis, qhia tias rau txhua ntawm 6 qhov xav tau offsets, nws yog * thawj zaug, sim nrhiav ob qhov kwv yees, ib qho qis dhau thiab ib qho siab dhau, thiab * tom qab ntawd, kaw hauv kom txog thaum lub bracket tsis tuaj yeem ua kom me dua.
Kab kab saum toj kab "ua" yuav zoo ib yam li [567, 567] [-1, 2] [-2223, -2223] [0, 1] [1131, 1132] [16374, 16404] [155, 156] [-1, 1] [-25, -24] [0, 3] [5, 6] [0, 4] Raws li yuav tau pom nyob rau hauv kab lus sib luag ntawm kab lus, 6 pawg ua kab ntawv no piav qhia qhov zoo tshaj tawm rau X nrawm, Y nrawm, Z nrawm, X gyro, Y gyro, thiab Z gyro, feem. Hauv qhov piv txwv uas tau hais los saum toj no, kev sim tau pom tias +567 yog qhov zoo tshaj rau X nrawm, -2223 yog qhov zoo tshaj rau Y nrawm, thiab ntxiv rau. Nco tseg txhua qhov offset los siv hauv cov haujlwm uas koj ua!
Qhov ntawd yog nws! yooj yim thiab ncaj!
Ua tsaug rau kev nyeem ntawv!
Pom zoo:
Kev Tswj Lub Sij Hawm Nrog Qhov Sib Txawv Stroboscope (Ua Ntej Ua Ntej): 10 Kauj Ruam
Lub Sijhawm Tswj Tus Kheej Nrog Qhov Sib Txawv Stroboscope (Ua Ntej Ua Ntej Ua Ntej): Hnub no peb yuav kawm los ua qhov sib txawv stroboscope uas tuaj yeem ua rau cov khoom txav ib ntus zoo li tseem pom qhov muag. Tseem txaus los ceeb toom ntawm cov ntsiab lus me me hauv cov khoom sib tw uas yog qhov pom tsis tau lwm yam. Nws tseem tuaj yeem qhia bea
Ua Kev Tshawb Fawb Saib Pem Hauv Ntej Panels rau Koj Txoj Haujlwm DIY Tom ntej: 7 Cov Kauj Ruam (nrog Duab)
Ua Tus Kws Tshaj Lij Saib Pem Hauv Ntej Panels rau Koj Qhov Project DIY Tom ntej: Ua cov kws tshaj lij saib pem hauv ntej rau DIY cov haujlwm tsis tas yuav nyuaj lossis kim. Nrog qee qhov software pub dawb, cov khoom siv hauv chaw ua haujlwm thiab sijhawm me ntsis koj tuaj yeem ua cov kws tshaj lij saib pem hauv ntej vaj huam sib luag hauv tsev kom nthuav tawm koj txoj haujlwm tom ntej
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: 6 Kauj Ruam
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: Cov lus qhia no piav qhia yuav ua li cas thiaj tsim tau Arduino Robot uas tuaj yeem txav mus raws qhov xav tau (Forward, Backward) , Sab laug, Txoj Cai, Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) xav tau Kev nrug deb hauv Centimeters siv lub suab hais kom ua. Neeg hlau kuj tseem tuaj yeem txav tau tus kheej
Yuav Ua Li Cas Ua Ntej Ua Ntej Ua Ntej: 8 Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Ua Ntej Ua Ntej Ua Ntej Tsis Txaus Siab: BACKGROUND INFO: Kuv ib txwm ntxub lub suab nrov nrov ntawm txhua tus nas txij li thaum kuv tsis nyiam thab lwm tus neeg thaum kuv tab tom nyem rau hauv cov vis dis aus lossis yooj yim saib lub vev xaib. Vim li no, Kuv txiav txim siab hloov kho kuv thawj qhov kev ua si nas kom zoo rau
Arduino Nano thiab Visuino: Hloov Ua Ntej Los Ntawm Lub Cev Los Ntawm Accelerometer thiab Gyroscope MPU6050 I2C Sensor: 8 Kauj Ruam (nrog Duab)
Arduino Nano thiab Visuino: Hloov Ua Ntej Los Ntawm Lub Accelerometer thiab Gyroscope MPU6050 I2C Sensor: Ib pliag dhau los kuv tau tshaj tawm cov lus qhia yuav ua li cas koj tuaj yeem txuas MPU9250 Accelerometer, Gyroscope thiab Compass Sensor rau Arduino Nano thiab teeb tsa nws nrog Visuino kom xa cov ntaub ntawv pob thiab tso saib nws ntawm Scope thiab Visual Instruments.The Accelerometer xa X, Y