Cov txheej txheem:

Arduino Suab Sensor Nrog LED: 4 Cov Kauj Ruam
Arduino Suab Sensor Nrog LED: 4 Cov Kauj Ruam

Video: Arduino Suab Sensor Nrog LED: 4 Cov Kauj Ruam

Video: Arduino Suab Sensor Nrog LED: 4 Cov Kauj Ruam
Video: #322 12 Light Sensors Tested: Measuring Light with Microcontrollers (Arduino or ESP8266, ESP32) 2024, Kaum ib hlis
Anonim
Arduino Suab Sensor Nrog LED
Arduino Suab Sensor Nrog LED

Ib txoj haujlwm yooj yim heev Arduino nrog lub ntsuas hluav taws xob uas pom lub suab thiab teeb lub LED.

Kauj Ruam 1: Sau Cov Khoom

Sau Cov Khoom
Sau Cov Khoom

Cov Ntaub Ntawv Xav Tau:

Arduino Uno - x1

Txiv neej rau Poj Niam Jumper xov hlau - x3

Txhua Xim LED - x1

USB - Arduino Port Cable - x1

Loj lossis Me lub suab sensor - x1

Kauj Ruam 2: Sib dhos Circuit

Sib dhos Circuit
Sib dhos Circuit

Kev sib txuas:

AO (ntawm lub suab sensor) rau Analog Pin 2 ntawm Arduino Board

+ (ntawm lub ntsuas suab) mus rau 5V ntawm Arduino Board

GND (ntawm lub suab sensor) rau GND ntawm Arduino Board

LED luv ceg mus rau GND ntawm Arduino Board ntawm sab nraud ntawm kev txuas xov hlau. Ntev ntev rau tus lej digital 13 ntawm Arduino Board

Kauj ruam 3: Sau thiab Upload Code

Sau thiab Upload Code
Sau thiab Upload Code

Nov yog cov cai:

Txuas lub cable rau hauv Arduino Board thiab xa cov cai

Kauj Ruam 4: Yuav Siv Txoj Haujlwm Li Cas

Yuav Siv Qhov Project Li Cas
Yuav Siv Qhov Project Li Cas

Thaum koj tau xa cov cai rau koj li Arduino pawg thawj coj, yog ua ke kom raug, lub teeb liab liab yuav tsum los ntawm lub suab sensor. Thaum koj npuaj teg lossis ua suab nrov LED yuav tsum tuaj. Yog tias qhov no tsis ua haujlwm, koj tuaj yeem siv lub taub hau ntswj taub hau kom kho qhov rhiab nyob rau sab saum toj ntawm lub npov xiav ntawm lub suab sensor. Thaum qhov no tiav thiab koj npuaj lossis ua suab nrov, LED yuav tsum teeb. Yog tias koj muaj lus nug koj tuaj yeem xa email tuaj rau kuv ntawm no> [email protected] Ua tsaug! Thov ua raws kuv kom paub ntau ntxiv!

Pom zoo: