Cov txheej txheem:

Wireless Power Monitor: 6 Cov Kauj Ruam (nrog Duab)
Wireless Power Monitor: 6 Cov Kauj Ruam (nrog Duab)

Video: Wireless Power Monitor: 6 Cov Kauj Ruam (nrog Duab)

Video: Wireless Power Monitor: 6 Cov Kauj Ruam (nrog Duab)
Video: Dab neeg Vauv tsis haum niam tais 2/6/2017 2024, Hlis ntuj nqeg
Anonim
Wireless Power Monitor
Wireless Power Monitor

Saib xyuas kev siv hluav taws xob ntawm koj li khoom siv hluav taws xob nyob deb ntawm lub xov tooj ntawm tes Blynk. Cov cuab yeej yooj yim no yog ua raws D1 Mini micro-controller. Txuas koj lub peev xwm los ntawm DC cov tswv yim nkag mus thiab koj lub cuab yeej siv los ntawm DC tso tawm. Cov cuab yeej saib xyuas tau siv los ntawm micro usb. Muaj qhov qhib/tua hloov los tswj lub zog.

Kauj Ruam 1: Tshooj thiab Schematic

Qhov Chaw thiab Schematic
Qhov Chaw thiab Schematic

Koj yuav xav tau cov hauv qab no:

  • D1 Minihttps://www.banggood.com/D1-Mini-NodeMcu-Lua-WIFI-ESP8266-Development-Board-p-1044858.html? P = KF2715792233201409DJ & custlinkid = 89596
  • INA219 Lub Hwj Huam Saib Xyuas Sensor

2 x DC Jackhttps://www.banggood.com/10pcs-5_5-x-2_1mm-DC-Powe …

Mini Rocker Switchhttps://www.banggood.com/custlink/KG3KPHyoj

Cias txuas cov ntu raws li tau qhia hauv kab lus, muab cov khoom hloov pauv rau hauv qhov chaw tom qab sib dhos hauv 3D lub tsev luam tawm (saib ntu tom ntej).

Nco tseg: Txhawm rau tso cai siv hom pw tsaug zog koj tseem yuav xav tau txuas qhov txuas ntawm RST thiab D0 pins ntawm D1 mini.

Kauj Ruam 2: 3D Luam Tshooj

3D Luam Qhov
3D Luam Qhov
3D Luam Qhov
3D Luam Qhov

Rub tawm thiab luam tawm ob ntu. Sib sau cov khoom siv hluav taws xob hauv qhov chaw thiab nyab xeeb hauv qhov chaw siv rab phom.

Kauj ruam 3: Blynk App

App ntawm Blynk
App ntawm Blynk

Nruab Blynk app los ntawm Google Play lossis Apple App Store.

Siv tus lej QR txhawm rau rub tawm qhov kev cai Blynk app. Nco tseg ntawm koj daim ntawv pov thawj Blynk (hauv qab lub app teeb tsa), koj yuav tsum luam qhov no rau koj daim duab nyob hauv ntu tom ntej.

Kauj Ruam 4: Kho thiab Tshaj Tawm Daim Sketch

Configure thiab Upload Sketch
Configure thiab Upload Sketch
Configure thiab Upload Sketch
Configure thiab Upload Sketch
Configure thiab Upload Sketch
Configure thiab Upload Sketch
Configure thiab Upload Sketch
Configure thiab Upload Sketch

Txhawm rau rub cov duab kos koj yuav tsum xub teeb tsa pawg esp8266 thiab ob lub tsev qiv ntawv, yog tias koj tsis tau ua li ntawd.

Txhawm rau teeb tsa esp8266, ntxiv cov URL hauv qab no rau Tus Thawj Saib Xyuas Ntxiv URLs hauv Preferences window ntawm Arduino IDE.

arduino.esp8266.com/stable/package_esp8266com_index.json

Tam sim no hauv Boards Manager, teeb tsa esp8266 board.

Siv tus thawj tswj tsev qiv ntawv, teeb tsa Adafruit INA219 thiab Blynk cov tsev qiv ntawv.

Hloov kho cov duab kos rau koj tus kheej WiFi SSID, tus lej zais thiab Blynk tus lej cim pov thawj. Txuas D1 mini siv lub micro-usb thiab rub daim duab.

Kauj Ruam 5: Txuas Koj Cov Khoom/ntaus ntawv thiab Saib Xyuas

Txuas koj Cov Khoom Siv/cuab yeej thiab Saib Xyuas
Txuas koj Cov Khoom Siv/cuab yeej thiab Saib Xyuas

Tam sim no yooj yim txuas koj lub hwj huam mov/roj teeb rau lub tshuab nkag thiab koj lub cuab yeej rau lub tso zis. Txuas D1 mini siv lub micro-usb cable rau lub zog thiab nyem qhov hloov mus rau lub zog koj lub cuab yeej.

Thauj lub Blynk app thiab tam sim no koj tuaj yeem saib xyuas lub cuab yeej qhov hluav taws xob thiab lub zog siv. Kho tus slider kom pab tau cov xwm txheej LED rau teeb liab thaum lub roj teeb/qhov hluav taws xob poob qis dua tus nqi tshwj xeeb.

Kauj Ruam 6: Cov Tswv Yim Rau Kev Txhim Kho Ntxiv

Koj tuaj yeem nthuav dav ntawm txoj haujlwm no los ntawm kev sib txuas ua ke kom tso cai tswj lub zog hluav taws xob nyob deb. Lub zog los ntawm roj teeb lossis DC qhov chaw nws tus kheej kuj tseem yuav pab tau. Saib kuv lub vev xaib https://www.cabuu.com rau cov tswv yim ntxiv thiab cov haujlwm zoo sib xws.

Pom zoo: