Cov txheej txheem:

ERrigator: 13 Cov kauj ruam
ERrigator: 13 Cov kauj ruam

Video: ERrigator: 13 Cov kauj ruam

Video: ERrigator: 13 Cov kauj ruam
Video: Führt die Legalisierung von Rauschmitteln zur Verherrlichung von Drogen? |13 Fragen 2024, Hlis ntuj nqeg
Anonim
ERrigator
ERrigator

ERrigator yog dab tsi

eRrigator yog lub suab zoo li cas. Nws yog internet txuas nrog cov tswj dej. HW tus nqi tsawg dua $ 40 thiab tej zaum yuav raug thawb mus txog $ 30. Nws txhawb nqa txog 6 qhov chaw nres tsheb, tab sis ntau ntxiv tuaj yeem ntxiv tau yooj yim yog xav tau. Qhov kev zov me nyuam txawv dua li cov tswj dej ntau. Nws tso cai rau ntau txoj haujlwm los teeb tsa rau txhua lub chaw nres tsheb sib cais los ntawm lwm qhov. Qhov no txhais tau tias kev ua haujlwm nws tsis xav tau kev sib txuas ntawm cov chaw sib txawv.

Chav tsev muaj nws tus kheej Lub Sijhawm Sijhawm (RTC) thiab khaws cov phiaj xwm thiab teeb tsa ntawm FLASH nco. Qhov no txhais tau tias txawm tias tsis muaj kev sib txuas hauv is taws nem, nws yuav ua tiav lub sijhawm raws li tau npaj tseg.

Cov Cuab Yeej Siv

  • Xws li + WiF: NodeMCU
  • Platform: Arduino
  • DevTools: PlatformIO

Tswj Tsev

  • Kev tswj hwm ntawm chav tsev, los ntawm kev ua haujlwm, mus rau chaw nres tsheb rau ob peb feeb: Dawb Azure Tier tso cai mus txog 10 lub vev xaib nrog kev txwv kev mus los
  • Kev xa xov mus rau "qhia" chav tsev ntawm kev tswj hwm tshiab: MQTT tuav rau
  • Ntawm chav LCD ntawm 20x4 qhia txog xwm txheej + dej tshwm sim. Tsis muaj cov ntaub ntawv nkag lossis cov ntawv qhia zaub mov tswj

Kauj Ruam 1: Kev Tsim Hluav Taws Xob

Kev Tsim Hluav Taws Xob
Kev Tsim Hluav Taws Xob

Lub plawv ntawm kev tsim qauv no yog NodeMCU, uas txuas rau koj li Wi -nkaus network thiab tau txais cov lus txib los ntawm kev sib koom ua ke ntawm MQTT thiab Kev Pabcuam Web yooj yim tuav ntawm Azure. NodeMCU maub los yog siv los tswj cov ntaub thaiv npog uas txuas cov solenoids ntawm cov dej ntws. Qhov ntawd yog nws, tus so feem ntau yog lub zog lossis kiv cua hauv daim ntawv ntawm LCD zaub.

Ib lub ntsiab lus kuv xav tau kev nyuab siab, kuv tub nkeeg. Yog li kuv tau siv daim thaiv thaiv, tab sis txij li txhua yam kuv tau txais yog qhov sib txuas sib txuas, Kuv xav tau ntxiv Varistor ntawm txhua qhov chaw nres tsheb. Qhov no tiv thaiv EMI teeb meem nrog rau tiv thaiv kev sib txuas lus.

Lub zog rau solenoids yuav tsum yog ~ 24VAC, yog li siv VAC/VAC phab ntsa wart. Qhov no yog pub cov chaw nres nkoj sib txuas uas txuas rau lub li qub rau cov chaw tso dej.

Tib lub zog ntawd tau kho dua siv tus choj diode thiab lub tshuab hluav taws xob los tsim DC tsis ruaj khov uas tau pub rau DC/DC hloov pauv. Lub DC hloov pauv tau hloov kho rau 5VDC kom muaj zog rau cov khoom siv hluav taws xob. Pom tseeb muaj qhov yooj yim On/Off hloov.

RTC thiab LCD txuas nrog NodeMCU los ntawm I2C interface thiab muab sijhawm ua haujlwm thiab tso saib cov xwm txheej.

Kuj tseem muaj 1 lub pob, siv feem ntau rau kev rub cov zaub. Qhib chav nyob, thaum nias lub pob nyem, ua qhov nyuaj rov pib dua, uas tso cai rau chav pib teeb tsa.

Nqi Tsim

Tag nrho tus nqi HW kwv yees kwv yees li tsawg dua $ 39US, thiab tuaj yeem raug thawb ntxiv, saib kev puas tsuaj:

  • Qhov Project Box: $ 7
  • NodeMCU: $ 3
  • RTC: $ 0.6 ib
  • Diode Choj: $ 0.5
  • 470uF 35V Capacitor: $ 0.2
  • Momentary Push Button: $ 0.4
  • On/Off hloov: $ 0.4
  • LIR2032 Rechargeable Npib Roj Teeb: $ 1
  • DC/DC Converter: $ 0.7
  • 8 Ch. Relay Shield: $ 6
  • PCB + Lwm yam: $ 2
  • LCD 20x4 + I2C I/F: $ 6
  • 120VAC/25.5VAC Wall Wart: $ 10
  • Varistor x 6: $ 0.6

Kauj Ruam 2: Kev Sib Tw Vs. Chaw Vs Programming

Kev teeb tsa: cov ntsuas yuav tsum tau tso cai rau chav txuas rau koj li WiFi thiab txheeb xyuas nws tus kheej rau eRrigator lub vev xaib. koj tus eRrigator nyob, thiab lwm yam.

Cov Kev Kawm: Teem sijhawm thiab sijhawm tso dej.

Kauj Ruam 3: Pib Kho Kom Zoo ntawm ERrigator

Image
Image
Chaw rau Koj ERrigator
Chaw rau Koj ERrigator

Zoo, teeb meem nyuaj me ntsis?, Tsis yog tiag. NodeMCU tuaj yeem ua raws li ob lub chaw nres tsheb txuas mus rau lwm qhov chaw nkag nrog rau lub chaw nkag.

  1. Mus rau lub vev xaib thiab tsim chav tshiab. Qhov no yuav muab rau koj nrog chav tsev tshwj xeeb ID.
  2. Qhib eRrigator, thaum tib lub sijhawm nias khawm/khawm pib dua. eRrigator mus rau hauv kev teeb tsa. hom.
  3. Txuas koj lub PC lossis lub xov tooj ntawm tes mus rau WiFi network tshiab nrog SSID: eRrigatorSoftAP.
  4. Saib Video - Ua raws cov lus qhia ntawm cov zaub (koj yuav xav tau scroll). Tshwj xeeb, nrhiav dab tsi yog eRrigator server IP chaw nyob thiab taw tes koj tus browser rau qhov chaw nyob ntawd.
  5. Sau daim foos (saib daim duab ntes) nrog koj Lub Npe Network, Tus Password thiab lub npe chav koj tau txais los ntawm kauj ruam 1.
  6. Xa daim ntawv.
  7. Hloov koj lub PC lossis lub xov tooj ntawm tes rau koj li kev sib txuas
  8. Mus rau:
  9. Pib nrog kev teeb tsa thiab teeb tsa chav tsev

Kho dua tshiab?

Tsuas yog khaws koj tus lej ID los ntawm lub vev xaib

Rov ua cov kauj ruam 2-9 saum toj no

Kauj Ruam 4: Chaw rau Koj ERrigator

Kauj Ruam 5: Koj Li ERrigator Status

Koj li ERrigator Status
Koj li ERrigator Status
Koj li ERrigator Status
Koj li ERrigator Status

Lub Tsev nplooj ntawv qhia txog Chav nyob li cas (saib thawj qhov snapshot).

Nws muab lub sijhawm ntawm chav tsev uas tau sib tham zaum kawg rau Web daim ntawv thov, nrog rau cov xwm txheej. Nws tseem muab tus nqi rau cov txee uas siv los teem sijhawm mus los cov dej uas tsis yog txhua hnub.

Sab saum toj ntawm txhua nplooj ntawv muab cov cim kawg. cov ntaub ntawv nrog rau xwm txheej ntawm chav tsev. Yog tias txhua yam yog ntsuab, zoo rau koj, yog tias tsis yog, zoo …

Kauj Ruam 6: Teeb Koj Cov Chaw

Teem Koj Cov Chaw
Teem Koj Cov Chaw

Kauj Ruam 7: Lub Sij Hawm Ua Ntej Dej

Kauj Ruam 8: Cov Haujlwm Ntxiv ntawm Chav

Kev Ua Haujlwm Ntxiv ntawm Chav
Kev Ua Haujlwm Ntxiv ntawm Chav

Nplooj ntawv uas qhia nyob rau hauv Chav Tswj tso cai rau ntau txoj hauv kev los tswj lub tsev.

  1. Disable/Enable - Yooj yim, lov tes taw lossis pab kom chav nyob. Tam sim no chav ua haujlwm ntau dua li cov khoom siv dai kom zoo nkauj tshaj txhua yam.
  2. Auto Enable/Timed Disable (tseem tsis tau ua tiav) - Lov tes taw lub tsev thiab tso cai rau nws kom qhib tau tom qab qee lub sijhawm tau txiav txim ua ntej. Piv txwv li, koj tab tom muaj kev lom zem thiab xav kom zam koj cov qhua foom phem rau lawv tus tswv tsev ruam thaum cov kais dej qhib. Txawm li cas los xij koj paub tias koj yuav tsis hnov qab pab kom chav nyob. Teem nws kom pib-pib ua haujlwm tom qab 1 hnub thiab qhov ntawd yog nws.
  3. Teem sijhawm/hnub - Tsuas yog thawb hloov kho tshiab ntawm lub sijhawm thiab hnub tim, kom rov pib dua RTC kev sib tw. tsis muaj qhov xav tau tiag tiag rau qhov no raws li RTC paub hloov kho txhua 24 teev, yog li cov dej ntws tsis ntau tshaj 2-3 vib nas this.
  4. Tua tawm - Kaw tag nrho cov chaw nres tsheb, kom txog rau thaum teem sijhawm tom ntej.
  5. Qhib chaw nres tsheb rau.
  6. Teem caij nag lossis daus - Tus eRrigator tso cai rau koj txo lub sijhawm ywg dej los ntawm qee feem pua rau txhua chav dej nag.

Kauj Ruam 9: Tso Lub Tsev Ntawm Afar

Txo Chav Nyob Los Ntawm Afar
Txo Chav Nyob Los Ntawm Afar

Hauv qab Admin-> Pib dua

Koj tuaj yeem siv daim ntawv no los rov kho chav nyob hauv 5 txoj kev sib txawv:

1. Counters Reset - tsuas yog cov phiaj xwm ua haujlwm ntau hnub.

2. Qib Pib Pib - tsuas yog rov pib dua lub tsev, tsis muaj dab tsi ntxiv.

3. Nruab Nrab Qib Pib dua - Rov pib dua chav, suav.

4. Qib Siab Pib dua - Rov pib dua chav, suav, tshem cov program los ntawm kev nco, tshem cov xov tooj cua los ntawm kev nco.

5. Hard Reset - Raws li Qib Siab rov pib dua, tsuas yog nws tseem tshem tawm cov teeb tsa, saib cov kauj ruam 3 kom paub meej txog yuav teeb tsa lub tsev tam sim no li cas uas koj tau ua txhaum nws tag nrho.

Kauj ruam 10: Rov teeb tsa chav nyob ntawm koj tus browser

Rov teeb tsa chav nyob ntawm koj tus browser
Rov teeb tsa chav nyob ntawm koj tus browser

Hauv qab Admin-> Config

Yog tias koj xav hloov chaw mus rau lwm lub WiFi, tsuas yog xaiv lub network, ntxiv tus password thiab nco ntsoov theej/luam tawm chav ID. Xa, voi-la, nws ua tiav.

Kauj Ruam 11: Tshaj Tawm Huab Cua - FW Hloov Kho

Tshaj Huab Cua - FW Hloov Kho
Tshaj Huab Cua - FW Hloov Kho

Hauv qab Admin -> FW Hloov Kho

Qhov no yog qhov pheej hmoo loj - koj tuaj yeem yooj yim tsoo lub tsev !!!

Yog tias koj ua cib ua haujlwm, koj yuav tsum tau txuas lub cev ntawm NodeMCU micro-USB rau koj lub PC thiab xa cov ntawv ua haujlwm.

Rub tawm cov ntaub ntawv binary ntawm qhov tso tawm uas koj xav tau, nkag mus rau qee cov ntaub ntawv tso tawm thiab xa.

Chav tsev yuav tau ua haujlwm nyob saum huab cua thiab ib zaug ua tiav, yuav rov pib dua. DB tau hloov kho kom pom qhov kev tso tawm tshiab hauv cov npe hauv qab daim ntawv.

Qhia tawm, yog tias chav tsev tsis tau cib, koj tuaj yeem rov qab mus rau qhov tso tawm ntxov los ntawm kev xaiv nws.

Txhob ntshai, ntshai heev!

Kauj Ruam 12: Arduino Code rau Koj ERrigator

Ua haujlwm los ua kom nws nthuav tawm…

Kauj Ruam 13: C# Txoj Cai los Khiav Koj Lub Vev Xaib

Ua haujlwm los ua kom nws nthuav tawm…

Pom zoo: