Cov txheej txheem:
- Kauj Ruam 1: Nruab Qhov Duab Raspbian Tseeb
- Kauj Ruam 2: Kho lub Ntiaj Teb Ib puag ncig
- Kauj ruam 3: Rub tawm Gpio Folder
- Kauj ruam 4: Khiav qhov Project
- Kauj Ruam 5: Kev Xav Thaum Kawg
Video: Raspberry Pi Web Interface: 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Cov no yog cov lus qhia txhawm rau txhim kho lub vev xaib sib tham Kuv tsim los rau toggling gpio pins ntawm raspberry pi txhawm rau txhawm rau tswj kev ua haujlwm tsis tshua muaj neeg sib kis uas xav tau rau arduino. Nws ua haujlwm rau nplooj ntawv yooj yim uas tso cai rau koj nyem rau kab ntawv txhawm rau hloov pauv lub xeev ntawm tus pin thiab muab koj cov lus tawm tswv yim ntawm lawv cov xwm txheej yooj yim los ntawm kev xa qhov txuas ntsuab rau qhov ua haujlwm txuas thiab liab rau qhov tsis ua haujlwm tiag.
Kauj Ruam 1: Nruab Qhov Duab Raspbian Tseeb
nab hab sej 3.5 tsawg kawg yuav tsum tau preinstalled
Kauj Ruam 2: Kho lub Ntiaj Teb Ib puag ncig
Qhov no yog nyob ntawm yeem tab sis nws yog kev xyaum zoo.
qhib lub davhlau ya nyob twg thiab ua raws li cov lus txib hauv qab no:
ua cd
python3 -m venv env
source ~/env/bin/qhib
Qhov lus txib kawg ua rau lub davhlau ya nyob twg khiav hauv ib puag ncig virtual. Koj paub nws ua haujlwm yog tias koj pom (env) nyob rau hauv ntej ntawm lub davhlau ya nyob twg
kuj nruab cov tsev qiv ntawv:
pip nruab django
pip nruab RPi. GPIO
RPi. GPIO yuav tsum tau rov nruab dua yog tias koj nyob hauv (env)
Kauj ruam 3: Rub tawm Gpio Folder
Rub tawm gpio nplaub tshev los ntawm github hauv cov ntawv tais ceev tseg hauv tsev
GpioWebInterfaceProject_Click mus rau github thiab rub tawm cov ntawv
Kauj ruam 4: Khiav qhov Project
exetute ib txwm nyob hauv tib (env) davhlau ya nyob twg cov lus txib no:
cd ~/gpioWebInterface/gpio
nab hab sej tswj.py makemigrations
nab hab sej tswj.py migrate
nab hab sej tswj.py createuperuser (nkag mus rau tus neeg siv lub npe siv email thiab tus lej zais uas koj yuav siv los txuas txuas sib txuas rau GPIO pins)
nab hab sej tswj.py runerver 0: 8000
Kauj Ruam 5: Kev Xav Thaum Kawg
Koj tuaj yeem ua ob peb nrog apache lossis yam server uas koj xav tau. Kuv tsis pom nws tsim nyog raws li tsis muaj tsheb khiav los tham txog. Kuv khiav nws tom qab NAT nrog kev teeb tsa xa chaw nres nkoj thiab siv tsis-ip rau qhov hloov pauv dns sau npe yog li kuv tuaj yeem nkag mus tau los ntawm txhua qhov chaw.
Txhua yam koj xav tau rau nws kom khiav hauv qhov chaw nyob deb yog GSM Wifi nkag mus tau ntev li ntev tau koj siv qhov kev pom zoo Raspberry pi xoom w.
Txoj Haujlwm no nyob deb ntawm qhov ua tiav. Nws ua haujlwm tab sis tsis zoo nkauj thiab tseem tsis muaj kev nyab xeeb.
Pom zoo:
Full Python Web Interface Kit rau PhidgetSBC3: 6 Cov Kauj Ruam
Full Python Web Interface Kit rau PhidgetSBC3: PhidgetSBC3 pawg thawj coj yog ua haujlwm puv nkaus Tib Lub Computer, khiav Debain Linux. Nws zoo ib yam li raspberry Pi, tab sis muaj 8 analog sensor inputs thiab 8 digital inputs thiab 8 digital outputs. Nws xa nrog lub vev xaib thiab daim ntawv thov web los ua ke
Interface ADXL335 Sensor ntawm Raspberry Pi 4B hauv 4 Kauj Ruam: 4 Kauj Ruam
Kev sib cuam tshuam ADXL335 Sensor ntawm Raspberry Pi 4B hauv 4 Cov Kauj Ruam: Hauv cov lus qhia no peb yuav cuam tshuam nrog ADXL335 (ntsuas tus ntsuas) ntsuas ntawm Raspberry Pi 4 nrog Shunya O/S
ESP8266 Automation Nrog Web Interface thiab DDNS: 8 Cov Kauj Ruam
ESP8266 Automation Nrog Lub Vev Xaib Interface thiab DDNS: Hauv kab lus hnub no, peb yuav qhia qhov kev siv tshuab, uas tuaj yeem yog chaw nyob, siv DDNS (Dynamic Domain Name System) feature. Koj yuav nkag siab yuav teeb tsa daim ntawv thov uas koj yuav tso rau ESP8266, ntawm NodeMCU. Tsis tas li, peb yuav pom yuav ua li cas
Yooj Yim $ 5 Ntse Teeb Nrog Smartphone Web Interface: 4 Cov Kauj Ruam
Yooj Yim $ 5 Ntse Teeb Nrog Smartphone Web Interface: Nyob Zoo! Kuv lub npe yog Raphael. Nov yog kuv thawj Phau Ntawv Qhia! Kuv lub hom phiaj tseem ceeb ntawm kev tsim lub teeb no yog los pab lub neej ntawm cov neeg tsis muaj neeg txav chaw. Muaj ib hnub, peb yuav tsis muaj cov hloov pauv ntawm cov phab ntsa lossis nyuaj rau-mus txog ntsaws, tab sis theej peb lub xov tooj smartphones los tswj
Raspberry Tank Nrog Web Interface thiab Video Streaming: 8 Cov Kauj Ruam (nrog Duab)
Raspberry Tank Nrog Lub Vev Xaib Interface thiab Video Streaming: Peb tab tom yuav pom li cas kuv tau pom me ntsis WiFi Tank, muaj peev xwm tswj tau lub Vev Xaib Chaw Tswj thiab Kev Tshaj Tawm Video. Vim li no kuv & tau xaiv