Cov txheej txheem:
- Kauj Ruam 1: Cheeb Tsam
- Kauj Ruam 2: Txuas MPU9250 Accelerometer Gyroscope Compass rau Arduino
- Kauj Ruam 3: Pib Visuino, thiab Xaiv Arduino Board Type
- Kauj Ruam 4: Hauv Visuino: Ntxiv thiab Txuas MPU9250 Cheebtsam
- Kauj Ruam 5: Hauv Visuino: Ntxiv thiab Txuas Pob Pob Cheeb Tsam
- Kauj Ruam 6: Hauv Visuino: Ntxiv 7 Binary Analog Elements rau Pob Ntawv Tiv Thaiv thiab Qhia Lawv Lub Npe
- Kauj Ruam 7: Hauv Visuino: teeb tsa Kev Pom Kev Pom Zoo ntawm Pob Ntawv Ntim rau Tus Ntsuas Kub
- Kauj Ruam 8: Hauv Visuino: Qhia Kom Paub Pob Pob Tshwj Xeeb
- Kauj Ruam 9: Hauv Visuino: Txuas MPU9250 Cheeb Tsam mus rau Cov Ntsiab Lus ntawm Pob Ntawv Sib Koom
- Kauj Ruam 10: Tsim, Ua Ke, thiab Tshaj Tawm Arduino Code
- Kauj ruam 11: Thiab Ua Si …
Video: Arduino Nano: Accelerometer Gyroscope Compass MPU9250 I2C Sensor Nrog Visuino: 11 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
MPU9250 yog ib qho ua tau zoo tshaj plaws ua ke Accelerometer, Gyroscope thiab Compass cov ntsuas me me tam sim no muaj. Lawv muaj ntau yam ua tau zoo, suav nrog kev lim qis dhau, tshawb pom cov lus pom, thiab txawm tias cov txheej txheem tshwj xeeb tuaj yeem ua haujlwm tau. Muaj ze li ntawm 130 tus neeg sau npe txawm li cas los xij, nrog ntau qhov chaw, lawv kuj nyuaj heev rau ua haujlwm nrog los ntawm cov cai.
Ob peb lub lis piam dhau los GearBest tau zoo txaus los pub dawb MPU9250 tus qauv los txhawb kev txhawb nqa ntxiv rau nws hauv Visuino. Nws siv 2 lub lis piam ntawm kev ua haujlwm hnyav, tab sis thaum kawg kuv tsis tsuas yog muaj kev txhawb nqa rau MPU9250 siv, tab sis kuv kuj tau ntxiv Kev Ua Kom Ncaj Ncees rau Lub Hloov Hloov, Ua Ntxiv (Thawj thiab Thib Ob Qhov Kev Txiav Txim), thiab Kalman lim dej uas tuaj yeem siv nrog nws txhawm rau txhim kho qhov tseeb
Nov yog thawj qhov kev qhia ntawm MPU9250 kev txhawb nqa tshiab hauv Visuino, thiab nws qhia tau hais tias nws yooj yim npaum li cas los siv nws nrog Visuino. Hauv Cov Lus Qhia hauv qab no kuv yuav qhia koj yuav ua li cas koj tuaj yeem siv Kev Hloov Kho Kom Ncaj Ncees hloov pauv, Ua kom sib haum thiab Kalman lim dej thiab tau txais txiaj ntsig zoo tiag tiag los ntawm koj lub ntsuas qhov ntsuas.
Kauj Ruam 1: Cheeb Tsam
- Ib lub rooj sib tham ntawm Arduino (Kuv siv Arduino Nano, vim tias kuv muaj ib qho, tab sis lwm qhov yuav zoo xwb)
- Ib qho MPU9250 Sensor Module (hauv kuv cov ntaub ntawv pub dawb los ntawm GearBest)
- 4 Poj niam-Poj niam jumper xov hlau
Kauj Ruam 2: Txuas MPU9250 Accelerometer Gyroscope Compass rau Arduino
- Txuas 5V VCC Fais Fab (Hlau liab), Hauv av (Hlau dub), SDA (Ntsuab hlau), thiab SCL (Hlau xaim), mus rau MPU9250 Module (Duab 1)
- Txuas lwm qhov kawg ntawm Cov Av Hauv av (Cov xaim dub) rau hauv av pin ntawm Arduino board (Daim duab 2)
- Txuas lwm qhov kawg ntawm 5V VCC Fais fab hlau (Liab hlau) mus rau 5V fais fab tus pin ntawm Arduino board (Daim duab 2)
- Txuas lwm qhov kawg ntawm SDA xaim (Green wire) rau SDA/Analog tus pin 4 ntawm Arduino Nano board (Daim duab 2)
- Txuas lwm qhov kawg ntawm SCL xaim (Hlau xaim) mus rau SCL/Analog tus pin 5 ntawm Arduino Nano board (Daim duab 2)
- Daim duab 3 qhia qhov twg yog Av, 5V Fais Fab, SDA/Analog pin 4, thiab SCL/Analog pin 5, tus pin ntawm Arduino Nano
Kauj Ruam 3: Pib Visuino, thiab Xaiv Arduino Board Type
Txhawm rau pib ua haujlwm rau Arduino, koj yuav tsum muaj Arduino IDE teeb tsa los ntawm no:
Nco ntsoov tias koj nruab 1.6.7 lossis siab dua, txwv tsis pub Cov Lus Qhia no yuav tsis ua haujlwm!
Visuino: https://www.visuino.com kuj tseem yuav tsum tau teeb tsa.
- Pib Visuino raws li qhia hauv daim duab thawj
- Nyem rau ntawm "Cov cuab yeej" khawm ntawm Arduino tivthaiv (Daim duab 1) hauv Visuino
- Thaum cov lus sib tham tshwm, xaiv Arduino Nano raws li qhia hauv daim duab 2
Kauj Ruam 4: Hauv Visuino: Ntxiv thiab Txuas MPU9250 Cheebtsam
- Ntaus "mpu" hauv lub thawv lim ntawm Cov Cuab Yeej Cuab Yeej ces xaiv "Accelerometer Gyroscope Compass MPU9250 I2C" tivthaiv (Daim duab 1), thiab tso rau hauv qhov chaw tsim (Daim duab 2)
- Txuas tus "Tawm" tus pin ntawm AccelerometerGyroscopeCompass1 tivthaiv mus rau "Hauv" tus pin ntawm I2C channel ntawm Arduino tivthaiv (Daim duab 3)
Kauj Ruam 5: Hauv Visuino: Ntxiv thiab Txuas Pob Pob Cheeb Tsam
Txhawm rau xa tag nrho cov ntaub ntawv cov ntaub ntawv hla cov chaw nres nkoj los ntawm Arduino peb tuaj yeem siv Packet tivthaiv los ntim cov channel ua ke, thiab tso saib lawv hauv Scope thiab Gauges hauv Visuino:
- Ntaus "pob" hauv Lub Lim Lim ntawm Lub Cuab Yeej Cuab Yeej ces xaiv "Pob" cov khoom siv (Daim duab 1), thiab tso nws rau hauv thaj chaw tsim
- Txuas "Out" tus pin tso tawm ntawm Packet1 tivthaiv rau "Hauv" tus pin nkag ntawm "Serial [0]" channel ntawm "Arduino" tivthaiv (Daim duab 2)
Kauj Ruam 6: Hauv Visuino: Ntxiv 7 Binary Analog Elements rau Pob Ntawv Tiv Thaiv thiab Qhia Lawv Lub Npe
- Nyem rau ntawm "Cov cuab yeej" khawm ntawm Packet1 tivthaiv (Daim duab 1)
- Hauv "Elements" tus kws kho mob xaiv lub "Binary Analog" lub ntsiab lus, thiab tom qab ntawd nyem rau ntawm "+" khawm (Daim duab 2) ntxiv cov khoom sib piv
- Hauv Tus Kws Tshuaj Ntsuam Xyuas teeb tsa "Lub Npe" cov khoom ntawm Analog Element rau "Compass (X)" (Daim duab 3)
- Hauv "Elements" tus kws kho mob xaiv lub "Binary Analog" keeb kwm ntawm sab xis, thiab tom qab ntawd nyem rau "+" khawm ntawm sab laug kom ntxiv lwm qhov sib piv
- Hauv Tus Kws Tshuaj Ntsuam Xyuas teeb tsa lub npe "Npe" ntawm cov khoom sib piv tshiab rau "Compass (Y)" (Daim duab 4)
- Hauv "Elements" tus kws kho mob xaiv lub "Binary Analog" keeb kwm ntawm sab xis, thiab tom qab ntawd nyem rau "+" khawm ntawm sab laug kom ntxiv lwm qhov sib piv
- Hauv Tus Kws Tshuaj Ntsuam Xyuas teeb tsa "Lub Npe" cov khoom ntawm cov khoom sib piv rau "Compass (Z)" (Daim duab 5)
- Rov ua cov kauj ruam tib yam ntxiv 7 ntxiv Binary Analog ntsiab lus hu ua "Accelerometer (X)", "Accelerometer (Y)", "Accelerometer (Z)", "Gyroscope (X)", "Gyroscope (Y)", "Gyroscope (Z) "thiab" Tus pas ntsuas kub "(Daim duab 6)
Kauj Ruam 7: Hauv Visuino: teeb tsa Kev Pom Kev Pom Zoo ntawm Pob Ntawv Ntim rau Tus Ntsuas Kub
Visuino los ntawm lub neej ntawd tuaj yeem tso saib cov khoom sib piv los ntawm cov khoom ntim hauv cov ntsuas. Nws yog qhov zoo txawm li cas los tso tawm qhov ntsuas kub hauv tus pas ntsuas kub. Visuino tso cai kev hloov kho ntawm txoj kev sib piv cov ntsiab lus tau tshwm sim.
- Hauv Elements editor, xaiv qhov kawg Analog lub npe hu ua "Thermometer" (Daim duab 1)
- Hauv Tus Kws Tshuaj Ntsuam Xyuas xaiv lub cuab yeej "Ntsuas" thiab nyem rau ntawm "xub nqis" khawm ntawm nws tus nqi (Daim duab 1)
- Los ntawm lub thawv nco cia xaiv "Tus pas ntsuas kub" (Daim duab 2)
- Hauv Tus Kws Saib Xyuas Lub Hom Phiaj nthuav cov cuab yeej "Ntsuas", tom qab ntawv "Nplai" cov khoom ntiag tug (Daim duab 3)
- Hauv Tus Kws Tshuaj Ntsuam Xyuas teeb tsa tus nqi ntawm "Auto" sub-property ntawm "Scale" mus rau qhov tsis tseeb (Daim duab 3) Qhov no yuav txwv tsis pub pib ntsuas rau tus pas ntsuas kub
- Hauv Tus Kws Tshuaj Ntsuam Xyuas teeb tsa "Max" cov khoom muaj nqis ntawm "Nplai" rau 100 (Daim duab 4) Qhov no yuav teeb tsa tus pas ntsuas kub kom muaj qhov ntsuas ntawm 0 txog 100
Kauj Ruam 8: Hauv Visuino: Qhia Kom Paub Pob Pob Tshwj Xeeb
Kom paub tseeb tias Visuino yuav pom qhov pib ntawm pob ntawv, peb yuav tsum muaj lub cim tshwj xeeb. Cov ntawv ntim khoom siv tshwj xeeb cov txheej txheem los xyuas kom meej tias lub cim cim npe tsis tshwm nyob hauv cov ntaub ntawv.
- Xaiv Packet1 tivthaiv (Daim duab 1)
- Hauv Tus Kws Saib Xyuas Lub Hom Phiaj nthuav cov cuab yeej "Head Marker" (Daim duab 1)
- Hauv Tus Kws Tshuaj Ntsuam Xyuas nyem rau ntawm "…" khawm (Daim duab 1)
- Hauv Bytes editor ntaus qee tus lej, piv txwv 55 55 (Daim duab 2)
- Nyem rau ntawm lub pob OK kom paub meej thiab kaw tus editor
Kauj Ruam 9: Hauv Visuino: Txuas MPU9250 Cheeb Tsam mus rau Cov Ntsiab Lus ntawm Pob Ntawv Sib Koom
- Nyem rau hauv "Tawm" lub thawv uas muaj tus pin ntawm "Compass" ntawm AccelerometerGyroscopeCompass1 tivthaiv kom pib txuas txhua tus Pins tawm ib zaug (Duab 1)
- Tsiv tus nas hla "Hauv" tus pin ntawm "Elements. Compass (X)" keeb kwm ntawm Packet1 tivthaiv. Lub Visuino yuav cia li kis cov xov hlau kom lawv yuav txuas tau raug mus rau lwm tus pin (Daim duab 1)
- Nyem rau hauv "Tawm" lub thawv uas muaj tus pin ntawm "Accelerometer" ntawm AccelerometerGyroscopeCompass1 tivthaiv kom pib txuas txhua tus Pin tawm ib zaug (Duab 2)
- Tsiv tus nas hla "Hauv" tus pin ntawm "Elements. Accelerometer (X)" ntawm Packet1 tivthaiv. Lub Visuino yuav cia li kis cov xov hlau kom lawv yuav txuas tau raug mus rau lwm tus pin (Daim duab 2)
- Nyem rau hauv "Tawm" lub thawv uas muaj cov pins ntawm "Gyroscope" ntawm AccelerometerGyroscopeCompass1 tivthaiv kom pib txuas txhua tus Pins tawm ib zaug (Duab 3)
- Tsiv tus nas hla "Hauv" tus pin ntawm "Elements. Gyroscope (X)" lub ntsiab lus ntawm Packet1 tivthaiv. Lub Visuino yuav cia li kis cov xov hlau kom lawv yuav txuas tau raug mus rau cov koob ntxiv (Daim duab 3)
- Txuas tus "Tawm" tus pin ntawm "Tus pas ntsuas kub" ntawm AccelerometerGyroscopeCompass1 tivthaiv rau "Hauv" tus pin ntawm "Elements. Thermometer" tus pin nkag ntawm Packet1 tivthaiv (Daim duab 4)
Kauj Ruam 10: Tsim, Ua Ke, thiab Tshaj Tawm Arduino Code
- Hauv Visuino, Nias F9 lossis nyem rau ntawm lub pob uas qhia ntawm daim duab 1 los tsim Arduino code, thiab qhib Arduino IDE
- Hauv Arduino IDE, nyem rau ntawm Upload khawm, txhawm rau sau thiab xa cov cai (Daim duab 2)
Kauj ruam 11: Thiab Ua Si …
- Hauv Visuino xaiv ComPort, thiab tom qab ntawd nyem rau ntawm "Format:" drop down box, thiab xaiv Packet1 (Daim duab 1)
- Nyem rau ntawm "Txuas" khawm (Daim duab 1)
- Yog tias koj xaiv qhov "Scope" tab, koj yuav pom Lub Scope phiaj xwm X, Y, Z qhov tseem ceeb los ntawm Accelerometer, Gyroscope, thiab Compass, ntxiv rau Kub li lub sijhawm (Daim duab 2)
- Yog tias koj xaiv lub "Ntsuas" tab, koj yuav pom Tus pas ntsuas kub thiab Gauges qhia tib cov ntaub ntawv (Duab 3)
Koj tuaj yeem pom qhov txuas thiab khiav MPU9250 Accelerometer, Gyroscope thiab Compass sensor ntawm daim duab 4.
Nrog koj zoo siab! Koj tau tsim MPU9250 Accelerometer, Gyroscope thiab Compass ntsuas qhov haujlwm hauv Arduino, nrog Kev Pom Pom Pom Pom.
Ntawm daim duab 5 koj tuaj yeem pom daim duab Visuino tiav.
Kuj txuas nrog yog Visuino qhov haujlwm, uas kuv tau tsim rau qhov Qhia Qhia no. Koj tuaj yeem rub tawm thiab qhib nws hauv Visuino:
Pom zoo:
Kev cuam tshuam ntawm 3-Axis Gyroscope Sensor BMG160 Nrog Arduino Nano: 5 Kauj Ruam
Kev cuam tshuam ntawm 3-Axis Gyroscope Sensor BMG160 Nrog Arduino Nano: Hauv ntiaj teb niaj hnub no, ntau dua ib nrab ntawm cov tub ntxhais hluas thiab menyuam yaus nyiam ua si thiab txhua tus neeg uas nyiam nws, nyiam los ntawm cov txuj ci ntawm kev ua si paub qhov tseem ceeb ntawm kev hnov lus hauv tus sau no. Peb kuj tseem xav tsis thoob los ntawm tib yam thiab
Tutorial to Interface HMC5883L Compass Sensor Nrog Arduino: 10 Kauj Ruam (nrog Duab)
Tutorial to Interface HMC5883L Compass Sensor Nrog Arduino: Nqe lus piav qhia HMC5883L yog 3-axis digital compass siv rau ob lub hom phiaj dav dav: txhawm rau ntsuas cov hlau nplaum ntawm cov khoom sib nqus zoo li ferromagnet, lossis ntsuas lub zog thiab, qee zaum, kev coj ua ntawm magnetic teb ntawm ib qho taw tes hauv s
MPU6050-Accelerometer+Gyroscope Sensor Basics: 3 Kauj Ruam
MPU6050-Accelerometer+Gyroscope Sensor Basics: MPU6050 yog qhov muaj txiaj ntsig zoo tshaj plaws.Mpu 6050 yog IMU: Chav ntsuas inertial (IMU) yog lub tshuab hluav taws xob uas ntsuas thiab tshaj tawm lub cev tshwj xeeb quab yuam, tus nqi kaum, thiab qee zaum kev qhia ntawm lub cev, siv kev sib xyaw
SmartPhone Game Simulator- Ua Si Windows Ua Si Siv Gesture Control IMU, Accelerometer, Gyroscope, Magnetometer: 5 Kauj Ruam
SmartPhone Game Simulator- Ua Si Windows Games Siv Kev Siv Tes Taw IMU, Accelerometer, Gyroscope, Magnetometer: Txhawb txoj haujlwm no: https://www.paypal.me/vslcreations los ntawm kev pub dawb rau qhib qhov chaws & txhawb nqa kev txhim kho ntxiv
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