Cov txheej txheem:

Pi-hole Monitor ESP8266 Nrog OLED Zaub: 4 Cov Kauj Ruam
Pi-hole Monitor ESP8266 Nrog OLED Zaub: 4 Cov Kauj Ruam

Video: Pi-hole Monitor ESP8266 Nrog OLED Zaub: 4 Cov Kauj Ruam

Video: Pi-hole Monitor ESP8266 Nrog OLED Zaub: 4 Cov Kauj Ruam
Video: Pi-hole Monitor ESP8266 with OLED Display 2024, Kaum ib hlis
Anonim
Image
Image
Pi-hole Monitor ESP8266 Nrog OLED Zaub
Pi-hole Monitor ESP8266 Nrog OLED Zaub

Pi-hole Monitor yog Wemos D1 Mini (ESP8266) nrog SSD1306 OLED zaub uas tau tswj los ntawm lub vev xaib sib tham thiab zaum ntawm koj lub network hauv ib cheeb tsam thiab yuav tso tawm cov txheeb cais los ntawm koj tus Pi-qhov server.

Nta:

  • Zaub Pi-Qhov Txheeb Ze
  • Tag Nrho Thaiv
  • Tag Nrho Cov Neeg
  • Feem pua Thaiv
  • Thaiv Cov Ntawv Tshaj Tawm los ntawm 21.33 teev dhau los ntawm cov ntaub ntawv (tsuas yog 128 kab los qhia 10 min incriments)
  • Sab saum toj 3 Cov Neeg Siv Khoom Thaiv
  • Kev xaiv los tso saib 24 teev lossis AM/PM style moos
  • Tus nqi piv txwv yog txhua 60 vib nas this
  • Kev teeb tsa tau zoo los ntawm lub vev xaib interface (tsis tas yuav hloov kho Settings.h)
  • Txhawb nqa OTA (thauj khoom firmware hla WiFi txuas ntawm tib LAN) Kev lees paub yooj yim los tiv thaiv koj cov chaw

Yuav tsum tau 1 OLED Zaub thiab 1 Wemos D1 Mini:

  • Wemos D1 Mini:
  • Xiav/Daj I2C OLED Zaub:
  • 3D Luam Case
  • Soldering Hlau

Kauj Ruam 1: Solder Up the Wemos D1 Mini Nrog I2C OLED Display

Solder Up Wemos D1 Mini Nrog I2C OLED Zaub
Solder Up Wemos D1 Mini Nrog I2C OLED Zaub

Cov kauj ruam no tsuas yog xav tau txuas 4 xov ntawm Wemos D1 Mini thiab OLED zaub.

  • SDA -> D2
  • SCL -> D5
  • VCC -> 5V+
  • GND -> GND-

Kauj Ruam 2: 3D Luam Ntawv Rau Koj Pi-hole Monitor

3D Luam Ntawv Rau Koj Tus Pi-hole Monitor
3D Luam Ntawv Rau Koj Tus Pi-hole Monitor

Koj tuaj yeem siv txhua rooj plaub uas koj xav tau - txhua yam uas yuav haum rau Wemos D1 Mini (ESP8266) nrog rau OLED zaub. Koj tuaj yeem luam kuv tus qauv tsim los ntawm Thingiverse:

www.thingiverse.com/thing:3573903

Haum koj li Wemos thiab OLED hauv rooj plaub. Koj yuav tsum tau siv qee cov kua nplaum rau sab nrauv ntawm OLED zaub kom nws lo rau hauv rooj plaub. Lub Wemos yuav tuav rau hauv rooj plaub los ntawm lub vaj huam sib luag tom qab.

Kauj Ruam 3: Rub tawm thiab Sib Sau Cov Cai

Rub tawm thiab Sib Sau Cov Cai
Rub tawm thiab Sib Sau Cov Cai

Nws raug nquahu kom siv Arduino IDE. Koj yuav tsum teeb tsa Arduino IDE los ua haujlwm nrog Wemos board thiab USB chaw nres nkoj thiab teeb tsa lub USB tsav xav tau thiab lwm yam.

  • USB CH340G tsav tsheb:
  • Nkag mus https://arduino.esp8266.com/stable/package_esp8266… mus rau Tus Thawj Saib Xyuas Haujlwm Ntxiv URLs teb. Koj tuaj yeem ntxiv ntau qhov URL, cais lawv nrog tus lej. Qhov no yuav ntxiv kev txhawb nqa rau Wemos D1 Mini rau Arduino IDE.
  • Qhib Tus Thawj Saib Xyuas Haujlwm los ntawm Cov Cuab Yeej> Cov ntawv qhia zaub mov thiab teeb tsa esp8266 platform (thiab tsis txhob hnov qab xaiv koj li ESP8266 lub rooj tsavxwm los ntawm Cov Cuab Yeej> Cov ntawv qhia zaub mov tom qab teeb tsa).
  • Xaiv Pawg Thawj Coj: "WeMos D1 R2 & mini"
  • Teeb 1M SPIFFS - txoj haujlwm no siv SPIFFS rau kev txuag thiab nyeem cov teeb tsa teeb tsa. Yog tias koj tsis ua qhov no, koj yuav tau txais lub vijtsam dawb tom qab rub tawm. Yog tias koj tau txais lub vijtsam dawb tom qab thauj khoom - txheeb xyuas seb koj puas muaj 1M SPIFFS teeb tsa hauv Arduino IDE cov cuab yeej ntawv qhia zaub mov.

Kev Thauj Khoom Txhawb Cov Tsev Qiv Ntawv hauv Arduino

Siv Arduino phau ntawv qhia kom ntxaws txog kev txhim kho thiab tswj cov tsev qiv ntawv

Pob - cov pob thiab cov tsev qiv ntawv hauv qab no tau siv (rub tawm thiab teeb tsa):

  • ESP8266WiFi.h
  • ESP8266WebServer.h
  • WiFiManager.h
  • ESP8266mDNS.h
  • ArduinoOTA.h Arduino OTA Library
  • "SSD1306Wire.h"
  • "OLEDDisplayUi.h"

Sau thiab thauj cov firmware rau Wemos D1 Mini.

Kauj Ruam 4: Kho rau Koj Lub Network thiab Web Interface

Configure rau koj Network thiab Web Interface
Configure rau koj Network thiab Web Interface
Configure rau koj Network thiab Web Interface
Configure rau koj Network thiab Web Interface
Configure rau koj Network thiab Web Interface
Configure rau koj Network thiab Web Interface

Tus Saib Xyuas Tshuab Luam Ntawv siv WiFiManager yog li thaum nws tsis tuaj yeem pom lub network kawg nws tau txuas nrog nws yuav dhau los ua AP Hotspot - txuas rau nws nrog koj lub xov tooj thiab tom qab ntawd koj tuaj yeem nkag mus rau koj cov ntaub ntawv txuas nrog WiFi.

Tom qab txuas nrog koj lub network WiFi nws yuav tso tus IP chaw nyob uas tau muab rau nws thiab uas tuaj yeem siv los qhib qhov browser mus rau Web Interface. Txhua yam tuaj yeem teeb tsa muaj nyob hauv lub vev xaib interface.

Pom zoo: