Iyo Raspberry Pi chishandiso cheshanduko chakakwanisa kuwana nzvimbo munzvimbo dzedzidzo uye mudzimba otomatiki uye mapurojekiti ekuvandudza tekinoroji. Nekudaro, kunyangwe iri intuitive kune akawanda mabasa, imwe yekusahadzika kwakajairika pakati pevashandisi ndeye nzira yekudzima uye kutangazve iyi bhodhi diki zvakachengeteka uye nemazvo. Kunyange zvazvo ringaita sechinhu chiduku, kuita zvisina kururama kunogona kukonzera matambudziko, akadai data huori pane yako SD kadhi kana kukuvadza kune sisitimu yekushandisa.
Muchinyorwa chino, isu tichaongorora sarudzo dzese dziripo kuti dzivharwe nemazvo uye kutangazve Raspberry Pi. Kubva yekutanga mirairo kune dzimwe nzira dzepamusoro dzinosanganisira yekuwedzera hardware, pano iwe unowana ruzivo rwese rwaunoda kuchengetedza mudziyo wako uchishanda pa100%. Pasina imwe ado, ngatisvikei pane iyo pfungwa.
Sei zvakakosha kuvhara iyo Raspberry Pi nenzira kwayo?
Kudzima Raspberry Pi nemazvo kwakakosha kuti ive nechokwadi chekugara kwayo uye kushanda kwayo kweiyo inoshanda sisitimu yainoshandisa. Kusiyana nekombuta yakajairwa, bhodhi iri harina bhatani rekudzima kana kudzima, izvo zvinotungamira vashandisi vazhinji kuibvisa zvakananga kubva kusimba. Tsika iyi, kunyangwe ichiyedza, inogona kukonzera faira uori pane microSD kadhi, iyo huru yekuchengetedza svikiro yeRaspberry Pi.
Pamusoro pezvo, kuvharika kwakashata kunogona kukanganisa maitiro akakomba angave achimhanya kumashure, izvo, zvakare, zvinogona kutungamirira kumatambudziko paunenge uchiedza kutangazve sisitimu. Naizvozvo, ziva nzira dzakachengeteka kudzima Raspberry Pi yako kwakakosha.
Nzira dzekutanga kudzima uye kutangazve iyo Raspberry Pi
Pane nzira dzinoverengeka dzekudzima uye kutangazve yako Raspberry Pi. Pazasi, isu tinodonongodza nzira dzinoshandiswa zvakanyanya, saka iwe unogona kusarudza iyo inonyatsoenderana nezvido zvako.
Dzima kubva kune command console
Iyo yakajairika, uye pamwe yakavimbika, nzira ndeye kushandisa command console. Iyo iri nyore kwazvo uye inowanikwa kune chero mushandisi, chero iwe uchikwanisa kuwana iyo terminal yako yekushandisa system.
- Basic command: Nyora
sudo shutdown -h now
pane console. Pano,-h
inoratidza kuti iwe unoda kumisa sisitimu (kumisa) uyenow
Inotsanangura kuti unoda kuti chiito chiitike nekukasika. - Kuvhara kwakarongwa: Kana iwe uchida kuronga kuvharwa kwenguva yemberi, shandisa murairo
sudo shutdown -h HH:MM
, kutsivaHH:MM
kwenguva yaunoda. - Kanzura kudzima kwakarongwa: Kana ukashandura pfungwa dzako, shandisa
sudo shutdown -c
kudzima kudzima.
Reboot kubva kune command console
Kutangazve iyo Raspberry Pi kunogona zvakare kuitwa nyore uchishandisa mirairo:
- Basic command: Kuti utangezve, nyora
sudo shutdown -r now
, kupi-r
inoratidza kutangazve (reboot). - Alternative command: Iwe unogona zvakare kushandisa
sudo reboot
, kunyange zvazvo sarudzo yekutanga inokurudzirwa maitiro akanaka.
Zvenyama sarudzo kudzima uye kutangazve iyo Raspberry Pi
Kana ukada imwe mhinduro inobatika isingabatanidzi kushandiswa kweiyo terminal kana kuda kuti vamwe vakwanise kudzima kana kutangazve chishandiso pasina ruzivo rwehunyanzvi, pane zvingasarudzwa zvehardware.
Kushandisa push button
Nzira yakangwara yekudzima Raspberry Pi ine bhatani remuviri. Kuti uite izvi:
- Batanidza bhatani pakati peGPIO zviteshi zveRaspberry, seGPIO14 (pini 8) uye GND kubatana.
- Nyora diki Python script kuitira kuti chiito chekudzvanya bhatani chiite yekudzima kuraira. Iyo inotevera kodhi inogona kushanda senheyo:
#!/bin/python import RPi.GPIO seGPIO import os GPIO.setmode(GPIO.BOARD) GPIO.setup(8, GPIO.IN, pull_up_down=GPIO.PUD_UP) def Shutdown(channel): os.system("sudo shutdown -h now") GPIO.add_event_detect(8, GPIO.FALLING, callback=Shutdown, bouncetime=2000) uku Chokwadi: pfuura
Iyi nzira yakanakira avo vanoda kushandisa Raspberry mukati console type mapurojekiti kana zvakafanana.
Matambo emagetsi ane chinja
Imwe mhinduro ndeyekutenga tambo yemagetsi ine switch yakabatanidzwa. Idzi tambo dzinokutendera kuti uvhare zvakachengeteka kudzima simba, sezvo vamwe vachiuya nedunhu rakagadzirirwa kubata kubviswa. zvishoma nezvishoma.
Zvigadziriso zvepamberi zvekugadzirisa kudzima
Kune vashandisi vepamberi, kune masevhisi uye zvinyorwa zvinogona otomatiki kuvhara kana kutangazve iyo Raspberry Pi pasi pemamwe mamiriro.
Semuenzaniso, unogona kuseta iyo faira /etc/rc.local
kumhanyisa magwaro chaiwo kana sisitimu yabatidzwa kana kudzimwa. Unogonawo kushandisa systemd kubata masevhisi anotonga magetsi nekudzima.
Kuchengeta iyo Raspberry Pi yakadzimwa zvakanaka uye kutangazve ibasa riri nyore kana ukasarudza nzira yakanyatsokodzera nyaya yako. Kubva pamirairo yekutanga pane terminal kusvika kumisikidzwa mabhatani emuviri kana kushandisa tambo dzehunyanzvi, sarudzo dzinosiyana uye dzinogona kugadzirwa zvinoenderana nezvaunoda. Chinhu chakakosha ndechekuita chokwadi operating system kutendeseka uye kushanda kweRaspberry Pi yako.