Cov txheej txheem:

Raspberry PI Kev ntsuas kub thiab vaum, Chaw Huab Cua Huab Cua, Wifi thiab Xov Tooj Txawb: 6 Kauj Ruam
Raspberry PI Kev ntsuas kub thiab vaum, Chaw Huab Cua Huab Cua, Wifi thiab Xov Tooj Txawb: 6 Kauj Ruam

Video: Raspberry PI Kev ntsuas kub thiab vaum, Chaw Huab Cua Huab Cua, Wifi thiab Xov Tooj Txawb: 6 Kauj Ruam

Video: Raspberry PI Kev ntsuas kub thiab vaum, Chaw Huab Cua Huab Cua, Wifi thiab Xov Tooj Txawb: 6 Kauj Ruam
Video: Musicians talk about Buckethead 2024, Kaum ib hlis
Anonim
Raspberry PI Kev ntsuas kub thiab av noo, Chaw Huab Cua Huab Cua, Wifi thiab Xov Tooj Txawb
Raspberry PI Kev ntsuas kub thiab av noo, Chaw Huab Cua Huab Cua, Wifi thiab Xov Tooj Txawb
Raspberry PI Kev ntsuas kub thiab av noo, Chaw Huab Cua Huab Cua, Wifi thiab Xov Tooj Txawb
Raspberry PI Kev ntsuas kub thiab av noo, Chaw Huab Cua Huab Cua, Wifi thiab Xov Tooj Txawb
Raspberry PI Kev ntsuas kub thiab av noo, Chaw Huab Cua Huab Cua, Wifi thiab Xov Tooj Txawb
Raspberry PI Kev ntsuas kub thiab av noo, Chaw Huab Cua Huab Cua, Wifi thiab Xov Tooj Txawb

Nrog Raspberry PI ntaus ntawv koj tuaj yeem teev cov ntaub ntawv ntsuas kub thiab av noo sab nraum, hauv chav, tsev cog khoom, chav kuaj mob, chav txias lossis lwm qhov chaw pub dawb. Qhov piv txwv no peb yuav siv los ntsuas qhov kub thiab txias.

Cov cuab yeej yuav txuas nrog internet ntawm Wifi lossis Ethernet

Koj yuav tuaj yeem tshawb xyuas qhov kev nyeem tshiab kawg ntawm koj lub xov tooj ntawm tes, desktop lossis lwm yam khoom siv nrog browser

Khoom siv

Saib xyuas nrog HDMI, HDMI cable, USB nas thiab keyboard kuj tseem xav tau rau qhov kev qhia no tab sis ib txwm koj tau muaj qhov no

Koj tuaj yeem yuav cov cuab yeej xav tau ntawm no (tsawg kawg xav tau):

Raspberry PI 3 lossis Raspberry PI 2 nrog wifi lo

micro SD daim npav (pom zoo 32GB)

micro USB cable

DHT22 module nrog cable

Kuj zoo kom muaj:

USB charger rau Fais fab koj lub cuab yeej

Waterproof thaiv

Txheem Raspberry Enclosure (raws li kuv qhov piv txwv)

Yog tias koj tsis muaj USB MicroSD nyeem ntawv

Kuv yuav qhov no ntawm Banggood.com

Qhov no kuj sim/ua haujlwm nrog kev lag luam AM2305

Kauj Ruam 1: Ntxiv Koj Cov Ntaus rau LoggingPlatform

Ntxiv koj lub cuab yeej rau LoggingPlatform
Ntxiv koj lub cuab yeej rau LoggingPlatform

Ntawm no koj tuaj yeem ntxiv koj lub cuab yeej kom tau txais cov yuam sij api xav tau tom qab:

Kauj Ruam 2: Piv Txwv Cov Qauv Khoos Phis Tawj

Piv Txwv Kev Kho Cov Khoos Phis Tawj
Piv Txwv Kev Kho Cov Khoos Phis Tawj
Piv Txwv Kev Kho Cov Khoos Phis Tawj
Piv Txwv Kev Kho Cov Khoos Phis Tawj

Txuas DHT22 Tawm rau RaspberryPi hauv/tawm PIN GPIO 4

Txuas DHT22 + rau RaspberryPi 3V PIN 1

Txuas DHT22 - rau RaspberryPi Av PIN 6

Kauj Ruam 3: Tshaj Tawm Software Xav Tau Rau Micro SD Card (Windows Qhia)

Upload Software Xav Tau Rau Micro SD Card (Windows Qhia)
Upload Software Xav Tau Rau Micro SD Card (Windows Qhia)
Upload Software Xav Tau Rau Micro SD Card (Windows Qhia)
Upload Software Xav Tau Rau Micro SD Card (Windows Qhia)
Upload Software Xav Tau Rau Micro SD Card (Windows Qhia)
Upload Software Xav Tau Rau Micro SD Card (Windows Qhia)

Txuas MicroSD rau MicroSD cov tswv yim ntawm koj lub PC Windows, yog tias koj tsis muaj nws ces yuav usb version zoo li:

USB Micro SD nyeem ntawv

Download Win32DiskImager ntawm no

Rub tawm Raspbian OS tshiab rau Raspberry PI ntawm no (Official Raspberry PI txuas)

Tshem tawm rub tawm Raspbian OS cov ntawv khaws cia nrog koj cov ntawv khaws lossis 7zip zoo li ntawm qhov screen 1

Tam sim no koj yuav tsum sau Raspbian OS nrog Win32DiskImager rau koj daim npav MicroSD:

Yog li ntxig MicroSD rau hauv koj tus nyeem ntawv thiab khiav Win32DiskImager

Xaiv koj rub tawm thiab rho tawm Raspbian OS cov duab duab, koj MicroSD thiab nyem rau ntawm Sau li ntawm qhov screen 2

Kev ceeb toom ntawm qhov teeb meem: Yog tias koj muaj teeb meem lossis coj txawv txawv hauv MicroSD, lossis rov ua qhov no dua, tom qab ntawd ua ntej qhov no koj yuav tsum tshem tag nrho cov ntim los ntawm tsav thiab tsim tsuas yog ib qho. Qhov no tuaj yeem ua tiav nrog Disk Management cov cuab yeej hauv Windows zoo li ntawm lub vijtsam 3

Ntxig MicroSD rau hauv koj lub Raspberry, txuas nws los tshuaj xyuas, nas thiab keyboard thiab khiav nws

Kauj Ruam 4: RaspbianOS, Thaj Chaw Python Program rau Raspberry thiab Kev Tsim Kho Xav Tau

RaspbianOS, Thaj Chaw Python Program rau Raspberry thiab Kev Tsim Kho Xav Tau
RaspbianOS, Thaj Chaw Python Program rau Raspberry thiab Kev Tsim Kho Xav Tau
RaspbianOS, Thaj Chaw Python Program rau Raspberry thiab Kev Tsim Kho Xav Tau
RaspbianOS, Thaj Chaw Python Program rau Raspberry thiab Kev Tsim Kho Xav Tau
RaspbianOS, Thaj Chaw Python Program rau Raspberry thiab Kev Tsim Kho Xav Tau
RaspbianOS, Thaj Chaw Python Program rau Raspberry thiab Kev Tsim Kho Xav Tau
RaspbianOS, Thaj Chaw Python Program rau Raspberry thiab Kev Tsim Kho Xav Tau
RaspbianOS, Thaj Chaw Python Program rau Raspberry thiab Kev Tsim Kho Xav Tau

Thaum Raspberry khau raj, koj tsuas yog yuav tsum teeb tsa nws nrog tus neeg ua haujlwm zoo, piv txwv li tshuaj ntsuam 1

Tom qab ntawd teeb tsa qee lub tsev qiv ntawv rau DHT22 yog li hauv davhlau ya nyob twg khiav:

sudo apt-tau hloov tshiab

sudo apt-get install build-essential python-dev python-openssl git git clone https://github.com/adafruit/Adafruit_Python_DHT.git && cd Adafruit_Python_DHTsudo python setup.py install

Tsim cov ntawv tam sim no nrog cov lus txib raws li ntawm qhov screen 2

Muab tshuaj txhuam yooj yim LoggingForest code los ntawm nplooj ntawv no hauv filehttps://github.com/sandiwinter/loggingforest/blob …

thiab hloov pauv tsis tau txais ntawm loggingforest.com lub vev xaib raws li ntawm qhov screen 3

CTRL+XY

nkag

Txog kev sim tam sim no koj tuaj yeem ua tsab ntawv no zoo li ntawm qhov screen 4

Nrog CTRL+Z koj tuaj yeem nres qhov haujlwm no

Kauj Ruam 5: Txheeb Cov Ntaub Ntawv ntawm Loggingforest.com Platform

Txheeb Cov Ntaub Ntawv ntawm Loggingforest.com Platform
Txheeb Cov Ntaub Ntawv ntawm Loggingforest.com Platform
Txheeb Cov Ntaub Ntawv ntawm Loggingforest.com Platform
Txheeb Cov Ntaub Ntawv ntawm Loggingforest.com Platform
Txheeb Cov Ntaub Ntawv ntawm Loggingforest.com Platform
Txheeb Cov Ntaub Ntawv ntawm Loggingforest.com Platform

Tom qab ntawd koj lub cuab yeej yuav pib xa cov ntaub ntawv mus rau kev txiav ntoo thiab koj tuaj yeem pom nws nyob ntawd Hauv kev txiav ntoo txiav ntoo hloov kho tsuas yog txhais lub npe tsis raug thiab qhov txiaj ntsig zoo li ntawm qhov screen 1

Nyem rau saib ua ntej raws li ntawm qhov screen 2

Thiab koj yuav pom cov ntaub ntawv zoo li ntawm qhov screen 3

Kauj Ruam 6: Khiav Python Script Yeej ntawm Raspberry Boot Up

Khiav Python Script Yeej ntawm Raspberry Boot Up
Khiav Python Script Yeej ntawm Raspberry Boot Up

Yog lawm, tej zaum koj yuav xav khiav cov ntawv nab nab no thaum Raspberry yuav pib lossis txuas nrog lub zog siv.

qhib lub davhlau ya nyob twg thiab khiav:

sudo nano /etc/rc.local

thiab ua ntej tawm 0 ntxiv cov cai los ua koj tsab ntawv:

sudo bash -c 'nab nab /home/pi/dht22-api.py> /home/pi/dht22-api.log 2> & 1' &

raws li ntawm qhov screen 1

Txuag cov ntaub ntawv nrog CTRL+X, Y, Nkag Mus Sim rov pib dua koj cov raspberry PI, thiab tam sim no nws tau npaj lawm!

Xav tias dawb los tawm tswv yim thiab qhia koj cov logger

Koj tseem tuaj yeem pom lwm cov lej hloov pauv hauv github rep:

github.com/sandiwinter/loggingforest/tree/…

Pom zoo: