Cov txheej txheem:

Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)

Video: Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)

Video: Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Kaum ib hlis
Anonim
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi

Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab dhau WiFi ntawm 'nyem thiab luag' siv qhov (pub dawb) hloov ntaub ntawv. Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem xa cov duab ncaj qha los ntawm lub xov tooj ntawm tes (piv txwv li ntawm ES File Explorer ntawm Android).

Qhov no tuaj yeem yog daim duab duab ib leeg lossis tuaj yeem yog tus ntxaij vab tshaus rau Pi raws qhov system (ua lwm yam) thiab qhia cov duab thaum nws tsis raug siv. Piv txwv, qhov no tuaj yeem yog tus ntxaij vab tshaus rau Pi raws tus tswj kev tshaj xov xwm lossis rau kev cuam tshuam rau kuv Pi raws cov suab paj nruag thiab xov tooj cua.

Rau qhov yooj yim thiab qhov loj Kuv tau siv Pi Zero ntawm no tab sis ib qho ntawm Pi's yuav tsum ua haujlwm. Kuv tuaj yeem tau siv ZeroW (WiFi) tab sis rau tus nqi ib yam tuaj yeem tau txais Zero ntxiv rau 2 chaw nres nkoj USB thiab siv WiFi dongle txhawm rau ua kom zoo tshaj qhov chaw nyob.

Muaj kev xaiv loj rau cov saib:

  • Waveshare ua cov saib zoo heev rau Pi, suav nrog cov uas kov cov ntxaij vab tshaus. Lub vijtsam kov tsis yog qhov xav tau ntawm no tab sis yuav muaj txiaj ntsig thaum qhov no yog lub vijtsam rau lwm daim ntawv thov. Qhov tsis zoo ntawm cov no yog qhov txuas txuas rau sab - uas zoo li tsis huv lossis xav tau lub thav duab dav los nkaum.
  • Feem ntau PC saib yuav ua haujlwm. Cov khoom siv tau muaj nyob ntawm tus nqi qis ntawm ebay. Txawm tias cov tshiab yog tus nqi zoo nkauj. Yog tias lawv tsis muaj HDMI cov tswv yim lawv muaj feem yuav muaj DVI uas tuaj yeem siv tau los ntawm tus adapter lossis HDMI rau DVI lead. Kuv khaws qhov xwm txheej zoo 22 "IPS, puv HD (1920x1080) Iiyama kov lub vijtsam saib rau qis dua £ 80 xa.
  • Thaum kawg muaj qhov kev xaiv rov ua dua lub vijtsam los ntawm lub laptop tuag. Saib: qhia paub Qhov no muaj qhov loj ntxiv ntawm kev ua nyias thiab muaj peev xwm haum rau hauv daim duab tiag tiag.

Txhua qhov software/firmware xav tau yog pub dawb.

Cov lus qhia ntawm no yuav tsum tso cai rau cov neeg tshiab (lossis muaj kev paub ntau dua) kom ua tiav qhov no los ntawm kos.

Qhov xav tau:

  • Pi (ib)
  • SD daim npav (qhia 8GB lossis ntau dua)
  • USB hub os
  • Wifi Dongle
  • Saib xyuas thiab coj
  • Mus (rau teeb)
Duab
Duab

Cov kauj ruam:

  • Nruab Pi firmware
  • Txuas/nruab saib
  • Ntxiv qee cov duab/duab
  • Teem lub screensaver

Cov ntawv nyob rau hauv cov ntawv txias yuav tsum tau nkag mus thaum lub sijhawm teeb tsa thiab tuaj yeem feem ntau raug theej thiab muab tshuaj txhuam - uas txuag lub sijhawm thauj khoom.

Kauj ruam 1: Nruab Pi Firmware

