Cov txheej txheem:

Arduino Pas Dej Da Dej Saib Xyuas Huab Cua: 7 Kauj Ruam (nrog Duab)
Arduino Pas Dej Da Dej Saib Xyuas Huab Cua: 7 Kauj Ruam (nrog Duab)

Video: Arduino Pas Dej Da Dej Saib Xyuas Huab Cua: 7 Kauj Ruam (nrog Duab)

Video: Arduino Pas Dej Da Dej Saib Xyuas Huab Cua: 7 Kauj Ruam (nrog Duab)
Video: Использование Melexis MLX90614 Инфракрасный термометр с Arduino 2024, Hlis ntuj nqeg
Anonim
Arduino Pas Dej Da Dej Saib Xyuas Huab Cua
Arduino Pas Dej Da Dej Saib Xyuas Huab Cua

Lub hom phiaj tseem ceeb ntawm txoj haujlwm no yog siv Samsung ARTIK Cloud los tshuaj xyuas pH thiab ntsuas kub ntawm cov pas dej da.

Kho vajtse Cheebtsam:

  • Arduino MKR1000 lossis Genuino MKR1000
  • Jumper xov hlau (generic)
  • SparkFun pH Sensor Khoom
  • 1 x Resistor 4.75k ohm
  • Sparkfun dej pov thawj ntsuas kub

Software thiab Cloud API Siv:

  • Samsung IoT ARTIK Huab rau IoT
  • Tseeb Arduino IDE

Kauj ruam 1: ARTIK Cloud Setup

ARTIK Huab Teeb
ARTIK Huab Teeb
ARTIK Huab Teeb
ARTIK Huab Teeb
ARTIK Huab Teeb
ARTIK Huab Teeb

1. Sau npe nrog ARTIK Cloud. Mus rau tus tsim tawm site thiab tsim tshiab "ntaus ntawv yam".

2. Sau qhov koj xav tau tso saib thiab lub npe tshwj xeeb.

3. Tsim Manifest tshiab

4. Sau lub npe teb thiab lwm yam kev piav qhia

5. Nyem Txuag thiab tom qab ntawd mus rau Qhib Manifest Tab

6. Nyem rau ACTIVE MANIFEST Khawm kom tiav thiab koj yuav raug xa mus rau ntawm no

Ua tiav tsim hom ntaus ntawv! Tam sim no cia tsim koj daim ntawv thov uas yuav siv lub cuab yeej ntawd.

Kauj Ruam 2: Tsim ARTIK Cloud Application

Tsim ARTIK Cloud Application
Tsim ARTIK Cloud Application
Tsim ARTIK Cloud Application
Tsim ARTIK Cloud Application
Tsim ARTIK Cloud Application
Tsim ARTIK Cloud Application
Tsim ARTIK Cloud Application
Tsim ARTIK Cloud Application

1. Nkag mus rau ARTIK Cloud Applications thiab Nyem rau daim ntawv thov tshiab

2. Sau koj daim ntawv thov lub npe uas xav tau thiab kev txheeb xyuas qhov tseeb rov qab url.

Nco ntsoov tias yuav tsum tau rov ua dua qhov url qhov tseeb. Nws tau siv los txheeb xyuas cov neeg siv ntawm daim ntawv thov no li no yuav hloov mus rau qhov url no yog xav tau kev nkag mus. Peb siv https:// localhost/index/rau cov qauv.

3. Tam sim no teeb tsa koj daim ntawv thov tso cai nyeem thiab sau, taw rau koj lub cuab yeej ces txuag.

Nrog koj zoo siab tam sim no koj muaj daim ntawv thov!

Kauj Ruam 3: Txuas Koj Lub Xov Tooj

Txuas Koj Ntaus
Txuas Koj Ntaus
Txuas Koj Lub Tshuab
Txuas Koj Lub Tshuab
Txuas Koj Lub Tshuab
Txuas Koj Lub Tshuab

Tam sim no cia txuas daim ntawv thov uas koj tau tsim ua ntej.

1. Nkag mus rau kuv cov cuab yeej thiab nyem txuas lwm lub cuab yeej.

2. Nyem rau koj ntaus ntawv yam tshiab tsim ua ntej ces nyem txuas ntaus ntawv.

3. Nyem rau koj lub cuab yeej txuas nrog.

4. Nco tseg cov ntaub ntawv no raws li koj xav tau ntawm qhov program.

5. Tam sim no txav mus rau koj lub cuab yeej txuas nrog

Ua tiav rau ARTIK Cloud teeb tsa. Thaum koj kho vajtse tiav, daim ntawv yuav muaj cov ntaub ntawv.

Kauj Ruam 4: Teeb Kho Vajtse Sensor

Kho vajtse Sensor teeb
Kho vajtse Sensor teeb
Kho vajtse Sensor teeb
Kho vajtse Sensor teeb
Kho vajtse Sensor teeb
Kho vajtse Sensor teeb
Kho vajtse Sensor teeb
Kho vajtse Sensor teeb

Nov yog daim duab:

  • Temp GND rau MRK1000 GND
  • Temp OUT rau MKR1000 Digital tus pin 1
  • Temp VCC to MKR1000 5V
  • Txuas 4.7K resistor rau Temp VCC thiab Temp OUT
  • pH GND to MRK1000 GND
  • pH OUT to MKR1000 Analog pin 1
  • pH VCC to MKR1000 5V

Saib kuv cov qauv thaiv ntawm cov duab txuas.

Peb tau ntxiv Audio Jack kom yooj yim tshem tawm qhov ntsuas kub. Tab sis qhov no yog nyob ntawm yeem.

Kauj Ruam 5: Teeb Yuav Tsum Software

Teeb Yuav Tsum Software
Teeb Yuav Tsum Software
Teeb Yuav Tsum Software
Teeb Yuav Tsum Software
Teeb Yuav Tsum Software
Teeb Yuav Tsum Software
  1. Mus rau Arduino IDE thiab ntxiv MKR1000 pawg thawj coj saib.
  2. Tshawb nrhiav mkr1000 thiab nyem rau nruab
  3. Ntxiv cov tsev qiv ntawv uas xav tau: Tshawb nrhiav cov tsev qiv ntawv los nruab:

    • ArduinoJson - peb yuav siv qhov no los xa JSON cov ntaub ntawv mus rau ARTIK CloudArduino
    • HttpClient - tus tswv rau txuas rau API
    • OneWire - xav tau los nyeem cov tswv yim digital los ntawm Cov ntsuas kub
    • DallasTemperature - Dallas Kub sensor xav tau lub tsev qiv ntawv

Ua tiav qhov xav tau ntxiv software!

Kauj Ruam 6: Tshaj Tawm Txoj Haujlwm

Rub tawm Txoj Haujlwm
Rub tawm Txoj Haujlwm
Rub tawm Txoj Haujlwm
Rub tawm Txoj Haujlwm
Rub tawm Txoj Haujlwm
Rub tawm Txoj Haujlwm

1. Tam sim no ntsaws MKR1000 rau koj lub PC/Laptop.

2. Rub tawm software ntawm GitHub ntawm no

3. Hloov ARTIK Cloud API thiab Wifi Credentials.

4. Tom qab ntawd Rub tawm Software Code mus rau MKR1000 thiab pib saib xyuas.

Nco tseg: Koj li WiFi yuav tsum muaj internet txuas.

Kauj Ruam 7: Kev Xeem Field

Xeem Kev Xeem
Xeem Kev Xeem
Xeem Kev Xeem
Xeem Kev Xeem

Peb tau sim ntsuas cov cuab yeej ntsuas rau Private, Public thiab School Swimming Pool. Kev sau cov ntaub ntawv los ntawm cov neeg teb cov lus no ua rau peb txheeb xyuas lub peev xwm ntawm kho vajtse.

Koj tuaj yeem tso MKR1000 thiab lub ntsuas pa rau ntawm lub thawv thiab muab tso rau ntawm koj lub pas dej da kom deb ntawm cov dej tsis huv. Los ntawm kev ua qhov no, koj tuaj yeem saib xyuas koj cov dej zoo thiab ua kom lawv zoo los ntawm kev tso cov tshuaj uas xav tau.

Vam tias qhov kev qhia no pab tib neeg los tsim lawv tus kheej DIY pas dej da dej saib xyuas cov cuab yeej zoo. Tej zaum yuav muaj kev paub ntau ntxiv txog qhov kev puas tsuaj tas mus li ntawm lub pas dej da dej zoo li cov tib neeg yuav tsom mus rau ntau yam ntawm cov khoom siv uas tau muab hloov pauv tsis xyuas seb lawv nyab xeeb li cas. Lawv kuj tseem npaj siab los pab rau hauv zej zog los ntawm kev tuaj yeem muab txhais tau tias ua kom ntsuas cov dej muaj txiaj ntsig ntau dua thiab muaj txiaj ntsig yam tsis tas yuav tsum tau txi cov peev txheej.

Zoo siab tsev!:)

Pom zoo: