Cov txheej txheem:
- Kauj Ruam 1: Cov Cheeb Tsam Xav Tau
- Kauj ruam 2: Tsim Circuit Court
- Kauj Ruam 3: teeb tsa Raspberry
- Kauj Ruam 4: Sau Txoj Haujlwm
- Kauj ruam 5: Khiav qhov program
Video: Raspberry Pi LED Blink: 5 Cov Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Tam sim no, koj tab tom kawm qhov haujlwm yooj yim tshaj plaws uas koj tuaj yeem tsim siv raspberry pi. Yog tias koj tsis paub nws tam sim no, Kuv tab tom tham txog qhov kev pab cuam ntsais muag, zoo li pom ntawm arduino. Kuv siv qee yam khoom qub uas koj tuaj yeem kawm txog hauv cov kauj ruam tom ntej. Cia pib!
Kauj Ruam 1: Cov Cheeb Tsam Xav Tau
Txhawm rau tsim, koj yuav xav tau cov hauv qab no:
- 1 x Raspberry Pi
- 1 x USB cable
- 1 x LED
- 1 x Breadboard
- 1 x SD Card thiab adapter (tsawg kawg 4GB)
- 1 x LAN cable
- 1 x 50-ohm resistor
- 2 x Jumper xov hlau
Allchips yog cov khoom siv hluav taws xob hauv online pabcuam platform, koj tuaj yeem yuav txhua yam khoom siv los ntawm lawv
Kauj ruam 2: Tsim Circuit Court
Txhua LED muaj ob sab - ib qho tsis zoo thiab ib qho zoo. Xaiv qhov tsis zoo thiab siv tus tiv thaiv, txuas nws mus rau GND (tus pin 6). Lwm qhov kawg mus rau tus pin 18. Xav tias dawb siv daim duab los ua tus siv.
Kauj Ruam 3: teeb tsa Raspberry
Yog tias koj xav khaws cov txheej txheem kom yooj yim li sai tau, koj tuaj yeem ua raws kuv cov lus qhia ntawm Raspberry Pi Headless Setup. Koj kuj tseem tuaj yeem ua nws ib txwm muaj thiab tsis muaj teeb meem li cas koj teeb tsa nws, koj yuav tsum xaus nrog lub console ntawm Pi nws tus kheej. Tam sim no, koj yuav tsum teeb tsa Python lossis Python 3. Nkag mus rau cov lus txib hauv qab no:
sudo apt-tau nruab sej
los yog
sudo apt-tau nruab python3
(nyob ntawm qhov version uas koj xaiv)
Kauj Ruam 4: Sau Txoj Haujlwm
Koj yuav tsum siv cov ntawv sau yooj yim hu ua nano, yog li nkag mus rau qhov hais kom ua sudo nano file-name.py
* Qhov twg cov ntaub ntawv-npe yog lub npe uas koj xaiv. Nco ntsoov nws, peb yuav xav tau nws tom qab!
Muab tshuaj txhuam cov cai hauv qab no hauv cov ntawv tsim tshiab:
ntshuam RPi. GPIO ua GPIO
lub sij hawm ntshuam
GPIO.setmode (GPIO. BCM)
GPIO.setwarnings (Cuav)
GPIO.setup (18, GPIO. OUT)
print "LED rau"
GPIO.output (18, GPIO. HIGH)
sijhawm.sleep (1)
luam tawm "LED tawm"
GPIO.output (18, GPIO. LOW)
Txuag cov ntaub ntawv thiab rov qab mus rau lub console.
Kauj ruam 5: Khiav qhov program
Txhawm rau ua haujlwm, tsuas yog sau sej file-name.py
* Hloov nab nab nrog nab nab 3, yog tias koj siv tus tshiab. Cov ntaub ntawv-npe yuav tsum yog lub npe ntawm cov ntawv los ntawm cov kauj ruam kawg.
Pom zoo:
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
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 hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv
Dynamic LED Teeb Pom Duab Duab Lub thawv thiab Ncej rau Kos Duab :: 16 Cov Kauj Ruam (nrog Duab)
Dynamic LED Lighting Shadow Box and Frame for Art :: Teeb pom kev yog qhov tseem ceeb ntawm kev kos duab. Thiab yog tias teeb pom kev zoo tuaj yeem hloov pauv nrog lub sijhawm nws tuaj yeem dhau los ua qhov tseem ceeb ntawm kev kos duab. Txoj haujlwm no tau pib nrog koom nrog kev ua yeeb yam pom thiab pom tias lub teeb pom kev zoo tuaj yeem hloov pauv li cas
Rov Qab Siv Cov Duab Duab Nrog Virtual Asistent: 7 Cov Kauj Ruam (nrog Duab)
Rov Qab Siv Cov Duab Duab Nrog Virtual Asistent: Nyob zoo txhua tus! Cov lus qhia no tau yug los ntawm lub laptop faib ua ib nrab, yuav los ntawm ib tus phooj ywg. Thawj qhov kev sim ntawm txoj haujlwm no yog kuv Lego Digital Photo Frame, txawm li cas los xij, yog ib tus neeg mob siab rau Siri thiab Google Tam sim no, Kuv txiav txim siab coj nws mus rau qhov tshiab
N: Yuav Ua Li Cas Ntau Cov Acrylic thiab LED Duab puab Nrog Cov Teeb Pom Kev Hloov Pauv: 11 Kauj Ruam (nrog Duab)
N: Yuav Ua Li Cas Ua Ntau Yam Acrylic thiab LED Duab puab Nrog Cov Hloov Pauv Teeb Pom Kev Zoo: Ntawm no koj tuaj yeem paub yuav ua li cas thiaj ua rau koj tus kheej n zoo li ua rau kev nthuav tawm www.laplandscape.co.uk curated los ntawm kos duab/tsim pab pawg Lapland. Ntau cov duab tuaj yeem pom ntawm flickr Qhov kev nthuav tawm no pib txij hnub Wednesday 26 Kaum Ib Hlis - Friday 12 Kaum Ob Hlis 2008 suav nrog