Lub kaw lus yuav ua haujlwm los ntawm ob qho tag nrho Raspbian Stretch nruab thiab los ntawm Stretch Lite. Qhov tom kawg siv lub cim xeeb tsawg dua tab sis qhov qub yuav xav tau yog tias PI tau siv rau lwm yam ib yam nkaus. Cov lus qhia yuav npog ob qho tib si. Cov txheej txheem yuav siv teeb tsa teeb tsa ntawm Pi li feem ntau qhov no yooj yim dua - thiab tuaj yeem zam qhov xav tau ntawm cov keyboard.

Thawj rub tawm Raspbian Stretch lossis Stretch Lite los ntawm

Cov ntawv muaj nyob ntawm lub sijhawm sau yog Lub Kaum Hli 2018 tab sis lwm tus yuav tsum ua haujlwm zoo.

Unzip cov ntaub ntawv mus rau qhov chaw paub. Tom qab ntawd khiav Etcher txhawm rau rub daim duab rau SD daim npav. Etcher yog pub dawb thiab rub tawm tau los ntawm https://etcher.io/ thiab yooj yim rau kev khiav:

Duab
Duab

Tom qab daim npav tau flashed ntxiv cov ntawv dawb hu ua 'SSH' rau 'Boot'. Qhov no ua rau Pi raug tsav nyob deb thiab teeb tsa los ntawm lub PC thiab tseem ua kom tau txais txiaj ntsig ntawm kev luam thiab muab tshuaj txhuam ntawm cov ntawv teev tseg ntawm no.

Yog tias siv Pi Zero (lossis ZeroW) peb yuav tsum tau txais WiFi ua haujlwm los pab teeb tsa chaw deb. Qhov no xav tau lub npe network thiab tus lej zais ntxiv hauv cov ntaub ntawv tshwj xeeb. Txhawm rau ua qhov no - luam cov hauv qab no rau hauv Notepad:

ctrl_interface = DIR =/var/run/wpa_supplicant GROUP = netdev

network = {

ssid = "YOUR_NETWORK_NAME"

psk = "YOUR_PASSWORD"

key_mgmt = WPA-PSK

}

Kho qhov YOUR_NETWORK_NAME thiab YOUR_PASSWORD (khaws qhov "") thiab txuag rau 'Boot' ib feem ntawm daim npav SD li wpa_supplicant.conf

Tshem daim npav thiab ntsaws rau hauv Pi. Kuj txuas lub WiFi dongle, yog tias tsim nyog ntawm USB hub.

Ua kom muaj zog Pi. Thaum nws tab tom nrhiav pom tus IP chaw nyob los ntawm kev nkag mus rau koj lub router. Xwb, yog tias siv tag nrho version ntawm kev ncab, qhov no tuaj yeem pom los ntawm kev txuas lub saib, nas thiab keyboard thiab nyem lub cim internet nyob rau sab xis saum toj ntawm lub desktop. Ntawm Stretch Lite (nrog saib thiab keyboard txuas nrog) siv cov lus qhia sudo ifconfig thiab saib hauv qab wlan0> inet addr:. Kuv pom qhov kev xaiv router los ntawm qhov deb tshaj qhov yooj yim tshaj plaws.

Khiav Putty (rub tawm dawb los ntawm https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html) los ntawm lub PC thiab nkag mus rau Pi tus IP chaw nyob.

Duab
Duab

Nkag mus raws li 'pi' nrog lo lus zais 'raspberry'.

Duab
Duab

Ua ntej kho tus password thiab lwm qhov chaw ntawm:

sudo raspi-teeb tsa

(luam cov ntawv tom ntej no nyem rau hauv Putty kom muab tshuaj txhuam)

Ua ntej hloov tus password

Tom qab ntawd kuv hloov lub npe network (yeem)

Hauv qab qhov chaw teeb tsa lub tebchaws WiFi.

Hauv qab kev xaiv cuam tshuam pab SSH.

Tom qab ntawv xub xub ob zaug thiab nyem Finish, thiab Yog lawm kom rov pib dua. Qhov no yuav plam qhov kev sib txuas Putty. Ntau dua li kaw qhov no, tos ib pliag rau Pi kom rov pib dua thiab txoj nyem rau Putty txoj haujlwm bar thiab xaiv 'Restart Session'. Tam sim no nkag mus siv 'pi' thiab tus password tshiab. Yog tias WiFi tsis txuas dua ces tshem lub dongle thiab ntsaws dua. Kuv xav tias qhov no tau tshwm sim tab sis kuv tsuas yog ua siab ntev rau Xoom kom khau raj!

Hloov tshiab tom ntej los ntawm kev nkag mus:

sudo apt -tau -y hloov tshiab

Tom qab ntawd hloov kho nkag mus:

sudo apt -tau -y txhim kho

Qhov no tuaj yeem siv sijhawm me ntsis.

Yog tias pib los ntawm tag nrho Raspbian Stretch ces mus rau qib tom ntej.

Txog Raspbian Stretch Lite peb xav tau ntxiv lub desktop.

Yog li nkag mus:

sudo apt nruab raspberrypi-ui-mods

ua raws los ntawm

Y

thaum nug.

Qhov no yog qhov teeb tsa loj heev thiab yog li yuav siv sijhawm ib pliag …….

Khaws Putty qhib qhib thiab txav mus rau teeb tsa lub saib.

Kauj ruam 2: Txuas/teeb tsa Saib

Kuv xav kom pi pib yam tsis tas yuav tsum muaj tus siv thiab tus lej nkag nkag (yog li ntawm Putty ntu):

sudo raspi-teeb tsa

Xaiv 'Boot Options' ces 'Desktop / CLI' ces 'Desktop Autologin'. Tom qab ntawv xub xub ob zaug thiab Ua tiav thiab rov pib dua.

Tus saib xyuas tus qauv yuav sib tham txog lawv cov teeb tsa thiab yog li txhua qhov yuav tsum tau ua yog kaw, txuas lub saib ntawm HDMI cov hlau lead (thiab USB rau kov cov ntxaij vab tshaus) thiab rov pib dua.

Waveshare tus saib xyuas xav tau Pi teeb tsa rau qhov kev daws teeb meem tsim nyog. Qhov no xav tau kho cov ntaub ntawv teeb tsa. Yog li:

sudo nano /boot /config.txt

Rau Waveshare 7 "thiab 10" (1024x600) saib xyuas ntxiv cov kab hauv qab no (lossis tsis pom zoo/hloov kho uas twb muaj lawm):

max_usb_current = 1

hdmi_cvt 1024 600 60 6 0 0 0 0

hdmi_cov = 2

hdmi_mode = 87

hdmi_drive = 1

Rau Waveshare 10 (1280x800) saib

Ntxiv lossis hloov kab rau:

max_usb_current = 1

hdmi_cvt 1280 800 60 60 0 0 0

hdmi_cov = 2

hdmi_mode = 87

hdmi_drive = 1

Tam sim no kaw, txuas lub monitor thiab rov ua haujlwm dua. Tus Pi yuav tsum khau raj rau ntawm lub desktop.

Duab
Duab

Kauj Ruam 3: Ntxiv Qee Cov Duab/duab

Ua ntej txheeb tawm cov ntxaij vab tshaus peb yuav tsum thauj qee cov duab/duab. Nov yog qhov yooj yim heev uas siv cov ntaub ntawv hloov chaw xws li File Zilla.

Txhawm rau siv FileZilla nkag mus rau Pi IP chaw nyob hauv Host, tom qab ntawd lub npe siv (pi) thiab tus lej zais, thiab Chaw Nres Nkoj 22 thiab tom qab ntawd nyem Quickconnect. Yav tom ntej cov teeb tsa no tau nco thiab tuaj yeem xaiv los ntawm Quickconnect sub menu. Ib tus tseem yuav tsum tau nkag tus password thaum hais kom ua.

Thaum txuas ntawm sab tes xis pane qhia Pi cov ntaub ntawv thiab sab laug pane PC cov ntaub ntawv. Nrhiav koj cov ntawv tais ceev tseg hauv koj lub PC los qhia cov duab thiab mus rau /home /pi ntawm pi - thaum koj yuav tsum pom daim duab nplaub tshev. Yog tias nws tsis nyob ntawd tsim nws (txoj cai nyem thiab Tsim Cov Npe). Tam sim no nyem thiab rub cov duab koj xav tau los ntawm koj lub PC mus rau Pi Duab nplaub tshev. Ob npaug nias rau ntawm daim duab Duab txhawm rau txheeb xyuas lawv nyob ntawd.

Duab
Duab

Cov Ntaub Ntawv Zilla ua haujlwm yooj yim ntawm kev hloov kho cov duab ntawm pi. Nco ntsoov tias cov duab tsis tas yuav yog qhov kev daws teeb meem zoo ib yam li saib. Txawm li cas los xij yog tias lawv yog (lossis tsawg kawg yog qhov sib piv sib piv) lawv yuav qhia tag nrho lub vijtsam yam tsis muaj qoob loo/ dub ciam teb.

Kauj ruam 4: Teem Screensaver

Txog tam sim no ntawm kuv Stretch Lite thauj cov ntxaij vab tshaus twb tau pib nrog qhov pib sau ntawm cov ntxaij vab tshaus. Muaj kev sau ntau ntawm cov ntxaij vab tshaus sib txawv los xaiv los ntawm. Ob peb qhia cov duab. Txawm li cas los xij kuv tsuas xav tau tus ntxaij lim dej kom txav mus los ntawm cov duab. Muaj ib qho uas ua qhov no hu ua GLSlideshow.

Txhawm rau teeb tsa cov ntxaij vab tshaus nyem rau raspberry (sab laug sab laug) tom qab ntawd 'Nyiam' tom qab ntawd 'Screensaver'.

Duab
Duab

Lub neej ntawd muaj ntau cov ntxaij vab tshaus xaiv los ua haujlwm ib ntus. Txawm li cas los xij tsis yog txhua qhov tau teeb tsa (greyed tawm), tshwj xeeb nrog kev teeb tsa los ntawm Stretch Lite.

Duab
Duab

Yog tias GLSlideshow tsis tau teeb tsa nws tuaj yeem dhau los ntawm kev sib tham Putty:

sudo apt-tau -y nruab xscreensaver-gl-ntxiv

Ntawm Pi mus rau Screensaver screen thiab tshawb xyuas tias GLSlideshow tam sim no nyob ntawd.

Tom qab ntawd nyem rau Advanced tab kom qhia xsceensaver qhov twg kom tau txais cov duab. Hauv qab 'Kev Tswj Xyuas Duab' zuam 'Xaiv cov duab Random' thiab xauj rau/home/pi/Cov npe duab:

Duab
Duab

Tom qab ntawd rov qab mus rau 'Display Modes' tab thiab hloov 'Hom' mus rau 'Tsuas Yog Ib Qhov Screen Saver' thiab hais txog 'GLSlideshow':

Duab
Duab

Nyem rau qhov Chaw khawm muab ntau txoj hauv kev xws li hloov sijhawm. Lub lauj kaub thiab zoom tsis ua haujlwm ntawm pi (xav tau lub zog ua haujlwm ntau dua).

Thaum kawg teeb tsa 'Blank After' lub sijhawm kom tsawg kawg 1 feeb yog tias siv ua cov duab digital.

10 Waveshare saib yog qhov zoo - thiab loj dua ntau lub tshuab kev lag luam.

Duab
Duab

Txawm li cas los xij 22 iiyama yog qhov yooj yim heev.

Duab
Duab

Nws yog lub sijhawm tam sim no los zaum rov qab thiab txaus siab rau koj cov duab swb.

Mike

Pom zoo: