Cov txheej txheem:
- Kauj Ruam 1: Kho Koj Tus Raspberry Pi
- Kauj Ruam 2: Txuas Pololu Board rau Koj RPi
- Kauj ruam 3: Python Script
- Kauj Ruam 4: Nws Ua Haujlwm Li Cas
- Kauj ruam 5: Tsaug
Video: YUAV UA LI CAS RASPBERRY PI TSHUAJ: 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Tej zaum txhua tus neeg siv RPi ib zaug xav paub yuav ua li cas tua Raspberry Pi?
Koj tsis tuaj yeem tsuas yog tua lub zog. Yog tias koj ua li ntawd, nws zoo li ib hnub SD daim npav yuav raug puas ntsoog, thiab koj li RPi yuav tsis pib. Koj yuav tsum xub kaw OS, thiab tsuas yog tom qab ntawd koj tuaj yeem tua nws los ntawm rub lub qaum tawm ntawm lub qhov (socket), lossis yog tias koj yog tus neeg siv ntau dua, los ntawm kev hloov kho los ntawm koj tus kheej. Nws yog ntau dua lossis tsawg dua, yog tias koj siv koj li RPi ua lub desktop PC. Tab sis yuav ua li cas yog tias hauv koj qhov haujlwm tsis yog siv keyboard lossis nas lossis saib?
Kuv qhov kev daws teeb meem yog raws li kev siv Mini Pushbutton Power Switch nrog Rov Qab Tiv Thaiv Kev Tiv Thaiv Pawg. Cia peb nkag mus rau cov ntsiab lus.
Kauj Ruam 1: Kho Koj Tus Raspberry Pi
Ua ntej koj yuav tsum hloov kho cov ntaub ntawv config.txt ntawm koj RPI, los ntawm kev ntxiv kab:
dtoverlay = gpio-poweroff, active_low, gpiopin = 14
Muab kab no rau thaum kawg, ua ntej:
pib_x = 0
Nrog kab no koj teeb GPIO14 (ntawm no Kuv tab tom siv BCM GPIO tus lej) siab thaum pib. Thaum nws yuav qis qis tom qab kaw, nws yuav tua lub zog ntawm tus pin "ctrl" ntawm Pololu board.
Kauj Ruam 2: Txuas Pololu Board rau Koj RPi
Txuas Pololu board rau koj RPi raws li nws tau qhia hauv daim duab.
Kauj ruam 3: Python Script
Koj yuav tsum tau ntxiv qee qhov chaws rau koj tsab ntawv Python, ib yam nkaus
.****************************************************************************
gpio.setup (31, gpio. IN, pull_up_down = gpio. PUD_UP) # teeb tsa GPIO 31 raws li kev nkag
def Shutdown (channel): os.system ("sudo kaw -h tam sim no") # kaw RPi ntawm qis GPIO31
gpio.add_event_detect (31, gpio. FALLING, callback = Shutdown, bouncetime = 2000) # tos GPIO qis los kaw RPi
****************************************************************************
Kauj Ruam 4: Nws Ua Haujlwm Li Cas
SW1 hloov ua haujlwm li "ON" khawm. Tsis muaj dab tsi tshwj xeeb, txhua yam yog qhov tseeb:)
Thaum koj nias SW2, kaw cov txheej txheem pib los ntawm kev ua Python tsab ntawv.
Thaum cov txheej txheem tiav, GPIO8 mus qis.
Qib qis ntawm tus pin "ctrl" ntawm Pololu board, tig lub zog.
Qhov ntawd yog:)
Kauj ruam 5: Tsaug
Mus ntsib kuv Blog rau ntau txoj haujlwm txaus nyiam:
verysecretlab09.blogspot.com/
Youtube channel:
www.youtube.com/channel/UCl8RTfbWUWxgglcJM…
Pom zoo:
YUAV TSUM HNOV TSHUAJ TIV THAIV TSHUAJ TIV THAIV TSHUAJ TIV THAIV LAMP: 8 Kauj Ruam
YUAV UA LI CAS YUAV TSHUAJ TSEEB TSHUAB PLASTICS RAU DESKTOP LAMP: hauv cov lus qhia no kuv yuav qhia koj yuav ua li cas thiaj ua rau koj tus kheej lub teeb pom kev zoo siv cov khoob yas khoob khoob
YUAV UA LI CAS YUAV TSHUAJ QHOV TEL CELL PHONE (NOKIA 6600) INTO SUPERGADGET-MICROCOMPUTER: 37 Kauj Ruam
YUAV UA LI CAS hloov pauv tus xov tooj qub (NOKIA 6600) Nkag mus rau hauv SUPERGADGET-MICROCOMPUTER: http://www.internetsecretbook.com https://www.youtube.com/thebibleformula Hauv nruab nrab ntawm cov teeb meem dag dag. - Albert Einstein Lub Nokia 6600 lub xov tooj muaj lub ntsej muag tshiab tshaj plaws, suav nrog lub ci 65,536-xim TFT zaub thiab caâ € ¦
YUAV UA LI CAS YUAV TSHUAJ FM RADIO RECEIVER NTAUB NTAWV: 6 Kauj Ruam
YUAV UA LI CAS Ua FM Xov Tooj Cua Hauv Tsev: Yuav ua li cas ua lub xov tooj cua nyob hauv tsev los ntawm DIY cov khoom siv hluav taws xob me me thiab pheej yig compact, kuj yooj yim los daws teeb meem yuav nthuav tawm hauv cov kauj ruam tom ntej
YUAV UA LI CAS YUAV TSHUAJ YOOJ YIM YOOJ YIM: 6 Kauj Ruam
YUAV UA LI CAS YUAV TSUM YOOJ YIM YOOJ YIM TSHAJ PLAWS: Kuv yuav muab cov lus qhia rau koj yuav ua li cas thiaj ua tau yooj yim pov tseg. pov tseg tsis nyuaj thiab tuaj yeem mob heev yog tias koj ua lawv raug. yog tias koj xav tau kev pab txuas ntxiv dhau qhov qhia paub no e-mail kuv ntawm [email protected]. Kuv yuav zoo siab t
YUAV UA LI CAS Ua Koj Tus Kheej IPOD HOODIES {TSHIAB THIAB YUAV TSHUAJ!}: 3 Kauj Ruam
YUAV UA LI CAS YUAV UA LI CAS YUAV UA LI CAS IPOD HOODIES {TSHIAB THIAB YUAV TSHUAJ!}: Yuav ua li cas thiaj ua rau koj tus kheej lub ipod hoodies Tam sim no loj dua thiab zoo dua qhov kev qhia no yog nyob ib puag ncig kuv tus ipod kov tab sis koj tseem tuaj yeem ua rau ib qho rau ipod.please pom kuv thawj lub ipod hoodies qhia tau ib yam https://www.instructables.com/id/MAKE-YOUR-OWN-IPOD-HOO