Cov txheej txheem:

Teeb Raspberry Pi Tsis Muaj Tus Saib Xyuas Sab Nraud lossis Keyboard: 7 Kauj Ruam
Teeb Raspberry Pi Tsis Muaj Tus Saib Xyuas Sab Nraud lossis Keyboard: 7 Kauj Ruam

Video: Teeb Raspberry Pi Tsis Muaj Tus Saib Xyuas Sab Nraud lossis Keyboard: 7 Kauj Ruam

Video: Teeb Raspberry Pi Tsis Muaj Tus Saib Xyuas Sab Nraud lossis Keyboard: 7 Kauj Ruam
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Kaum ib hlis
Anonim
Image
Image

Koj tsis xav tau tus saib sab nraud, keyboard, thiab nas kom pib nrog Raspberry Pi, muaj lwm txoj kev daws teeb meem - hom tsis muaj hau

Kauj Ruam 1: Cov Khoom Kho Vajtse

Kho vajtse Cheebtsam
Kho vajtse Cheebtsam
Kho vajtse Cheebtsam
Kho vajtse Cheebtsam
  • Raspberry pi 3 Qauv B+
  • SD Card Adapter
  • daim npav microSD
  • Khoos phis tawj nrog SD Qhov (lossis tsim nyog daim npav SD adapter)
  • Micro-USB rau USB Cable
  • Wi-nkaus Router

Kauj Ruam 2: Txhim Kho Cov Txheej Txheem Ua Haujlwm

Txhim kho Kev Ua Haujlwm
Txhim kho Kev Ua Haujlwm
Txhim kho Kev Ua Haujlwm
Txhim kho Kev Ua Haujlwm
Txhim kho Kev Ua Haujlwm
Txhim kho Kev Ua Haujlwm
  1. Rub tawm Raspbian thiab rho tawm cov ntaub ntawv.img.
  2. Ntawm Windows, nyem rau ntawm Zip cov ntaub ntawv hauv koj phau ntawv rub tawm thiab nyem Extract All.
  3. Ntxig lub microSD rau hauv koj lub computer SD daim npav qhov ntawm SD daim npav adapter.
  4. Tom ntej no, koj yuav tsum nyem cov duab Raspbian mus rau microSD nrog kev pab los ntawm Win32DiskImager tab sis ua ntej ntawd koj yuav tsum tau format koj daim npav SD los ntawm kev siv SDFormatter.
  5. Kev nkag mus rau SSH tau xiam los ntawm lub neej ntawd. Txhawm rau ua kom nws, tsim cov ntaub ntawv khoob hauv khau raj hu ua ssh.
  6. Ntawm Windows, sab hauv phau ntawv teev npe khau raj, nyem rau hauv qhov chaw dawb, nyem rau Tshiab thiab xaiv Cov Ntawv Sau. Sau ssh raws li lub npe.

Kauj ruam 3: Txuas rau Network

Txuas mus rau Network
Txuas mus rau Network
Txuas mus rau Network
Txuas mus rau Network

Hauv Mac/Linux

  • Tsim cov ntawv tshiab hauv khau raj hu ua wpa_supplicant.conf.
  • Ua raws cov cai hauv qab no.

Hauv Windows

  • Rub tawm thiab teeb tsa Notepad ++ los ntawm no.
  • Thaum teeb tsa, hauv Notepad ++ mus rau File> Tshiab los tsim cov ntawv tshiab.
  • Nyob rau sab saum toj bar, xaiv Kho kom raug> EOL Kev Hloov Pauv. Nco ntsoov Unix (LF) raug xaiv. Nws yuav tsum tshwm ntsej muag yog tias nws yog.
  • Xaiv Cov Ntaub Ntawv> Txuag li, taw rau koj lub khau raj tsav thiab hu rau cov ntaub ntawv wpa_supplicant.conf.

Txhua OS

  • Muab tshuaj txhuam rau hauv cov cai hauv qab no sau wpa_supplicant.conf
  • Hloov Koj-SSID nrog koj lub network WiFi, thiab Koj-PSK nrog koj tus lej WiFi. Cov ntaub ntawv no yuav qhia rau Raspberry Pi txuas rau lub network tshwj xeeb thaum nws khau raj.

NCO TSEG: Nco ntsoov tias koj lub khoos phis tawj txuas nrog tib lub network zoo li koj li Raspberry Pi

Kauj ruam 4: Booting Up Board

Booting Up Board
Booting Up Board
  • Ncua daim npav microSD thiab ntxig nws rau hauv Raspberry Pi's microSD qhov.
  • Txuas PWR IN micro USB ntawm koj lub Raspberry Pi mus rau 5v lub zog siv (piv txwv li koj lub khoos phis tawj USB chaw nres nkoj).
  • Tos rau lub rooj tsavxwm kom khau raj - lub ntsuab ntsuab yuav tsum nres ntsais muag thaum nws pib ua tiav.

Kauj Ruam 5: Tau Txais Koj Tus Raspberry Pi IP Chaw Nyob

Tau Koj Tus Raspberry Pi Tus IP Chaw Nyob
Tau Koj Tus Raspberry Pi Tus IP Chaw Nyob

Nkag mus rau koj lub router

  • Yog tias koj muaj kev nkag mus rau koj lub router, koj tuaj yeem nkag mus rau nws li admin vaj huam sib luag ntawm qhov browser. Feem ntau nws zoo li 192.168.0.1, 192.168.1.1 lossis 192.168.1.254.
  • Saib cov npe khoom siv thiab nrhiav tus IP chaw nyob ntawm koj tus Pi. Nws yuav tsum zoo ib yam li 192.168.1.8.

Thov nco ntsoov Thaum nkag mus rau tus lej zais hauv lub davhlau ya nyob twg lossis hais kom sai, koj yuav tsis pom nws raug ntaus, rau kev nyab xeeb. Tsuas ntaus tus password thiab ntaus tus yuam sij nkag.

Kauj Ruam 6: Txuas rau Raspberry Pi Via SSH

Txuas rau Raspberry Pi Via SSH
Txuas rau Raspberry Pi Via SSH

Hauv Windows

  • Rub tawm Putty los ntawm no tso cai rau koj sib tham nrog koj pawg thawj coj ntawm SSH.
  • Hauv qab Tus Tswv Lub Npe (lossis IP chaw nyob) nkag mus rau tus IP chaw rau koj li Raspberry Pi.
  • Nyem rau khawm qhib los tsim kev sib txuas.

Ntawm Mac thiab Linux

  • Qhib lub davhlau ya nyob twg qhov rai, thiab khiav ssh pi@ip-address.
  • Hloov tus IP-chaw nyob nrog tus uas koj tau ua hauv cov kauj ruam dhau los.
  • Koj yuav raug hais kom nkag mus rau tus password - tus password tsis raug yog raspberry.

Qhov ntawd yog nws! Tam sim no koj tau txuas nrog koj li Raspberry Pi ntawm SSH. Koj tuaj yeem teeb tsa lub rooj tsavxwm los ntawm kev khiav

sudo raspi-teeb tsa

Kauj Ruam 7: Code (wpa_supplicant.conf)

lub teb chaws = IEctrl_interface = DIR =/var/run/wpa_supplicant GROUP = netdev hloov tshiab_config = 1 network = {scan_ssid = 1 ssid = "Your-SSID" psk = "Your-PSK" key_mgmt = WPA-PSK}

Pom zoo: