Cov txheej txheem:
- Kauj Ruam 1: Cov Cheeb Tsam Xav Tau
- Kauj Ruam 2: Sib Sau Ua Ke Txhua Yam
- Kauj ruam 3: Programming
- Kauj Ruam 4: Qhov tshwm sim
Video: Kho LED Brightness Siv Potentiometer: 4 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Hauv tsab xov xwm dhau los, kuv tau qhia koj yuav ua li cas nyeem ADC tus nqi los ntawm Potensometer siv Arduino.
Thiab lub sijhawm no kuv yuav ua kom zoo dua ntawm kev nyeem los ntawm ADC tus nqi.
Qhov ntawd yog kho qhov ci ci ntawm LED.
Kauj Ruam 1: Cov Cheeb Tsam Xav Tau
Cheebtsam uas yuav tsum tau npaj:
Arduino Nano Cov
Jumper Hlau
Potentiometer
Kev tiv thaiv 1K
Xiav LED
Pawg phiaj xwm
USB mini tso
Laptop
Kauj Ruam 2: Sib Sau Ua Ke Txhua Yam
Saib daim duab saum toj no rau phau ntawv qhia kev sib dhos, Arduino rau Component
A0 ==> 2. Potentiometer
GND ==> 1. Potentiometer & Katoda LED
+5V ==> 3. Potentiometer
D3 ==> Resistor series nrog leds
Kauj ruam 3: Programming
Luam cov cai hauv qab no rau koj daim duab:
int LED = 3;
void teeb tsa () {
pinMode (LED, NTAWV); Serial.begin (9600); }
void voj () {
int sensorValue = analogRead (A0)/4;
analogWrite (LED, sensorValue); }
kos duab hauv daim ntawv ntawm thawj daim ntawv, tuaj yeem rub tawm ntawm no:
Kauj Ruam 4: Qhov tshwm sim
Saib cov vis dis aus saum toj no kom pom cov txiaj ntsig.
Thaum lub potentiometer tig mus rau sab xis, cov coj yuav ci dua.
Thaum lub potentiometer tig mus rau sab laug, LED yuav dimmer.
Pom zoo:
Tswj LED Brightness Nrog Potentiometer Nrog Arduino: 3 Kauj Ruam
Tswj LED Brightness Nrog Potentiometer Nrog Arduino: Hauv txoj haujlwm no, peb yuav tswj qhov ci ntawm LED siv qhov sib txawv tsis kam muab los ntawm potentiometer. Nov yog txoj haujlwm yooj yim heev rau tus pib tab sis nws yuav qhia koj ntau yam txog potentiometer thiab LED ua haujlwm uas yuav tsum tau ua kom muaj kev tshaj tawm
Tswj LED Brightness Nrog Potentiometer thiab OLED Zaub: 6 Cov Kauj Ruam
Tswj LED Brightness Nrog Potentiometer thiab OLED Zaub: Hauv qhov kev qhia no peb yuav kawm paub yuav ua li cas thiaj tswj tau qhov ci LED nrog lub hwj chim thiab qhia tus nqi ntawm OLED Zaub
Tswj LED Brightness Nrog Potentiometer thiab Arduino: 6 Kauj Ruam
Tswj LED Brightness Nrog Potentiometer thiab Arduino: Hauv qhov kev qhia no peb yuav kawm paub tswj hwm qhov ci ci LED nrog lub hwj chim thiab Arduino
Cov Khoom Siv Hluav Taws Xob Hloov Kho Siv Cov Pheej Yig EBay Pheej Yig: 8 Kauj Ruam
Kev Hloov Kho Lub Hwj Huam Siv Pheej Yig EBay Qhov Chaw: Hauv phau ntawv qhia no peb tab tom tsim kho lub zog hloov kho kom pheej yig los pab peb ua haujlwm rau peb cov phiaj xwm arduino, qhov ntau tshaj ntawm cov khoom siv hluav taws xob raws li cov tuam txhab tsim khoom uas peb siv yuav tsum nyob ib puag ncig 60W. Tus nqi ntawm qhov haujlwm yuav tsum yog
Kho Koj Lub Pob Ntseg (Kho Kho Kom Zoo)!: 4 Cov Kauj Ruam
Kho Koj Lub Pob Ntseg (Kho Kho Kom Zoo)!: Muaj pes tsawg lub pob ntseg uas koj pov tseg txhua xyoo, vim tias ib tus neeg hais lus tsis ua suab paj nruag? ntawm lub mloog pob ntseg? Peb xav tau dab tsi:-lub mloog pob ntseg-lub mloog pob ntseg tshiab (3,5mm) -solder