Cov txheej txheem:

IR Lub Koob Yees Duab Kub: 16 Kauj Ruam
IR Lub Koob Yees Duab Kub: 16 Kauj Ruam

Video: IR Lub Koob Yees Duab Kub: 16 Kauj Ruam

Video: IR Lub Koob Yees Duab Kub: 16 Kauj Ruam
Video: Sib Hawm Dhau (Time Passed) Music Video by: Deeda/Dib Xwb 2024, Hlis ntuj nqeg
Anonim
IR Lub Koob Yees Duab Kub
IR Lub Koob Yees Duab Kub
IR Lub Koob Yees Duab Kub
IR Lub Koob Yees Duab Kub

Koj puas tau saib cov yeeb yaj kiab sci-fi lossis cov yeeb yaj kiab ua yeeb yam, qhov twg cov cim txav mus rau hauv chav dub thiab hloov ntawm lawv "kev pom kev sov"? Puas yog koj puas tau ua si Metroid Prime thiab nco txog lub qhov cua sov uas lub cim tseem ceeb tau txais?

Zoo kuv tau ua ob qho ntawm cov no thiab xav tias nws zoo dua. Pom lub teeb pom kev yog txoj hauv kev zoo rau peb siv peb lub qhov muag kom pom lub ntiaj teb ib puag ncig peb, tab sis muaj qee qhov tsis txaus ntawm peb qhov kev hloov pauv tam sim no ntawm lub lens muag muag, uas yog nws tsis ua haujlwm yam tsis pom lub teeb tau qhia rau peb lub kaw lus. Nws tseem tuaj yeem cuam tshuam qhov txawv thiab cuam tshuam cov duab uas tau ntes los ntawm nws.

Cov koob yees duab cua sov tsis muaj cov teeb meem no, lawv pom lub teeb pom kev deb ntawm lub teeb uas ib txwm tso los ntawm lub cev sov. Qhov no txhais tau tias lawv ua haujlwm hauv qhov tsaus ntuj, thiab lawv tsis tshua muaj kev cuam tshuam los ntawm qhov chaw ntau npaum li pom lub teeb nthwv dej ua. Qhov no ua rau lawv siv tau thaum tsis muaj lub teeb pom kev pom lub cev sov, nrog rau nws tuaj yeem siv kom raug dua taug qab cov kinematics ntawm lub cev sov hauv kev txav mus kom raug ntau dua li lub koob yees duab zoo ib yam.

Peb txiav txim siab ua lub koob yees duab cua sov vim tias peb xav tias nws yuav yog qhov nthuav dav ntawm kev xa IR cov tswv yim los ua qhov pom kev. Peb tau siv cov khoom me me ntawm IR cov cim hu ua Grid Eye AMG8833 thiab lub khoos phis tawj me me hu ua Raspberry Pi uas muaj peev xwm nthuav tawm tsuas yog 8x8 cov tswv yim ntawm AMG8833 rau qhov tso tawm ntawm 32x32, uas muab kev daws teeb meem zoo rau cov duab screen tsim tawm.

Nov yog peb cov lus qhia ua lub koob yees duab cua sov me me, siv qhov no ua rau koj cov phooj ywg zoo lossis ua tus thawj hauv qee yam kev ua si sab hauv tsev ua si hauv qhov tsaus ntuj, txawm hais tias koj yuav tau nrhiav lub zog nqa tau txaus los khiav Pi.

Kauj Ruam 1: Kev Npaj & Kev Nyab Xeeb

Ua ntej koj pib, koj yuav tsum paub:

Infrared Radiation, lossis IR, yog hom teeb ci uas tawg los ntawm ib yam khoom vim nws lub zog cua sov. IR Sensor tuaj yeem tshawb pom qhov hluav taws xob no, thiab tom qab ntawd xav tau cov phiaj xwm los teeb tsa lub teeb liab thiab tso duab.

Lub vev xaib no muab cov software los ua daim npav SD:

www.sdcard.org/downloads/formatter_4/index…

Lub vev xaib no muab NOOBS OS los ua haujlwm Raspberry Pi:

www.raspberrypi.org/downloads/noobs/

Cov ntaub ntawv ntxiv txog AMG8833 IR sensor tuaj yeem pom ntawm no:

learn.adafruit.com/adafruit-amg8833-8x8-thermal-camera-sensor

Kev Nyab Xeeb: Nws tau qhia tias koj txuas lub xov tooj hluav taws xob ua ntej ntsaws rau hauv Raspberry Pi. Peb kuj qhia tias koj khaws lub rooj sib dhos ua ke nyob rau hauv ib puag ncig los tiv thaiv cov cuab yeej los ntawm cov dej tsis huv, cuam tshuam, thiab kua. Thaum kawg, tsis txhob ntsaws USB kom kaw Raspberry Pi, vim qhov no tuaj yeem ua rau lub cuab yeej puas. Hloov chaw, siv "kaw tam sim no" hais kom ua.

Kauj Ruam 2: Sau tag nrho Cov Cheeb Tsam Tsim Nyog thiab Cov Cuab Yeej

Nco ntsoov tias koj muaj txhua yam hauv qab no:

-2.8 PiTFT touchscreen zaub (https://www.adafruit.com/product/1983)

-Adafruit AMG8833 8x8 Thermal Camera Sensor (https://www.adafruit.com/product/3538)

-Pi T-Cobbler+ thiab 40 tus pin ribbon cable (https://www.adafruit.com/product/2028)

-Raspberry Pi 3 B+ (https://www.adafruit.com/product/3775)

-4 poj niam/poj niam jumper xov hlau

-MicroSD daim npav thiab adapter (https://www.amazon.com/Samsung-MicroSD-Adapter-MB…)

Kuj xyuas kom koj muaj tag nrho cov cuab yeej hauv qab no rau kev sib dhos thiab kev teeb tsa:

-Computer nrog internet nkag tau

-Mini USB cable

-Cov keyboard

-Mus

Kauj Ruam 3: Txuas PiTFT rau Cobbler

Txuas PiTFT rau Cobbler
Txuas PiTFT rau Cobbler

Siv 40 tus pin kab txuas txuas rau PiTFT txiv neej 40 tus pin txuas rau Cobbler 40 tus pin txuas. Nco tseg: cov xaim dawb ntawm 40 tus lej xov tooj yuav tsum tau muab tso raws li daim duab.

Kauj Ruam 4: Txuas PiTFT Zaub rau Raspberry Pi

Txuas PiTFT Zaub rau Raspberry Pi
Txuas PiTFT Zaub rau Raspberry Pi
Txuas PiTFT Zaub rau Raspberry Pi
Txuas PiTFT Zaub rau Raspberry Pi

Txuas tus PiTFT Zaub ncaj qha rau Raspberry Pi los ntawm kab hauv 40 tus poj niam txuas rau ntawm PiTFT nrog tus txiv neej nce ntawm Raspberry Pi.

Kauj Ruam 5: Txuas 8x8 Thermal Camera Sensor rau Cobbler

Txuas 8x8 Thermal Camera Sensor rau Cobbler
Txuas 8x8 Thermal Camera Sensor rau Cobbler
Txuas 8x8 Thermal Camera Sensor rau Cobbler
Txuas 8x8 Thermal Camera Sensor rau Cobbler

Siv plaub tus poj niam/poj niam jumper xov txuas rau 8x8 Thermal Camera Sensor rau Cobbler.

Vin txuas rau 5V ntawm Cobbler, thiab tus so ntawm tus pin sib phim nrog tib daim ntawv lo ntawm txhua tus pin ntawm lub koob yees duab cua sov thiab ntawm Cobbler. Cov "3Vo" thiab "INT" tus pin ntawm lub koob yees duab cua sov tau tso tseg yam tsis muaj kev cuam tshuam.

Qhov ua tiav Circuit Court yog qhia saum toj no.

Kauj Ruam 6: Rub SD daim npav nco daim ntawv

Rub tawm SD Memory Card Formatter
Rub tawm SD Memory Card Formatter

Qhib qhov chaw https://www.sdcard.org/downloads/formatter_4/index.html thiab rub daim SD Card Formatter siv cov ntaub ntawv tsim nyog rau koj lub khoos phis tawj.

Kauj ruam 7: Format SD Card

Format SD Card
Format SD Card

Qhib SD Card Downloader program hauv koj lub computer thiab xaiv daim npav, tom qab ntawd xaiv "Overwrite format" thiab khiav qhov program. Qhov no yuav faib daim npav SD rau qee yam hu ua Fat32, uas yog yam xav tau los tso OS rau ntawm daim npav.

Kauj ruam 8: Download Noobs

Download Noob
Download Noob
Download Noob
Download Noob
Download Noob
Download Noob

Mus rau https://www.raspberrypi.org/downloads/noobs/ thiab rub cov ntawv zip rau Noobs software.

Qhib lub zip nplaub tshev los ntawm koj cov rub tawm thiab nyem rho tawm. Ntxiv lub npe "Noobs" mus rau qhov kawg ntawm lub hom phiaj lub npe kom tsim cov nplaub tshev tshiab tuav cov ntaub ntawv rho tawm.

Kauj ruam 9: Tau txais OS rau ntawm Raspberry Pi

Tau txais OS Onto rau Raspberry Pi
Tau txais OS Onto rau Raspberry Pi

Luam cov ntaub ntawv rho tawm los ntawm Noobs nplaub tshev rau hauv daim ntawv SD daim ntawv. Tshem tawm daim npav SD thiab ntxig rau hauv Raspberry Pi. Txuas tus Pi mus rau tus saib ntawm HDMI thiab tom qab ntawd ua kom lub zog Pi los ntawm ntsaws nws rau hauv lub khoos phis tawj ntawm USB. Koj yuav xav nqes nws mus rau nas thiab keyboard ib yam. Ua raws li cov lus qhia khau raj thiab teeb tsa "Raspbian OS" Nco ntsoov xaiv cov keyboard keyboard "American English." Qhov no yuav tso OS rau Raspberry Pi thiab qhib lub vijtsam desktop.

Kauj ruam 10: Teeb tsa PiTFT

Teeb tsa PiTFT
Teeb tsa PiTFT
Teeb tsa PiTFT
Teeb tsa PiTFT
Teeb tsa PiTFT
Teeb tsa PiTFT

Qhib kev sib txuas hauv is taws nem thiab ua kom ntseeg tau tias Pi tau nkag mus rau internet.

Qhib Terminal khawm nyob rau sab saum toj ntawm lub desktop thiab ntaus hauv cov cai hauv qab no:

cd ~ ib

wget

chmod +x adafruit-pitft.sh

sudo./adafruit-pitft.sh

Tom qab ntawd thaum txoj haujlwm pib, rau yam peb xav tau hom 1 tom qab ntawd nkag mus rau thawj lo lus nug, 1 thiab nkag dua rau zaum thib ob.

Teeb meem daws teeb meem: yog tias koj tau txais qhov yuam kev hais tias muaj cov ntaub ntawv ploj lawm, saib cov kauj ruam tom ntej thiab tom qab ntawd rov qab mus rau qhov no, pib dua nrog "sudo./adafruit-pitft.sh"

Thaum nug yog tias koj xav kom lub console tshwm ntawm lub qhov taub, ntaus "y" thiab tom qab ntawd ntaus nkag.

Tom qab ntawv ntaus "y" thaum nug reboot tam sim no.

Kauj Ruam 11: Yog tias Koj Tau Txais Qhov Yuam Kev Teeb Tus PiTFT …

Yog tias Koj Tau Txais Qhov Ua Yuam Kev Tsim Tus PiTFT…
Yog tias Koj Tau Txais Qhov Ua Yuam Kev Tsim Tus PiTFT…

NOOBS zoo li yuav muaj qee qhov system cov ntaub ntawv uas tsim nyog los khiav cov software pitft, yog tias koj tau txais qhov yuam kev ntawm qee kis thaum lub sijhawm kawg, cov no yog cov lus qhia txhawm rau kho qhov yuam kev. Qhov teeb meem yog tias yuav tsum muaj cov ntaub ntawv ntxiv hauv ib lub chaw tshwj xeeb, qhib lub chaw cia khoom los ntawm kev ntaus hauv cov lus txib hauv qab no:

sudo nano /etc/apt/sources.list

Qhov no yuav qhib tus kws kho lub davhlau ya nyob twg rau lub chaw cia khoom no thiab koj tuaj yeem ntxiv cov ntaub ntawv ntawm no los ntawm kev ntxig kab ntxiv. Cov kab ntxiv tau muab rau koj los ntawm cov lus yuam kev suav nrog qhov chaw ntawm cov ntaub ntawv, qhov no yog kab uas kuv yuav tsum tau ntaus rau kom tau txais kuv cov ntaub ntawv uas ploj lawm:

deb https://mirrordirector.raspbian.org/raspbian ncab lub hauv paus tseem ceeb tsis pub dawb rub tawm firmware

Txhawm rau txuag qhov kev hloov pauv no, cov lus txib tseem ceeb yog ctrl+O rau "Sau Tawm", tom qab ntawd ctrl+T tom qab nkag mus nrhiav cov ntaub ntawv, tom qab ntawd rov sau dua cov ntawv qub hauv daim nplaub tshev tsim nyog. Nco tseg, "cov ntaub ntawv tsim nyog" yog lub npe ntawm cov ntaub ntawv koj tau qhib, aka "/etc/apt/sources.list" Nco ntsoov tsis xaiv.d version ntawm cov ntawv. Tom qab ntawd kaw lub qhov rais ib zaug nws tau txais kev cawmdim.

Rov qab mus rau cov kauj ruam dhau los kom ua tiav cov txheej txheem ntawm teeb tsa lub qhov taub.

Kauj Ruam 12: Hloov Kho Pi thiab Tau Txais Qhov Tsim Nyog Software

Hloov kho Pi thiab Tau Txais Qhov Tsim Nyog Software
Hloov kho Pi thiab Tau Txais Qhov Tsim Nyog Software

Txij ntawm no mus, PiTFT yuav yog koj lub console.

Teeb meem daws teeb meem: yog tias koj muaj teeb meem kev khiav haujlwm tsuas yog siv PiTFT console, koj tuaj yeem ntaus qhov hais kom ua startx kom qhib lub desktop tag nrho dua.

Txhawm rau hloov kho Pi, ntaus hauv cov lus txib no:

sudo apt-tau hloov tshiab

Tom qab ntawd thaum Pi tau hloov kho tshiab, peb yuav teeb tsa software rau siv AMG8833. Ntaus cov lus txib hauv qab no:

sudo apt-tau nruab -y tsim-qhov tseem ceeb sej-pip nab nab-dev nab nab-smbus git

git clone

cd Adafruit_Python_GPIO

sudo python setup.py nruab

sudo apt-tau nruab -y python-scipy python-pygame

sudo pip nruab xim Adafruit_AMG88xx

Kauj Ruam 13: Pab I2C Tsheb Npaum Kom Tso Kev Sib Tham Nrog AMG8833

Pab kom lub npav I2C tso cai rau kev sib txuas lus nrog AMG8833
Pab kom lub npav I2C tso cai rau kev sib txuas lus nrog AMG8833
Pab kom lub npav I2C tso cai sib txuas lus nrog AMG8833
Pab kom lub npav I2C tso cai sib txuas lus nrog AMG8833
Pab kom lub npav I2C tso cai rau kev sib txuas lus nrog AMG8833
Pab kom lub npav I2C tso cai rau kev sib txuas lus nrog AMG8833

Txhawm rau qhib lub npav I2C, peb yuav tsum hloov pauv Pi tus qauv.

Hom:

sudo raspi-teeb tsa

Tom qab ntawd siv tus xub xub coj mus rau qhov kev xaiv thib 5 nyeem "Kev xaiv cuam tshuam" thiab ntaus nkag.

Nkag mus rau P5 "I2C" thiab ntaus nkag.

Pab kom I2C los ntawm kev ntaus nkag rau ntawm "Yog" qhov kev xaiv ntawm kev pab nug.

Ntaus nkag thaum nws hais tias nws tau qhib.

Siv txoj cai thiab sab laug xub mus rau "ua tiav" tom qab ntawd ntaus nkag mus tawm ntawm qhov teeb tsa. qhov rais

Kauj Ruam 14: Txheeb xyuas tias lub Sensor tau txuas thiab tshawb pom los ntawm I2C

Txheeb xyuas tias lub Sensor tau txuas thiab tshawb pom los ntawm I2C
Txheeb xyuas tias lub Sensor tau txuas thiab tshawb pom los ntawm I2C

Txhawm rau txheeb xyuas qhov no ua ntej mus txuas ntxiv, sau cov lus txib:

sudo i2cdetect -y 1

Yog tias ib qho pom tshwm nrog tsuas yog dashes tshwj tsis yog rau 69 hauv kab hauv qab ntawm kab 9, tom qab ntawd koj lub kaw lus ua haujlwm tau zoo.

Kauj Ruam 15: Siv Lub Koob Yees Duab

Siv Lub Koob Yees Duab
Siv Lub Koob Yees Duab
Siv Lub Koob Yees Duab
Siv Lub Koob Yees Duab

Txhawm rau pib lub koob yees duab, sau cov lus txib:

Kev daws teeb meem: Rau theem no, Pi siv tus keyboard Askiv uas siv Shift+\ los ntaus "~" (forwardslash yog tus yuam sij nruab nrab ntawm backspace thiab nkag rau ntawm cov keyboard)

cd ~// tso

git clone

cd Adafruit_AMG88xx_python/piv txwv

sudo python thermal_cam.py

Qhov no yuav qhib lub qhov rooj lub koob yees duab. Tam sim no koj muaj lub koob yees duab cua sov ua haujlwm, xav tias dawb los taw qhia nws ntawm yam khoom.

Tsis tas li ntawd txij li peb tsuas yog siv lub qhov taub ua cov zaub, koj yuav xav tau lub cev txuas lub zog rau AMG8833 txhawm rau rov qab mus rau qhov hais kom ua qhov rai qhov rai. Ib zaug rov qab rau lub qhov rai hais kom ua, yog tias koj xav kaw Pi, ntaus hauv:

kaw tam sim no

Cov Lus Qhia Txog Kev Nyab Xeeb: Tsis txhob cuam tshuam Pi ntawm lub zog ua ntej nws ua tiav nws cov txheej txheem kaw, qhov no tuaj yeem ua rau SD daim npav puas tsuaj.

Kauj Ruam 16: Lub Tswv Yim Ntxiv: Hloov Kho Txoj Cai los Hloov Qhov Kub Kub Tshaj Tawm

Lub Tswv Yim Ntxiv: Hloov Kho Txoj Cai los Hloov Qhov Kub Kub Tshaj Tawm
Lub Tswv Yim Ntxiv: Hloov Kho Txoj Cai los Hloov Qhov Kub Kub Tshaj Tawm

Yog tias koj xav hloov kho qhov ntau yam uas piv txwv li muaj thaum xub thawj, tshem lub zog rau lub ntsuas cua sov thiab ntaus hauv cov lus txib no:

sudo nano thermal_cam.py

Qhov no yuav qhib qhov chaws editor. Xaub mus rau qhov ntsuas kub thiab kho raws li xav tau. Nco ntsoov tias lawv nyob hauv Celsius.

Sau tawm qhov kev kho kom raug cai thiab khaws cia ua ib daim ntawv tshiab lossis sau dua qhov piv txwv qub.

Lwm txoj hauv kev (sib cav yooj yim dua) los ua qhov no tsuas yog ntsaws Pi rov qab rau hauv lub monitor nrog HDMI thiab hais kom ua:

pib x

Qhov no yuav khau raj lub vev xaib, thiab tom qab ntawd koj tuaj yeem nkag mus rau hauv cov ntaub ntawv thiab qhib thermal_cam.py hauv tus kws kho mob nab hab sej thiab hloov pauv thiab khaws nws nyob ntawd.

Pom zoo: