Cov txheej txheem:

Ntau yam IR Kub Sensors - MLX90614: 4 Cov Kauj Ruam
Ntau yam IR Kub Sensors - MLX90614: 4 Cov Kauj Ruam

Video: Ntau yam IR Kub Sensors - MLX90614: 4 Cov Kauj Ruam

Video: Ntau yam IR Kub Sensors - MLX90614: 4 Cov Kauj Ruam
Video: Casio G-Shock Mudmaster vs Gulfmaster | G Shock GWG-1000 Mudmaster vs G Shock GWN-1000 Gulfmaster 2024, Kaum ib hlis
Anonim
Ntau IR Cov Ntsuas Kub Kub - MLX90614
Ntau IR Cov Ntsuas Kub Kub - MLX90614

Nov yog cov lus qhia ceev yuav ua li cas teeb tsa ntau yam MLX90614B kev sib cuag-tsis muaj qhov ntsuas kub ntawm I2C npav nrog Arduino uno thiab tso saib cov ntawv nyeem ntawm tus saib xyuas ntawm Arduino IDE. Kuv tab tom siv cov laug cam ua ntej, tab sis yog tias koj yuav lub ntsuas hluav taws xob los ntawm nws tus kheej koj yuav xav tau rub cov neeg tawm tsam rau I2C lub npav thiab lub tshuab txiav tawm ntawm Vdd thiab Vss.

Kuv pom zoo kom txheeb xyuas daim ntawv teev npe Melexis vim tias kuv yuav tsis nkag mus rau hauv cov ntsiab lus ntawm txhua qhov tshwj xeeb thiab kev zam ntawm cov neeg laus.

Khoom siv

x 1 tab

x8 Jumper Xov

x6 ploj

x3 MLX90614 qhov ntsuas kub tsis sib xws

x1 Arduino UNO R3

(Yog tias koj muaj MLX90614 tsis muaj pawg thawj coj saib)

x2 (4.7k ohm resistors)

x3 (.01 uf Capacitors)

Kauj Ruam 1: Tsuas yog Txuas Ib:

Tsuas yog Txuas Ib
Tsuas yog Txuas Ib

Daim duab saum toj no yog ua raws cov ntawv txheeb xyuas cov lus pom zoo rau tus kheej ib leeg. Yog tias koj muaj lub ntsuas hluav taws xob nrog lub rooj sib tham ua ntej ces koj xaim SLC los ntawm pawg thawj coj mus rau tus pin A5 ntawm Arduino, SDA rau tus pin A4, Vin mus rau 3.3V tus pin, thiab GND mus rau GND davhlau ya nyob twg ntawm Arduino.

Peb yuav xav hloov chaw nyob ntawm cov neeg laus yog tias peb xav siv ntau lub ntsuas hluav taws xob ntawm tib lub tsheb npav I2C, tab sis koj tsuas tuaj yeem rov sau dua ib zaug

Kauj Ruam 2: Hloov Chaw Nyob (Coding)

Hloov Chaw Nyob (Coding)
Hloov Chaw Nyob (Coding)

Hmoov zoo rau peb txhua tus ntawm peb qhov xav tau coding hauv txoj haujlwm no muaj cov tsev qiv ntawv rau txhua qib.

Koj tuaj yeem nrhiav pom lub tsev qiv ntawv sparkfun hauv "Manage Libraries" hauv cov cuab yeej los ntawm kev nthuav tawm rau MLX90614 hauv Arduino IDE lossis koj tuaj yeem luam daim nplaub tshev uas kuv tau muab hauv zip file rau "Document/Arduino/libraries" ntawm qhov rais.

Cov ntaub ntawv hu ua "MLX90614_Set_Address.ino" lossis koj tuaj yeem nrhiav "set_address" cov ntaub ntawv hauv qab "piv txwv" poob rau hauv IDE. Tom qab txhua qhov nws ncaj ncaj rau pem hauv ntej, lub hauv paus/chaw nyob yog "0x5A" thiab tom qab ntawd rau "newaddress" qhov sib txawv koj tuaj yeem hloov nws mus rau qhov chaw nyob uas koj xav tau muab cov kev txwv ntawm cov ntawv thiab tsuas yog xyuas kom lawv txhua tus sib txawv ntawm ib leeg. Tshaj tawm cov cai rau Arduino, qhib qhov saib hauv qab hauv cov cuab yeej thiab ntaus "e" rau hauv kab ntawv saib thiab ntaus nkag, nws yuav tsum qhia koj tias qhov chaw nyob tau hloov pauv thiab tshem tawm MLX90614 los ntawm lub zog.

Kauj Ruam 3: Txuas Txhua Lub Sensors:

Txuas tag nrho cov Sensors
Txuas tag nrho cov Sensors

Tib txoj hauv kev zoo li zaum kawg yog tias koj muaj lub ntsuas hluav taws xob ib leeg ua raws daim duab saum toj no, yog tias koj muaj cov laug cam ces koj tuaj yeem txuas lawv ua ke thiab tom qab ntawd txuas qhov kawg ib yam li nws yog ib qho sensor rau Arduino.

Kauj Ruam 4: Qhov Kawg Kawg:

Qhov Kawg Kawg
Qhov Kawg Kawg

Txog qhov tau ua tiav cov cuab yeej kuv yuav tsum hloov kho lub tsev qiv ntawv los ntawm Adafruit kom ua haujlwm ntau lub ntsuas, yog li koj yuav tsum teeb tsa lub tsev qiv ntawv ntawm tus kheej los ntawm cov ntawv zip kuv tau muab, piv txwv li txav cov ntawv "Adafruit_MLX90614_Library" rau hauv koj li Arduino cov tsev qiv ntawv raws li tau hais hauv kauj ruam 2. Tom ntej no, qhib "SiMlx.ino" thiab xyuas kom cov chaw nyob sib haum nrog cov uas koj tau hloov koj lub cim rau, tom qab ntawd hla cov chaw nyob sib cais thiab ua ntu zus los ntawm "mlx. AddrSet ()" tus qauv kuv tau muab. Tshaj tawm nws mus rau Adruino thiab nws yuav tsum luam tawm mus rau tus saib xyuas raws li pom saum toj no.

Kuv teeb tsa tsuas yog peb leeg, tab sis koj tuaj yeem muaj ntau dua los ntawm kev luam thiab muab tso rau txhua qhov chaws thaiv, txheeb xyuas qhov chaw nyob ntau dua thiab hloov tus lej ntawm qhov ntsuas rau qhov nruab nrab, yog tias koj xav tau qhov nruab nrab.

Kuv pom cov ntsuas hluav taws xob kom raug qhov tseeb yog tias kuv tsis muaj lawv xaim mus kom deb ntawm ib leeg.

Hmoov zoo.

Pom zoo: