Cov txheej txheem:

Tsis Siv Neeg Paj Ntoo Watering Project-arduino: 8 Kauj Ruam (nrog Duab)
Tsis Siv Neeg Paj Ntoo Watering Project-arduino: 8 Kauj Ruam (nrog Duab)

Video: Tsis Siv Neeg Paj Ntoo Watering Project-arduino: 8 Kauj Ruam (nrog Duab)

Video: Tsis Siv Neeg Paj Ntoo Watering Project-arduino: 8 Kauj Ruam (nrog Duab)
Video: Cas Tsis Xaiv Koj - R-Lin Thoj New Song Original By Zaj Dub [Official MV] 2023 2024, Kaum ib hlis
Anonim
Tsis Siv Neeg Paj Tsob Ntoo Watering Project-arduino
Tsis Siv Neeg Paj Tsob Ntoo Watering Project-arduino

Nyob zoo cov neeg!

hnub no kuv yuav piav qhia yuav ua li cas dej koj cov nroj tsuag, nrog rau kev tswj dej.it super yooj yim. koj tsuas yog xav tau ib qho arduino, lcd screen thiab lub ntsuas dej noo noo.tsis txhob txhawj kuv mam qhia koj ib qib zuj zus los ntawm cov txheej txheem.so peb ua dab tsi ntawm no yog

  1. siv cov av noo ntsuas qhov ntsuas cov dej noo
  2. tso saib cov av noo ntawm lcd (0%-100%)
  3. yog tias cov dej noo qis dua 60% tig rau LED liab, yog tias nws tsawg dua, tig rau LED ntsuab
  4. yog tias cov av noo qis dua 60%koj yuav tsum ywg dej koj cov nroj tsuag los ntawm kev qhib lub qhov dej (los ntawm servo lub cev muaj zog) lub valve yuav tsum qhib sib npaug rau qib dej noo.
  5. tso saib lub xeev tso dej ntawm LCD (Qhib/Kaw)

yooj yim heev! cia mus dhau cov kauj ruam

Kauj Ruam 1: Nrhiav Cheeb Tsam

koj xav tau

arduino uno/mega 2560 thiab USB cable

www.ebay.com/itm/ATMEGA16U2-Board-For-Ardu…

liab coj, ntsuab coj

16 X2 lcd npo

www.ebay.com/itm/16x2-Character-LCD-Displa…

ntauwd Pro micro servo 9g

www.ebay.com/itm/TowerPro-SG90-Mini-Gear-M…

noo noo sensor

www.ebay.com/itm/Soil-Humidity-Hygrometer-…

potentiometer

jumper xov hlau, mini breadboard

Kauj Ruam 2: Sib cuam tshuam Cov Hws noo

Interfacing noo noo Sensor
Interfacing noo noo Sensor

los ntawm lub ntsuas dej noo, peb tau txais kev nyeem analog los ntawm 0-1023 yog li peb tsis xav tau digital I/O pins ntawm arduino.but peb xav tau analog A0 tus pin.

vcc ------------ 5V ntawm arduino

GND ---------- 0V ntawm arduino

SIGNAL (A0) ------ A0 ntawm arduino

Nco ntsoov tias kev nyeem analog uas peb tau txais los ntawm 0-1023 tau teeb tsa los ntawm 0-100 siv daim ntawv qhia kev hais kom ua (0, 1023, 100, 0)

uas txhais tau tias yog nws qhuav --- 5V ----- 1023 MAP TO 0%

ntub --- 0V ------ 0 DAIM NTAWV THOV 100%

Kauj Ruam 3: Sib cuam tshuam LCD Screen

Interfacing LCD Screen
Interfacing LCD Screen

Kuv vam tias koj paub yuav ua li cas cuam tshuam lub lcd nrog arduino.if koj tsis paub tsis txhob txhawj kuv yuav coj koj mus cuam tshuam nws.

coj lub 16 X 2 lcd screen thiab txuas jumper xov hlau thiab interface rau arduino raws li hauv qab no:

LCD ARDUINO

GND GND

VCC 5 VV

VEE rau POTENTIOMETER

RS PIN 12 (TSIS MUAJ DIGITAL PIN)

R/W GND

EN PIN 11 (TSIS MUAJ DIGITAL PIN)

DB4 PIN 5

DB5 PIN 4

DB6 PIN 3

DB7 PIN 2

AW 5V

K GND ua

Kauj Ruam 4: Sib cuam tshuam 9g Servo Motor

Interfacing 9g Servo Tsav
Interfacing 9g Servo Tsav

liab (+) ------------------------------ 5V hauv arduino

xim av (-) --------------------------- gnd hauv arduino

daj (teeb liab tus pin) ---------------- YOG PWM PIN

Kauj Ruam 5: LED BULBS

LED TEEB
LED TEEB

koj nyob ib nrab ntawm qhov kom tiav koj qhov kev tswj hwm dej.

cuam tshuam cov xim liab thiab ntsuab LED rau 8 thiab 9 feem. (ntev kawg rau arduino, luv luv kawg rau GND … vam tias koj tsis hnov qab qhov no)

Kauj Ruam 6: Kev Sib Txuas zaum kawg

Kev Sib Txuas zaum kawg
Kev Sib Txuas zaum kawg
Kev Sib Txuas zaum kawg
Kev Sib Txuas zaum kawg

koj qhov kev sib txuas zaum kawg yuav zoo li qhov no

Kauj Ruam 7: Txoj Cai

1. Rub tawm thiab teeb tsa Arduino Desktop IDE

windows -

Mac OS X -

Linux -

2. Rub tawm thiab muab cov ntawv servo.h thiab LiquidCrystal.h xa mus rau Arduino cov tsev qiv ntawv nplaub tshev.

github.com/arduino-libraries/Servo

github.com/arduino-libraries/LiquidCrysta…

Muab cov ntawv tso rau hauv txoj kev - C: / Arduino / libraries

3. Rub tawm thiab qhib flower_plant_project.ino

4. Tshaj tawm cov cai mus rau pawg thawj coj ntawm arduino ntawm USB cable

Kauj ruam 8: Ua tiav

Image
Image

koj tau ua tiav nrog koj txoj haujlwm. tab sis tsis txhob maj nrawm rau dej koj cov nroj tsuag, siv daim phuam ntub thiab xyuas seb nws puas ua haujlwm zoo rau ntub thiab qhuav.i xav tias koj tuaj yeem hloov kho qhov no ntxiv thiab kuv yuav tso nws rau koj ua.

txaus siab rau dej !!!

Pom zoo: