Cov txheej txheem:

Garduino - Ntse Lub Vaj Nrog Arduino: 4 Cov Kauj Ruam (nrog Duab)
Garduino - Ntse Lub Vaj Nrog Arduino: 4 Cov Kauj Ruam (nrog Duab)

Video: Garduino - Ntse Lub Vaj Nrog Arduino: 4 Cov Kauj Ruam (nrog Duab)

Video: Garduino - Ntse Lub Vaj Nrog Arduino: 4 Cov Kauj Ruam (nrog Duab)
Video: 🤞8 YAM COV NEEG TXAWJ NTSE ZAM TSIS UA YOG DAB TSI?🚫 2024, Hlis ntuj nqeg
Anonim
Image
Image
Garduino - Smart Garden Nrog Arduino
Garduino - Smart Garden Nrog Arduino

Hnub no, tsis muaj leej twg tsis muaj txim. Puas muaj leej twg uas tsis raug tua ib tsob nroj ???

Nws nyuaj ua kom koj cov nroj tsuag muaj sia nyob. Koj yuav tsob ntoo tshiab, thiab qhov xwm txheej phem tshaj plaws, koj tsuas yog tsis nco qab ywg dej rau nws. Hauv qhov xwm txheej zoo dua, koj nco qab tias nws muaj, tab sis koj tsis ua nws zoo.

Nrog Garduino, peb yuav pab koj tig koj lub tsev mus rau hauv lub tsev cog khoom zoo nkauj ntawm cov ntoo noj qab haus huv thiab zoo siab.

Garduino yog lub chaw saib xyuas tsob ntoo ntse, uas yuav pab koj paub koj cov nroj tsuag zoo dua.

Vim li cas Garduino txias heev?

  • Nws saib xyuas cov dej noo hauv cov nroj tsuag cov av. Cov dej noo tsawg dhau tuaj yeem ua rau poob qoob loo thiab cog tuag. Yog tias cov av noo qis, tus neeg siv yuav tsum ywg dej nws cov nroj tsuag. Ua kom cov dej noo nyob hauv qhov tsim nyog kuj tseem pab kom tsis txhob ywg dej ntau dhau. Kev ywg dej ntau dhau yog qhov tshwm sim thiab paub zoo rau kev tua cov nroj tsuag, uas ua rau muaj kab mob hauv paus thiab ua dej tsis zoo.
  • Nws saib xyuas qhov kub nyob hauv tsob ntoo ib puag ncig. Kub yog qhov tseem ceeb hauv kev cog ntoo. Qhov no pab peb taug qab thaum qhov kub siab dhau. FYI, qhov kub qis tsis zoo rau cov nroj tsuag raws li qhov kub siab, qee zaum txawm tias tsis zoo.
  • Nws saib xyuas cov av noo. Cov nroj tsuag feem ntau xav tau huab cua ntub, vim tias qhov hws los ntawm qhov uas lawv nqus pa poob feem ntau ntawm lawv cov dej noo thaum huab cua ib puag ncig qhuav, poob uas cov nroj tsuag tsis tuaj yeem hloov pauv los ntawm cov dej nws cov hauv paus tau nqus.

Peb yog leej twg?

Ob tug Computer Science cov tub ntxhais kawm los ntawm Interdisciplinary Center (IDC), Herzliya, Israel.

Peb ob leeg muaj sijhawm tsis khoom, thiab peb ob leeg nyiam cov ntoo.

Peb cov tsev muaj cov nroj tsuag puv, thiab peb pom tias nyuaj rau tu lawv kom raug.

Peb feem ntau tsis nco qab ywg dej rau lawv, thiab thaum peb nco qab peb sim ua kom tsis nco qab los ntawm kev ywg dej rau lawv.

Cov txheej txheem tshuaj xyuas tsob ntoo no yog peb txoj haujlwm kawg hauv "Internet of Things (IoT)" chav kawm.

Peb vam tias qhov no yuav pab koj zoo li nws tau pab peb!

Peb yuav nyiam hnov los ntawm koj

Sim peb tes num? Qhia rau peb paub! Peb yuav nyiam hnov los ntawm koj, yog tias koj muaj cov ntsiab lus los txhim kho lossis cov lus pom. Ntxiv mus, peb yuav nyiam kom tau qee cov duab!

Khoom siv

  • 1 x ESP8266 board (Peb siv Wemos D1 mini)
  • 1 x Micro-USB Cables
  • 20 x jumper kab
  • 1 x Kub & Vaum sensor (Peb siv DHT22)
  • 1 x 10K Ohm resistor
  • 1 x Av noo noo sensor
  • 1 x LCD (Peb siv Grove LCD RGB Backlight)
  • 1 x Breadboard

Kauj Ruam 1: Cov Hluav Taws Xob

Cov Circuits
Cov Circuits
Cov Circuits
Cov Circuits

Hauv theem no, peb yuav txuas txhua lub ntsuas.

Av noo noo sensor:

  • Txuas VCC rau 3.3v
  • Txuas GND rau G
  • Txuas A0 rau A0

LCD Zaub:

  • Txuas GND rau G
  • Txuas VCC rau 5v
  • Txuas SDA thiab SCL rau D1, D2

Vaum & Kub sensor:

  • Txuas GND rau G
  • Txuas VCC rau 3.3v
  • Txuas Cov Ntaub Ntawv nrog 10K Ohm resistor rau D3 thiab lub zog, zoo li hauv Circuit Court

Kauj Ruam 2: Txhim Kho Cov Software Yuav Tsum Tau & Dashboards

Txhim Kho Cov Software Yuav Tsum & Dashboards
Txhim Kho Cov Software Yuav Tsum & Dashboards
Txhim Kho Cov Software Yuav Tsum & Dashboards
Txhim Kho Cov Software Yuav Tsum & Dashboards

Arduino IDE Cov

Nruab Arduino IDE:

www.arduino.cc/en/Guide/HomePage

Nruab qhov cuam tshuam "tsav tsheb" rau ESP8266 cov laug cam rau koj Arduino IDE:

randomnerdtutorials.com/how-to-install-esp…

Adafruit

Tsim ib tus account:

io.adafruit.com

Mus rau 'Feeds' thiab ntxiv 4 txau:

1. SoilMoisture

2. Vaum

3. Kub

4. Ceeb toom

Tom qab ntawd, mus rau 'Dashboard' thiab tsim lub dashboard tshiab, tom qab ntawd nkag mus rau lub dashboard thiab ntxiv 4 thaiv, siv cov cim ntxiv rau ntawm sab xis ntawm nplooj ntawv:

1. Ntxiv Kab Kab Kab thaiv, tom qab ntawd xaiv SoilMoisture pub, txiav txim siab tias tus nqi tsawg kawg yog 0 thiab qhov siab tshaj yog 1100.

2. Ntxiv Gauge block, tom qab ntawd xaiv AirMoisture pub thiab xyuas kom tseeb tias tus nqi siab tshaj yog 100.

3. Ntxiv Stream block, tom qab ntawd xaiv Kub pub

4. Ntxiv Cov ntawv thaiv, tom qab ntawd xaiv Alerts pub

Nyem 'Txuag'.

Kauj Ruam 3: Txoj Cai

Txoj Cai
Txoj Cai

Cov cai tau txuas nrog thiab tau sau tseg zoo, kom yooj yim siv.

Qhib cov cai hauv Arduino IDE, nco ntsoov tias pawg thawj coj saib xyuas koj tab tom ua haujlwm yog qhov tseeb.

Thaum koj tab tom ua haujlwm saib xyuas lub xov tooj, nco ntsoov tias koj nyob ntawm 115200baud.

Daim ntawv ceeb toom tias muaj cov chaw hauv tus lej koj yuav tsum tau hloov kho raws li koj qhov haujlwm (xws li koj li WiFi cov ntsiab lus).

Txhua yam yog sau rau hauv cov ntaub ntawv.

Kauj Ruam 4: Thawb Cov Ntawv Ceeb Toom

Laub ceeb toom
Laub ceeb toom
Laub ceeb toom
Laub ceeb toom

Txhawm rau kom tau txais kev ceeb toom, rub tawm MQTT Push Client app, tom qab ntawd nkag mus rau hauv app:

1. Ntxiv server. Feem ntau ntawm cov ntsiab lus twb tau ntxig, tsuas yog ntxiv cov ntsiab lus ntawm koj lub npe siv thiab tus lej nkag.

2. Ntxiv cov ncauj lus (pub hauv Adafruit IO) koj txaus siab pom. Hauv peb qhov haujlwm - ntxiv rau hauv lub ncauj lus UserName/txau/ceeb toom. Ces nyem tseg.

3. Qhov ntawd yog nws! Yog tias koj xav tau txais cov ntaub ntawv ntau ntxiv txog lub ntsuas cua, ntxiv cov ncauj lus tshiab thiab sau rau hauv UserName/txau/*lub ncauj lus*, qhov ncauj lus yog qhov khoom noj uas koj xav pom. Koj tseem tuaj yeem xaiv qhov kev ceeb toom twg koj xav tau txais, yog tias muaj txhua:)

Koj tuaj yeem siv cov ncauj lus no tsuas yog txhawm rau txhawm rau txhawm rau ntsuas ntawm tsob ntoo.

Pom zoo: