Cov txheej txheem:

Suab Tshaj Tawm thiab Tshaj Tawm Video Siv Raspberry Pi 3.: 6 Cov Kauj Ruam
Suab Tshaj Tawm thiab Tshaj Tawm Video Siv Raspberry Pi 3.: 6 Cov Kauj Ruam

Video: Suab Tshaj Tawm thiab Tshaj Tawm Video Siv Raspberry Pi 3.: 6 Cov Kauj Ruam

Video: Suab Tshaj Tawm thiab Tshaj Tawm Video Siv Raspberry Pi 3.: 6 Cov Kauj Ruam
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Kaum ib hlis
Anonim
Suab Tshaj Tawm thiab Tshaj Tawm Video Siv Raspberry Pi 3
Suab Tshaj Tawm thiab Tshaj Tawm Video Siv Raspberry Pi 3

Lub hom phiaj tseem ceeb ntawm txoj haujlwm no yog tshaj tawm suab rau Raspberry Pi 3 los ntawm ib lub cuab yeej txuas nrog rau WiFi network ib txwm thiab tau txais cov vis dis aus los ntawm Raspberry Pi 3 mus rau txhua lub cuab yeej txuas nrog lub network WiFi sib xws.

Kauj Ruam 1: Cov Ntaub Ntawv Koj Yuav Tsum Tau:

Cov Ntaub Ntawv Koj Yuav Tsum Tau
Cov Ntaub Ntawv Koj Yuav Tsum Tau
Cov Ntaub Ntawv Koj Yuav Tsum Tau
Cov Ntaub Ntawv Koj Yuav Tsum Tau
Cov Ntaub Ntawv Koj Yuav Tsum Tau
Cov Ntaub Ntawv Koj Yuav Tsum Tau
Cov Ntaub Ntawv Koj Yuav Tsum Tau
Cov Ntaub Ntawv Koj Yuav Tsum Tau

1. Raspberry Pi 3.

2. Raspberry Pi Lub Koob Yees Duab

3. Micro SD daim npav nrog USB nyeem ntawv tau tshaj (Rau kev teeb tsa ntawm Raspbian OS)

4. Monitor (rau thawj Configuration)

5. Keyboard thiab Mouse (rau kev teeb tsa thawj zaug)

6. Speaker (s) nrog 3.5 mm jack (rau Audio Output)

7. Power Bank.

Kauj Ruam 2: Txhim Kho Raspbian OS ntawm Koj Raspberry Pi 3:

Ua raws cov lus qhia los ntawm Cov Lus Qhia rau nruab OS ntawm koj li Raspberry Pi 3.

www.instructables.com/id/HOW-TO-INSTALL-RASPBIAN-OS-IN-YOUR-RASPBERRY-PI

Kauj Ruam 3: Txhim Kho Apache thiab PHP:

Txhim kho Apache thiab PHP
Txhim kho Apache thiab PHP

Apache yog daim ntawv thov web server nrov uas koj tuaj yeem teeb tsa ntawm Raspberry Pi tso cai rau nws ua haujlwm rau nplooj ntawv web.

PHP yog siv los khiav PHP code.

Txhim kho Apache:

1. Qhib lub davhlau ya nyob twg thiab hloov kho cov pob khoom muaj los ntawm kev ntaus cov lus txib hauv qab no.

sudo apt-tau hloov tshiab.

2. Nruab Apache 2 nrog cov lus txib no.

sudo apt -tau nruab apache2 -y

3. Xeem lub web server los ntawm kev ntaus koj tus Raspberry Pi IP chaw nyob yog tias koj tau txais qee yam zoo li hauv daim duab, uas txhais tau tias koj tus neeg rau zaub mov Apache ua haujlwm.

Txhim kho PHP:

1. Lub tus lej no hauv lub davhlau ya nyob twg kom tau PHP teeb tsa ntawm koj li Raspberry Pi.

sudo apt-tau nruab PHP libapache2-mod-php -y

2. Tam sim no, PHP yuav raug teeb tsa ntawm koj tus Pi.

Kauj ruam 4: Code:

Koj yuav tsum muaj cov cai hauv qab no hauv cov npe "var/www/html"

Qhib cov ntawv tshawb nrhiav thiab qhib cov npe saum toj no thiab muab cov lej muab rau hauv daim nplaub tshev html.

Kauj Ruam 5: Txhim Kho-j.webp" />

-j.webp

1. Qhib lub davhlau ya nyob twg thiab ntaus cov hauv qab no:

sudo apt-tau nruab libjpeg62-turbo-dev

sudo apt-tau nruab cmake

Tam sim no, hauv cov davhlau ya nyob twg hom hauv qab no:

sudo apt-tau hloov tshiab

sudo apt-tau hloov tshiab

wget

tar xvzf mjpg-streamer.tar.gz

sudo apt-tau nruab libjpeg8-dev

sudo apt-tau nruab imagemagick

cd mjpg-streamer/mjpg-streamer ua

./mjpg_streamer -i "./input_uvc.so" -o "./output_http.so -w./www"

Kauj Ruam 6: Tso Tawm:

Cov Zis
Cov Zis
Cov Zis
Cov Zis

Ntawm koj Raspberry Pi:

1. Qhib lub vev xaib thiab ntaus koj tus IP chaw nyob/openlast_content.php

Ntawm koj lub cuab yeej:

Mus rau lub vev xaib browser ntawm koj lub xov tooj ntawm tes lossis Laptop uas txuas nrog tib lub network WiFi zoo li koj li Raspberry thiab ntaus tus IP chaw nyob ntawm koj tus Raspberry Pi thiab nyem/coj mus rhaub rau ntawm lub pob upload thiab xaiv cov ntaub ntawv audio (tuaj yeem kaw suab nyob) thiab nyem/coj mus rhaub upload.

Tom qab ntawd koj yuav xaus nrog daim duab thib ob saum toj no. Hauv qhov piv txwv no, lub koob yees duab module tsis tau pib ua ntej. Thaum teeb tsa Apache thiab PHP txuas koj lub koob yees duab rau Raspberry Pi thiab koj tuaj yeem tau txais Video tso tawm ntawm koj lub cuab yeej.

Pom zoo: