Cov txheej txheem:
- Kauj Ruam 1: Tshem tawm Omnik Los ntawm Is Taws Nem tas mus li
- Kauj Ruam 2: Rub tawm thiab teeb tsa Software rau Wemos D1
- Kauj Ruam 3: Ob peb Lo Lus Hais Txog Cov Xov Xwm, Tus Neeg Sawv Cev thiab Kev Xeem
Video: Omnik Inverter Tawm Nws Huab thiab ntawm Kuv MQTT: 3 Cov Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Kuv muaj lub hnub ci teeb tsa teeb tsa siv Omnik hlua inverter. Omnik yog lub tuam txhab ua lag luam hauv Suav teb ntawm PV inverters thiab lawv ua cov cuab yeej muaj txiaj ntsig zoo. Xaiv tau, koj tuaj yeem teeb tsa WiFi module kom nws "txuas". Kuv txaus siab heev nrog lub cuab yeej, nrog ob qho kev zam tshwj xeeb.
- Nws "xov tooj hauv tsev" mus rau Tuam Tshoj raws kev pabcuam huab thiab tsuav yog lub cuab yeej txuas nrog Is Taws Nem, qhov no tsis tuaj yeem kaw. Kuv tsis nyiam qhov ntawd.
- Lub inverter tsis muaj cov ntaub ntawv tsim nyog API (tsis yog huab pabcuam). Raws li kev siv tshuab hauv tsev thiab IoT cov cuab yeej muaj zog rau MQTT cov lus, Kuv xav kom nws xa MQTT lus.
Txog qhov haujlwm no, uas daws ob qho teeb meem, peb tig mus rau peb cov phooj ywg xaiv tab sis ntseeg tau ESP8266. Kuv siv Wemos D1, tab sis txhua tus neeg uas koj nyiam tuaj yeem siv tau. Txoj kev npaj yog:
- Tsis muab WiFi tus qauv ntawm tus inverter ib qho ntawv pov thawj rau hauv WiFi network hauv tsev. Qhov no daws teeb meem 1.
- Cia cov Wemos txuas mus rau qhov Chaw Nkag Mus Los ntawm Inverter kom tau txais cov ntaub ntawv uas peb xav tau. Peb tuaj yeem siv cov thim rov qab tsim kho uas tsis yog lub vev xaib raws tu qauv rau qhov ntawd. Kuv siv tus lej no ua qhov pib.
- Tom qab ntawd txiav tawm, txuas mus rau lub network hauv tsev thiab tshaj tawm cov ntaub ntawv raws li MQTT cov lus.
Peb daim nqi ntawm cov khoom yog qhov yooj yim heev:
- Ib Wemos D1, kom yuav los ntawm Wemos lub vev xaib lossis koj nyiam qhov chaw twv txiaj;
- Ib lub hwj chim USB nrog lub USB-mini cable.
Tsis muaj xov hlau xav tau txhua lub sijhawm. Tus nqi qis dua 10 EUROs.
Kuv xav tias koj twb muaj lawm
- Omnik inverter nrog WiFi module teeb tsa;
- MQTT cov txheej txheem (tus tswv lag luam, dashboard);
- ib qho tshiab ntawm Arduino IDE nrog kev txhawb nqa rau ESP8266 tus txheej txheem teeb tsa.
- qee qhov paub nrog rau saum toj no.
Muaj qee qhov kev qhia paub txog MQTT thiab siv Arduino IDE rau ESP8266 tus txheej txheem, tab sis xav tias dawb nug tam sim hauv kab lus.
Kauj Ruam 1: Tshem tawm Omnik Los ntawm Is Taws Nem tas mus li
Yog tias, zoo li kuv, koj muaj lub inverter txuas nrog koj li Wi -nkaus network, nws yog ib qho nyuaj rau txiav nws. Ib qho kev hloov pauv uas koj ua rau WiFi teeb tsa tau tshawb xyuas ua ntej nws tau thov. Hloov chaw ntawm kev dhia hla hoops xws li hloov pauv tus lej zais ntawm tus router thiab lub inverter, tom qab hloov pauv lub router, Kuv txiav txim siab los ua kom huv dua thiab pib los ntawm kos.
Mus rau lub inverter thiab ua cov hauv qab no:
- nias lub pob Down kom txog thaum teeb ntsais, tom qab ntawd nyem Enter
- Nias lub pob Down kom txog thaum WiFi ntsais muag, tom qab ntawv nyem Enter
- Nias lub pob Up kom Yes Yog ntsais muag, tom qab ntawv nyem Enter
Txuas mus rau lub inverter
Qhib koj lub computer thiab nrhiav WiFi network hu ua AP_xxxxxxxx, tus x qhia tus lej. Txuas rau nws. Nyob ntawm cov txheej txheem ua haujlwm koj yuav xav tau thawj zaug kom nws "tsis nco qab" lub network yog tias koj tau txuas nrog nws ua ntej, tam sim no muaj peev xwm khaws WiFi lo lus zais ploj mus.
Ruaj ntseg qhov nkag ntawm qhov inverter
Thaum txuas nrog, qhib koj tus browser, nkag mus 10.10.100.254 thiab nias Enter. Tus ID nkag mus popup yuav tshwm. Nkag mus rau tus thawj coj hauv ob qho chaw nkag mus. Tsis txhob ua raws tus neeg siv thiab teeb tsa qhov nkag mus. Nyem rau Advanced hauv cov ntawv qhia zaub mov sab laug, tom qab ntawd submenu Wireless point.
Ua cov kev hloov hauv qab no:
- Txoj kev encryption rau WPA2PSK
- Hom encryption rau TKIP
- Sau tus password WiFi. Sau tus password, koj yuav xav tau nws txuas rau lub inverter sai.
Nyem Txuag thiab WiFi module yuav rov pib dua. Koj yuav xoob qhov kev txuas vim tam sim no xav tau tus password. Txuas dua, thiab nkag mus rau tus password WiFi. Ib zaug ntxiv, koj yuav xav ua kom koj lub PC "tsis nco qab" AP_xxxxxxxx network ua ntej. Tam sim no koj yuav tsum txuas nrog lub inverter dua li txuas WiFi ruaj ntseg.
Ruaj ntseg cov nplooj ntawv teeb tsa ntawm inverter
Qhib koj tus browser, nkag mus 10.10.100.254 thiab nias Enter dua. Tus ID nkag mus popup yuav tshwm. Ib zaug ntxiv nkag mus rau tus thawj coj hauv ob qho chaw nkag mus. Nyem rau ntawm tus account hauv cov ntawv qhia zaub mov sab laug. Hloov lub npe siv thiab tus lej nkag mus rau ob qho tshwj xeeb, tsis yog cov hlua uas tsis tseem ceeb. Koj yuav tsum nkag mus rau ob qho tib si ob zaug. Sau lawv cia. Nyem Txuag thiab WiFi module yuav rov pib dua. Tos ob peb feeb thiab rov ua nplooj ntawv dua. Txheeb xyuas tias tam sim no koj xav tau lub npe siv tshiab thiab tus lej nkag los qhib nplooj ntawv teeb tsa. Koj lub inverter tam sim no muaj txheej ntxiv ntawm kev ruaj ntseg tiv thaiv kev hloov pauv los ntawm cov neeg sab nrauv.
Qhov no xaus tag nrho cov haujlwm uas yuav tsum tau ua ntawm lub inverter. Tam sim no nws raug txuas los ntawm Is Taws Nem, muaj kev ruaj ntseg zoo, tab sis nws tseem ua raws li WiFi Access Point peb tuaj yeem siv los nug nws.
Kauj Ruam 2: Rub tawm thiab teeb tsa Software rau Wemos D1
Rub tawm software rau Wemos. Koj tuaj yeem pom cov cai ntawm no. Koj yuav tsum tau hloov qee qhov kev teeb tsa nws rau koj lub tsev network thiab koj lub inverter
- homeSsid: lub npe ntawm koj lub network WiFi hauv tsev
- homePassword: tus password ntawm koj lub network WiFi hauv tsev
- omnikSsid: lub npe ntawm koj li Omnik WiFi network. Nws yuav tsum zoo li AP_xxxxxxxxx
- omnikPassword: tus password ntawm koj Omnik WiFi network koj tau muab rau hauv cov kauj ruam dhau los
- omnikIP: IP chaw nyob ntawm tus inverter. Qhov no yog ib txwm {10, 10, 100, 254}
- omnikCommand: txoj kab byte xav tau los nug koj lub inverter, saib hauv qab no.
- mqtt_server: lub hostname ntawm koj MQTT broker
- mqtt_port: tus lej TCP chaw nres nkoj, feem ntau yog 1883 rau kev nyab xeeb lossis 8883 rau kev nyab xeeb (SSL) kev sib txuas
- mqtt_username thiab mqtt_password: daim ntawv pov thawj rau koj tus MQTT broker
- mqtt_clientID: nkag mus rau qee tus lej tsis raug ntawm no
- mqtt_outTopic: lub ncauj lus ntawm MQTT cov lus.
OmnikCommand byte array tshwj xeeb rau koj tus kheej inverter. Kuv tau tshaj tawm cov cuab yeej me me ua Google daim ntawv nthuav qhia kom suav cov hlua. Koj yuav tsum tau sau tus lej lej (ib puag ncig 10 zauv zauv) hauv cell B1 thiab siv txoj hlua suav hauv cell B4 hauv koj daim duab.
Txhawm rau ua tiav cov lej koj tseem xav tau PubSubClient.h lub tsev qiv ntawv. Ua kom ntseeg tau tias lub rooj tsav xwm tsim nyog (Wemos D1) thiab chaw nres nkoj raug xaiv, tom qab ntawd rub cov duab kos rau hauv pawg thawj coj. Koj tuaj yeem tso Wemos board me me rau hauv lub thawv yas me me rau kev tiv thaiv thiab txuas nws mus rau lub zog USB. Muab tso rau qhov chaw tsis deb ntawm ob qho tib si inverter thiab koj li WiFi router thiab koj tau teeb tsa!
Lub voj tseem ceeb hauv software txuas rau lub khoos phis tawj WiFi, tom qab ntawd ua TCP txuas rau nws, nyeem cov ntaub ntawv, sib txuas, txuas rau lub tsev WiFi network, tom qab ntawd mus rau MQTT tus tswv lag luam, thiab tshaj tawm cov ntaub ntawv kho dua tshiab nyob ntawd. Nws siv sijhawm tsawg dua 15 vib nas this los ua txhua qhov txuas thiab txiav tawm. Tom qab ntawd, muaj kev ncua 20 vib nas this, yog li cov ntaub ntawv yuav tsum tau tshaj tawm txhua txhua 35 vib nas this.
Kauj Ruam 3: Ob peb Lo Lus Hais Txog Cov Xov Xwm, Tus Neeg Sawv Cev thiab Kev Xeem
Cov cai tso tawm me ntsis ntawm cov ntaub ntawv debugging, yog li yog qee yam tsis ua haujlwm, tsuas yog txuas WeMos rau koj lub PC dua, pib Arduino IDE thiab nias CTRL+SHFT+M kom pib lub console. Nco ntsoov tias qhov nrawm tau teeb tsa rau 115200.
Koj tuaj yeem siv koj tus kheej tus broker, lossis siv kev pabcuam huab. Kuv khiav kuv tus kheej, Mosquitto teeb tsa ntawm kuv Synology NAS. Yog tias koj ua tau zoo nrog kev pabcuam huab, koj tuaj yeem siv Adafruit lossis Amazon AWS lossis lwm yam.
Cov lus yog JSON cov hlua zoo li no:
Thaum khau raj cov lus hauv qab no tau tshaj tawm:
Qhov no tuaj yeem siv los txheeb xyuas kev rov pib dua.
Cov lus zoo li no:
Lub zog hauv watts, qhov hluav taws xob hauv Volts, qhov tam sim no hauv Amps, zaus hauv Hertz, Lub zog hauv kiloWatthours thiab qhov kub hauv degrees Celsius.
Kuv siv mosquitto_sub los tshuaj xyuas cov lus.
mosquitto_sub -h hostname -t "Solar/Omnik" -u neeg siv -P password -p 1883 -v
Saib qhov screen ntes rau qhov tshwm sim. Txhua cov lus tau tshaj tawm nrog khaws tus chij teeb tsa kom raug.
Hauv kuv lub xov tooj kuv siv daim ntawv thov hu ua MQTT Dash thiab kuv tau suav nrog lub vijtsam luam tawm thiab yuav nkag mus rau dab tsi kom pom lub zog ntsuab hu.
Pom zoo:
Kho Ob Chav Tawm Tawm Tawm Tawm Tawm Cov Khoom Siv Hluav Taws Xob: 10 Cov Kauj Ruam (nrog Duab)
Kho Ob Chav Tawm Tawm Tawm Tawm Tawm Tawm Cov Khoom Siv Hluav Taws Xob: Nta: AC-DC Hloov pauv ob npaug tso tawm qhov hluav taws xob (Zoo-Hauv av-Tsis Zoo) Kho txoj kab zoo thiab tsis zoo Tsuas yog Ib Leeg Ib Leeg AC hloov pauv cov suab nrov (20MHz-BWL, tsis muaj thauj khoom): Ib puag ncig 1.12mVpp Tsawg suab nrov thiab cov txiaj ntsig ruaj khov (zoo tagnrho
HRV (Lub Tsev Huab Cua Hloov Chaw) Arduino Tus Tswj Nrog Huab Cua Huab Cua: 7 Cov Kauj Ruam (nrog Duab)
HRV (Lub Tsev Huab Cua Hloov Chaw) Arduino Tus Tswj Nrog Air Economizer: HRV Arduino Tus Tswj Nrog Air Economizer Yog li kuv keeb kwm nrog txoj haujlwm no yog kuv nyob hauv Minnesota thiab kuv lub rooj tsav xwm hluav taws xob kib ntawm kuv LifeBreath 155Max HRV. Kuv tsis xav them $ 200 rau qhov tshiab Kuv ib txwm xav tau qee yam nrog kev lag luam huab cua kev ua txhaum
Raspberry Pi Oled Moos Saib Nws hnov Nws thiab hnov Nws: 5 Kauj Ruam (nrog Duab)
Raspberry Pi Oled Clock Watch Nws hnov Nws thiab hnov Nws: Qhov no yog lub moos ntse uas qhia lub sijhawm ntawm cov zaub OLED thiab tseem koj tuaj yeem hnov lub sijhawm nyob rau lub sijhawm sib txawv ntawm lub sijhawm uas yog pab puv rau qhov muag tsis pom thiab Nws tseem hloov cov xim coj nrog lub sijhawm zoo li lub teeb nyob rau yav tsaus ntuj lub teeb nyob rau yav tsaus ntuj mus txiv kab ntxwv rau daj thiab zoo li t
Yuav Ua Li Cas Tau Txais Cov Nkauj Los Ntawm Txhua Qhov (Haha) Lub Vev Xaib (Ntev Li Koj Tau hnov Nws Koj Yuav Tau Txais Nws Ok Zoo Yog Nws Tau Ntxig Hauv Flash Koj Yuav Tsis Muaj Peev Xwm) EDITED !!!!! Ntxiv Info: 4 Cov Kauj Ruam
Yuav Ua Li Cas Tau Txais Cov Nkauj Los Ntawm Txhua Qhov (Haha) Lub Vev Xaib (Ntev Li Koj Tau hnov Nws Koj Yuav Tau Txais Nws … Ok Zoo Yog Nws Tau Ntxig Hauv Flash Koj Yuav Tsis Muaj Peev Xwm) EDITED !!!!! Ntxiv Cov Lus Qhia: yog tias koj tau mus rau lub vev xaib thiab nws ua nkauj nkauj uas koj nyiam thiab xav tau nws ntawm no yog cov lus qhia rau koj tsis yog kuv qhov txhaum yog tias koj cuam tshuam qee yam (tsuas yog txoj hauv kev nws yuav tshwm sim yog tias koj pib tshem cov khoom yam tsis muaj laj thawj. ) Kuv tuaj yeem tau txais cov nkauj rau
Cov Neeg Hais Lus Tsis Txaus Dej Uas Ntab - " Nws Ntws, Nws Totes thiab Nws Pob Zeb Sau Ntawv! &Quot;: 7 Cov Kauj Ruam (nrog Duab)
Cov Neeg Hais Lus Tsis Txaus Dej Uas Ntab - " Nws Ntws, Nws Totes thiab Nws Pob Zeb Sau Ntawv! ). Peb yuav ntab hauv tus dej, lossis txuas kab rau ntawm ntug dej kom peb cov ntab nyob ntawm qhov chaw peb nyob. Txhua tus neeg