Cov txheej txheem:

Arduino Photoresistor LED: 4 Kauj Ruam
Arduino Photoresistor LED: 4 Kauj Ruam

Video: Arduino Photoresistor LED: 4 Kauj Ruam

Video: Arduino Photoresistor LED: 4 Kauj Ruam
Video: Amazing arduino project 2024, Lub Xya hli ntuj
Anonim
Arduino Photoresistor LED
Arduino Photoresistor LED
Arduino Photoresistor LED
Arduino Photoresistor LED

Kuv txoj haujlwm yog hais txog kev yees duab tiv thaiv qis LED lub teeb nyob ntawm lub teeb sab nraud. Kuv coj kev tshoov siab los ntawm, Tech, A Style. "Arduino Photoresistor LED On/Off." Qhia, Qhia, 8 Lub Kaum Hli 2017, www.instructables.com/Arduino-Photoresistor-LED-o… Kuv rov kho kuv tus kheej mus rau qhov twg nws yuav qis dua nyob ntawm lub teeb, Qhov ntau lub teeb, qhov kaj nws yog. Qhov qis dua qhov tsaus ntuj, nws yog. Kuv xub tshawb fawb txog yuav ua li cas tus kws yees duab ua haujlwm, yuav tsim kom yooj yim li cas, thiab tshuaj xyuas cov hauv paus ntawm txoj cai xav tau. Tom qab qhov no kuv tau teeb tsa ntawm kuv qhov project

Kauj ruam 1: Cov ntaub ntawv

Khoom siv
Khoom siv

Cov ntaub ntawv xav tau rau txoj haujlwm no yog, 1 Arduino Uno, (Kuv siv MEGA2560 R3), 1 Lub rooj mov ci, 1, 1k resistor, 1, 220 ohm tus tiv thaiv, Jumper xov hlau, 1 LED, 1 Tus kws yees duab, thiab Arduino App

Kauj ruam 2: Teeb Photoresistor

Teeb tsa Photoresistor
Teeb tsa Photoresistor
Teeb tsa Photoresistor
Teeb tsa Photoresistor

Ua ntej kuv muab xaim los ntawm qhov zoo mus rau 5v ntawm lub rooj mov ci. Tom qab ntawd kuv tso tus photoresistor ntsug rau ntawm lub rooj mov ci. Tom qab ntawd kuv muab lub xaim jumper los ntawm ib sab ntawm Photoresistor mus rau A0. Ntawm tib sab kuv muab 1k resistor rau sab tsis zoo. Ntawm qhov tod tes kuv muab nws xaim rau qhov zoo ntawm lub khob cij.

Kauj Ruam 3: Teeb LED

Teeb teeb
Teeb teeb
Teeb teeb
Teeb teeb

Rau qhov coj kuv ua tib yam (yuav luag). Kuv muab nws Ntsug rau ntawm lub rooj mov ci. Ntawm ib sab kuv tso Hlau txuas rau PWM 9 (koj tuaj yeem tso nws rau ib qho). Ntawm qhov tod tes kuv tso lub 220 Ohm Resistor txuas lub LED mus rau qhov zoo ntawm lub khob cij.

Kauj ruam 4: Teeb Code

Thaum kawg, txoj cai. Txog cov cai, nws piav qhia dab tsi tshwm sim hauv nws.

Pom zoo: