Cov txheej txheem:
- Kauj ruam 1: Cov ntaub ntawv
- Kauj ruam 2: Pib
- Kauj Ruam 3: Kev thaiv kab hlau
- Kauj Ruam 4: Potentiometer thiab Teeb LED
- Kauj ruam 5: Txoj Cai
Video: LED Dimmer Nrog Potentiometer: 5 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:30
Nov yog cov lus qhia qhia koj yuav siv lub hwj chim li cas kom dim ib qho LED.
Kauj ruam 1: Cov ntaub ntawv
- Arduino
- Khoos phis tawj
- Cov qhob cij
- LED
- 5 Txiv neej cov xov hlau
- Potentiometer
- USB cable
Kauj ruam 2: Pib
Txuas Arduino rau hauv computer nrog USB cable.
Kauj Ruam 3: Kev thaiv kab hlau
Tom qab Arduino tau txuas rau hauv lub khoos phis tawj nrog lub xaim USB, peb yuav siv thawj lub xov hlau thiab tso ib kawg rau hauv av thiab lwm qhov rau hauv j1. Tom qab ntawd koj yuav tso tus xov tooj thib ob los ntawm A0 rau j3. Tom qab ntawd Koj yuav tso cov xaim thib peb los ntawm 5v rau j5.
Tom qab ntawd koj yuav muab cov xov plaub los ntawm D9 txog j15. Tom qab ntawd tus xov tooj thib tsib thiab zaum kawg los ntawm hauv av mus rau j17.
Kauj Ruam 4: Potentiometer thiab Teeb LED
Muab lub pob qhov rooj tig mus deb ntawm cov xov hlau. Txuas nws mus rau f1 f3 thiab f5. Tom qab ntawd coj tus LED tso ceg ntev dua rau hauv f15 thiab luv dua hauv f17.
Kauj ruam 5: Txoj Cai
Nov yog cov kev hloov pauv uas qhia lub khoos phis tawj cov lus tshwj xeeb txhais li cas:
int potPin = A0; Qhov no qhia rau lub khoos phis tawj hais tias qhov nruab nrab ntawm lub hwj chim, uas peb hu ua potPin, tau txuas rau hauv A0 int readValue; Qhov no qhia rau lub khoos phis tawj tias thaum twg peb hais tias nyeem tau qhov muaj nqis nws txhais tau tias nyeem lub hwj chim
Nov yog Void Setup uas tsuas yog tshwm sim ib zaug los teeb tsa rau qhov seem ntawm cov cai:
teeb tsa tsis muaj dab tsi () {Qhov no tsuas yog qhia koj tias qhov no yog qhov pib ntawm Void Setup
pinMode (9, NTAWV); Qhov no teeb tsa lub teeb kom nws tuaj yeem qhib tom qab
pinMode (potPin, INPUT); Qhov no teeb tsa lub potentiometer yog li peb tuaj yeem siv nws tom qab
Tshooj tom ntej yog lub voj void uas sau ntau thiab ntau dua kom txog thaum koj nres nws.
void voj () {
readValue = analogRead (potPin); Qhov no qhia rau lub khoos phis tawj nyeem lub hwj chim thaum twg peb hais tias nyeem tau tus nqi.
readValue = daim ntawv qhia (readValue, 0, 1023, 0, 255); Qhov no hloov cov lej los ntawm lub zog uas yog los ntawm 0-1023, rau tus lej rau LED uas yog los ntawm 0-255.
analogWrite (9, nyeem Tus Nqi); Qhov no qhia rau lub khoos phis tawj kom pom lub teeb ci LED ntawm qhov ci ntsa iab uas lub hwj chim tau qhia rau nws.
}
Nov yog tag nrho cov cai los ntawm nws tus kheej:
int potPin = A0; int readValue = 0;
void teeb tsa () {
pinMode (9, NTAWV);
pinMode (potPin, INPUT);}
void voj () {
readValue = analogRead (potPin);
readValue = daim ntawv qhia (readValue, 0, 1023, 0, 255);
analogWrite (9, nyeemValue);}
Pom zoo:
YADPF (YET Lwm Tus Duab Duab Duab): 7 Kauj Ruam (nrog Duab)
YADPF (YET Lwm Tus Duab Duab Duab): Kuv paub qhov no tsis yog khoom tshiab, Kuv paub, Kuv tau pom qee qhov ntawm cov haujlwm no ntawm no, tab sis kuv ib txwm xav tsim kuv tus kheej cov duab thav duab. Txhua daim duab thav duab kuv tau pom yog qhov zoo, tab sis kuv tab tom nrhiav lwm yam, Kuv tab tom nrhiav qhov zoo nkauj tiag tiag
Kev Tsim Qauv Duab Duab/Duab Duab Duab: 4 Kauj Ruam
Kev Tsim Qauv Duab Duab/Duab Duab Duab: Nyob zoo txhua tus, Hauv qhov kev qhia no, Kuv yuav qhia koj cov txheej txheem ntawm yuav ua li cas thiaj tsim 3D qauv siv cov duab digital. Cov txheej txheem hu ua Photogrammetry, tseem hu ua Image-Based Modeling (IBM). Tshwj xeeb, hom txheej txheem no tau siv los rov ua dua
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