Cov txheej txheem:
- Kauj Ruam 1: Nruab Operating System hauv Pi
- Kauj ruam 2: Schematic ntawm Circuit
- Kauj Ruam 3: Saib Yeeb Yaj Kiab kom paub meej ntxiv
- Kauj ruam 4: Python Code
Video: Pib Koj Thawj Txoj Haujlwm Nrog Raspberry: Teeb LED: 4 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:30
Hauv qhov haujlwm no kuv yuav qhia koj yuav ua li cas rau phiaj xwm Raspberry Pi kom ua rau LED ntsais, Yog tias koj yuav luag yuav Raspberry pi thiab koj tsis paub dab tsi los pib, qhov kev qhia no haum rau hauv.
Ntxiv rau koj li Raspberry Pi khiav Raspbian, koj yuav xav tau:
1.330 Ohms resistor
2. LED
3. Cov qhob cij
4. Qee cov xov hlau
Kauj Ruam 1: Nruab Operating System hauv Pi
Koj tuaj yeem hla cov kauj ruam no yog tias koj tau teeb tsa OS twb tau nyob hauv Pi Yog tias yog ces mus rau kauj ruam 2 lossis lwm yam saib ua tiav OS txhim kho cov lus qhia hauv qhov txuas no uas kuv tau tshaj tawm.
www.instructables.com/id/Build-Your-Own-PC-With-Raspberry/
Kauj ruam 2: Schematic ntawm Circuit
Ua siab zoo ua raws cov theem hauv qab no:
1. Txuas 220Ω resistor rau anode ntawm LED, tom qab ntawd tus tiv thaiv mus rau 5 V.
2. Txuas lub cathode ntawm LED mus rau GPIO (Saib daim duab saum toj no).
Kauj Ruam 3: Saib Yeeb Yaj Kiab kom paub meej ntxiv
Kauj ruam 4: Python Code
Tam sim no koj tau npaj sau qee qhov chaws txhawm rau hloov LED.
NCO TSEG: Txhua kauj ruam hauv qab no tau piav qhia hauv video
1. Qhib koj tus Pi thiab Tsim cov ntawv sau tshiab “BLINK.py”.
=====================================================================================
2. Ntaus cov cai hauv qab no:
ntshuam RPi. GPIO ua GPIOimport lub sijhawm
GPIO.setwarnings (Cuav)
GPIO.setmode (GPIO. BCM)
GPIO.setup (17, GPIO. OUT) #Txheeb tus pin 17 ua tus pin tso tawm
thaum Muaj Tseeb:
GPIO.output (17, Tseeb) #Outputs digital HIGH teeb liab (5V) ntawm tus pin 3
time.sleep (2) #Lub sijhawm qeeb ntawm 2 thib ob
print ('Nyob zoo') #Trint thaum lub LED tig rau
GPIO.output (17, Cuav) #Outputs digital LOW signal (0V) ntawm tus pin 3
time.sleep (2) #Lub sijhawm qeeb ntawm 2 thib ob
=====================================================================================
3. Thaum koj tau ntaus tag nrho cov cai kos tseg tseg
=====================================================================================
4. Khiav tus nab npawb nab npawb los ntawm kev ntaus cov cai hauv qab no hauv lub davhlau ya nyob twg:
- cd Desktop thiab nias Enter (Kuv ntaus Desktop vim kuv tau khaws cov ntawv hauv pi's Desktop).
- nab hab sej BLINK.py thiab nias Enter.
=====================================================================================
Koj yuav pom LED qhib rau ob vib nas this thiab tom qab ntawd kaw rau ob vib nas this ib yam nkaus.
Kuv vam tias koj txaus siab nrog txoj haujlwm no.
Pom zoo:
Ultrasonics Raws Txoj Haujlwm Txoj Haujlwm: 4 Kauj Ruam (nrog Duab)
Ultrasonics Raws Qhov Txheej Txheem: Txhua qhov hloov pauv ntawm ultrasonic radars Kuv tau pom rau cov khoom siv arduino (Arduino - Radar/Ultrasonic Detector, Arduino Ultrasonic Radar Project) zoo heev radars tab sis txhua tus ntawm lawv yog "dig muag". Kuv txhais tau tias, lub radar pom qee yam tab sis kuv
Tus Thawj Saib Xyuas Haujlwm - Tsev Haujlwm Ua Haujlwm Hauv Tsev: 5 Kauj Ruam (nrog Duab)
Tus Thawj Saib Xyuas Haujlwm - Tsev Tswj Xyuas Haujlwm Hauv Tsev: Kuv xav sim daws qhov teeb meem tshwm sim tiag tiag hauv peb tsev neeg (thiab, kuv xav txog, ntawm ntau lwm tus neeg nyeem), uas yog yuav faib li cas, txhawb siab, thiab muab nqi zog rau kuv cov menyuam rau kev pab tawm nrog ua haujlwm hauv tsev. Txog tam sim no, peb tau khaws cov ntawv laminated
Ua Koj Thawj C ++ Txoj Haujlwm (Windows): 12 Cov Kauj Ruam
Ua Koj Thawj C ++ Txoj Haujlwm (Windows): Nyob zoo cov neeg xav paub coders! Koj puas xav muaj peev xwm qhia rau koj cov phooj ywg tias koj tau tsim txoj haujlwm? Tej zaum koj tsuas yog tab tom nrhiav qhov chaw zoo kom pib pom tias qhov no yuav yog qhov nyiam nyiam ua? Nws tsis muaj teeb meem npaum li cas koj paub nrog nav
Yuav Ua Li Cas Hloov Cov Ntawv Uas Zoo Li Thaum Koj Tsiv Koj Tus Kheej Los Ntawm Qhov Pib Pib: 4 Cov Kauj Ruam
Yuav Ua Li Cas Hloov Cov Ntawv Uas Zoo Li Thaum Koj Tsiv Koj Tus Nas Hla Lub Pob Pib: Lub npe hais txhua yam
Koj Thawj Txoj Haujlwm hauv C#: 9 Cov Kauj Ruam
Koj Thawj Txoj Haujlwm hauv C#: Ua qhov program yooj yim uas qhib lub thawv ntawv thiab tom qab ntawd pib hloov kho nws los ua koj tus kheej! s dawb! http: //www.micros