Cov txheej txheem:

Mario Question Block Solar Monitor: 7 Kauj Ruam (nrog Duab)
Mario Question Block Solar Monitor: 7 Kauj Ruam (nrog Duab)

Video: Mario Question Block Solar Monitor: 7 Kauj Ruam (nrog Duab)

Video: Mario Question Block Solar Monitor: 7 Kauj Ruam (nrog Duab)
Video: Koj mus ua neej zoo li cas lawm 11/16/2018 2024, Kaum ib hlis
Anonim
Mario Question Block Solar Monitor
Mario Question Block Solar Monitor

Peb muaj lub vaj huam sib luag hnub ci ntawm peb lub ru tsev uas tsim hluav taws xob rau peb. Nws yog kev nqis peev loj pem hauv ntej thiab them rov qab qeeb qeeb raws sijhawm. Kuv ib txwm xav txog nws li nyiaj npib poob rau hauv lub thoob txhua ob peb feeb thaum lub hnub tawm tuaj. Ib hnub dhau ib hnub cov nyiaj npib ntxiv! Kuv txiav txim siab los tsim lub saib uas yuav coj lub tswv yim ntawd mus rau lub neej. Cov lus nug cim thaiv los ntawm Mario Brothers tau dhau los ua qhov haum zoo. Txhua lub sijhawm peb lub hnub ci vaj huam sib luag tsim tau ib lub txiaj ntsig ntawm hluav taws xob, lub teeb ci thiab ua si Mario npib suab. Txhua lub sijhawm cov vaj huam sib luag tsim ib duas las tsim nyog rau hluav taws xob, (100 npib) nws teeb thiab ua si Mario 1up suab zoo ib yam li kev ua si. Nws yog kev ceeb toom zoo siab tias kuv cov vaj huam sib luag tau ua haujlwm hnyav txawm tias thaum kuv tsis yog.

Nco tseg: Txoj cai hauv txoj haujlwm no tam sim no tsuas ua haujlwm nrog Enphase systems. Yog tias koj muaj lub kaw lus nrog tus saib xyuas sib txawv, Kuv xav koom tes nrog kev daws teeb meem uas yuav ua haujlwm rau koj, tsuas yog tawm lus hauv qab no.

Kauj Ruam 1: Nws Ua Haujlwm Li Cas

Nws Ua Haujlwm Li Cas
Nws Ua Haujlwm Li Cas
Nws Ua Haujlwm Li Cas
Nws Ua Haujlwm Li Cas

Txoj haujlwm no siv NodeMCU los txuas rau wirelessly mus rau Enphase Envoy box txhawm rau tshuaj xyuas hnub ci. Yog tias koj tam sim no txuas nrog lub network nrog Envoy ntawm nws, txheeb xyuas nws tus IP chaw nyob los ntawm kev saib ntawm lub vijtsam ntawm lub npov. Tam sim no kuv ntawm 192.168.1.10. Yog tias koj ua raws qhov txuas hauv qab no koj yuav tau txais luv luv (JSON) cov lus teb uas qhia tias muaj zog npaum li cas koj lub vaj huam sib luag tau tsim kom deb li deb thiab lub zog tam sim no tso tawm.

192.168.1.10/api/v1/production (Koj yuav zaum yuav tau hloov qhov 192.168.1.10 ib feem kom phim koj tus IP Envoy chaw nyob.)

Txoj haujlwm no siv tus nqi "wattsNow" thiab tus nqi toj ib kilowatt teev muab rau ntawm kev teeb tsa los laij ntev npaum li cas nws thiaj li siv lub kaw lus los tsim hluav taws xob ib xees. Thaum lub sijhawm ntawd dhau mus, nws ua suab nrov nrov thiab ua rau daj.

Kauj ruam 2: Sau cov ntaub ntawv

Sau Cov Khoom
Sau Cov Khoom
Sau Cov Khoom
Sau Cov Khoom

Koj yuav xav tau cov hauv qab no los tsim lub hnub ci saib xyuas no.

Cov Khoom Siv Hluav Taws Xob:

  • NodeMCU Amazon $ 4.99
  • Mini Breadboard Cov
  • LED thiab Ntsuab LED
  • Piezo buzzer
  • 2-100 Ω resistors
  • USB Micro B cable (Kuv siv luv luv los txhawb nqa txoj haujlwm thiab ntev dua los tso qhov program)
  • Jumper xov hlau
  • USB phab ntsa adapter (Kuv siv lub qub iPhone charger)
  • Enphase Envoy Monitor txuas nrog lub wireless router

Box Cheeb Tsam:

  • 3D tshuab luam ntawv, nrog rau cov xim daj dua
  • 3 daim plexiglass txiav rau 3-1/8 "square
  • cov tshuaj tsuag xim dawb (Kuv siv Rust-oleum, tab sis qee yam pob tshab yuav zoo dua)

Kauj Ruam 3: Pib Nrog NodeMCU thiab Tshaj Tawm Txoj Haujlwm

Pib Nrog NodeMCU thiab Tshaj Tawm Txoj Haujlwm
Pib Nrog NodeMCU thiab Tshaj Tawm Txoj Haujlwm
Pib Nrog NodeMCU thiab Tshaj Tawm Txoj Haujlwm
Pib Nrog NodeMCU thiab Tshaj Tawm Txoj Haujlwm

Magesh Jayakumar tau tsim cov lus qhia tau zoo ntawm kev pib nrog NodeMCU. Pib sai rau Nodemcu ESP8266 ntawm Arduino IDE Nws yog qhov tseeb, rau lub ntsiab lus, thiab muab qee qhov piv txwv. Nws tsim nyog txheeb xyuas yog tias koj tshiab rau NodeMCU, tab sis kuv yuav muab cov kauj ruam tseem ceeb ntawm no ib yam nkaus.

  1. Rub tawm, nruab thiab tso tawm Arduino IDE.
  2. Mus rau qhov nyiam thiab nkag mus rau qhov chaw nyob hauv qab no hauv "Tus Thawj Saib Xyuas Lub Rooj Sib Tham Ntxiv:" lub thawv ntawv ces nyem OK.https://arduino.esp8266.com/stable/package_esp8266com_index.json
  3. Mus rau Cov Cuab Yeej> Rooj Tswjhwm Saib> Pawg Thawj Tswj. Tshawb nrhiav ESP8266 thiab teeb tsa "esp8266 los ntawm ESP8266 Zej Zog"
  4. Mus rau Cov Cuab Yeej> Pawg Thawj Coj> NodeMCU 1.0. Nws yuav muab teev rau hauv qab no lwm cov laug cam Arduino.
  5. Nco ntsoov tias koj NodeMCU txuas nrog USB thiab mus rau Cov Cuab Yeej> Chaw Nres Nkoj> Xaiv koj lub USB chaw nres nkoj.
  6. Rub tawm thiab qhib SolarMonitor.ino cov ntaub ntawv thiab qhib nws hauv Arduino IDE. Nyob rau sab saum toj ntawm txoj haujlwm muaj 4 daim ntawv xov xwm uas txoj haujlwm yuav tsum ua kom tiav. Nov yog koj li wireless network ssid thiab password, koj tus IP Envoy IP chaw nyob ntawm Envoy screen, thiab tus nqi ntawm ib kWh ntawm lub hnub ci zog hauv xees. Koj tuaj yeem tau txais tus nqi kawg no los ntawm koj daim nqi hluav taws xob. Yog tias koj tau cuv npe hauv SREC txoj haujlwm los ntawm koj lub xeev, ntxiv qhov ntawd ib yam.
  7. Tshaj tawm qhov kev hloov kho program rau koj NodeMCU los ntawm txhaj khawm upload (xub) nyob rau sab laug sab saum toj ntawm lub qhov rais.

Kauj Ruam 4: Tsim Cov Khoom Siv Hluav Taws Xob

Tsim Cov Khoom Siv Hluav Taws Xob
Tsim Cov Khoom Siv Hluav Taws Xob
Tsim Cov Khoom Siv Hluav Taws Xob
Tsim Cov Khoom Siv Hluav Taws Xob

Xa mus rau kab duab kab lus saum toj no los tsim cov khoom siv hluav taws xob. Cov ntsiab lus yog hauv qab no:

  • Qhov kawg ntawm ntsuab LED txuas nrog D6, Tsis zoo kawg rau 100 ohm resistor.
  • Qhov kawg ntawm daj daj txuas nrog D7, Qhov tsis zoo kawg rau 100 ohm resistor.
  • Qhov kawg ntawm piezo buzzer txuas nrog D8.
  • Txhua qhov kev sib tw xaus ntawm GND.

Kauj Ruam 5: Tsim Lub Thawv

Tsim lub Thawv
Tsim lub Thawv

Siv cov ntaub ntawv STL saum toj no los luam lub thawv. Kuv siv cov xim daj. Txhawm rau ua cov lus nug kos, txiav peb lub xwmfab ntawm plexiglass 3-1/8 "x 3-1/8". Kuv xav tau cov lus nug cim kom pom lub teeb dhau tab sis tsis pom cov khoom siv hluav taws xob sab hauv yog li kuv muab lawv lub teeb ci ntawm cov tshuaj tsuag xim dawb. Kuv siv Rust-oleum, tab sis qee yam ntxiv pob tshab yuav ua haujlwm zoo dua. Thaum cov ntxig tau qhuav, siv ob peb dabs ntawm cov kua nplaum kub kom ruaj ntseg rau sab hauv lub ntsej muag ntawm lub thawv. Tom qab ntawd ntxiv cov phab ntsa hloov mus rau lub thawv nrog cov kab txuas ua ke tom qab. Ruaj ntseg nws nyob rau hauv qhov chaw nrog dab dab ntawm cov kua nplaum kub hauv qab.

Kauj Ruam 6: Ntxiv Cov Khoom Siv Hluav Taws Xob

Image
Image

Txuas koj USB cable rau phab ntsa adapter thiab txuas nws rau NodeMCU. Kuv siv txoj hlua luv ntawm no txhawm rau txo qis kev sib tsoo hauv lub thawv. Thaum kawg lo lub khob cij rau sab nraum qab ntawm lub thawv siv cov nplaum rau hauv qab, lossis lwm yam ntawm cov kua nplaum kub. Pop rau saum thiab ntsaws tus nqus hauv. Ua ntej koj paub nws, koj yuav nyob ntawm koj lub qhov muag hauv Mario npib!

Kauj Ruam 7: Cov kauj ruam yav tom ntej

  • Yog tias koj muaj lub hnub ci vaj huam sib luag tsim los ntawm lwm tus neeg tsis yog Enphase, Kuv xav pab koj ua qhov no ua haujlwm ntawm koj lub cev ib yam nkaus. Tsuav yog muaj qee yam ntawm cov hauv zos lossis web-based API nws yuav tsum yog txoj hlua ncaj ncaj. Tshaj tawm cov lus pom, thiab yog tias kuv tuaj yeem pab kuv yuav.
  • Kuv tuaj yeem ntxiv cov lej lej yog li kuv tuaj yeem pom cov xees zuam txhua txhua lub sijhawm nws tsoo. Nyob twj ywm.

Pom zoo: