Cov txheej txheem:

Arduino Night Watchman Light: 3 Kauj Ruam
Arduino Night Watchman Light: 3 Kauj Ruam

Video: Arduino Night Watchman Light: 3 Kauj Ruam

Video: Arduino Night Watchman Light: 3 Kauj Ruam
Video: DIY Knight Rider Scanner LED Light System With Just 3 Wires | Arduino | WS2812B | Design 1 2024, Kaum ib hlis
Anonim
Arduino Hmo Hmo Saib Xyuas Teeb
Arduino Hmo Hmo Saib Xyuas Teeb

Thaum koj tawm ntawm koj lub tsev mus ntev, koj yuav xav ua kom zoo li yog tias ib tus neeg nyob hauv tsev hloov teeb thiab tsaus ntuj thaum tsaus ntuj. Tsis zoo rau lub sijhawm teem ua ntej (lossis ib qho uas tau pw) thiab tuaj yeem tshawb pom yooj yim los ntawm sab nraud, qhov DIY Arduino raws lub sijhawm siv lub teeb pom kev zoo txhawm rau txheeb xyuas lub teeb qis qis thiab ua rau lub teeb tig thiab tawm tag nrho hmo ntuj ua rau nws zoo li yog tias muaj yog ib tus neeg nyob hauv tsev.

Khoom siv

Kev tsis lees paub: Kuv tau txais nyiaj ua haujlwm los ntawm kev yuav khoom cuam tshuam nrog cov txuas ntawm nplooj ntawv no.

1x Electrolytic Capacitor capacitance 100µF; zog 16v

1 x Keyes Relay

1 x Arduino Mega 2560 (Rev3)

1x KY-018 Photoresistor

Txhua qhov khoom tuaj yeem pom ntawm BangGood los ntawm kev nyem rau ntawm qhov txuas no

Kauj Ruam 1: Arduino Night Watchman - Daim Duab Txuas

Arduino Hmo Hmo Watchman - Daim Duab Txuas
Arduino Hmo Hmo Watchman - Daim Duab Txuas

Kauj Ruam 2: Arduino Night Watchman - Code

Cov cai tau sau siv tus qauv Arduino IDE thiab muaj cov lus pom rau txhua ntu.

Koj tseem tuaj yeem tau txais nws los ntawm kuv GitHub

Arduino Night Watchman Code

Nws ua haujlwm li cas?

// Piv txwv qhov pom kev ib puag ncig

// Tsuas yog ua haujlwm hmo ntuj

// Tsim lub sijhawm kom qhib lub teeb nyob ntawm 45 - 90 feeb rau lub sijhawm 2 - 7 feeb

// Rov ua dua txog thaum sawv ntxov

Kauj Ruam 3: Arduino Hmo Hmo Saib Xyuas - Qhov Teeb Meem Tiag

Arduino Hmo Hmo Saib Xyuas - Qhov Teeb Meem Teeb Meem
Arduino Hmo Hmo Saib Xyuas - Qhov Teeb Meem Teeb Meem

Yuav huv dua, tab sis nws ua haujlwm.

Nyob zoo tsev:)

Pom zoo: