Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Ntxiv Koj Cov Ntaus rau LoggingPlatform
- Kauj Ruam 2: Piv Txwv Cov Qauv Khoos Phis Tawj
- Kauj Ruam 3: Tshaj Tawm Software Xav Tau Rau Micro SD Card (Windows Qhia)
- Kauj Ruam 4: RaspbianOS, Thaj Chaw Python Program rau Raspberry thiab Kev Tsim Kho Xav Tau
- Kauj Ruam 5: Txheeb Cov Ntaub Ntawv ntawm Loggingforest.com Platform
- Kauj Ruam 6: Khiav Python Script Yeej ntawm Raspberry Boot Up
Video: Raspberry PI Kev ntsuas kub thiab vaum, Chaw Huab Cua Huab Cua, Wifi thiab Xov Tooj Txawb: 6 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
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
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
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)
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
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
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
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:
Arduino Ethernet DHT11 Kev ntsuas kub thiab vaum, Txawb xov xwm Stats: 4 Cov Kauj Ruam
Arduino Ethernet DHT11 Kev ntsuas kub thiab av noo, Txawb Xov Xwm: Nrog Arduino UNO R3, Ethernet Shield THIAB DHT11 koj tuaj yeem teev cov ntsuas kub thiab cov av noo sab nraum, hauv chav, tsev cog khoom, lab, chav txias lossis lwm qhov chaw dawb kiag li. Qhov piv txwv no peb yuav siv los ntsuas chav sov thiab av noo. Ntaus
Yuav Ua Li Cas Txawb Txawb Txawb Txawb Tsheb Ntawm Bluetooth: 4 Cov Kauj Ruam
Yuav Ua Li Cas Txawb Txawb Chaw Taws Teeb Tsheb Ntawm Bluetooth: Yuav Ua Li Cas Txawb Txawb Txawb Tsheb ntawm Bluetooth | Indian LifeHacker
ESP32 NTP Kev Ntsuas Kub Ua Haujlwm Kub Kub Nrog Steinhart-Hart Kho thiab Tswb Kub: 7 Kauj Ruam (nrog Duab)
ESP32 NTP Kev Ntsuas Kub Ua Haujlwm Ntsuas Kub nrog Steinhart-Hart Kev Kho thiab Tswb Kub: Tseem tab tom taug kev kom ua tiav "qhov haujlwm yuav los tom ntej", "ESP32 NTP Kev Ntsuas Kub Kev Ntsuas Kub Ua Noj Nrog Steinhart-Hart Kev Kho thiab Tswb Kub" yog Cov Ntawv Qhia qhia yuav ua li cas kuv ntxiv NTP ntsuas kub, piezo b
Ib Lub Ipod Dual thiab Lub Xov Tooj Txawb Xov Tooj Charger Base: 4 Kauj Ruam
Dual Ipod thiab Txawb Xov Tooj Txawb Xov Tooj Base: Tsuas yog hnub dhau los kuv tus neeg ua kas fes sai tsis tuaj yeem ua kas fes ntxiv lawm yog li kuv tau rhuav tshem lub cev. Kuv coj tag nrho cov khoom muaj txiaj ntsig zoo li hloov, cable, qee qhov khoom siv lub cev. Lub cev yas tau npaj txhij muab pov tseg thaum kuv tus poj niam muab khoom plig rau kuv kov lub pob thib 2. Yog li kuv
Ryobi 18vdc Lub Teeb Nrog Ipod lossis Lub Xov Tooj Ntawm Lub Xov Tooj Ntawm Lub Xov Tooj: 5 Kauj Ruam
Ryobi 18vdc Lub Teeb Nrog Ipod lossis Lub Xov Tooj Ntawm Lub Xov Tooj Ntawm Lub Xov Tooj: Nov yog qhov hack sai uas yuav ua rau siv koj li 18vdc Ryobi teeb nyem. Kuv tau ntxiv 12vdc tso zis rau them kuv lub ipod lossis xov tooj ntawm tes hauv qhov me me. Nws siv sijhawm li ib teev thiab tsis nyuaj heev. Txheeb nws. Cov npe ntu: 1-Ryobi 18vdc Teeb nyem