Cov txheej txheem:

Teeb Pom Kev Zoo: 6 Kauj Ruam
Teeb Pom Kev Zoo: 6 Kauj Ruam

Video: Teeb Pom Kev Zoo: 6 Kauj Ruam

Video: Teeb Pom Kev Zoo: 6 Kauj Ruam
Video: Yim laus yim do hau _phees lauj _fullmusic MV 2023 2024, Kaum ib hlis
Anonim
Teeb Pom Kev Zoo
Teeb Pom Kev Zoo
Teeb Pom Kev Zoo
Teeb Pom Kev Zoo

Nov yog qhov haujlwm uas peb yuav tsim lub teeb pom kev zoo.

Lub teeb hloov pauv thaum twg los muaj qhov txo qis ib puag ncig lub teeb thiab hloov tawm thaum lub teeb nyob hauv koj ib puag ncig dhau los txaus rau peb lub qhov muag kom pom tej yam nyob ib puag ncig. Lub teeb nyob ntawm tus tiv thaiv (LDR) yuav pab peb nkag siab qhov kev siv ntawm lub teeb.

Cov teeb no tuaj yeem siv rau ntawm txoj kev teeb uas tuaj yeem txiav tawm thaum nruab hnub. Koj tseem tuaj yeem siv nws hauv koj lub tsev sab nraum lub teeb.

Kauj Ruam 1: Cov Cheeb Tsam Yuav Tsum Tau

Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau

Koj yuav xav tau cov ntaub ntawv hauv qab no los ua koj tus kheej lub teeb pom kev zoo

Arduino Uno

2 channel relay (1 channel relay kuj tseem ua haujlwm tau zoo)

LDR (Lub Teeb Ntsuas Tus Kheej)

Jumper cov kab

Breadboard

Teeb

2 tus pin

100k resistor

cov neeg tsav tsheb

Kauj Ruam 2: Txuas Cov Khoom Siv Hluav Taws Xob (BULB) Nrog ARDUINO

Txuas Cov Hluav Taws Xob Hluav Taws Xob (BULB) Nrog ARDUINO
Txuas Cov Hluav Taws Xob Hluav Taws Xob (BULB) Nrog ARDUINO

Peb siv Relay (hloov hluav taws xob) uas muab kev sib cais ntawm qhov siab (BULB) thiab qis (ARDUINO) qhov hluav taws xob hluav taws xob.

Ua cov kev sib txuas hauv Circuit raws li hauv qab no

COM davhlau ya nyob twg (txuas ntxiv) => Muab khoom los ntawm lub ntsiab

Tsis muaj lub davhlau ya nyob twg (relay) => Muab kab rau lub teeb

VCC (relay) => 5V (arduino)

GND (relay) => GND (arduino)

IN1 (xa tawm) => D8 (arduino)

Xyuas kom koj muaj kev paub xim xim zoo li hauv daim duab.

Kauj Ruam 3: Txuas LDR rau Arduino

Txuas LDR rau Arduino
Txuas LDR rau Arduino

Muab 5V muab rau ib qho ntawm nws lub davhlau ya nyob twg.

Txuas ib 100k tsis kam nyob rau hauv series rau lub davhlau ya nyob twg muab nrog 5V.

Los ntawm tib lub node ua txuas rau A0 ntawm arduino.

Hauv av tus tiv thaiv thiab lwm lub davhlau ya nyob twg ntawm LDR.

Kauj Ruam 4: Txuas BULB mus rau Relay

Txuas BULB rau Relay
Txuas BULB rau Relay
Txuas BULB rau Relay
Txuas BULB rau Relay

Txij li qhov haujlwm no cuam tshuam nrog hluav taws xob siab.

Nws tau qhia kom ua haujlwm nrog ceev faj zoo.

Kev siv tsis raug lossis tsis raug tuaj yeem ua rau raug mob lossis ua rau lub cev puas tsuaj.

Kauj ruam 5: Upload Sketch

Rub tawm Sketch
Rub tawm Sketch

Rub tawm cov duab kos thiab xa nws mus rau koj Arduino Uno los ntawm IDE

Kauj Ruam 6: Saib Tutorial

Kuv vam tias koj pom cov lus qhia no muaj txiaj ntsig.

Koj tseem tuaj yeem saib cov vis dis aus ntawm lub teeb pom kev zoo ntawm no.

Yog tias koj muaj lus nug, xav tias dawb los tham hauv cov lus.

Pom zoo: