Cov txheej txheem:

Qaij Compassated Compass Nrog LSM303DHLC: 3 Kauj Ruam
Qaij Compassated Compass Nrog LSM303DHLC: 3 Kauj Ruam

Video: Qaij Compassated Compass Nrog LSM303DHLC: 3 Kauj Ruam

Video: Qaij Compassated Compass Nrog LSM303DHLC: 3 Kauj Ruam
Video: Looj mem qua tsev 2024, Hlis ntuj nqeg
Anonim
Tilt Compensated Compass Nrog LSM303DHLC
Tilt Compensated Compass Nrog LSM303DHLC

Hauv Cov Lus Qhia Kuv xav qhia yuav siv lub LSM303 sensor li cas kom paub qhov qaij nyiaj tau los. Tom qab thawj zaug (tsis ua tiav) kuv tau daws qhov ntsuas ntawm lub ntsuas. Ua tsaug rau cov no, qhov tseem ceeb ntawm lub tshuab ntsuas hluav taws xob tau zoo dua qub. Kev sib xyaw ua ke ntawm qhov ntsuas qhov ntsuas los ntawm lub ntsuas hluav taws xob thiab lub ntsuas hluav taws xob tom qab ntawd ua rau lub qaij qaij nyiaj tau los.

Koj xav tau dab tsi:

1 Arduino UAS

1 LSM303DHLC Breakout

1 Cov qhob cij

1 Tus tiv thaiv 220 Ohm

1 Potentiometer 10k

1 2x16 LCD hauv 4-ntsis hom

1 Cov ntaub ntawv ntawv

1 Compass

1 Protractor

Qee cov xov hlau

Kauj Ruam 1: Tsim Cov Ntaub Ntawv Raw rau Calibration

Tsim Cov Ntaub Ntawv Raw rau Calibration
Tsim Cov Ntaub Ntawv Raw rau Calibration
Tsim Cov Ntaub Ntawv Raw rau Calibration
Tsim Cov Ntaub Ntawv Raw rau Calibration
Tsim Cov Ntaub Ntawv Raw rau Calibration
Tsim Cov Ntaub Ntawv Raw rau Calibration
Tsim Cov Ntaub Ntawv Raw rau Calibration
Tsim Cov Ntaub Ntawv Raw rau Calibration

Kev ntsuas ntsuas tau ua tiav cais rau lub ntsuas hluav taws xob thiab lub ntsuas hluav taws xob txhua lub sijhawm hauv tib txoj hauv kev. Tom qab ntawd cov ntaub ntawv kho tau suav nrog kev pab los ntawm Magmaster 1.0 (Daim Duab 5.3) thiab tuaj yeem tshuaj xyuas hauv daim duab sib piv. Koj tuaj yeem pom phau ntawv qhia zoo heev ntawm no

www.instructables.com/id/Easy-hard-and-soft-iron-magnetometer-calibration/

Ua tsaug YuriMat!

Arduino kos duab "LSM303DHLC_Acc_andMag_Raw_Measurements_201218.ino" muab cov ntaub ntawv raw xav tau. Txog qhov no koj tuaj yeem xaiv qhov chaw hauv kab 17.

Rau kev ua haujlwm nrog Magmaster 1.0 thov kaw qhov Serial Monitor window.

Kauj Ruam 2: Tsim Kev Ntsuas Ntsuas

Tsim Kev Ntsuas Calibrated
Tsim Kev Ntsuas Calibrated
Tsim Kev Ntsuas Calibrated
Tsim Kev Ntsuas Calibrated

Txhawm rau kom tau txais kev ntsuas ntsuas ntawm lub tshuab ntsuas hluav taws xob thiab lub ntsuas hluav taws xob hloov pauv qhov tseem ceeb hauv kev hloov pauv qhov sib txawv thiab kev tsis ncaj ncees hauv Arduino daim duab "LSM303DHLC_Tilt_compensated_Compas_211218", kab 236 - 246 rau Magnetometer, 268 - 278 rau Accelerometer.

Raws li kev txheeb xyuas, daim duab kos tseem muab kev sib piv ntawm cov ntaub ntawv nyoos thiab ntsuas qhov ntsuas qhov ntsuas. Ib qho ntxiv, koj tuaj yeem tshawb xyuas qhov nyeem nrog lub koob thiab tus tiv thaiv.

Kauj ruam 3: Ntxiv LCDisplay

Ntxiv ib qho LCDisplay
Ntxiv ib qho LCDisplay
Ntxiv ib qho LCDisplay
Ntxiv ib qho LCDisplay

LC cov duab tau siv los tso saib txoj haujlwm tam sim no txheeb ze rau lub ntiaj teb qhov chaw sib nqus. X-axis ntawm lub ntsuas ntsuas mus rau sab qaum teb, qhov 0 ° sib raug rau sab qaum teb sib nqus. Tus nqi nce los ntawm kev tig clockwise rau 360 °. Qhov xav tau ntawm lub ntsuas tau zoo them, tab sis yuav tsum tsis pub tshaj 45 °.

Kev sib txuas ntawm 16x2 LC zaub yog tus qauv thiab piav qhia zoo hauv qab no Arduino qhia:

www.arduino.cc/en/Tutorial/HelloWorld

Kuv vam tias kuv tuaj yeem txhawb koj rau Kev Qhia Tshiab thiab kuv tos ntsoov rau koj cov phiaj xwm.

Pom zoo: