Cov txheej txheem:

Yuav Siv FC-37 Rain Sensor Nrog Arduino: 4 Cov Kauj Ruam (nrog Duab)
Yuav Siv FC-37 Rain Sensor Nrog Arduino: 4 Cov Kauj Ruam (nrog Duab)

Video: Yuav Siv FC-37 Rain Sensor Nrog Arduino: 4 Cov Kauj Ruam (nrog Duab)

Video: Yuav Siv FC-37 Rain Sensor Nrog Arduino: 4 Cov Kauj Ruam (nrog Duab)
Video: 37 Tub Hmoob - Siv Yis tes txuj yuav kav qab ntuj ces yog zaum no 2024, Hlis ntuj nqeg
Anonim
Yuav Ua Li Cas Siv FC-37 Rain Sensor Nrog Arduino
Yuav Ua Li Cas Siv FC-37 Rain Sensor Nrog Arduino

Nyob zoo! Hauv kuv thawj qhov kev qhia kuv yuav qhia koj yuav siv FC-37 nag sensor nrog arduino li cas. Kuv tab tom siv arduino nano tab sis lwm cov ntawv yuav ua haujlwm zoo xwb!

Kauj Ruam 1: Yam Koj Xav Tau:

1x-FC-37 thiab nws pawg tswj hwm.

1 x - Arduino

1x - Ntsuab Led

1x - Liab Led

qee cov xov hlau jumper

Kauj Ruam 2: Kev Txuas Hluav Taws Xob

Qhov thaiv
Qhov thaiv

Yog li txhawm rau txuas FC-37 thiab LEDS rau arduino ua raws cov theem no.

5v ------------ VCC (pawg tswj hwm)

GND ------------ GND (pawg tswj hwm)

A0 ------------ A0 (pawg tswj hwm)

Koj tsis tas yuav siv D0 ntawm pawg tswj hwm.

Tam sim no ntawm lwm sab ntawm lub rooj tswj hwm muaj ob tus pin. Koj yuav tsum txuas lawv mus rau FC-37. Koj tuaj yeem txuas lawv rau txhua txoj kev, Nws tsis muaj teeb meem. Kuj tseem muaj lub zog ntsuas hluav taws xob ntawm tus tswj uas kho qhov rhiab heev txawm hais tias koj tsis tas yuav nrog nws kom nws ua haujlwm.

thiab rau LEDS

D2 ------------------ qhov zoo ntawm RainLED (hauv kuv rooj plaub liab)

D3 ------------------ qhov zoo ntawm DryLED (hauv kuv qhov teeb meem ntsuab)

GND ------------------ tsis zoo ntawm ob qho tib si LEDS

Kauj Ruam 3: Txoj Cai

Nov yog.ino uas koj xav tau kom nws ua haujlwm.

Kauj ruam 4: Saib ua ntej

Zoo yog tias koj ua txhua yam zoo nws yuav tsum ua haujlwm zoo li no! Tsuas yog ceev faj tsis txhob kib cov arduino yog tias koj rov ua qhov no!

Pom zoo: