Cov txheej txheem:

Pi Raws Qhov Chaw Pab Cuam Nres Tsheb: 9 Kauj Ruam
Pi Raws Qhov Chaw Pab Cuam Nres Tsheb: 9 Kauj Ruam

Video: Pi Raws Qhov Chaw Pab Cuam Nres Tsheb: 9 Kauj Ruam

Video: Pi Raws Qhov Chaw Pab Cuam Nres Tsheb: 9 Kauj Ruam
Video: txhob hnov qab kuv lub npe - Bee lee [Official MV] 2022-23 2024, Kaum ib hlis
Anonim
Pi Raws Qhov Chaw Pab Cuam Tsheb
Pi Raws Qhov Chaw Pab Cuam Tsheb

Nyob zoo! Nov yog qhov haujlwm me me txias uas koj tuaj yeem ua nyob rau yav tav su ib zaug thiab tom qab ntawd siv nws txhua hnub. Nws ua raws Raspberry Pi Zero W thiab yuav pab koj nres koj lub tsheb kom zoo txhua lub sijhawm.

Nov yog daim ntawv teev cov ntu koj yuav xav tau:

  • Raspberry Pi Zero W (peb yuav hu qhov no 'rpi' lossis 'pi' hauv kab lus no)
  • 4GB lossis loj dua daim npav micro SD rau pi OS
  • Ob qhov me me LiDAR Lub Sij Hawm ntawm Dav Dav nrug deb qhov ntsuas qhov ntsuas
  • 32x32 RGB LED Vaj Huam Sib Luag (muaj ntau lub chaw tsim khoom rau qhov no nrog ntau qhov sib txawv, koj tuaj yeem piv txwv siv Adafruit 1484 lossis zoo sib xws, tsuas yog tshawb rau '32x32 LED Matrix' hauv Google). Peb lub vaj huam sib luag muaj 6mm suab.
  • 25 ko taw ntawm CAT5 cable
  • kwv yees li 22 xim txiv neej rau txiv neej header pin jumper xov hlau
  • 5v 2Amp microUSB fais fab mov (them lub xov tooj ntawm tes) Txhua txheej? Wb mus!

TL; DR Summary

  • Rub tawm Raspbian Lite OS rau rpi
  • Kho tus pi kom khiav tsis tau taub hau WiFi nrog tus IP zoo li qub
  • Teeb tsa koj lub PC dev ib puag ncig nrog PuTTY, WinSCP thiab xaiv SublimeText w/ FTP addon
  • Rub tawm, tsim thiab khi cov tsav tsheb LED vaj huam sib luag
  • Rub tawm thiab teeb tsa pigpio
  • Rub tawm peb tus lej nab npawb
  • Txhim kho 32x32 LED zaub vaj huam sib luag
  • Ua CAT5 txuas txuas rau sab me meLiDAR sensor
  • Yeem qib (tab sis tsuas yog rau cov neeg siv qib siab): ua las voos zoo siab sai thaum txhua tus ua haujlwm;)

Kauj ruam 1: Dab tsi yog Pi Zero W?

Pi Zero W yog dab tsi?
Pi Zero W yog dab tsi?

Koj tsis ntseeg tias tau hnov txog Raspberry Pi tab sis dab tsi heck yog pi 'Zero W'?

Raspberry Pi Zero thiab Zero W yog qhov ntxiv yav dhau los rau Pi tsev neeg txhais tau ntau dua rau IoT thiab lwm yam nqi qis hauv daim ntawv thov. Lawv raug tshem tawm cov ntawv ntawm thawj daim npav tab sis tseem nrog lub zog 1GHz processor. Nov yog kev sib piv zoo ntawm txhua tus qauv.

Cov txiaj ntsig rau peb hauv kev xaiv Pi Zero W ntawm no hla lwm lub rooj tswj hwm yog tias peb tuaj yeem yooj yim program nws hauv qib lus Python ntau dua thaum tseem siv C/C ++ LED tsav ceev. Nws tseem yog qhov txaus nyiam tus nqi ntawm tsuas yog $ 10USD.

Nco ntsoov tias txij li lub rooj tsavxwm no tau muab tshem tawm ntawm cov pi tag nrho - qee yam tau hloov pauv. Tshwj xeeb, lub ethernet jack tau raug tshem tawm, lub txuas HDMI tau hloov mus rau qhov me me thiab plaub lub USB chaw nres nkoj tau yooj yim dua rau tsuas yog ib hom micro USB. Muaj lwm lub micro USB txuas rau ntawm lub nkoj, tab sis nws tsuas yog siv rau lub rooj tsavxwm. Kev tshem tawm ntawm txhua qhov loj me USB txuas txuas qhia qee qhov nyuaj. Namely, koj tuaj yeem txuas tus keyboard thiab nas li cas? Txheem USB cov khoom siv thiab cov chaw siv Hom A txuas tsis yog hom micro.

Yog li peb tuaj yeem ua dab tsi?

Peb tuaj yeem mus tsis tau taub hau!

Tsis yog, peb tsis txhais hais tias yuav vwm tab sis siv lwm txoj hauv kev rau kev teeb tsa ncaj qha ib txwm siv. Lub taub hau txhais tau tias "qhov av" mus rau pi nyob deb uas siv lub plhaub ruaj ntseg (SSH) kev sib txuas network. Rau qhov haujlwm no peb yuav siv txoj hauv kev tsis muaj taub hau hla WiFi. Yog li qhov laj thawj rau peb hauv kev xaiv W version ntawm pi xoom hloov pauv tus nqi qis dua xoom.

Nco ntsoov tias tseem muaj lwm txoj hauv kev los khiav tus pi hauv hom tsis muaj lub taub hau siv qee yam hu ua VNC. Nws xav tau tshwj xeeb VNC software khiav ntawm koj lub PC tab sis raws li nws muab tag nrho cov duab nraaj duab ntawm koj lub PC. Peb tsis xav tau (thiab tsis xav tau tiag tiag) lub desktop rau peb txoj haujlwm yog li peb yuav ua raws li txoj hauv kev yooj yim SSH.

Kauj Ruam 2: Scotty, Peb Xav Tau Lub Hwj Chim Ntxiv

Scotty, Peb Xav Tau Lub Hwj Chim Ntau Ntxiv!
Scotty, Peb Xav Tau Lub Hwj Chim Ntau Ntxiv!

32x32 LED matrix vaj huam sib luag tuaj yeem, tag nrho los ntawm nws tus kheej, siv ob peb amps tam sim no. Tsis tso dag! Tias yog vim li cas feem ntau ntawm cov vaj huam sib luag no suav nrog qee qhov saib loj zog txuas hluav taws xob rau nws. Hmoov zoo rau peb txawm hais tias peb yuav tsis xav tau lub zog loj loj rau txoj haujlwm no. Peb muaj peev xwm ua kom muaj zog tag nrho cov txheej txheem los ntawm tsuas yog siv 5v/2amp microUSB lub xov tooj ntawm tes uas peb tau pw ib ncig. Qhov laj thawj rau qhov qis dua tam sim no yog vim peb siv cov duab yooj yooj yim thiab yog li ntawd tsis txhob qhib rau feem ntau ntawm LEDs. Yog tias koj tab tom xav txog kev tsim cov duab lossis siv cov vis dis aus/duab ci ntsa iab ces koj yuav tsum txiav txim siab txiav txim siab lub zog vaj huam sib luag los ntawm cov khoom siv hluav taws xob cais.

Kauj Ruam 3: Kev Tso Sensor thiab Software

Kev Tso Npe Sensor thiab Software
Kev Tso Npe Sensor thiab Software
Kev Tso Npe Sensor thiab Software
Kev Tso Npe Sensor thiab Software

Koj puas tau pom tias peb tab tom siv ob qhov me meLiDARs hauv cov kab ke no hloov ib qho xwb? Raws li qhia hauv daim duab teeb tsa chaw rau tsheb, ib qho tau muab tso rau ntawm lub tsheb thiab lwm qhov raug muab tso rau ntawm ib sab ntawm lub tsheb.

Sab sensor yuav txheeb xyuas yog tias koj txav mus los ntawm qhov chaw thaum koj nres tsheb thiab tau kawg lub hauv ntej yuav qhia koj thaum yuav tsum nres.

Lub 32x32 LED zaub yuav pab koj los ntawm kev qhia cov xub kom txav mus rau tom ntej, sab laug lossis sab xis thiab suav suav nrog cov xim dawb los qhia kom deb npaum li cas koj tseem yuav tsum tsav tsheb. Ua tibzoo saib peb cov vis dis aus luv luv rau txhua lub xeev saib.

Txoj Kev Npaj Ua Si

Hauv qhov tseeb, peb tab tom siv lub tsev qiv ntawv nrov hzeller C rau tus tsav tsheb LED, Python rau kev tswj hwm tus lej thiab pipgpio C lub tsev qiv ntawv kom tsim nyog I2C tswj ntawm peb lub ntsuas.

Nab hab sej yog hom lus yooj yim heev uas koj tuaj yeem kho tau yooj yim ntawm txhua tus ntawv sau. Peb ib txwm siv SublimeText thiab rau txoj haujlwm no peb kuj tseem siv FTP plugin uas muaj txiaj ntsig zoo uas tso cai rau peb kho cov ntawv sau ncaj qha rau ntawm pi. Nov yog cov kauj ruam xaiv tau raws li nws tsuas yog xav tau yog tias koj xav kho qhov chaws. Xav paub ntau ntxiv muaj nyob rau ntawm qhov kawg ntawm kab lus no.

Txhua lub rpi boards, raws li koj tuaj yeem paub, tsis yog ib txwm txhawb nqa I2C moos ncab. Yog li peb tau siv lub tsev qiv ntawv pigpio dua rau txoj haujlwm no los tswj cov ntsuas me meLiDAR tab sis lub sijhawm no nrog kev sib tw me ntsis …

Ntau qhov me meLiDARs

Thaum koj yuav me meLiDAR, nws ib txwm tau teeb tsa rau qhov chaw nyob qhev ntawm 0x10. Qhov no zoo rau thaum koj siv tib lub ntsuas tab sis yog tias koj muaj ntau dua ib qho ntawm lub tsheb npav nws tej zaum muaj teeb meem yog tias koj sau lus txib rau 0x10 thiab txhua tus ntawm lawv teb rov qab!

Yog li peb muaj 3 txoj kev xaiv ntawm no:

Ua ntej, peb tuaj yeem siv (me meLiDAR) "R" hais kom sau tus qhev tshiab chaw nyob rau ib lub cim txuas nrog I2C npav. Tom qab ntawd rov ua qhov no rau txhua lub sensor. Lub cev txuas nrog, sau ntawv thiab tshem tawm txhua lub ntsuas rau cov txheej txheem no. me meLiDAR yuav khaws qhov chaw nyob muab rau hauv nws lub cim xeeb uas tsis hloov pauv. Qhov chaw nyob yuav nyob tau txawm tias tom qab kev caij tsheb kauj vab txog thaum koj tshem nws los ntawm kev tshaj tawm RESET cov lus txib.

Qhov kev xaiv thib ob yog siv qhov yooj yim Auto Assign feature uas peb tsim los ua lub hom phiaj ncab hauv IGG phiaj los nqis tes. Qhov no cuam tshuam nrog xa "AR" cov lus txib thiab tom qab ntawd taw koj tus ntiv tes mus rau txhua lub sensor rau tus kheej kom pib ua haujlwm txuas ntxiv I2C chaw nyob rau tus kheej lub ntsej muag zoo ib yam li thawj qhov kev xaiv tab sis koj tsis tas yuav lub cev txuas txhua lub sensor los ua qhov no.

Qhov kev xaiv thib peb yog qhov uas peb tab tom siv ntawm no hauv txoj haujlwm no thiab nws ua tau los ua tsaug rau lub tsev qiv ntawv pigpio. Txhawm rau siv I2C tus qauv kom raug, pigpio bitbangs GPIO. Yog li vim li no, peb tuaj yeem yooj yim tsim cais I2C cov tsheb npav ntawm tsuas yog hais txog ib khub ntawm GPIO pins uas tsis siv.

Vim li no tsis tas yuav rov ua haujlwm qhov chaw nyob qhev rau ntau lub LiDAR sensors. Peb tsuas tuaj yeem siv tsheb npav cais rau txhua tus:)

Nco ntsoov tias I2C lub tsheb npav khiav ntawm 100Kbps yog qhov ua tau zoo heev. Peb tab tom siv CAT5 qub Ethernet cable los khiav I2C tsheb npav mus rau sab me meLiDAR sensor uas yog tag nrho 25 ko taw deb yam tsis muaj cov khoom siv rov ua dua! Cov ntsiab lus ntawm cov xov hluav taws xob tau qhia saum toj no.

Okay, txaus jibber jabber, cia peb pib rub tawm cov cai!

Kauj ruam 4: Teeb tsa Pi

Teeb tsa Pi
Teeb tsa Pi
Teeb tsa Pi
Teeb tsa Pi

Ceev faj: Tus pi siv Linux cov ntaub ntawv kaw lus yog li nws zoo tshaj los ua cov theem hauv qab no ntawm Linux raws li kab ke. Koj tuaj yeem rov kho dua koj daim npav SD yog tias koj ua qhov no ntawm Windows. Peb siv qhov txaus & dawb Ubuntu 18.04 desktop khiav hauv ib puag ncig virtual ntawm Windows 10 PC tab sis koj tuaj yeem sim qee yam zoo sib xws.

Koj yuav tsum xub rub tawm OS los ntawm raspberrypi.org thiab tom qab ntawd hlawv nws rau koj daim npav microSD. Yog li ua raws cov theem no:

(1) Hauv Ubuntu mus ntawm no thiab rub Raspbian Lite duab. Txuag nws rau koj daim nplaub tshev download.

(2) Tom ntej rub tawm Etcher SD daim ntawv sau nqi hluav taws xob. FYI - tus nom Etcher rub tawm txuas rau Linux version ntawm lawv lub vev xaib tsis ua haujlwm rau peb yog li peb tau siv txoj hauv kev piav qhia ntawm no hloov chaw:

Hauv kev xaus cov kauj ruam piav qhia hauv qhov txuas yog:

Ntxiv Etcher debian repository:

ncha "deb https://dl.bintray.com/resin-io/debian ruaj khov lwm yam" | sudo tee /etc/apt/sources.list.d/etcher.list

Ntseeg Bintray.com's GPG qhov tseem ceeb:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 379CE192D401AB61

Hloov tshiab thiab teeb tsa:

sudo apt-tau hloov tshiab

sudo apt-tau nruab etcher-electron

Thaum ua tiav, koj tuaj yeem mus tom ntej thiab tso Etcher los ntawm koj lub desktop Ubuntu. Nws yuav nug koj txog cov ntaub ntawv keeb kwm (uas koj muab tso rau hauv cov ntawv rub tawm). Cov kauj ruam tom ntej hauv Etcher yog xaiv lub hom phiaj raug. Etcher ua haujlwm zoo ntawm kev txheeb xyuas koj daim npav micro SD tab sis koj yuav tsum tsis txhob ntshai ntawm no. Txhawm rau txheeb xyuas nws tau nrhiav lub hom phiaj kom raug - sim tshem daim npav microSD los ntawm txhaj eject hauv Ubuntu file explorer window thiab txheeb xyuas tias nws ploj mus raws li lub hom phiaj xaiv hauv Etcher. Tom qab ntawd qhib nws rov qab thiab txuas ntxiv mus rau theem kawg, uas yog sau cov ntawv rau daim npav microSD no.

Tos ib pliag kom txog thaum nws ua tiav thiab tom qab ntawd txuas ntxiv mus.

Kauj ruam 5: WiFi Sijhawm

Sijhawm WiFi
Sijhawm WiFi
Sijhawm WiFi
Sijhawm WiFi

Yog li tam sim no nws yog lub sijhawm los nkag rau koj cov ntaub ntawv WiFi.

Tswv yim: koj ib txwm tuaj yeem luam tawm (Ctrl+C) thiab muab tshuaj txhuam (Txoj Cai Nyem, Muab Tshuaj) cov ntaub ntawv los ntawm kab lus no mus rau PuTTY lub davhlau ya nyob twg screen tsis txhob ntaus cov lus txib. Txheeb qhov kawg ntawm kab lus no rau ntau qhov kev pabcuam Linux zoo ib yam.

Thaum Etcher ua tiav kev sau ntawv mus rau daim npav micro SD, yuav muaj 2 lub zog ua haujlwm raws li pom saum toj no. Ib qho yog hu ua khau raj lwm tus hu ua rootfs

Peb yuav tsum siv tus tswj xyuas cov ntaub ntawv nkag mus rau hauv khau raj nplaub tshev thiab ua cov ntaub ntawv hu ua wpa_supplicant.conf.

Txhawm rau ua cov kauj ruam no koj tuaj yeem nyem rau ntawm sab laug qhov uas nws hais tias khau raj thiab tom qab ntawd ntawm sab xis ntawm lub vijtsam koj tuaj yeem nyem sab xis ntawm cov pawg dawb thiab xaiv Qhib hauv Terminal.

Qhov no yuav qhib qhib lub davhlau ya nyob twg (zoo ib yam li CMD hauv Windows) uas koj tuaj yeem ntaus cov hauv qab no:

sudo nano wpa_supplicant.conf Tswv yim: Koj yuav tsum tau nkag mus rau koj li kab ke Linux system lo lus zais kom nws tuaj yeem ua tus Super User. Qhov no xav tau lossis lwm yam koj yuav tsis tuaj yeem txuag cov ntaub ntawv thaum koj ua tiav kev kho

Cov lus txib saum toj no yuav pib "nano" cov ntawv sau uas koj tuaj yeem nkag mus rau cov ntaub ntawv hauv qab no:

teb chaws = US

ctrl_interface = DIR = /var /run /wpa_supplicant GROUP = netdev update_config = 1 network = {ssid = "WiFi_SSID" scan_ssid = 1 psk = "WiFi_Password" key_mgmt = WPA - PSK}

Nco tseg: Nco ntsoov hloov WiFi_SSID thiab WiFi_Password nrog koj tus kheej lub network WiFi npe thiab tus password.

Thaum koj ua tiav, tsuas yog nyem Ctrl+X kom tawm thiab teb Yes rau sau cov ntawv thaum tawm.

Peb cov kauj ruam tom ntej yog tsim cov ntaub ntawv khoob hu ua ssh. Txhawm rau ua qhov no, peb tsuas yog ntaus cov hauv qab no hauv lub davhlau ya nyob twg qhov rai:

kov ssh

Tam sim no peb yuav tsum muab peb tus pi chaw nyob IP zoo li ntawd peb paub qhov twg nws yog txhua lub sijhawm peb xav txuas nrog nws. Ntaus cov hauv qab no hauv lub qhov rai davhlau ya nyob twg:

sudo nano /etc/dhcpcd.conf

Qhov no yuav tsum qhib nano phau ntawv kho dua thiab peb tuaj yeem ntxiv cov ntawv no rau hauv qab ntawm cov ntawv:

wb wl0

zoo li qub ip_address = 192.168.0.static routers = 192.168.0.1 zoo li qub domain_name_servers = 192.168.0.1 8.8.8.8

Nco tseg: Qhov no xav tias koj lub network ua ntej yog 192.168.0. Yog tias koj muaj 192.168.1 thiab lwm yam ces siv koj lub network hloov. Tus sau lub npe server 8.8.8.8 yog rau Google thiab nws xaiv tau ntawm no.

Ntaus 'tawm' hauv Terminal kom kaw nws. Tom qab ntawv nyem rau ntawm lub npe khau raj nyob rau sab laug ntawm Cov Ntaub Ntawv tus thawj tswj qhov rai thiab xaiv Eject.

Tam sim no koj tuaj yeem ntsaws daim npav microSD no rau hauv koj tus pi thiab ntsaws rau hauv lub microUSB fais fab cable los txhawb koj lub pi.

Yog tias txhua yam mus tau zoo, ntsuab ntsuab yuav ntsais ib pliag zoo li nws nkag mus rau lub hard drive thiab nws yuav tsum nkag koj mus rau koj li WiFi network. Muab nws txog ib pliag los daws qhov teeb meem thiab tos kom LED los ua ntsuab.

Txhawm rau txheeb xyuas tias nws txhua yam ua haujlwm, peb tuaj yeem sim ping nws.

Yog li cia li ntaus kab hauv qab no thiab tshawb xyuas cov lus teb.

pib ping 192.168.0.200

Hauv Ubuntu koj yuav tsum tau txais qee yam zoo sib xws rau qhov no:

pib ping 192.168.0.200

PING 192.168.0.200 (192.168.0.200) 56 (84) bytes ntawm cov ntaub ntawv. 64 bytes los ntawm 192.168.0.200: icmp_seq = 1 ttl = 128 sij hawm = 752 ms 64 bytes los ntawm 192.168.0.200: icmp_seq = 2 ttl = 128 sij hawm = 5.77 ms 64 bytes los ntawm 192.168.0.200: icmp_seq = 3 ttl = 128 sij hawm = 7.33 ms ^C --- 192.168.0.200 ping statistics --- 3 pob ntawv xa, 3 tau txais, 0% pob ntawv poob, sijhawm 2001ms rtt min/avg/max/mdev = 5.777/255.346/752.922/351.839 ms

Nco ntsoov tias ping tseem ua haujlwm txuas mus txog thaum koj ntaus Ctrl+C kom txiav luam yeeb.

Hauv Windows koj yuav tsum tau txais qee yam zoo li no:

pib ping 192.168.0.200

Pinging 192.168.0.200 nrog 32 bytes ntawm cov ntaub ntawv: Teb los ntawm 192.168.0.200: bytes = 32 lub sijhawm = 4ms TTL = 64 Teb los ntawm 192.168.0.200: bytes = 32 lub sijhawm = 5ms TTL = 64 Teb los ntawm 192.168.0.200: bytes = 32 zaug = 6ms TTL = 64 Teb los ntawm 192.168.0.200: bytes = 32 lub sij hawm = 5ms TTL = 64 Ping txheeb cais rau 192.168.0.200: Pob ntawv: Xa = 4, Tau txais = 4, Poob = 0 (poob 0%), Kwv yees li ncig ncig lub sijhawm hauv milli-seconds: Yam tsawg kawg = 4ms, Siab tshaj = 6ms, Nruab nrab = 5ms

Txhua yam zoo? Ntxiv mus …

Kauj Ruam 6: Nkag Mus Hauv

Teev Npe
Teev Npe

Tam sim no peb muaj kev sib txuas rau pi, peb xav xa nws cov lus txib. Tab sis li cas? PuTTY tau kawg! Koj tuaj yeem rub tawm PuTTY los ntawm no Kev teeb tsa PuTTY Tom qab rub tawm PuTTY software, ua qhov profile rau koj pi nrog cov ntaub ntawv hauv qab no:

Tus Tswv Lub Npe (lossis IP chaw nyob): 192.168.0.200 Hom kev sib txuas: SSH Muab cov npe no rau hauv qab Cov Sijhawm Txuag thiab ntaus Txuag. Koj tuaj yeem siv lub npe uas koj nyiam piv txwv "rpizw_200"

Txhawm rau nkag mus, tsuas yog xaiv nws los ntawm cov npe thiab nyem Load. Tom qab ntawv nyem Qhib. Sau tus neeg siv lub npe thiab tus lej nkag mus nkag rau:

login name: pib

Defalt password: raspberry

Nov yog qhov piv txwv qhia pom hauv PuTTY thaum koj nkag mus:

login as: pib

[email protected]'s password: Linux raspberrypi 4.14.34+ #1110 Mon Plaub Hlis 16 14:51:42 BST 2018 armv6l Cov program no suav nrog Debian GNU/Linux system yog software dawb; cov ntsiab lus faib khoom meej rau txhua qhov haujlwm tau piav qhia hauv cov ntaub ntawv ib leeg hauv/usr/share/doc/*/copyright. Debian GNU/Linux los nrog ABSOLUTELY NO WARRANTY, raws li kev tso cai los ntawm txoj cai lij choj. Nkag mus zaum kawg: [hnub tim thiab sijhawm] los ntawm 192.168.0. [Ip chaw nyob] SSH tau qhib thiab tus password tsis raug rau tus neeg siv 'pi' tsis tau hloov pauv. Nov yog qhov kev pheej hmoo nyab xeeb - thov nkag mus ua tus siv 'pi' thiab ntaus 'passwd' los teeb tus password tshiab.

Thaum nkag mus thawj zaug, nws yuav ceeb toom tias koj tseem tsis tau hloov tus password. Koj yuav tsum hloov nws mus rau qee yam muaj zog tab sis yooj yim kom nco qab yog li mus tom ntej thiab hloov nws los ntawm kev ntaus passwd thiab ua raws cov lus qhia.

Peb yuav tsum hloov kho software tom ntej ntawm pi los ntawm kev ntaus ntawv no:

sudo apt-tau hloov tshiab & sudo apt-tau hloov tshiab

Qhov no yuav rub tawm txhua qhov hloov tshiab nws xav tau los ntawm koj li internet txuas. Teb YOG YOG yog hais kom tso cai nws txuas ntxiv thiab tom qab ntawd muab sijhawm rau nws hloov kho.

Lub sijhawm no peb yuav tsum tseem kaw lub suab ntawm tus pi vim nws muaj qee qhov tsis zoo nrog lub tsev qiv ntawv tsav tsheb LED. Luam, muab cov kab hauv qab no ib zaug thiab nias nkag mus tom qab txhua kab:

cd ~ ib

miv << EOF | sudo tee /etc/modprobe.d/blacklist-rgb-matrix.conf blacklist snd_bcm2835 EOF sudo hloov tshiab-initramfs -u

Cov zis yuav yog ib yam zoo li no:

pi@raspberrypi: ~ $ cd ~

pi@raspberrypi: ~ $ miv <> blacklist snd_bcm2835>> EOF blacklist snd_bcm2835 pi@raspberrypi: ~ $ sudo update -initramfs -u pi@raspberrypi: ~ $

Tom qab ntawd peb yuav tsum rov pib dua pi kom muaj kev hloov pauv siv tau, yog li ntaus cov hauv qab no:

sudo reboot tam sim no

Qhov kev sib txuas yuav poob ntawm chav kawm raws li pi tau rov pib dua yog li koj tuaj yeem kaw PuTTY. Sim nkag rov qab los ib pliag tom qab.

Tam sim no nws yog lub sijhawm kom tau txais daim duab FTP tus thawj tswj ntaub ntawv hu ua WinSCP. Koj tuaj yeem rub tawm WinSCP los ntawm no

WinSCP zoo ib yam li cov tswj cov ntaub ntawv ntawm Windows thiab Ubuntu. Nws tso cai rau peb yooj yim rub thiab xa cov ntawv mus & los ntawm pi thiab tsim cov lus tsis txaus ntseeg nrog tsuas yog nias ntawm tus nas.

Thaum rub tawm tiav, koj yuav tsum teeb tsa qhov profile rau koj pi.

Kev teeb tsa WinSCP Ntawm tus ID nkag mus popup, xaiv Chaw Tshiab. Siv cov kev teeb tsa hauv qab no rau kev sib ntsib:

Cov ntaub ntawv raws tu qauv: SFTP Tus tswv lub npe: 192.168.0.200 Tus neeg siv lub npe: pi Lo lus zais: {lo lus zais twg los xij koj tau hloov pauv mus rau hauv PuTTY cov kauj ruam saum toj no}

Hauv Qhov Chaw Zoo Tshaj Plaws mus rau Ib puag ncig | Cov npe thiab nkag mus /tsev /pi rau Cov npe hauv Cov Chaw Nyob thiab txhua yam uas koj nyiam rau Cov Ntawv Teev Npe Hauv Zos.

Hauv Qhov Chaw Zoo Tshaj Plaws mus rau Ib puag ncig | Plhaub thiab xaiv sudo su - hauv Plhaub poob npe.

Tom qab ntawv nyem Txuag.

Khaws ob qho WinSCP thiab PuTTY qhib thaum ua cov theem hauv qab no

Mus rau PuTTY lub davhlau ya nyob twg thiab sau cov hauv qab no:

cd ~ ib

Qhov no yuav coj peb mus rau peb phau ntawv teev npe tsev sab hauv ntawm pi.

Tam sim no peb tuaj yeem tuav lub tsev qiv ntawv tsav tsheb LED los ntawm github. Txhawm rau siv tus lej tshiab tshaj plaws, peb yuav tsum rub lub repo yog li peb yuav tsum tau teeb tsa git nqi hluav taws xob.

Sau qhov no hauv PuTTY:

sudo apt-tau nruab git

teb Y mus txuas ntxiv thiab nws yuav siv ob peb feeb los teeb tsa git rau peb los ntawm is taws nem.

Cov zis yuav tsum zoo ib yam li qhov no:

pi@raspberrypi: ~ $ sudo apt-tau nruab git

Nyeem cov npe pob… Ua tiav Lub tsev vam khom tsob ntoo Nyeem cov ntaub ntawv hauv xeev… Ua tiav Cov pob ntxiv hauv qab no yuav raug teeb tsa: git-man liberror-perl Cov lus pom zoo pob: git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-arch git-cvs git-mediawiki git-svn Cov pob tshiab hauv qab no yuav raug teeb tsa: git git-man liberror-perl 0 hloov kho, 3 tshiab tau teeb tsa, 0 tshem tawm thiab 0 tsis hloov kho. Yuav tsum tau txais 4,848 kB ntawm cov ntawv khaws cia. Tom qab ua haujlwm no, 26.4 MB ntawm qhov chaw disk ntxiv yuav raug siv. Koj puas xav mus ntxiv? [Y/n] y Tau: 1 https://muug.ca/mirror/raspbian/raspbian stretch/main armhf liberror-perl txhua 0.17024-1 [26.9 kB] Tau: 2 https://muug.ca/mirror/ raspbian/raspbian stretch/main armhf git-man txhua 1: 2.11.0-3+deb9u3 [1, 433 kB] Tau: 3 https://muug.ca/mirror/raspbian/raspbian stretch/main armhf git armhf 1: 2.11.0-3+deb9u3 [3, 388 kB] Fetched 4, 848 kB hauv 5s (878 kB/s) Xaiv yav dhau los tsis tau xaiv pob liberror-perl.(Nyeem cov ntaub ntawv… 34363 cov ntaub ntawv thiab cov npe tam sim no tau teeb tsa.) Npaj rau unpack…/liberror-perl_0.17024-1_all.deb… Unpacking liberror-perl (0.17024-1)… Xaiv yav dhau los tsis tau xaiv pob git-txiv neej. Npaj rau unpack…/git-man_1%3a2.11.0-3+deb9u3_all.deb… Unpacking git-man (1: 2.11.0-3+deb9u3)… Xaiv yav dhau los tsis tau xaiv pob git. Npaj rau unpack…/git_1%3a2.11.0-3+deb9u3_armhf.deb… Unpacking git (1: 2.11.0-3+deb9u3)… Teeb git-txiv neej (1: 2.11.0-3+deb9u3)… Teeb tsa liberror-perl (0.17024-1)… Ua rau cov txiv neej -db (2.7.6.1-2)… Teeb git (1: 2.11.0-3+deb9u3)…

Tam sim no rov qab mus rau WinSCP thiab taw mus rau /home /pi nplaub tshev. Tom qab ntawd ntawm sab xis ntawm WinScp qhov rai no, nyem rau sab xis thiab xaiv los tsim phau ntawv teev npe tshiab hu ua "nres tsheb"

Rov qab rau hauv PuTTY screen koj tuaj yeem ntaus ls kom paub tseeb tias koj nyuam qhuav tsim daim nplaub tshev tshiab hauv pi. Tom qab ntawd sau qhov no:

cd p [TAB]Tswv yim: Nias tus TAB qhov tseem ceeb yuav ua tiav lub npe ib nrab rau koj

Nias tus yuam sij nkag mus rau hauv phau ntawv teev npe no.

pi@raspberrypi: ~ $ cd nres tsheb/

pi@raspberrypi: ~/nres $ ls

Tam sim no peb tuaj yeem tau txais cov ntawv tsav tsheb los ntawm kev nkag mus rau hauv qab no hauv PuTTY:

git clone

Cov zis yuav zoo li no:

pi@raspberrypi: ~/nres $ git clone

Cloning rau hauv 'rpi-rgb-led-matrix'… tej thaj chaw deb: Suav cov khoom: 3740, ua tiav. tej thaj chaw deb: Total 3740 (delta 0), reused 0 (delta 0), pack-reused 3740 Tau txais cov khoom: 100% (3740/3740), 20.61 MiB | 1.32 MiB/s, ua tiav. Kev daws qhov deltas: 100% (2550/2550), ua tiav.

Tam sim no suav cov LED tsav cov ntaub ntawv los ntawm kev nkag mus rau qhov tshiab 'rpi-rgb-led-matrix' phau ntawv teev npe thiab ntaus cov lus txib ua:

cd r [TAB]

ua Thiab qhov no zoo li nws zoo li ntawm peb lub rooj tsavxwm

pi@raspberrypi: ~/nres $ cd rpi-rgb-led-matrix/

pi@raspberrypi: ~/parking/rpi-rgb-led-matrix $ make -C./lib make [1]: Nkag mus rau phau ntawv teev npe '/home/pi/parking/rpi-rgb-led-matrix/lib' g ++- Kuv../ suav nrog -Wall -O3 -g -fPIC -DDEFAULT_HARDWARE = '"tsis tu ncua' '-Wextra -Wno -unused -parameter -fno -exceptions -c -o gpio.o gpio.cc g ++ -I../ suav nrog -Wall -O3 -g -fPIC -DDEFAULT_HARDWARE = '"tsis tu ncua' '-Wextra -Wno -unused -parameter -fno -exceptions -c -o led -matrix.o led-matrix.cc g ++ -I../ suav nrog - Phab ntsa -O3 -g -fPIC -DDEFAULT_HARDWARE = '"tsis tu ncua' '-Wextra -Wno -unused -parameter -fno -exceptions -c -o options -initialize.o options-initialize.cc g ++ -I../ suav nrog -Wall -O3 -g -fPIC -DDEFAULT_HARDWARE = '"tsis tu ncua' '-Wextra -Wno -unused -parameter -fno -exceptions -c -o framebuffer.o framebuffer.cc g ++ -I../ suav nrog -Wall -O3 -g - fPIC -DDEFAULT_HARDWARE = '"regular"' -Wextra -Wno -unused -parameter -fno -exceptions -c -o thread.o thread.cc g ++ -I../ include -Wall -O3 -g -fPIC -DDEFAULT_HARDWARE = ' "tsis tu ncua" '-Wextra -Wno -unused -parameter -fno -exceptions -c -o bdf -font.o bdf -fon t.cc g ++ -I../ suav nrog -Wall -O3 -g -fPIC -DDEFAULT_HARDWARE = '"tsis tu ncua' '-Wextra -Wno -unused -parameter -fno -exceptions -c -o graphics.o graphics.cc g ++ - Kuv../ suav nrog -Wall -O3 -g -fPIC -DDEFAULT_HARDWARE = '"tsis tu ncua' '-Wextra -Wno -unused -parameter -fno -exceptions -c -o transformer.cc transformer.cc g ++ -I../ suav nrog -Wall -O3 -g -fPIC -DDEFAULT_HARDWARE = '"tsis tu ncua' '-Wextra -Wno -unused -parameter -fno -exceptions -c -o coj -matrix -co coj-matrix-c.cc cc -I../ suav nrog -Wall -O3 -g -fPIC -DDEFAULT_HARDWARE = '"tsis tu ncua' '-Wextra -Wno -unused -parameter -c -o hardware -mapping.o hardware -mapping.c g ++ -I../ suav nrog -Wall -O3 -g -fPIC -DDEFAULT_HARDWARE = '"tsis tu ncua' '-Wextra -Wno -unused -parameter -fno -exceptions -c -o content -streamer.o content-streamer.cc g ++ -I../ suav nrog -Wall -O3 - g -fPIC -DDEFAULT_HARDWARE = '"tsis tu ncua' '-Wextra -Wno -unused -parameter -fno -exceptions -c -o pixel -mapper.o pixel-mapper.cc g ++ -I../ suav nrog -Wall -O3 -g -fPIC -DDEFAULT_HARDWARE = '"tsis tu ncua' '-Wextra -Wno -unused -parameter -fno -excep tions -c -o multiplex-mappers.o multiplex-mappers.cc ar rcs librgbmatrix.a gpio.o coj-matrix.o xaiv-initialize.o framebuffer.o thread.o bdf-font.o graphics.o transformer.o coj-matrix-co kho vajtse-mapping.o cov ntsiab lus-streamer.o pixel-mapper.o multiplex-mappers.o g ++ -shared -Wl, -soname, librgbmatrix.so.1 -o librgbmatrix.so.1 gpio.o coj -matrix.o xaiv-initialize.o framebuffer.o thread.o bdf-font.o graphics.o transformer.o coj-matrix-co hardware-mapping.o content-streamer.o pixel-mapper.o multiplex-mappers. o -lpthread -lrt -lm -lpthread ua [1]: Tawm hauv phau ntawv '/home/pi/parking/rpi -rgb -led -matrix/lib' ua -C piv txwv -api -siv ua [1]: Nkag mus rau phau ntawv teev npe ' /home/pi/parking/rpi -rgb -led -matrix/Piv txwv -api -use 'g ++ -I../ suav nrog -Wall -O3 -g -Wextra -Wno -unused -parameter -c -o demo -main. o demo-main.cc ua -C../lib ua [2]: Nkag mus rau phau ntawv teev npe '/home/pi/parking/rpi-rgb-led-matrix/lib' ua [2]: Tawm hauv phau ntawv teev npe '/home/pi /parking/rpi-rgb-led-matrix/lib 'g ++ demo-main.o -o demo -L../ lib -lrgbmatrix -lrt -lm -lpthread g ++ -I../ suav nrog -Wall -O3 -g -Wextra -Wno -unused -parameter -c -o minimal -example.o minimal-example.cc g ++ minimal -example.o - o tsawg kawg -piv txwv -L../ lib -lrgbmatrix -lrt -lm -lpthread cc -I../ suav nrog -Wall -O3 -g -Wextra -Wno -unused -parameter -c -o c -example.o c- example.c cc c -example.o -o c -example -L../ lib -lrgbmatrix -lrt -lm -lpthread -lstdc ++ g ++ -I../ suav nrog -Wall -O3 -g -Wextra -Wno -unused- parameter -c -o text -example.o text-example.cc g ++ text -example.o -o text -example -L../ lib -lrgbmatrix -lrt -lm -lpthread g ++ -I../ suav nrog -Wall - O3 -g -Wextra -Wno-unused-parameter -c -o scrolling-text-example.o scrolling-text-example.cc g ++ scrolling-text-example.o -o scrolling-text-example -L../ lib -lrgbmatrix -lrt -lm -lpthread g ++ -I../ suav nrog -Wall -O3 -g -Wextra -Wno -unused -parameter -c -o clock.o clock.cc g ++ moos.o -o moos -L.. /lib -lrgbmatrix -lrt -lm -lpthread g ++ -I../ suav nrog -Wall -O3 -g -Wextra -Wno -unused -parameter -c -o ledcat.o ledcat.cc g ++ le dcat.o -o ledcat -L../ lib -lrgbmatrix -lrt -lm -lpthread ua [1]: Tawm hauv phau ntawv '/home/pi/parking/rpi -rgb -led -matrix/Piv txwv -api -use' pi @raspberrypi: ~/chaw nres tsheb/rpi-rgb-led-matrix $

Peb cov kauj ruam tom ntej yuav yog khi lub tsev qiv ntawv RGB matrix rau Python. Peb tau siv lub Python 2 tsis raug rau qhov haujlwm no. Yog li txhawm rau ua qhov kev khi no peb nkag mus rau kab hauv qab no ib zaug raws li ua ntej:

sudo apt-tau hloov tshiab && sudo apt-tau nruab python2.7-dev nab nab-hauv ncoo -y

ua build-python sudo ua install-python

Nco tseg: Koj tuaj yeem nyab xeeb tsis quav ntsej ib qho lus ceeb toom txog '-Wstrict-prototype' uas tshwm sim thaum khiav ob qho lus tshaj tawm. Cov lus txib ua ob peb feeb los khiav thiab lawv tsis hais dab tsi hauv lub sijhawm lawv tsis khoom. Yog li tsis txhob ntshai - koj tus pi yuav tsum rov qab los sai sai;)

Nov yog ib nrab tso tawm ntawm thawj qhov kev hais tawm:

tsim 'cov duab' txuas ntxiv

caj npab -linux -gnueabihf -gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict -prototypes -fno -strict -aliasing -Wdate -time -D_FORTIFY_SOURCE = 2 -g -fdebug -prefix -map =/build/python2.7-kKRR4y/python2.7-2.7.13 =. -fstack -protector -strong -Wformat -Werror = format -security -fPIC -I../../ include -I/usr/include/python2.7 -c rgbmatrix/graphics.cpp -o build/temp.linux- armv6l-2.7/rgbmatrix/graphics.o -O3 -Wall cc1plus: ceeb toom: xaiv kab lus xaiv '-Wstrict-prototypes' siv tau rau C/ObjC tab sis tsis yog rau C ++ arm-linux-gnueabihf-g ++ -pthread -shared -Wl, -O1 -Wl, -Bsymbolic -functions -Wl, -z, relro -fno -nruj -aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict -prototypes -Wdate -time -D_FORTIFY_SOURCE = 2 -g -fdebug -prefix -map =/tsim/python2.7-kKRR4y/python2.7-2.7.13 =. -fstack -protector -strong -Wformat -Werror = format -security -Wl, -z, relro -Wdate -time -D_FORTIFY_SOURCE = 2 -g -fdebug -prefix -map =/build/python2.7 -kKRR4y/python2.7 -2.7.13 =. -fstack -protector -strong -Wformat -Werror = format -security build/temp.linux -armv6l -2.7/rgbmatrix/graphics.o -L../../ lib -lrgbmatrix -o./rgbmatrix/graphics.so ua [1]: Tawm hauv phau ntawv '/home/pi/parking/rpi-rgb-led-matrix/bindings/python' pi@raspberrypi: ~/parking/rpi-rgb-led-matrix $

Tom ntej no peb yuav teeb tsa lub tsev qiv ntawv pigpio C. Txhawm rau ua qhov no kom raug peb yuav tsum ua nws los ntawm qhov chaw tsuas yog nkag mus rau kab hauv qab no:

cd ~ ib

sudo rm -rf PIGPIO wget abyz.me.uk/rpi/pigpio/pigpio.zip unzip pigpio.zip cd PIGPIO ua sudo ua nruab rm pigpio.zip

Kev teeb tsa saum toj no siv sijhawm li 3 feeb.

Tam sim no nws yog lub sijhawm kom tau txais peb cov ntaub ntawv ua haujlwm Python. Nkag mus rau hauv qab no:

cd ~ ib

cd/home/pi/parking/rpi-rgb-led-matrix/bindings/python/kuaj wget https://s3.amazonaws.com/microedco/tinyLiDAR/Raspberry+Pi/tinyL_parking.zip unzip -j tinyL_parking.zip rm smallL_parking.zip

Tom qab ntawd kom ua nws, ntaus cov hauv qab no:

sudo python parking.py

Tab sis koj tsis tas yuav ua qhov no tam sim no vim peb tseem yuav tau xaim nws tag nrho …

Kauj ruam 7: Cov kab

Hlau
Hlau
Hlau
Hlau
Hlau
Hlau
Hlau
Hlau

Raws li tau hais ua ntej, peb tau siv lub vaj huam sib luag LED los ntawm tib lub zog hloov pauv uas ua rau lub zog pi. Txhawm rau ua qhov no, koj yuav tsum tau txuas cov xov liab thiab dub dub rau txiv neej lub taub hau txuas kom lawv tuaj yeem ntsaws rau hauv tus pin 2 thiab 9 ntawm 40pin pi txuas.

Tshem lub hwj chim rau pi tam sim no thiab xaim lub vaj huam sib luag LED raws li daim duab qhia duab saum toj no. Khaws tus pin 2 disconnected rau tam sim no.

NCO TSEG: Lub vaj huam sib luag LED matrix tuaj yeem qee zaum muaj zog hauv lub xeev lom zem. Yog tias qhov no tshwm sim nws tuaj yeem ntsaws koj lub zog fais fab tsis muaj teeb meem dab tsi tam sim no lub peev xwm nws muaj. Peb pom qhov no thaum txhim kho ntawm peb lub rooj zaum uas tuaj yeem muab ntau dua 4 amps. Qhov kev daws teeb meem no yog kom khiav tus lej pi ua ntej thiab tom qab ntawd ntsaws rau tus pin 2 txhawm rau ua kom lub vaj huam sib luag LED. Txoj hauv kev no lub vaj huam sib luag yuav tsum los rau hauv lub zog qis vim tias nws yoo tawm cov xwm txheej LED tsis raug. Quiescent tam sim no (tag nrho LEDs tawm) rau peb cov vaj huam sib luag LED tsuas yog 50mA ntawm 5v.

CAT5

Peb tau siv 25 ko taw CAT5 ethernet cable thiab hloov kho nws los ntsaws rau hauv pi header pins ntawm ib kawg thiab lees txais GROVE txuas tus pin ntawm lwm sab yog li peb tuaj yeem txuas qhov deb kom tso peb sab me meLiDAR sensor. Cov duab saum toj no qhia cov kab no ua ntej thiab tom qab hloov kho. Tsis quav ntsej cov xim ntawm lub header pin xov hlau vim tias lawv tsis cuam tshuam nrog cov duab kos. Tsuas yog xyuas kom tseeb tias koj xaim koj lub kaw lus raws li qhia hauv kab duab txuas kab duab qhia ua ntej hauv qib 3.

Kauj Ruam 8: Teeb Nws

Image
Image
Yeem Kauj Ruam thiab Cov Lus Qhia Pab Tau
Yeem Kauj Ruam thiab Cov Lus Qhia Pab Tau

Thawj lub hwj chim tsim nyog ua ntu zus yuav tsum yog ntsaws lub microUSB them nyiaj rau hauv pi thiab tos kom lub xiav LEDs ntawm lub me meLiDAR sensors ntsais sai sai uas qhia tias lawv tau ntsuas. Qhov no ua pov thawj tias txoj cai ua haujlwm tau zoo.

Koj tuaj yeem maj mam tab sis khov kho txuas tus pin 2 rau cov khoom siv vaj huam sib luag LED. Ceev faj tsis txhob cuam tshuam nws thaum ua qhov no! Yog tias lub vaj huam sib luag LED pom ob peb lub teeb ci ci ci LEDs nws yog tej zaum glitched yog li tshem tawm microUSB lub zog los ntawm pi thiab tos ob peb vib nas this los sim lub zog rov ua ntu zus.

Txhawm rau khiav cov cai, sau cov hauv qab no:

cd/tsev/pi/chaw nres tsheb/rpi-rgb-led-matrix/khi/sej/piv txwv

sudo python parking.py

Yog tias txhua yam mus tau zoo koj yuav tsum tau txais cov zaub zoo ib yam li tau qhia hauv video.

Saib nrawm ntawm qhov chaw nres tsheb.py kom nkag siab qhov txwv peb siv. Lub neej ntawd rau lub hauv ntej sensor yog 200mm. Raws li qhov ntsuas ntau yog 11mm txog 2m nws yog lub tswv yim zoo kom khaws lub npe_parked_Front deb ntawm 200mm lossis siab dua. Sab sensor nom_parked_Side tau teeb tsa rau 600mm. Saib daim duab saum toj no rau Python code qhia cov kev teeb tsa no.

Yog tias txhua yam ua haujlwm, koj tuaj yeem mus tom ntej thiab teeb tsa cov kab ke hauv koj lub nkas -las thiab kho cov kev ntsuas saum toj no raws li xav tau. Txij li thaum koj yog pi txuas nrog koj li WiFi, koj ib txwm tuaj yeem nkag mus thiab hloov kho koj qhov chaw nyob deb raws li koj xav tau rau koj qhov chaw teeb tsa tshwj xeeb thaum nws tseem tab tom teeb tsa.

Tam sim no puas yog?

Vim li cas yog, yog nws yog! - sijhawm ua koj cov seev cev zoo siab:)

Ua tsaug rau kev nyeem ntawv thiab txaus siab rau koj tus pab nres tsheb tshiab!

Kauj Ruam 9: Xaiv Kauj Ruam thiab Cov Lus Qhia Pab Tau

Yeem Yeem - FTP addon rau Sublime Text

Txhawm rau kho Python tsab ntawv cov ntaub ntawv ncaj qha rau ntawm pi, peb tuaj yeem nruab FTP addon hu ua Sublime SFTP los ntawm Wbond. Koj tuaj yeem rub tawm qhov addon no los ntawm kev ua raws cov lus qhia ntawm no

Txhawm rau teeb tsa qhov ntxiv no peb yuav tsum teeb tsa FTP daim ntawv pov thawj raws li Cov Ntaub Ntawv | SFTP/FTP | Teeb Server… nplooj ntawv.

Rau peb teeb tsa peb siv:

"yam": "sftp", "sync_down_on_open": muaj tseeb, "sync_same_age": tseeb, "host": "192.168.0.200", "user": "pi", "password": "YOUR_RPI_PASSWORD_HERE", "chaw nres nkoj": "22", "remote_path": "/home/pi/", "file_permissions": "664", "dir_permissions": "775", Siv Ctrl+S lossis File | Txuag kom khaws cov ntaub ntawv no. Koj yuav raug ceeb toom rau lub npe kom hu qhov kev teeb tsa no. Peb tsuas hu nws "rpizw_0_200"

Tam sim no nkag mus rau pi los ntawm SublimeText, mus rau File | SFTP/FTP | Xauj Server…

Xaiv los ntawm cov npe xaiv uas popup. Koj yuav xav xaiv qhov profile nrog lub npe koj teev tseg saum toj no;) Ua raws li cov lus qhia kom mus rau cov ntawv tais ceev tseg thiab kho cov ntaub ntawv xav tau.

Pab Ntxiv

Siv tau Linux cov lus txib kom siv ntawm pi.

Ua ntej tshem lub pi, ib txwm nco ntsoov kaw nws kom koj tsis txhob tau txais cov ntaub ntawv tsis ncaj ncees ntawm koj daim npav microSD. Sau cov lus txib no:

sudo kaw tam sim no

thiab tos kom ntsuab coj los tua ua ntej yuav tsis txuas lub hwj chim. Zoo sib xws kom rov pib dua nws, koj tuaj yeem nkag mus:

sudo reboot tam sim no

Txhawm rau teev cov ntaub ntawv hauv cov npe, siv qhov no:

ls ua

Koj tuaj yeem pom lwm cov lus txib Linux muaj txiaj ntsig ntawm no

Pom zoo: