Cov txheej txheem:

IoT Hydroponics - Siv IBM's Watson rau PH thiab EC Ntsuas: 7 Kauj Ruam (nrog Duab)
IoT Hydroponics - Siv IBM's Watson rau PH thiab EC Ntsuas: 7 Kauj Ruam (nrog Duab)

Video: IoT Hydroponics - Siv IBM's Watson rau PH thiab EC Ntsuas: 7 Kauj Ruam (nrog Duab)

Video: IoT Hydroponics - Siv IBM's Watson rau PH thiab EC Ntsuas: 7 Kauj Ruam (nrog Duab)
Video: Artificial Intelligence (AI) in Agriculture | The Future of Modern Smart Farming with IoT 2024, Hlis ntuj nqeg
Anonim
IoT Hydroponics - Siv IBM's Watson rau ntsuas PH thiab EC
IoT Hydroponics - Siv IBM's Watson rau ntsuas PH thiab EC

Cov lus qhia no yuav qhia saib yuav ua li cas saib xyuas EC, pH, thiab ntsuas kub ntawm kev teeb tsa hydroponics thiab xa cov ntaub ntawv mus rau IBM's Watson kev pabcuam.

Watson yog pub dawb los pib nrog. Muaj cov phiaj xwm them nyiaj, tab sis txoj phiaj xwm pub dawb ntau dua li txaus rau txoj haujlwm no.

Kauj Ruam 1: Yam Koj Yuav Tsum Tau

  • Txhua lub rooj tsav xwm txhim kho ESP32. Qhov no zoo li tsim nyog, tab sis ib qho twg yuav ua haujlwm.
  • Isolated EC Probe Interface board thiab K1 conductivity probe. Koj tuaj yeem tau txais ob qho ntawm ufire.co.
  • Isolated ISE Probe Interface board thiab pH sojntsuam kuj los ntawm ufire.co.
  • Qee qhov txawv thiab xaus zoo li xov hlau thiab USB cables.

Kauj ruam 2: Software

  1. Kuv yuav xav tias koj paub nrog Arduino, Arduino IDE, thiab nws tau teeb tsa lawm. Yog tsis yog, ua raws cov kab ntawv txuas.
  2. Yam tom ntej yog tau txais ESP32 lub platform teeb tsa. Vim qee qhov, qhov no tsis tau yooj yim los ntawm kev muaj lub platform tswj hwm tus IDE tau muab, yog li koj yuav tsum tau mus rau nplooj ntawv github thiab ua raws cov lus qhia teeb tsa tsim nyog.
  3. Tam sim no rau cov tsev qiv ntawv: Los ntawm Arduino IDE, tau txais Sketch / suav nrog Lub Tsev Qiv Ntawv / Tswj Tsev Qiv …

    1. Tshawb nrhiav thiab teeb tsa 'Isolated EC Probe Interface'.
    2. Tshawb nrhiav thiab teeb tsa 'PubSubClient'.
    3. Tshawb nrhiav thiab teeb tsa 'Isolated ISE Probe Interface'.
    4. Tshawb nrhiav thiab teeb tsa 'ArduinoJson' version 5.13.2.

Kauj Ruam 3: Ua Kev Sib Txuas

Ua Kev Sib Txuas
Ua Kev Sib Txuas

ESP32 peb tab tom siv muaj WiFi thiab BLE cuam tshuam, yog li tsuas yog xav tau lub zog siv. Tej zaum koj yuav xav tau USB cable muab lub zog, tab sis roj teeb yog lwm txoj kev xaiv. Ntau ESP32s tuaj yeem yuav nrog lub roj teeb them hluav taws xob hluav taws xob twb nyob ntawm lub rooj tsavxwm.

Cov cuab yeej uFire uas peb yuav ntsuas EC, pH thiab qhov kub thiab txias txuas mus rau ESP32 los ntawm I2C npav. Nrog ESP32, koj tuaj yeem xaiv ob qho pins rau I2C. Ob lub cuab yeej yuav nyob ntawm tib lub npav, yog li SCL thiab SDA tus pin yuav zoo ib yam. Yog koj saib cov cai (kauj ruam tom ntej), koj yuav pom ob kab no.

ISE_pH pH (19, 23); uFire_EC mS (19, 23);

Kuv txiav txim siab siv tus pin 19 rau SDA thiab tus pin 23 rau SCL. Yog li Txuas ESP32's 3.3v (lossis xijpeem tus pin tuaj yeem hu rau ntawm koj lub rooj tshwj xeeb) mus rau EC uFire ntaus ntawv 3.3/5v tus pin, GND rau GND, 19 rau SDA, thiab 23 rau SCL. Tam sim no txuas lub uFire pH board rau EC board, tus pin rau tus pin. Tus pinout ntawm koj ESP32 yuav txawv ntawm daim duab.

Kauj Ruam 4: Ua IBM Watson Account

Ua IBM Watson Account
Ua IBM Watson Account
Ua IBM Watson Account
Ua IBM Watson Account

Mus rau IBM Watson IoT Platform lub vev xaib thiab nyem 'SIGN IN' hauv kaum sab xis saum toj. Nyem qhov txuas nyob ze hauv qab mus rau 'Tsim thiab IBMid'. Ua kom tiav cov txheej txheem sau npe thiab koj yuav kawg pom koj tus kheej ntawm qhov feem ntau tsis pom lub vev xaib. Nyob rau sab xis sab xis, koj yuav pom koj tus email chaw nyob, nyem rau nws thiab koj yuav pom tias nws hais tias koj tsis yog tus tswv cuab ntawm ib lub koom haum. Nyem 'Sau npe'.

Koj yuav pom koj tus kheej ntawm IBM Cloud Login nplooj ntawv. Nyem 'Nkag mus', thiab tom qab ntawv ntawm nplooj ntawv tom ntej, nyem 'SIGN UP'. Ua kom tiav daim ntawv thiab tom qab ntawd txheeb xyuas koj tus email. Lub taub hau rov qab mus rau nplooj ntawv no thiab teeb tsa 'Internet of Things Platform'.

Tam sim no lub taub hau mus rau thawj nplooj ntawv, ntawm no, nyem rau koj tus email chaw nyob, thiab koj yuav tsum pom ib lub koom haum hauv cov ntawv qhia hu ua 'Bluemix Free xxxxxx'. Nco tseg ntawm tus lej tus lej/ntawv ua ke. Koj yuav xav tau nws tom qab, nws yog koj lub koom haum ID.

Tam sim no koj tuaj yeem mus rau qhov txuas no, nyem 'Internet of Things Platform-vr. Ntawm nplooj ntawv tom ntej, koj yuav pom lub pob "Launch". Kuv yuav luam qhov txuas rau nkag tau sai dua lub sijhawm tom ntej, nws yuav yog qhov uas txhua yam ua tiav los ntawm no.

Kauj Ruam 5: Muab Cov Khoom Siv

  1. Koj yuav pom cov ntawv qhia zaub mov nyob rau sab laug ntawm qhov screen. Nyem rau ib qho uas zoo li microprocessor sau tias 'Devices'.
  2. Hauv nruab nrab sab saud ntawm lub vijtsam, koj yuav pom 'Xauj', 'Ua Haujlwm', thiab 'Ntaus Ntaus'. Xaiv 'Ntaus Ntaus', thiab tom qab ntawd '+ Ntxiv Ntaus Ntaus'.
  3. Ntawm qhov 'Add Device Type' screen, ua lub cuab yeej tshiab lub npe nws ESP32, nyem Next. Ua kom tiav cov ntaub ntawv ntxiv ntawm daim foos yog tias koj xav tau thiab tom qab ntawd nyem 'Ua tiav'. Ntawm qhov screen tom ntej, nyem 'Register Devices'
  4. Ntawm qhov 'Register Devices' screen, koj yuav tsum pom koj lub ntaus ntawv hom, ESP32, twb tau sau thiab dub kom nkag mus rau 'Device ID'. Kuv yuav hu kuv li '0001'. Nyem 'Tom ntej'. Tawm qhov kev lees paub token dawb paug thiab nyem 'Tom ntej' thiab tom qab ntawd 'Ua tiav'.
  5. Ntawm lub vijtsam hauv qab no, koj yuav tau txais koj ib qho thiab tsuas yog muaj lub sijhawm los theej 'Ntawv Pov Thawj Pov Thawj'. Luam nws thiab tseem ceeb ntawm 'Lub Koom Haum ID', 'Ntaus Tus ID' thiab 'Ntaus Ntaus'. Koj yuav xav tau nws rau qib tom ntej.
  6. Khaws nplooj ntawv qhib thiab mus rau theem tom ntej.

Kauj ruam 6: Sketch

Kos duab
Kos duab

Koj tuaj yeem tshawb xyuas qhov chaw ntawm no.

  1. Luam cov ntaub ntawv rau hauv qhov project Arduino.
  2. Kho Watson.h

    1. Hloov ssid thiab password rau koj cov ntaub ntawv xov tooj ntawm tes WiFi.
    2. Hloov Organization_ID, Device_Type, Device_ID, thiab Authentication_Token rau cov ntaub ntawv koj tau txais los ntawm cov kauj ruam dhau los.
  3. Rub nws mus rau koj ESP32 thiab saib koj lub cuab yeej tshiab ntawm IBM Watson qhov chaw. Nyem rau lub cuab yeej thiab tom qab ntawd 'Xeev'. Nws yuav tsum tau qhia koj hloov kho qhov tseem ceeb. Yog tias nws tsis ua haujlwm, koj yuav pom qee cov ntaub ntawv muaj txiaj ntsig hauv qab 'Logs'.

Kauj Ruam 7: Saib Cov Ntaub Ntawv

Saib Cov Ntaub Ntawv
Saib Cov Ntaub Ntawv
  1. Ntawm IBM Watson IoT Platform nplooj ntawv, nyem rau sab saum toj kawg nkaus lub cim, ib qho nrog cuaj lub cim me me sau tias 'Boards'.
  2. Nyem '+ Tsim Pawg Thawj Coj Tshiab', hu nws txhua yam koj xav tau, nyem 'Tom ntej' thiab tom qab ntawd 'Ua tiav'.
  3. Qhib pawg thawj coj tsim tshiab, tom qab ntawv nyem '+ Ntxiv Daim Npav Tshiab'.

    1. Kuv yuav ua kom pom qhov kub thiab txias siv hom Gauge chart.
    2. Ntawm nplooj ntawv tom ntej, xaiv peb lub cuab yeej thiab nyem 'Tom ntej'
    3. Nyem 'Txuas cov ntaub ntawv tshiab teeb tsa' ntawm nplooj ntawv tom ntej. Hauv lub thawv 'Txheej xwm', xaiv 'xwm txheej', tom qab ntawd hauv 'Cov Khoom', koj yuav tsum pom cov npe ntawm peb cov ntaub ntawv cov ntaub ntawv, xaiv 'C'. Hloov 'Hom' rau tus lej thiab 'Chav' rau 'C', tom qab ntawv 'Min' thiab 'Max' rau 0 thiab 85. Nyem 'Tom ntej'.
    4. Hloov qhov loj me rau 'S' lossis 'M' kom pom cov duab ntsuas. 'Tom ntej' thiab tom qab ntawd 'Xa'.
  4. Rov ua cov kauj ruam saum toj no rau lwm cov ntaub ntawv.

Pom zoo: