Cov txheej txheem:

Teeb Pom Kev Teeb W/ Arduino: 3 Kauj Ruam
Teeb Pom Kev Teeb W/ Arduino: 3 Kauj Ruam

Video: Teeb Pom Kev Teeb W/ Arduino: 3 Kauj Ruam

Video: Teeb Pom Kev Teeb W/ Arduino: 3 Kauj Ruam
Video: Computer Vision with Python! Resizing Images 2024, Hlis ntuj nqeg
Anonim
Teeb Pom Kev Teeb W/ Arduino
Teeb Pom Kev Teeb W/ Arduino

Hauv txoj haujlwm no, kuv tshawb nrhiav yuav siv lub arduino li cas los tsim lub teeb uas hloov pauv nyob ntawm lub sijhawm ntawm hnub. Ntawm tus neeg siv qhov kev thov, lub teeb yuav hloov nws qhov ci ci thaum lawv ntsuas lossis txo qhov tsis kam ntawm LDR -teeb pom kev tiv thaiv- Txoj haujlwm no tau ua tiav ntawm tinkercad thiab siv kev xa rov qab txhawm rau txhawm rau lub zog tawm mus rau hauv Circuit Court uas arduino tsis tuaj yeem ua tiav rau lub teeb taws. Nov yog yam koj xav tau!

Khoom siv

1 Relay

1 kilo-ohm resistor

1 LDR (Photoresistor)

1 Lub hwj chim

1 Arduino

1 Cov qhob cij

1 Teeb Lub Teeb

Kauj Ruam 1: Kauj Ruam 1: Teem Koj Li Creadboard Layout Zoo li Hauv qab no

Kauj Ruam 1: Teem Koj Cov Ntawv Cuam Tshuam Layout Zoo li Cov hauv qab no
Kauj Ruam 1: Teem Koj Cov Ntawv Cuam Tshuam Layout Zoo li Cov hauv qab no

Txhawm rau xeeb tub zoo ib yam zoo rau kev qhia nws yog qhov yuav tsum tau ua raws cov txheej txheej ntawm lub khob cij tsis yog rau nws zoo nkaus xwb tab sis ua tau zoo.

Kauj Ruam 2: Kauj Ruam 2: Ntxiv Cov Kev Sib Txuas, Cov Hluav Taws Xob, Cov Khoom Siv Hluav Taws Xob, thiab Cov Hluav Taws Xob

Kauj Ruam 2: Ntxiv Kev Tshaj Tawm, Cov Xov Xwm, Cov Khoom Siv Hluav Taws Xob, thiab Cov Tiv Thaiv
Kauj Ruam 2: Ntxiv Kev Tshaj Tawm, Cov Xov Xwm, Cov Khoom Siv Hluav Taws Xob, thiab Cov Tiv Thaiv

Thov khaws lub hwj chim ntawm lub teeb tinkercad qub (5 volts, 5 amps tam sim no).

Kauj Ruam 3: Kauj Ruam 3: Siv Cov Cai Li Hauv qab no txhawm rau txhawm rau ua haujlwm Circuit kom ua haujlwm raws li kev tawm tsam ntawm LDR

Kauj Ruam 3: Siv Cov Cai Li Hauv Qab no txhawm rau txhawm rau ua haujlwm rau Circuit kom ua haujlwm raws li kev tawm tsam ntawm LDR
Kauj Ruam 3: Siv Cov Cai Li Hauv Qab no txhawm rau txhawm rau ua haujlwm rau Circuit kom ua haujlwm raws li kev tawm tsam ntawm LDR

Cia peb muab qee cov ntsiab lus rau txoj cai. Cov lus arduino yog qhov tshwj xeeb heev thiab zoo ib yam li thaiv cov lej kos hauv nws qhov yooj yim. Ua ntej tshaj, peb yuav tsum tshaj tawm peb cov chaw nres nkoj uas peb siv los txuas lub davhlau ya nyob twg 5 ntawm kev xa xov thiab dav hlau 2 ntawm LDR. Kuv tus kheej tau siv cov chaw nres nkoj 5 rau kev xa tawm thiab A0 rau LDR, txawm li cas los xij, koj tuaj yeem xaiv ib qho ntawm cov koob sib piv rau LDR thiab ib qho ntawm cov pins digital rau kev xa tawm. Peb yuav tsum nkag mus rau tus nqi uas LDR rov qab muab qib sib txawv ntawm lub teeb. Yog li peb thov cov lus hais yog "yog (analogRead (A0)> 500)" ces qhov ntawd yuav txhais tau tias thaum muaj qee qhov tsaus ntuj mus txog lub teeb yuav pib qhib, ua kom pom kev tsawg dua.

Pom zoo: