Cov txheej txheem:

MQTT Pas Dej Kub Kub Saib Xyuas: 7 Kauj Ruam (nrog Duab)
MQTT Pas Dej Kub Kub Saib Xyuas: 7 Kauj Ruam (nrog Duab)

Video: MQTT Pas Dej Kub Kub Saib Xyuas: 7 Kauj Ruam (nrog Duab)

Video: MQTT Pas Dej Kub Kub Saib Xyuas: 7 Kauj Ruam (nrog Duab)
Video: Собственная жена_Рассказ_Слушать 2024, Hlis ntuj nqeg
Anonim
MQTT Pas Dej Da Dej Ntsuas Kub
MQTT Pas Dej Da Dej Ntsuas Kub

Tinkercad Cov Haujlwm »

Txoj haujlwm no yog tus khub rau kuv lwm qhov Kev Ua Haujlwm Hauv Tsev Zoo Cov Ntaub Ntawv Ntse-Logging Geyser Controller thiab Ntau Lub Hom Phiaj-Chav-Teeb Pom Kev thiab Cov Khoom Siv.

Nws yog lub pas dej ua ke teeb tsa saib xyuas qhov ntsuas dej hauv pas dej, huab cua ib puag ncig kub thiab ntsuas siab. Tom qab ntawd nws qhia txog cov dej kub ntawm lub pas dej ntawm ib cheeb tsam LED thiab xa tawm ntawm WiFi/MQTT mus rau hauv tsev - hauv kuv cov ntaub ntawv software tau hloov kho dua tshiab MQTT sib xws ntawm Lub Teeb Pom Kev Zoo. txawm hais tias nws yog qhov yooj yim los ua ke nws rau hauv ib qho MQTT tau tshaj hauv tsev.

Cov lus qhia no tsom mus rau Pas Dej Saib tsim thiab tsim kho, kev hloov kho ntawm Tus Tswj (firmware tshiab thiab ntxiv rau ntawm OLED zaub) yuav suav nrog hauv tus thawj tswj tsis ntev.

Cov yam ntxwv tseem ceeb suav nrog:

  • Qhov tsis muaj hluav taws xob nyob ntawm lub pas dej txiav txim siab 18650 roj teeb lub zog nrog kev sib xyaw 1W hnub ci ncov qaumteb qabteb kom tswj tau lub roj teeb, lub roj teeb tau txuas ntxiv los ntawm kev siv ESP8266 "Deep Sleep" hom. Hauv kuv qhov system, chav tsev muaj peev xwm hla peb "lub caij ua luam dej da dej" (Kaum Ib Hlis txog rau Lub Plaub Hlis) yam tsis muaj kev cuam tshuam los ntawm phau ntawv them nqi ntxiv.
  • Ib qho kev xaiv hauv zos tsim hauv 8 LED kab lus qhia pom lub pas dej kub hauv 1 qib sib nrug.
  • MQTT cov ntaub ntawv xa mus los ntawm WiFi hauv zos txuas mus rau ib qho kev sib koom ua ke.
  • Txhua txoj haujlwm tau ua tiav dhau WiFi siv Tus Saib Xyuas raws li Access Point thiab sab hauv Web Server teeb tsa nplooj ntawv nrog txhua qhov programmable tsis raug khaws cia hauv EEPROM.

    • Lub sijhawm sib nrug ntawm kev sawv thiab kis. 1 txog 60 feeb sib nrug.
    • Configurable MQTT lub ncauj lus/lus tawm tswv yim

      • Cov ntsiab lus ntawm tus kheej (piv txwv li PoolTemp, AirTemp, BaroPress)
      • Ib lub ntsiab lus me me (piv txwv li Pas Dej Kub + Cua Kub + Siab ntsuas ntsuas)
      • Tau tshaj nrog OLED zaub teeb tsa ntawm Lub Hom Phiaj-Chav-Teeb Pom Kev thiab Cov Khoom Siv Hluav Taws Xob (saib cov npe duab piv txwv)
    • WiFi network SSID thiab tus password
    • Access Point SSID thiab tus password
    • LED bargraph tswj

      • Qhov ntsuas kub tsawg kawg nkaus (15 txog 25'C)
      • Programmable mus tas li ON, kaw tas mus li, Tsuas yog thaum nruab hnub nrig

Txawm hais tias kuv 3D luam tawm kuv tus kheej lub thawv / teeb tsa kev teeb tsa thiab siv PCB pawg thawj coj los ntawm txoj haujlwm yav dhau los, koj tuaj yeem siv qhov uas haum rau koj tus kheej nyiam vim tsis muaj ib yam tseem ceeb lossis "pov rau hauv pob zeb". Ntu kawg ntawm Cov Lus Qhia no muaj Gerber thiab STL Cov Ntaub Ntawv rau PCB cov laug cam thiab ABS vaj tsev uas kuv tau tsim tshwj xeeb rau txoj haujlwm no

Kauj Ruam 1: Thaiv Daim Duab thiab Sib Tham Txog Kev Xaiv Cov Khoom

Thaiv Daim Duab thiab Sib Tham Txog Kev Xaiv Cov Cheeb Tsam
Thaiv Daim Duab thiab Sib Tham Txog Kev Xaiv Cov Cheeb Tsam
Thaiv Daim Duab thiab Sib Tham Txog Kev Xaiv Cov Cheeb Tsam
Thaiv Daim Duab thiab Sib Tham Txog Kev Xaiv Cov Cheeb Tsam

Daim duab thaiv kab lus saum toj no hais qhia qhov tseem ceeb kho vajtse ntawm Pool Monitor.

Txheej txheem

ESP8266 siv tuaj yeem yog ib qho ntawm ESP03/07/12 cov qauv yooj yim dhau mus rau qhov zoo dua tus phooj ywg NodeMCU thiab WEMOS cov qauv.

Kuv siv ESP-12, Yog tias koj lub pas dej nyob deb ntawm koj lub router WiFi koj yuav nyiam ESP-07 nrog lub kav hlau txais xov sab nraud. NodeMCU/Wemos modules yog pawg phooj ywg zoo tab sis yuav ua rau muaj zog siv zog me ntsis ntxiv vim lawv cov kev tswj hwm qhov hluav taws xob ntxiv thiab LEDS - qhov no yuav cuam tshuam rau lub peev xwm ntawm lub hnub ci vaj huam sib luag rau txhua hnub kom lub roj teeb them thiab koj yuav xav tau ib ntus phau ntawv them nqi siv lub USB chaw nres nkoj ntawm lub charger module.

Kub ntsuas - Daim duab 2

Kuv tau siv qhov yooj yim uas muaj thiab tus nqi qis hlau raj + cov xov tooj hloov pauv ntawm DS18B20 qhov ntsuas kub uas tuaj nrog ib puag ncig 1 meter ntawm kev txuas cable raws li lawv twb muaj zog thiab tiv taus huab cua. Ib tus siv tag nrho ntev ntawm txoj kab rau ntsuas dej hauv pas dej thiab lwm qhov nrog cov kab txuas luv rau huab cua puag ncig.

Huab cua ambient sensor

Kuv tau xaiv qhov zoo tshaj plaws BME280 tus qauv txhawm rau ntsuas huab cua puag ncig thiab ntsuas siab. Tej zaum koj yuav xav tsis thoob vim li cas kuv thiaj tsis siv cua ntsuas qhov ntsuas kub ntawm qhov qauv no.

Qhov laj thawj yog qhov yooj yim - yog tias, raws li kuv tau ua hauv thawj daim qauv siv lub luag haujlwm no, koj kawg ntsuas qhov ntsuas huab cua zoo li qub Sab hauv lub tsev uas zoo li nyeem siab vim yog sab hauv tus kheej cua sov ntawm lub qhov cua nkag los ntawm sab hnub tuaj (nws nyeem tau zoo kawg thaum hmo ntuj!). Nws tau pom sai sai tias lub ntsuas cua kub xav tau teeb tsa sab nraum lub thawv ntawv tab sis nyob hauv qhov ntxoov ntxoo kom deb ntawm lub hnub ci ncaj qha yog li kuv tau hloov mus rau DS18B20 thib ob thiab muab lub me me taw tes nyob hauv qab lub thawv. BME280 ntsuas lub ntsuas cua txawm hais tias tseem tseem siv los ntsuas ntsuas ntsuas rau qhov ntsuas kub nyob hauv lub thawv thiab tuaj yeem saib xyuas ntawm lub khoos phis tawj nplooj ntawv tseem ceeb.

LED bargraph - Daim duab 1

Yim qhov kev siv zog hauv zej zog LED cov txiaj ntsig tau tsav los ntawm PCF8574 IO cov tshuab nthuav dav uas hloov pauv txhua lub LED los ntawm PNP 2N3906 transistor. PCF8574 yuav qhia ib qho LED ib zaug (txhawm rau txo kev siv lub zog) nyob ntawm qhov ntsuas ntsuas dej hauv pas dej thiab yuav nyob ua haujlwm txawm tias thaum ESP8266 nyob hauv nws lub hom pw. Yog li, yog tias tau qhib, LED kab lus yuav ua haujlwm txhua lub sijhawm.

  • Yog tias ntsuas ntsuas kub tsawg dua qhov ntsuas kub tsawg tshaj plaws rau kab lus, tom qab ntawv ob qho LED 1 thiab 2 yuav ci.
  • Yog tias ntsuas ntsuas kub ntau dua li qhov ntsuas kub tsawg kawg uas tau muab rau kab lus+8, ces ob qho LED 7 thiab 8 yuav ci.
  • Yog tias lub teeb pom kev zoo raws li ntsuas los ntawm lub hnub ci vaj huam sib luag qis dua qhov pib qhov kev teeb tsa hauv kev teeb tsa teeb tsa, LED cov lus tso tawm yuav raug xiam oob khab kom txuag roj teeb lub zog, hloov pauv kab lus tuaj yeem xiam oob khab tas mus li (pib qhov teeb tsa mus rau 0) lossis qhib (pib qhov teeb tsa rau 100).
  • Yog tias koj tsim tsis xav tau kab lus yooj yim tshem tawm PCF8574, LED's, transistors thiab cuam tshuam nrog cov tiv thaiv

Hnub ci vaj huam sib luag, roj teeb thiab roj teeb them nyiaj txiag

Cov khoom siv hluav taws xob yooj yim tsuas yog 2000mAH (lossis ntau dua) 18650 LIPO roj teeb pub los ntawm 1N4001 diode los txo cov roj teeb hluav taws xob (them roj teeb ntau tshaj = 4.1V thiab ESP8266 qhov hluav taws xob = 3.6V).

Cov roj teeb muaj peev xwm qis yuav ua haujlwm tab sis kuv tsis muaj kev xav yog tias kev them txhua hnub los ntawm lub hnub ci vaj huam sib luag yuav txaus.

Ceev faj lub peev xwm ntau dua sau cov roj teeb (piv txwv li 6800 mAH) - ntau ntawm cov khw yog cov khoom cuav. Lawv yuav ua haujlwm tab sis qhov peev xwm thiab kev ntseeg tau yog leej twg qhov kev kwv yees.

Lub 1W 5V lub hnub ci vaj huam sib luag txuas nrog cov tswv yim ntawm TP4056 LIPO lub rooj tsav tsheb them nyiaj thiab tso tawm tom kawg rau lub roj teeb yog li lub roj teeb yuav raug them thaum lub teeb pom kev siab txaus los tsim lub zog siv hluav taws xob thiab lub roj teeb tuaj yeem ua tau them tus kheej ntawm tus USB txuas ntawm TP4056 pawg thawj coj saib.

Yog tias koj npaj siab yuav siv 3D luam tsev tsim qauv tom qab ntawd koj yuav tsum siv lub hnub ci vaj huam sib luag 110mm x 80mm. Muaj lwm qhov ntau thiab tsawg yog li tsuas yog saib xyuas thaum yuav khoom vim qhov no yuav yog qhov tseem ceeb thaum xaiv koj hom/qhov loj ntawm vaj tsev.

Kuj ib lo lus ceeb toom rov kub. Nws tuaj yeem nyuaj rau tsim kom muaj qhov txwv qhov kub siab kawg ntawm cov vaj huam sib luag pheej yig no vim nws feem ntau tsis tau hais tseg - Kuv pom 65'C max tau teev tseg ntawm ib lub cuab yeej tab sis tsis muaj dab tsi ntawm feem ntau ntawm cov neeg muab khoom sab hauv. Tam sim no txiav txim siab tias lub vaj huam sib luag los ntawm kev tsim yog a) dub thiab b) yuav tawm hauv lub hnub ci ci txhua hnub txhua hnub - koj yuav pom nws zoo dua tso cai me ntsis ntxoov ntxoo hla lub vaj huam sib luag yog tias nws kub dhau. Kuv chav tsis tau raug ib qho tsis ua tiav (teeb tsa thaum ntxov 2019) tab sis nws qhov kev ntseeg tau yuav yog qhov tseeb nyob ntawm koj qhov kev nyab xeeb hauv zej zog thiab tej zaum qhov chaw nce.

Laub khawm - Daim duab 3

Koj yuav xav tias lub laub khawm zoo "tsuas yog lub laub khawm" tab sis thaum nws nyob ntawm qhov thaiv uas nyob sab nraum lub hnub thiab nag 24/7 koj yuav tsum tau saib xyuas nws qhov tshwj xeeb. Hluav taws xob nws yog cov khoom siv yooj yim tab sis kev sib khi ruaj ntseg ntawm koj lub tsev hinges ntawm lawv cov tshuab zoo. Kuv siv dab tsi yog nrov heev waterproof ib tus ncej 12mm thawb khawm muaj los ntawm ntau tus neeg muag khoom - qhov no tau ua pov thawj nws tus kheej los ua qhov hloov pauv zoo heev.

  • Khawm 1 tau siv los ua lub khawm rov pib dua - siv los tswj tus kheej lub ntsuas kom ntsuas thiab xa cov txiaj ntsig
  • Khawm 2 thaum nias tam sim tom qab nias thiab tso khawm 1 yuav qhia tus saib xyuas kom pib nws li Access Point (AP) siv SSID thiab tus password uas koj tau ua yav dhau los nrog nws. Yog tias haum, txhua qhov kev xaiv LED ntawm kab lus teeb tawm luv luv los qhia tias AP tab tom pib.
  • Ob lub nyees khawm kuj tseem siv nyob rau hauv cov txheej txheem tsim thawj zaug txhawm rau rub cov firmware rau lub cim xeeb processor.

Nco tseg. Lub tsev 3 D luam tawm tau tsim los rau cov 12 hli hloov pauv raws li tau teev tseg hauv daim nqi ntawm cov ntaub ntawv thiab zoo li tau teeb tsa nyob rau sab ntawm lub tsev. Yog tias koj tab tom siv koj lub tsev nyob kuv xav kom koj haum lawv hauv qab vaj tsev kom tiv thaiv lawv los ntawm huab cua.

Toggle Khawm - Daim duab 2

Qhov no yog siv los ua kom tag nrho lub monitor tawm thaum nws tsis tau siv thiab khaws cia. Nco ntsoov tias lub roj teeb thiab lub hnub ci vaj huam sib luag tseem txuas rau ib leeg (tab sis tsis yog cov khoom siv hluav taws xob) thiab yog li lub roj teeb tseem yuav tau them yog tias lub vaj huam sib luag raug rau sab nraud.

Cov Ntaub Ntawv - Daim duab 3

Qhov no tseem yog qhov kawg tab sis tseem ceeb heev vim qhov no yog lub hauv paus tseem ceeb uas muab kev tiv thaiv rau txhua qhov ntawm lwm qhov. Lub hnub ci vaj huam sib luag, thawb cov nyees khawm, toggle hloov, LED's thiab ntsuas qhov ntsuas kub txhua qhov xav tau kev khawb lossis txiav qhov hauv lub tsev kom cov dej pov thawj tau ua rau muaj kev phom sij loj yog tias muab khi tom qab haum cov khoom tsis raug saib xyuas. Kuv glued lub hnub ci vaj huam sib luag rau lub hau ces kaw sab hauv nrog silicone sealing. Lub Rooj Tswjhwm Saib LED tau potted sab hauv kom ntseeg tau tias txhua lub ntsiab lus LED tau muab ntim rau sab hauv. Koj tau txais daim duab - tiv thaiv txhua lub ntsiab lus nkag mus. Txij li thaum kuv siv tus qauv 3D luam tawm ABS, kuv tau txau sab hauv ntawm lub tsev suav nrog lub ntsiab PCB nrog PCB txau txau (koj tuaj yeem tsuas yog siv cov xim) ib yam li kev ceev faj! Daim duab 1 qhia txog kab thaiv uas tau teeb tsa los ntawm lub pas dej. Cov ntaub ntawv STL suav nrog suav nrog kev sib dhos yooj yim uas tso cai rau lub laj kab kom sib sau ua ke rau saum lub hau npog. Nws tuaj yeem raug teeb tsa nyob txhua qhov chaw uas haum rau koj raws li qhov ntev ntawm cov ntsuas dej ntsuas kub, raug rau tshav ntuj thiab pom ntawm LED bargraph yog tias haum.

Kauj Ruam 2: Nqi Khoom

Nqi Khoom
Nqi Khoom

Kuv tau suav nrog "cov peev txheej" daim nqi ntawm cov ntaub ntawv raws li kuv tus kheej xaiv ntawm cov khoom Raws li tau hais yav dhau los, koj yeej muaj kev yoog raws ntau thaum nws los txog yuav luag txhua yam khoom tsim. Kuv tau txiav thiab muab qee yam khoom tawm ntawm Amazon lub vev xaib yuav khoom online dawb los ua piv txwv - tsis yog raws li kev pom zoo ntawm cov khoom siv. Lub 18650 roj teeb tuaj yeem muaj cov khoom muag ncaj qha rau cov xov hlau lossis koj tuaj yeem yuav "tus qauv" hom thiab lub roj teeb tuav (raws li kuv tau ua) kom yooj yim ntawm kev sib dhos

Koj tseem yuav xav tau cov kua nplaum (2 ntu epoxy pom zoo), 4 x M4 ceev thiab ntsia liaj qhov rooj.

Nyob ntawm koj qhov chaw nyob, koj yuav muaj peev xwm yooj yim dua thiab/lossis cov khoom lag luam pheej yig dua. Qhov tseeb, yog tias koj tsis maj nrawm rau cov khoom siv, AliExpress cog lus txo qis tseem ceeb ntawm qee qhov yog tias tsis yog txhua yam khoom loj.

Kauj Ruam 3: Hluav Taws Xob Tsim & Firmware Upload

Electronic Tsim & Firmware Upload
Electronic Tsim & Firmware Upload
Electronic Tsim & Firmware Upload
Electronic Tsim & Firmware Upload

Cov txheej txheem nthuav tawm qhov yooj yim "tus qauv ESP8266" tsis muaj "kev xav tsis thoob" suav nrog tsuas yog lub microcontroller thiab sau cov khoom siv nkag (2 x DS18B20 ntsuas kub, 1 x BME280 ib puag ncig lub teeb pom kev zoo, 1 x PCF8574 IO nthuav dav, 2 x laub khawm thiab roj teeb/them/hnub ci vaj huam sib luag ua ke.

ESP8266 Tus lej ua haujlwm

  • GPIO0 - Pib khawm AP
  • GPIO2 - Tsis siv
  • GPIO4 - I2C - SCL
  • GPIO5 - I2C - SDA
  • Cov ntaub ntawv GPIO12 - DS18B20
  • GPIO13 - Kuaj - Tsis siv
  • GPIO14 - Tsis siv
  • GPIO16 - Tsaug zog tsaug zog
  • ADC - Hnub ci vaj huam sib luag qhov hluav taws xob

PCF8574 tus lej ua haujlwm

  • P0 - LED kab lus 1 - Qhov Kub Tshaj
  • P1 - LED kab lus 2 - Kub tsawg kawg + 1'C
  • P2 - LED kab lus 3 - Kub tsawg kawg + 2'C
  • P3 - LED kab lus 4 - Kub tsawg kawg + 3'C
  • P4 - LED kab lus 5 - Kub tsawg kawg + 4'C
  • P5 - LED kab lus 6 - Kub tsawg kawg + 5'C
  • P6 - LED kab lus 7 - Kub tsawg kawg + 6'C
  • P7 - LED kab lus 8 - Kub tsawg kawg + 7'C

Rub tawm firmware

Ib daim qauv ntawm cov software qhov chaws tau suav nrog hauv ntu rub tawm. Cov cai tau sau rau Arduino IDE version 1.8.13 nrog rau qhov ntxiv hauv qab no….

  • ESP8266 Tus Thawj Saib Xyuas Haujlwm (version 2.4.2)
  • OneWire lub tsev qiv ntawv
  • Dallas Kub lub tsev qiv ntawv
  • EEPROM tsev qiv ntawv
  • Adafruit BMP085 lub tsev qiv ntawv
  • PubSubClient library
  • Hlau tsev qiv ntawv

Ua kom ntseeg tau tias koj xaiv qhov raug baud tus nqi ntawm Serial monitor (115200), thiab lub rooj tsav xwm raug nyob ntawm seb ESP8266 nti koj siv).

Yog tias koj xav tau cov lus qhia ntxiv yuav ua li cas teeb tsa Arduino IDE tom qab ntawv xa mus rau kuv ob qho lus qhia yav dhau los, ob qho tib si muaj cov lus qhia dav dav thiab tseem muaj ntau qhov chaw hauv online r muaj. Yog tias txhua yam tsis ua tiav, xa kuv cov lus.

Kuv tau suav nrog hauv kev tsim cov txuas rau kab txuas kab (TxD, RxD & 0V) rau kev txuas rau koj lub khoos phis tawj siv tus qauv FTDI USB rau TTL hloov pauv thiab ob lub laub khawm muab rau koj kom muaj peev xwm ua kom muaj zog ESP8266 hauv kev teeb tsa hom. (Siv lub zog nrog ob qho pib dua thiab Pib AP cov nyees khawm nias, tso lub pob Pib dua thaum tseem tuav lub khawm Pib AP, tom qab ntawd tso lub Pib AP khawm)

Lus Cim Ntxiv

  1. Lub laub khawm sib txuas, muab lub zog, DS18B20 Cov ntsuas kub tuaj yeem coj tawm mus rau tus qauv 0.1 "header pins kom yooj yim IO txuas
  2. 100 uF electrolytic capacitor (C4) thiab 100 nF ceramic capacitor (C6) yuav tsum tau teeb tsa kom ze li sai tau rau lub hwj chim muab koob ntawm ESP8266.
  3. 100nF ceramic capacitor (C5) yuav tsum tau teeb tsa kom ze li sai tau rau lub hwj chim pins ntawm PCF8574
  4. Daim duab 10 piav qhia tag nrho cov xov hluav taws xob - koj tuaj yeem tsim txhua yam ntawm ib lub rooj tsavxwm lossis faib lawv ua 2 pawg nrog PCF8574, 8 x 2N3906 transistors (Q1 txog Q8), 16 x resistors (R3 txog 14, R19 txog 22), C5 ntawm ib qho "LED bargraph board) thiab seem ntawm" Controller board "(Nov yog qhov kuv tau ua)

Kauj Ruam 4: Siv Cov Ntawv Muab 3D Luam Tawm

Siv Cov Ntawv Muab 3D Luam Tawm
Siv Cov Ntawv Muab 3D Luam Tawm
Siv Cov Ntawv Muab 3D Luam Tawm
Siv Cov Ntawv Muab 3D Luam Tawm

Kev xaiv tsev nyob yog hloov pauv raws li koj nyiam thiab xav tau kev teeb tsa. Kuv 3D luam tawm ABS lub tsev kom haum rau kuv tus kheej kev teeb tsa thiab suav nrog nws los tsim dua lossis siv ua "kev tshoov siab" rau koj tus kheej kev tsim kho. Cov ntaub ntawv STL los ntawm ntu Download tau tuaj yeem luam tawm ntawm 0.2 hli kev daws teeb meem. Yog tias koj tsis muaj lub tshuab luam ntawv 3D lossis tsis muaj phooj ywg nrog ib tus, muaj ntau lub lag luam luam ntawv 3D luam tawm tam sim no uas yuav tsum muaj peev xwm muab kev pabcuam pheej yig rau koj.

Cov khoom luam tawm ntawm tus kheej yog:

  • A. Cov ntaub ntawv kaw
  • B. Cov ntaub thaiv npog
  • C. Lub hauv caug sib koom tes
  • D. Cov ntaub thaiv npog qhov txuas txuas txuas
  • E. Huab cua sensor mount
  • F. Nthuav cov ntawv qhia kab hluav taws xob
  • G. 2 x pas nrig (luv thiab ncua ntev - tso cai ntev ntawm kev sib dhos ua ke sib txawv)
  • H. Weir npog sab saum toj adapter
  • J. Weir npog hauv qab adapter

Kuj xav tau yog 4 x M4 threaded bolts thiab txiv ntseej

Sau ntawv

  1. Cov khoom nyob qhov twg, kuv pom zoo ob ntu epoxy cob lossis cov kua nplaum uas tsis haum rau huab cua.
  2. Kaw lub hnub ci vaj huam sib luag rau lub hau B thiab siv cov tshuaj nplaum ua kua nplaum rau sab hauv ntawm lub hau kom tiv thaiv kom tsis txhob muaj dej nkag ntawm lub ntsej muag sib koom.
  3. Ntu E yog lo rau ntu E ntawm txhua lub ntsiab lus rau kev teeb tsa lub ntsuas cua. TXHUA ntawm lub ntsuas cua yuav tsum yog hauv qab lub hauv paus vaj tsev tawm ntawm ib qho pom ncaj qha ntawm tshav ntuj (Ref daim duab 5A)
  4. Ntu F thiab D yuav tsum tau ua kom zoo rau qhov kaw ib feem E puag.
  5. Lub rooj sib dhos sib dhos sib dhos (G, C & G) haum ua ke raws li qhov thawb haum thiab thaum lawv dhau los ntawm qhov sib dhos, tuaj yeem ruaj ntseg siv 2 x M4 threaded bolts thiab tshuab ntxhua khaub ncaws (tsis txhob nruj kom txog thaum ua tiav kev sib dhos tau teeb tsa thiab yuav tsum tau taw qhia) tsis txhob nruj dhau los txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau cov yas yas). Txiav cov ntsia liaj qhov rooj kom haum rau qhov ntev yog tias xav tau.
  6. Mount ntu H & J ntawm qhov hloov pauv lub pluaj npog ntawm qhov chaw uas tsis muaj kev pheej hmoo ntawm kev cuam tshuam lub cev lossis kev ntxhov siab los ntawm ib qho pas npog npog pluaj thiab lwm yam (saib Daim Duab 5 C, E & F). Yog tias lub npog npog npog muaj qhov nkhaus, kuv hais qhia tias koj siv cov tshuaj nplaum los yog epoxy los txuas ntxiv ntu J rau hauv qab ntawm lub npog npog.
  7. Tam sim no lub rooj sib dhos ua ke tuaj yeem ntsia tau rau ntawm lub npog npog npog siv lub rooj sib dhos (2xG & C). Lub rooj sib dhos khawm no yog lub zog PUSH haum rau hauv ob lub hauv paus thiab lub npog npog npog yog li tso cai rau chav nyob kom yooj yim tshem tawm rau lub caij ntuj no khaws cia thiab/lossis txij nkawm. Tsis txhob muab lo rau qhov no. Daim duab 5D
  8. Daim duab 4 qhia txhua ntu thiab seb lawv haum ua ke li cas. Txog rau kev teeb tsa kev teeb tsa, Kuv tau ua ib lub qhov nyob hauv kuv lub npog npog sab saum toj kom muab cov lus taw qhia rau lub pob khawm (Qhov no muab 3 qhov kev hloov pauv tau rau lub tsev txheeb ze rau qhov sib txuas mounting)

Kauj ruam 5: Configuration Server (Access Point)

Configuration Server (Access Point)
Configuration Server (Access Point)
Configuration Server (Access Point)
Configuration Server (Access Point)

Txhua tus Saib Xyuas cov neeg siv teeb tsa tau khaws cia hauv EEPROM thiab tuaj yeem saib xyuas thiab hloov pauv los ntawm kev tsim hauv lub vev xaib uas tuaj yeem nkag mus tau thaum lub ntsuas tau muab tso rau hauv Access Point (AP) hom.

Txhawm rau ua qhov no, tus neeg siv yuav tsum xub nias thiab tso lub RESET khawm tam sim ntawd tom qab tso tawm, nias thiab tuav khawm CONFIGURATION thib ob rau 1 txog 3 vib nas this. Ntawm kev tso lub pob teeb tsa, yog tias haum, txhua txoj hauv kev LED ntawm kab lus yuav ci rau ob peb feeb, lub sijhawm ntawd AP yuav pib.

Yog tias koj qhib lub WiFi network teeb tsa hauv koj lub khoos phis tawj lossis lub xov tooj ntawm tes koj yuav pom AP SSID tshwm hauv cov npe network uas muaj. Yog tias qhov no yog thawj zaug koj tau pib AP qhov no yuav tshwm li HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH

Xaiv SSID thiab sau tus password (lub neej ntawd yog "tus lej cim" yam tsis muaj cov cim hais tshwj tsis yog koj tau teeb nws rau lwm yam.

Koj lub khoos phis tawj/xov tooj ntawm tes yuav txuas rau AP. Tam sim no qhib koj lub vev xaib nyiam thiab nkag mus rau 192.168.8.200 hauv qhov URL chaw nyob.

Koj tus browser yuav qhib ntawm Configuration web server Main Page - xa mus rau daim duab 6.

Ntawm no koj yuav tuaj yeem nyeem qhov ntsuas tam sim no thiab cov nyees khawm rau WiFi thiab lwm yam cuab yeej teeb tsa nplooj ntawv. Lub hauv qab khawm yog qhov kawg uas koj nias thaum koj tau hloov pauv txhua qhov kev ntsuas uas koj xav tau (yog tias koj tsis nias nws lub Monitor yuav nyob nrog lub zog thiab txuas lub roj teeb txuas ntxiv mus ….

Daim duab 7

Nov yog WiFi & MQTT cov nplooj ntawv teeb tsa. Koj yuav tuaj yeem pom lub network khaws cia tam sim no thiab MQTT cov ntsiab lus ntxiv rau txhua lub network muaj nyob hauv ntau ntawm Monitor nrog rau ib qho uas koj xav txuas rau.

Wifi chaw

Teb A & B tso cai rau koj nkag mus rau koj lub network xav tau SSID thiab cov lus qhia ntxaws ntxaws, C yog lub npe uas koj xav muab rau koj lub cuab yeej thiab qhov no yuav yog lub npe AP SSID lwm zaus koj pib nws. Thaum kawg teb D yog tus password uas xav muab rau AP.

MQTT chaw

Ntawm no koj yuav teeb lub npe ntawm MQTT broker (E) uas koj siv thiab tseem ceeb tshaj plaws seb MQTT tus broker yog huab raws tus tswv lossis tus tswv lag luam hauv zos (piv txwv li Raspberry Pi) txuas nrog tsev neeg WiFi.

Yog tias koj tau xaiv yav dhau los huab raws tus tswv lag luam, koj yuav pom ob daim teb ntxiv rau kev nkag mus rau koj tus username thiab password rau tus broker.

Nco ntsoov tias yog tias koj tso ib qho chaw twg tsis muaj dab tsi, daim teb ntawd yuav tsis raug hloov kho tshiab - qhov no tso cai rau koj hloov kho ib nrab rau qhov chaw yam tsis tas yuav nkag mus rau txhua qhov chaw.

Qhov chaw nyob tsis raug ntawm thawj qhov tsim yog Broker lub npe yog MQTT-Server thiab tau txuas nrog hauv zos.

Daim duab 8

Qhov no qhia pom seem ntawm nplooj ntawv teeb tsa lub cuab yeej nkag los ntawm "Ntaus Chaw" khawm ntawm nplooj ntawv tseem ceeb.

Qhov no muaj 2 hom ntawv nyob ntawm seb MQTT teeb tsa tau "HAS HouseNode Compatible" lossis Ib Leeg/Cov ncauj lus me me

HAS HouseNode Tau Tshaj

Qhov no qhia tus saib xyuas txhawm rau teeb tsa nws cov ntaub ntawv MQTT kom tso cai ntsuas cov ntaub ntawv kom pom ntawm ib qho ntawm cov kab ntawv OLED scrolling nthuav tawm txog li 5 ntawm Housenodes tau piav qhia hauv kuv li kev qhia yav dhau los "Mult-purpose-Room-Lighting and Appliance Controller". (Saib qhov qhib Intro ntu rau daim duab ntawm Housenode tso tawm cov ntaub ntawv. Qhov no tau piav qhia ntxiv hauv qhov txuas Qhia (hloov tshiab Kaum Ib Hlis 2020).

Koj yuav tsum nkag mus rau Hostname ntawm HouseNode uas koj xav xa cov ntaub ntawv ntsuas mus rau (Field B)

Teb C yog tus lej xov tooj uas koj xav kom tso saib cov ntaub ntawv (qhov no yuav nkag siab thaum koj nyeem tus tswj kev qhia!

Teb A yog qhov yooj yim qhib/ua haujlwm rau cov ntaub ntawv no - yog tias xiam oob khab, cov ntaub ntawv yuav tsis raug xa mus.

Qhov no tau rov ua dua txog 5 Lub Tsev Hauv Tsev tso cai rau koj xa tib cov ntaub ntawv mus txog rau 5 faib Tus Tswj Cov Lus Qhia hauv koj tsev neeg.

Tib lub ncauj lus

Txhua qhov ntsuas ntsuas raug xa tawm raws li cais MQTT cov lus siv cov ncauj lus "Pas/DejTemp", "Pas Dej/AirTemp" thiab "Pas/BaroPress". Qhov no tso cai rau koj yooj yim xaiv qhov ntsuas twg koj MQTT tso npe tus tswv cuab yeej xav nyeem ncaj qha ntau dua li noj txhua yam nrog Cov ntsiab lus me me thiab rho tawm yam koj xav siv.

Nqe lus cog tseg

Tag nrho peb qhov kev ntsuas tau suav ua ke rau hauv ib lub Tsev Tus Kws Tshaj Lij lub ntsiab lus yuav tsum yog koj ua npe MQTT cov cuab yeej nyiam hom ntawv: Pas/{"WaterTemp": XX. X, "AirTemp": YY. Y, "BaraPress": ZZZZ. Z} qhov twg XX. X, YY. Y thiab ZZZZ. Z yog ntsuas Dej Kub ('C), Huab Cua Kub (' C) thiab ntsuas siab (mB)

Tsis tas li ntawm nplooj ntawv no, koj muaj peev xwm xaiv yog tias kab lus LED raug kaw thaum hmo ntuj (pom zoo) kom txuag tau roj teeb uas tsis tsim nyog siv. Qhov no yog txiav txim siab los ntawm kev ntsuas lub teeb theem (LL) ntawm lub hnub ci vaj huam sib luag thiab sawv cev los ntawm kev ntsuas los ntawm 0% (tsaus) txog 100% (ci). Koj tuaj yeem teeb tsa qhov nruab nrab ntawm 1 thiab 99% txheeb xyuas lub teeb pib raws li qhov LED's yuav raug xiam oob khab. 0% yuav ua tsis tiav cov kab lus thiab 100% yuav ua kom ntseeg tau tias nws nyob txhua lub sijhawm.

Koj tseem tuaj yeem teev sijhawm ncua sijhawm ntawm cov ntaub ntawv xa tawm ntawm thaj tsam ntawm 1 txog 60 feeb. Kom meej meej lub sijhawm luv dua, kev tswj hwm lub zog zoo dua thiab koj yuav tsum nco ntsoov tias lub pas dej kub tsis yog ntsuas nrawm hloov pauv lub ntsiab lus tias lub sijhawm nruab nrab ntawm 30 thiab 60 feeb yuav tsum zoo.

Tej zaum koj yuav pom tias thawj zaug tom qab kev tsim kho thawj zaug uas koj lub ntsuas cua (cov hlau lead luv) tau qhia rau ntawm cov zaub raws li dej kub thiab hloov pauv! (kuaj los ntawm kev tuav lub sensor hauv koj txhais tes thiab/lossis tso lub ntsuas dej rau hauv ib khob dej kub lossis txias). Yog tias qhov no yog qhov "DS18B20 pas dej thiab huab cua qhov chaw nyob qhov chaw nyob" cov ntaub ntawv lub thawv tso cai rau koj thim rov qab tus lej ntsuas (0 lossis 1) ntawm cov ntsuas - koj yuav tsum tau xa qhov chaw teeb tsa thiab rov pib dua lub cuab yeej ua ntej lub sensor hais daws yuav ua raug.

Kawg thiab tseem ceeb tshaj plaws, nco ntsoov tias hauv ib nplooj ntawv uas koj tau hloov pauv qhov tseem ceeb, koj YUAV TSUM nias lub pob "Upload tshiab rau lub cuab yeej" txwv tsis pub Tus Saib Xyuas yuav tsis hloov nws lub cim xeeb EEPROM!

Yog tias koj zoo siab nrog txhua yam ntawm koj qhov kev hloov pauv, kom tawm ntawm AP thiab rov qab mus rau qhov qub saib hom - nias lub pob hauv qab ntawm AP nplooj ntawv tseem ceeb. Yog tias koj tsis nias nws Tus Saib Xyuas yuav nyob nrog lub zog thiab txuas ntxiv roj teeb….

Kauj Ruam 6: Cov Lus Qhia Me Me ntawm Kev Siv Lub Pas Dej Nrog HAS Teeb Pom Kev thiab Khoom Siv

Cov Lus Qhia Me Me ntawm Kev Siv Lub Pas Dej Nrog HAS Teeb Pom Kev Zoo thiab Cov Khoom Siv
Cov Lus Qhia Me Me ntawm Kev Siv Lub Pas Dej Nrog HAS Teeb Pom Kev Zoo thiab Cov Khoom Siv
Cov Lus Qhia Me Me ntawm Kev Siv Lub Pas Dej Nrog HAS Teeb Pom Kev Zoo thiab Cov Khoom Siv
Cov Lus Qhia Me Me ntawm Kev Siv Lub Pas Dej Nrog HAS Teeb Pom Kev Zoo thiab Cov Khoom Siv
Cov Lus Qhia Me Me ntawm Kev Siv Lub Pas Dej Nrog HAS Teeb Pom Kev Zoo thiab Cov Khoom Siv
Cov Lus Qhia Me Me ntawm Kev Siv Lub Pas Dej Nrog HAS Teeb Pom Kev Zoo thiab Cov Khoom Siv

Pas Dej Saib tau tsim los ua ib feem hauv koj tus kheej MQTT raws li Tsev Automation System (HAS). Kuv tau hais ntau zaus tias nws tau tsim los ua tswv cuab ntawm kuv tus kheej HAS siv kuv li yav dhau los 2 Cov Ntawv Qhia Tshaj Tawm (Ntau Lub Hom Phiaj-Chav-Teeb Pom Kev thiab Khoom Siv Hluav Taws Xob thiab Ntse Cov Ntaub Ntawv-Log Geyser Controller). Ob qho kev tsim qhia ib txoj hauv kev rau kev teeb tsa siv qhov sib xws zoo sib xws hauv web servers kom ntseeg tau zoo ib yam thiab nyiam cov neeg siv sib cuam tshuam thoob plaws lub platform.

Ob qho kev qhia no tau tsim los kom sawv ntsug nyob ib leeg tab sis hauv kev hloov kho tsis ntev los no, Kuv tau qhia MQTT kev sib txuas lus rau txhua tus kom tso cai rau lub hnub qub (paub lub npe SensorNodes) txuas nrog rau ib lossis ntau tus tswj (Paub li HouseNodes). Qhov kev siv tseem ceeb ntawm hnub no yog ntxiv cov zaub OLED zoo rau Lub Hom Phiaj -Room -Teeb Pom Kev thiab Cov Khoom Siv Hluav Taws Xob thiab tso cai rau ib tus neeg siv tswj hwm los ua ntu zus tso tawm txhua qhov ntawm SensorNode cov ntaub ntawv ntawm nws lub zos OLED zaub -thawj daim duab saum toj no yog peb cov ntxaij vab tshaus ntawm HouseNode uas tau txav mus los thiab nthuav tawm cov ntaub ntawv los ntawm nws tus kheej, Geyser maub los thiab Pas Dej Saib yog li tso cai tso saib hauv ib cheeb tsam ntawm txhua cov ntaub ntawv raug ntes ntawm txhua qhov chaw yooj yim hauv tsev tuav.

Txij li ib qho SensorNode lossis HouseNode tuaj yeem xa nws cov ntaub ntawv ntawm MQTT, qhov no tso cai txog 8 qhov kev tso tawm ywj siab rau koj li HAS cov ntsiab lus. Xwb ib qho ntawm Nodes tuaj yeem yooj yim sib xyaw ua ke rau koj tus kheej MQTT system thiab twb muaj ib tus phooj ywg tau koom ua ke tus tswj hluav taws xob hauv nws lub Tsev Pabcuam HAS.

Lwm SensorNodes hauv kev txhim kho tam sim no yog:

  • PIR txav sensor
  • InfraRed nqaj tswb sensor
  • Tswb siren thiab teeb tswj ntawm
  • Tswb tswj vaj huam sib luag
  • Handheld Chaw taws teeb tswj
  • Zaub nkaus xwb

Cov koog no yuav raug tso tawm raws li Cov Lus Qhia tau qee lub hlis tom qab lawv tau ua tiav hauv kuv lub tsev.

Kauj ruam 7: Rub tawm

Cov ntaub ntawv hauv qab no muaj rau rub tawm….

  1. Arduino IDE cov ntaub ntawv sib xws tau txais cov ntaub ntawv (Pool_Temperature_MQTT_1V2.ino). Rub tawm cov ntawv no thiab muab cov ntawv tso rau hauv sub-directory ntawm koj Arduino Sketches phau ntawv hu ua "Pool_Temperature_MQTT_1V2.
  2. Cov ntaub ntawv STL tus kheej rau txhua yam ntawm 3D luam cov khoom (*. STL) muab tso rau hauv ib daim ntawv Pool_Monitor_Enclosure.txt. Rub tawm cov ntawv, tom qab ntawd RENAME cov ntaub ntawv txuas ntxiv los ntawm txt rau zip thiab tom qab ntawd rho tawm qhov xav tau. STL cov ntaub ntawv. Kuv luam tawm lawv ntawm 0.2mm daws teeb meem ntawm 20% cov ntaub ntawv siv ABS filament siv Tiertime Upbox+ 3D tshuab luam ntawv.
  3. Kuv kuj tau suav nrog teeb tsa jpeg cov ntaub ntawv (Daim Duab JPEG.txt) npog tag nrho cov duab siv hauv Cov Lus Qhia no tso cai rau koj, yog tias tsim nyog luam lawv cais ntawm qhov loj me pab tau rau koj. Rub tawm cov ntawv, tom qab ntawd RENAME cov ntaub ntawv txuas ntxiv los ntawm txt rau zip thiab tom qab ntawd rho tawm cov ntaub ntawv jpeg xav tau.

Pom zoo: