Cov txheej txheem:

Infrared Tsev Automation Nrog Arduino: 5 Kauj Ruam
Infrared Tsev Automation Nrog Arduino: 5 Kauj Ruam

Video: Infrared Tsev Automation Nrog Arduino: 5 Kauj Ruam

Video: Infrared Tsev Automation Nrog Arduino: 5 Kauj Ruam
Video: Sib Hawm Dhau (Time Passed) Music Video by: Deeda/Dib Xwb 2024, Kaum ib hlis
Anonim
Infrared Tsev Automation Nrog Arduino
Infrared Tsev Automation Nrog Arduino
Infrared Tsev Automation Nrog Arduino
Infrared Tsev Automation Nrog Arduino
Infrared Tsev Automation Nrog Arduino
Infrared Tsev Automation Nrog Arduino

ARDUINO HNUB TSHIAB AUTOMATION

Kev siv tshuab hauv tsev yooj yim txhais tau tias ua yam uas koj ib txwm ua los ua kom tiav rau koj. Koj ib txwm yuav tau nce mus rau qhov hloov pauv, yuav ua li cas yog tias koj tuaj yeem nias lub chaw taws teeb thiab koj lub teeb cia li tuaj, yog tias koj tub nkeeg kom sawv los tua lub teeb thaum hmo ntuj lossis tua lub kiv cua, txoj haujlwm no yog rau koj. Kuv hais tias tub nkeeg tseem xav tau qee yam ua haujlwm.

zoo yog qhov peb yuav tham txog hauv cov lus qhia no.

Cov ntaub ntawv

Arduino (Kuv siv Arduino pro mini) tab sis txhua qhov tsw yuav zoo

3 lossis 2 relay channel module (Kuv siv ob. Tab sis 3 yog qhov yuav tsum tau yog tias koj xav siv lub yees duab resistor muaj nuj nqi)

Infrared txais diode

Jumper xov hlau

2 tus tuav lub teeb (Kuv siv 1. Tab sis 2 yog qhov yuav tsum tau yog tias koj xav siv daim duab tiv thaiv kev ua haujlwm)

Ntxuam (koj yuav tsum muaj qhov no hauv koj lub tsev, yog li xav tau yuav ib qho)

Ib qho chaw taws teeb

Ac lub teeb

Ac ntsaws

Cov qhob cij

NTC 10k thermistor

1 photoresistor cov

2 10k resistors

Buzzer

12v DC adapter

7805 tus tswj hluav taws xob.

Kauj ruam 1: Voltage Dividers

Voltage Dividers
Voltage Dividers

qhov faib hluav taws xob tsuas yog cov resistors txuas nrog hauv kab kom nqis qis. Txhawm rau kawm paub ntau ntxiv txog kev faib hluav taws xob mus ntawm no.

Kauj Ruam 2: Cov Kuj Tsis Txaus Siab (thermistors thiab Photo Resistors)

sib txawv resistors tsuas yog cov resistors uas hloov lawv qhov tsis kam vim qee qhov xwm txheej.

Hauv cov lus qhia no peb yuav tsom mus rau cov thermistors thiab cov duab tiv thaiv ntau dua.

THERMISTORS

los ntawm lo lus therm koj yuav tsum muaj lub tswv yim tias nws cuam tshuam nrog qhov kub thiab txias. Muaj ob hom thermistors uas yog NTC thermistor thiab PTC thermistor. NTC thermistor lawv qhov kev tiv thaiv txo qis raws li qhov kub nce ntxiv piv txwv li lawv qhov kev tiv thaiv yog sib piv sib piv rau qhov kub thaum nws yog qhov txawv rau PTC thermistor.

NCO TSEG: thaum koj nyob ntawm no tias lub ntsuas cua sov yog 10k ohms, nws txhais tau tias nws nyob ntawm 10k ntawm chav sov uas yog 25 degrees Celsius.

PHOTO RESISTOR

cov duab tiv thaiv kuj tseem paub tias yog Lub Teeb Ntsuas Tus Kheej (LDRs) yog cov tiv thaiv uas hloov pauv lawv qhov kev tiv thaiv vim hloov pauv ntawm lub teeb ci. Thaum muaj ntau lub teeb lawv qhov kev tiv thaiv poob thiab thaum muaj lub teeb tsawg lawv qhov kev tiv thaiv nce ntxiv.

Thaum peb siv qhov ntsuas qhov sib txawv no los tsim qhov faib hluav taws xob, peb tuaj yeem hloov qhov hluav taws xob tau yooj yim.

Txhawm rau nrhiav ntau ntxiv ntawm cov thermistors mus rau qhov txuas no.

Txhawm rau paub ntau ntxiv txog cov duab tiv thaiv mus rau qhov txuas no.

Kauj Ruam 3: Infrared

Infrared
Infrared

Kuv yuav tsis hais dab tsi ntawm no txog infrared, tab sis koj tuaj yeem mus rau kuv cov lus qhia yav dhau los yuav ua li cas thiaj tsim lub tsheb infrared tswj nrog Arduino kom paub ntau ntxiv. Txhawm rau paub yuav ua li cas txuas lub infrared mus rau Arduino txheeb xyuas cov ntaub ntawv ntawm tus pin qhia hauv online vim tias kuv yuav siv lwm tus txais los ntawm qhov koj muaj. Txuas tus pin qhov hluav taws xob rau 5v thiab GND rau GND thiab txuas nws cov zis rau digital pin 10 ntawm Arduino.

Kauj Ruam 4: Teeb tsa thiab Txuas

Teem thiab WIRING
Teem thiab WIRING
Teem thiab WIRING
Teem thiab WIRING
Teem thiab WIRING
Teem thiab WIRING

txuas koj cov thermistor hauv kab nrog 10k resistor, tom qab ntawd txuas lwm cov hlau lead ntawm cov thermistor mus rau 5v thiab txuas lwm cov hlau lead ntawm 10k resistor rau hauv av, tom qab ntawd txuas lub hauv paus ua rau analog nkag. Ua tib yam rau tus yees duab resistor. Txhawm rau paub analogpin tsuas yog txheeb xyuas cov cai thiab koj tseem tuaj yeem hloov nws mus rau txhua tus pin analog uas koj xaiv.

Txuas qhov ua tau zoo ntawm lub buzzer rau tus pin 5 thiab tsis zoo rau GROUND.

SIAB

txuas IN1 rau tus lej digital 2

txuas IN2 rau tus lej digital 8

txuas IN3 rau tus lej digital 4

Txuas NO1, 2, 3 mus rau ib qho ntawm AC SUPPLY

txuas ntawm cov hlau lead ntawm AC teeb rau Com1

Txuas ib tus coj ntawm tus kiv cua mus rau COM2

txuas ib qho ntawm AC qhov muag teev ntawm lub teeb lub txaj mus rau COM3

Txuas lwm tus thawj coj ntawm txhua qhov AC APPLIANCES ua ke tom qab ntawd txuas lawv mus rau lwm cov hlau lead ntawm AC cov khoom siv. Kuv qhov txuas mus los thaum Arduino tus lej digital qis, yog tias koj li los thaum nws hloov pauv siab txhua qhov qis rau siab hauv cov cai. Txhawm rau txheeb xyuas yog tias koj los txog thaum nws qis lossis siab txuas ib qho kev nkag ntawm cov qauv txuas mus rau GND, yog tias cov hlau lead ntawm cov lus nkag los ntawm qhov ntawd rau koj qhov kev xa tawm los thaum nws qis, tab sis yog nws tsis yog nws los txog thaum nws yog siab. Yog xav paub ntxiv txog kev mus ntsib Ntawm no.

Kauj ruam 5: Code

Image
Image

Cov cai tau tsim los ntawm NDUKWU PIUS, uas yog qhov tseeb kuv. Tsuas yog rub cov cai thiab qhib hauv Arduino IDE. Hloov kho nws raws li koj nyiam thiab upload.

Pom zoo: