Cov txheej txheem:
- Kauj Ruam 1: Teeb - Raspberry PI
- Kauj Ruam 2: 1. Pib Pib
- Kauj Ruam 3: 2. Ib txwm Siv Tus Tiv Thaiv
- Kauj Ruam 4: 3. Txuas rau Raspberry Pi
- Kauj Ruam 5: 4. Siv Python
- Kauj Ruam 6: Qhov Kawg
Video: LED Teeb - Yam Yuav Tsum Tau: 6 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Txog cov lus qhia no kuv yuav qhia koj yuav ua li cas kom lub teeb ci LED qhib thiab tawm nrog kev siv Raspberry Pi, thiab qee qhov Python programming. Yam uas koj yuav xav tau rau txoj haujlwm yog raws li hauv qab no: LED teeb, Jumper coj mus, lub khob cij, USB fais fab mov (tig rau RaspberryPi), Micro SD card, thiab Raspberry Pi. Koj tseem yuav xav tau yam uas yuav tso cai rau tus neeg siv txav ib puag ncig Raspberry PI cov duab siv zoo li HDMI thiab saib xyuas kom pom dab tsi tshwm sim, thiab nas thiab keyboard kom tswj tau ib puag ncig.
Kauj Ruam 1: Teeb - Raspberry PI
Kuv yuav tsis mus rau qib ib qib tshwj xeeb yuav ua li cas teeb tsa Raspberry PI txij li qhov ntawd tuaj yeem yog Kev Qhia Txhua Yam ntawm nws tus kheej. Hloov chaw kuv tsuas yog muab rau koj kom khiav nrawm. koj yuav tsum tau mus rau https://www.raspberrypi.org/downlaods/noobs thiab rub tawm cov ntawv hu ua Noobs uas muaj Raspbain (lub operating system) hauv nws. Noobs yog qhov yooj yim rau teeb tsa version ntawm lub operating system uas yuav pab piav qhia qhov system rau cov neeg siv tshiab. Tom qab ntawd koj yuav rho tawm cov ntawv uas tau rub tawm thiab muab tso rau hauv daim npav Micro SD, uas tom qab ntawd yuav raug txhaj rau hauv Micro SD qhov hauv Raspberry PI. Thaum koj Qhib Raspberry PI nws yuav tom qab ntawd ua haujlwm Noobs, thiab qhia koj yuav siv lub operating system li cas.
Kauj Ruam 2: 1. Pib Pib
Koj yuav tsum tau tshem koj li Raspberry Pi (yog cov khoom siv me me ntawm ib lub tshuab computer) thiab koj lub khob cij (cov khoom siv tsawg dua rau cov qauv ib ntus nrog cov khoom siv hluav taws xob thiab kuaj cov qauv tsim tawm). Koj yuav xav tau tso ib qho ntawm koj lub teeb ci LED rau hauv ob ntawm tus pin uas nyob hauv lub khob cij. Nws tsis muaj teeb meem twg ob lub qhov koj tso koj tus pin, qhov xav tau tsuas yog koj tso tus pin rau hauv qhov uas nyob ib sab.
Kauj Ruam 3: 2. Ib txwm Siv Tus Tiv Thaiv
Qee zaum koj yuav pom tib neeg txuas lub LED ncaj qha mus rau GPIO cov chaw nres nkoj ntawm Raspberry PI, qhov no tsis zoo heev vim nws tuaj yeem ua rau cov chaw nres nkoj puas tsuaj, lossis ua rau Raspberry Pi puas tag nrho. Hauv Txoj Haujlwm no peb yuav siv 470 ohms Resistor (cov neeg tawm tsam tau siv los txo qhov ntws tam sim no), uas yuav tso cai rau LED kom pom tau yam tsis muaj kev pheej hmoo ua rau Raspberry Pi puas tsuaj. Koj xav tso ib qho ntawm tus pin resistor nyob ib sab ntawm tus pin sab saum toj ntawm LED, thiab lwm tus pin nyob rau sab saum toj ntawm kab.
Kauj Ruam 4: 3. Txuas rau Raspberry Pi
Tam sim no peb yuav txuas lub khob cij rau Raspberry PI, peb yuav ua qhov no los ntawm kev siv jumper ua. Peb yuav xav siv ob qho xim sib txawv coj los ua kom peb tsis yuam kev koj tus kheej. Nws tau qhia tias peb siv cov xim xiav thiab liab rau cov coj. Liab liab qhia txog kev sib txuas zoo, thiab xiav qhia txog kev sib txuas tsis zoo. Tom ntej no peb yuav siv cov hmoov txhuas xiav (txuas hauv av) thiab tso peb tus pin rau hauv lub qhov uas nyob ib sab ntawm tus pin hauv qab ntawm LED, Lwm sab ntawm cov hlau lead xiav yuav txuas nrog rau Raspberry PI peb tuaj yeem tso cov hmoov txhuas nyob txhua qhov chaw. hais tias nws hais hauv av (saib daim duab), peb yuav tso nws rau thib peb nqis los ntawm sab saum toj ntawm sab xis. Cov hmoov txhuas liab yuav muab tso rau ntawm kab ib yam li tus tiv thaiv (yog li kev tswj hwm tam sim no), thiab lwm sab yuav muab tso rau ntawm GPIO chaw nres nkoj 18 (rau ntawm sab saum toj ntawm sab xis)
Kauj Ruam 5: 4. Siv Python
Tam sim no peb yuav dhia hla mus rau Raspberry PI cov duab siv interface thiab qhib Python. Thawj qhov peb xav ua yog ntaus Sudo nab hab sej, qhov no yuav tso cai rau peb mus rau GPIO tus pin (tus nab nab ib txwm tsis tso cai rau peb ua qhov no). Tom ntej no peb yuav xav import Rpi. GPIO lub tsev qiv ntawv uas tso cai rau peb los cuam tshuam rau kho vajtse ntawm Raspberry pi peb yuav hloov npe Rpi. GPIO rau tsuas yog GPIO kom yooj yim ntaus ntawv. Tam sim no peb yuav tsum teeb tsa hom kom qhov kev zov me nyuam paub tias cov pins nyob qhov twg. Rau txoj haujlwm kom ua haujlwm peb tseem yuav tsum tshaj tawm tus pin yuav ua dab tsi, yog li peb yuav tshaj tawm tias tus pin 18 yuav yog qhov tso tawm. Thaum kawg peb yuav qhia txoj haujlwm kom tso tawm tam sim no ntawm tus pin 18 thiab sau qhov tseeb kom nws tso cai rau tam sim no kom dhau mus. Yog tias peb tso dag tsis yog qhov tseeb nws yuav ua rau cov coj mus tua.
Kauj Ruam 6: Qhov Kawg
Qhov kuv tau qhia koj ntawm no hauv Phau Ntawv Qhia no tsuas yog ib feem ntawm qhov koj tuaj yeem ua nrog Raspberry Pi thiab nab hab sej. Txog kev sib xyaw ntawm ob lub ntuj no yog qhov txwv, txawm tias qhov kuv tau qhia koj muaj ntau yam uas koj tuaj yeem ntxiv rau nws. Piv txwv li nws muaj peev xwm muaj qhov hloov pauv uas yuav tso cai rau LED tig rau txhua lub sijhawm uas koj nias lub pob nyem. Ntau yam tuaj yeem ua tau yog tias koj muaj sijhawm, thiab xav ua nws.
Pom zoo:
YUAV UA LI CAS YUAV UA LI CAS YUAV TSUM MUAJ KEV LAG LUAM CIRCUIT Siv D882 Tus Neeg Soj Ntsuam: 3 Kauj Ruam
YUAV UA LI CAS YUAV UA LI CAS YUAV TSUM TAU LWM YAM CIRCUIT Siv D882 Tus Kws Tshaj Lij: HELLO phooj ywg, Zoo siab txais tos rau kuv CHANNEL, Hnub no kuv yuav qhia koj li cas kom ua tau CIRCUIT ntawm kev siv hluav taws xob tsis siv neeg lub teeb pom kev siv D882
YUAV UA LI CAS YUAV UA LI CAS YUAV TSUM ROBOT COOB SCARECROW: 16 Cov Kauj Ruam (nrog Duab)
YUAV UA LI CAS YUAV TSUM NYOB ROBOT COW SCARECROW: Kuv nyuam qhuav tsim Moo-Bot, tus neeg hlau nyuj scarecrow dhia hla lub hli, rau kev sib tw hauv zej zog scarecrow.Kuv kev tshoov siab yog los ntawm kuv tus tub hu nkauj "hey diddle diddle, miv thiab fiddle. .. " Txoj haujlwm zoo heev los ua haujlwm nrog kuv
Kev teeb tsa Matrix LED hauv Cov Khoom Siv Hluav Taws Xob qub - Yuav Tsum Tau Cov Khoom Siv: 3 Cov Kauj Ruam (nrog Duab)
Kev teeb tsa Matrix LED hauv Cov Khoom Siv Hluav Taws Xob qub - Yuav Tsum Tau Siv Cov Khoom Siv: Lub teeb pom kev zoo los ntawm lub Windows PC dhau Bluetooth thiab LED cov txheej txheem nthuav tawm Ib co piv txwv ntawm pixel kos duab thiab cov duab ua haujlwm khiav ntawm LED Cov Ntsiab Lus ntawm PIXEL Guts Kit Hauv Cov Lus Qhia no, peb ' yuav
YUAV UA LI CAS YUAV RAWS LI QHOV ROOJ TSHUAB QHOV ROBOT ARM (PART2: ROBOT RAU KEV ZOO SIAB ZOO TSHAJ PLAWS) - YUAV TSUM MICRO: BIT: 3 Kauj Ruam
YUAV UA LI CAS YUAV RAWS LI QHOV ROOJ TSHUAB QHOV ROBOT ARM (PART2: ROBOT RAU KEV ZOO SIAB ZOO TSHAJ PLAWS)-YUAV TSUM MICRO: BIT: Yav dhau los peb tau qhia txog Armbit hauv kab-taug qab hom. Tom ntej no, peb qhia yuav ua li cas rau nruab Armbit kom tsis txhob muaj teeb meem
Yuav Ua Li Cas Tau Txais Cov Nkauj Los Ntawm Txhua Qhov (Haha) Lub Vev Xaib (Ntev Li Koj Tau hnov Nws Koj Yuav Tau Txais Nws Ok Zoo Yog Nws Tau Ntxig Hauv Flash Koj Yuav Tsis Muaj Peev Xwm) EDITED !!!!! Ntxiv Info: 4 Cov Kauj Ruam
Yuav Ua Li Cas Tau Txais Cov Nkauj Los Ntawm Txhua Qhov (Haha) Lub Vev Xaib (Ntev Li Koj Tau hnov Nws Koj Yuav Tau Txais Nws … Ok Zoo Yog Nws Tau Ntxig Hauv Flash Koj Yuav Tsis Muaj Peev Xwm) EDITED !!!!! Ntxiv Cov Lus Qhia: yog tias koj tau mus rau lub vev xaib thiab nws ua nkauj nkauj uas koj nyiam thiab xav tau nws ntawm no yog cov lus qhia rau koj tsis yog kuv qhov txhaum yog tias koj cuam tshuam qee yam (tsuas yog txoj hauv kev nws yuav tshwm sim yog tias koj pib tshem cov khoom yam tsis muaj laj thawj. ) Kuv tuaj yeem tau txais cov nkauj rau