Cov txheej txheem:
- Kauj Ruam 1: Cov Ntaub Ntawv Xav Tau
- Kauj Ruam 2: Txheej Txheem Txheej Txheem
- Kauj ruam 3: Coding
- Kauj Ruam 4: Ua Kom Nws Ua Haujlwm Txhua Yam Ua Ke
Video: RGB Qhia: 4 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:28
Txais tos! Cia peb paub tias peb yuav kawm dab tsi los ntawm lub vev xaib no!
Cov lus qhia hauv qab no yuav suav tag nrho cov kauj ruam tsim nyog los tsim qhov project RGB LED. Yuav muaj daim duab ntawm txhua cov ntaub ntawv xav tau, tom qab ntawd yuav muaj cov txheej txheem ib qib zuj zus nrog cov duab ua raws los ntawm tus lej muab rau hauv daim ntawv uas tso cai rau koj luam thiab muab nws ncaj qha rau hauv software coding. Ib qho ntxiv, txhawm rau kom ntseeg tau tias txhua yam tshwj xeeb tshaj yog cov cai tau siv kom raug cov vis dis aus luv luv yuav muab!
Kauj Ruam 1: Cov Ntaub Ntawv Xav Tau
Nov yog daim duab ntawm cov ntaub ntawv xav tau:
*Lub khoos phis tawj nrog Arduino software kuj tseem xav tau.
Kauj Ruam 2: Txheej Txheem Txheej Txheem
Kauj Ruam 1: Muab 3 lub hwj chim tso rau hauv nruab nrab ntawm lub khob cij
Kauj Ruam 2: Siv xaim thiab tso nws nyob rau pem hauv ntej ntawm txhais ceg pem hauv ntej ntawm lub zog, tom qab ntawd txuas lub xov tooj mus rau A1
Kauj Ruam 3 thiab Kauj Ruam 4: Rov ua cov kauj ruam 2 rau lwm ob lub zog ntxiv los ntawm kev txuas cov hlau los ntawm txhais ceg mus rau A2 thiab lwm qhov los ntawm txhais ceg mus rau A3
Kauj Ruam 5: Muab lub xaim tso rau hauv lub xwmfab tsis zoo thiab tso nws mus rau sab xis ntawm lub zog ntsuas thiab tom qab ntawd siv lwm lub xaim thiab txuas nws los ntawm qhov xwm txheej zoo mus rau sab laug ntawm lub zog.
Kauj Ruam 6 thiab 7: Rov ua cov kauj ruam 5 rau lwm ob lub zog loj
Kauj Ruam 8: Siv xaim los ntawm cov xwm txheej zoo thiab txuas nws mus rau chaw nres nkoj GND
Kauj Ruam 9: Nqa cov xaim los ntawm cov xwm txheej tsis zoo thiab txuas nws mus rau chaw nres nkoj 5V
Kauj Ruam 10: Muab lub LED tso rau hauv cov xov hlau uas tau siv yav dhau los
Kauj Ruam 11: Txuas lub xaim los ntawm chaw nres nkoj 11 mus rau ib lub xwmfab ze rau ntawm ntug tabsis ze rau ntawm LED
Kauj ruam 12 thiab Kauj Ruam 13: Rov ua cov kauj ruam 11 siv cov chaw nres nkoj 9 thiab 10
Kauj Ruam 14: Txuas tus tiv thaiv los ntawm cov xaim uas tau siv yav dhau los mus rau 1, 3 thiab 4 ceg ntawm LED
Kauj Ruam 15: Thaum kawg, txuas xov hlau los ntawm ob txhais ceg ntawm LED hla lub khob cij mus rau qhov tsis zoo
Kauj ruam 3: Coding
Hauv qab no yog cov cai uas koj tuaj yeem luam thiab dhau los ncaj qha rau hauv arduino software…
void teeb tsa () {
pinMode (9, NTAWV);
pinMode (10, NTAWV);
pinMode (11, NTAWV);
Serial.begin (9600);
// muab koj cov cai teeb tsa ntawm no, kom khiav ib zaug:
}
void voj () {
// tso koj tus lej tseem ceeb ntawm no, kom rov ua dua: analogWrite (9, analogRead (A0)/4);
analogWrite (10, analogRead (A1)/4);
analogWrite (11, nyeem analog (A2)/4); }
Piav qhia luv:
Nov yog tus lej yooj yim heev uas tuaj yeem piav qhia yooj yim los ntawm kev sib txuas ntawm tus lej luv. Nws pib nrog piav qhia txog 3 OUTPUTS uas yog 9, 10 thiab 11. Qhov txuas mus rau lub tsev txheej txheem raws li ntsaws cov xov hlau rau hauv cov chaw nres nkoj yog ib qib kawg. Tom qab ntawd 3 txoj kab kev teeb tsa zoo sib xws tau tso rau ntawd uas piav qhia rau Arduino tias rau txhua qhov tawm ntawm no yog teeb tsa chaw nres nkoj. Piv txwv li, thawj tus hais tias rau chaw nres nkoj 9 nyeem los ntawm A0. Qhov no yog qhov zoo ib yam nrog lwm ob kab ntawv txawm li cas los xij qhov sib txawv thiab cov chaw nres nkoj thiab qhov ntawd yog qhov kawg rau txoj cai.
Kauj Ruam 4: Ua Kom Nws Ua Haujlwm Txhua Yam Ua Ke
Cia peb saib cov khoom kawg thiab nws txhua yam ua haujlwm li cas..
drive.google.com/file/d/1A4vbyfUL10jWamgpb…
Pom zoo:
Cov Lus Qhia Qhia: 3 Kauj Ruam
Cov Lus Qhia Ua Ntej: Xijpeem koj ua haujlwm, nws taug kev, taug kev, caij tsheb kauj vab lossis txawm tias tsav tsheb, koj tuaj yeem sau cov kev uas koj taug. Tom qab ntawd koj tuaj yeem faib cov kev no nrog phooj ywg thiab tsev neeg. Ib qho ntxiv, koj tuaj yeem siv txoj hauv kev kaw tseg los ntxiv qhov chaw rau txhua daim duab uas koj tuaj yeem h
LED Qhov Taw Qhia Qhov Taw Qhia Tus Menyuam: 5 Kauj Ruam (nrog Duab)
LED Qhov Taw Qhia Qhov Taw Qhia Tus dev: Kuv ib txwm coj kuv tus dev Rusio mus taug kev thaum lub hnub poob qis kom nws tuaj yeem ua si yam tsis tau kub heev. Qhov teeb meem yog tias thaum nws tawm ntawm txoj hlua qee zaum nws tau zoo siab heev thiab ua haujlwm ntau dua li nws yuav tsum thiab nrog lub teeb qis thiab lwm tus dev
Lub Hom Phiaj Taw Qhia: Tsim Lub Hom Phiaj Kawm/Qhia Txoj Kev/Cov Txheej Txheem Siv Cov Duab Puncher: 5 Kauj Ruam
Lub Hom Phiaj Taw Qhia: Tsim Lub Hom Phiaj Kawm/Qhia Txoj Kev/Cov Qauv Siv Cov Duab Puncher: Kawm/qhia txoj hauv kev rau cov tub ntxhais kawm tshiab rau kev tsom mus rau lub hom phiaj. Nov yog txoj hauv kev tso cai rau lawv kom pom kev thiab pom cov txheej txheem ntawm kev tsim cov khoom los ntawm cov chav kawm. EkTools 2-nti loj punch; cov duab zoo tshaj plaws. 2. Daim ntawv los yog c
Kuv Me Me Whoop: Daim Ntawv Qhia Whoop + Cov Lus Qhia thiab Cov Lus Qhia: 8 Kauj Ruam
Kuv Me Me Whoop: Daim Ntawv Qhia Whoop + Cov Lus Qhia thiab Cov Lus Qhia: Kev Ceeb Toom: Tam sim no koj tab tom nkag mus rau kuv thawj qhov kev qhia, thiab koj yuav ntsib ntau yam kev ruam thiab tsis muaj phiaj xwm thiab/lossis txuj ci. Paub txog qhov no yog kuv tus kheej Tiny Whoop teeb tsa uas kuv siv txhua hnub, yog li kuv xav tias kuv yuav qhia nws. Nws yog phooj ywg mus ncig (tsis muaj
Yuav Ua Li Cas Ua Tus Qhia Qhia thiab Qhia: 8 Kauj Ruam
Yuav Ua Li Cas Nthuav Qhia Qhia thiab Qhia: Nov yog phau ntawv qhia rau kev ua Qhia Qhia thiab Qhia. Nws yog qhov tseem ceeb tshaj plaws ntawm cov xwm txheej muaj nyob rau Hnub Friday, Peb Hlis 9, 2007, tab sis kuj tseem yog qhov tshwm sim yav dhau los ntawm qhov xwm txheej no, Squid Labs Lub Teeb Pom Kev Zoo. Lub hom phiaj ntawm Kev Qhia thiab Xov Tooj