Cov txheej txheem:

KiloWatthour Meter Siv RoboRemo App: 3 Kauj Ruam
KiloWatthour Meter Siv RoboRemo App: 3 Kauj Ruam

Video: KiloWatthour Meter Siv RoboRemo App: 3 Kauj Ruam

Video: KiloWatthour Meter Siv RoboRemo App: 3 Kauj Ruam
Video: Dekho mene iske saat kya kiya | shorts | Vj pawan singh 2024, Kaum ib hlis
Anonim
KiloWatthour Meter Siv RoboRemo App
KiloWatthour Meter Siv RoboRemo App
KiloWatthour Meter Siv RoboRemo App
KiloWatthour Meter Siv RoboRemo App
KiloWatthour Meter Siv RoboRemo App
KiloWatthour Meter Siv RoboRemo App

Thaum kuv lub airco/heatpump tau teeb tsa lub app uas tuaj nrog nws ua haujlwm zoo nkauj (Panasonic nplij siab huab). Tam sim no lub app tau ua tiav rau kev tswj hwm lub kaw lus tab sis kev saib xyuas ib feem ua tsis tau qee zaum vim yog lub sijhawm siv server. Kuv kuj muaj kev ua xyem xyav txog kev ntsuas kWh's, thaum kuv piv ob hnub nrog yuav luag zoo ib yam sab nraud kub ib hnub ua rau 11kWh, lwm 2kWh …

Lub sijhawm rau kev nqis tes ua!

Feem ntau kuv siv kuv lub rooj tsav xwm uas kuv nyiam, Wemos D1, thiab Micropython los ua txoj haujlwm tab sis tom qab ob peb qhov kev sim nws zoo li D1's ADC tsis muaj qhov tseeb … Txawm tias lub ncov qhov ntsuas pom tseeb tsis tuaj yeem daws qhov teeb meem. Google yog kuv (thiab koj!) Phooj ywg yog li kuv tau tshawb pom qhov chaw zoo no: Qhib Lub Zog Saib Xyuas. Koj tuaj yeem kawm thiab tshawb pom, txhua yam koj xav tau nyob ntawm no! Thiab lawv kuj muab Arduino lub tsev qiv ntawv uas ua haujlwm zoo: EmonLib.

Kuv sim cov duab kos thiab hloov kho lawv vim tias cov txiaj ntsig tau nthuav tawm hauv ib qho ntawm kuv nyiam hauv app: RoboRemo. qhov kev kos duab zaum kawg tau tsim nrog kWh-meter thiab qhov ntsuas qhov ntsuas tau yoog raws qhov hloov pauv tam sim no (CT) siv. Kuv xav kom qhia txoj kev kawm-ntu:

Kawm ntu. Tag nrho ntawm goodies! Kev sib txuas kWh-meter rau AndroidPhone (Tablet) tau tsim los ntawm HC-05 Bluetooth-module.

Khoom siv

- Android xov tooj lossis ntsiav tshuaj nrog RoboRemo app teeb tsa

- Arduino Uno lossis Nano thiab cov phiaj xwm cable

--Bluetooth-module HC-05 txuas

-CT (hloov pauv tam sim no) Tshooj naj npawb SCT-013-050 txuas

--2 resistors 10kOhm 1/4W (txawv qhov sib txawv, mus txog 470kOhm tsuav lawv zoo ib yam)

-1 capacitor 10microFarad (16V OK)

Yeem:

--Breadboard rau kev sim

--Breakoutboard kom yooj yim sib dhos

--USB rau cov xov tooj txuas rau kev teeb tsa Bluetooth module

Kauj ruam 1: Npaj Bluetooth Module

Npaj Bluetooth Module
Npaj Bluetooth Module
Npaj Bluetooth Module
Npaj Bluetooth Module

Kev sib txuas lus Bluetooth tau ua tiav los ntawm kho vajtse Arduino Rx/Tx terminals @9600 baud.

Yog li peb yuav tsum npaj peb tus qauv, npe nws thiab txheeb xyuas/kho qhov baudrate. Nws tuaj yeem ua tiav ntawm kev xaiv USB-serial cable thiab lub davhlau ya nyob twg emulator (lossis Arduino IDE serial monitor). Tus lej "tus yuam sij" ntawm tus qauv yuav tsum rub mus rau Vcc thiab baudrate teeb ntawm 38400. Tsis muaj Cable? Tsis muaj teeb meem, lub xaib no (ua lus German) piav qhia txhua yam: teeb tsa HC-05 Gomcu.

Npe koj tus qauv, txheeb xyuas/kho baudrate (UART 9600, 0, 0) thiab koj ua tiav!

Kauj Ruam 2: Txhim Kho EmonLib hauv Koj Arduino IDE, Upload Sketch

Txhim kho EmonLib hauv Koj Arduino IDE, Upload Sketch
Txhim kho EmonLib hauv Koj Arduino IDE, Upload Sketch
Txhim kho EmonLib hauv Koj Arduino IDE, Upload Sketch
Txhim kho EmonLib hauv Koj Arduino IDE, Upload Sketch

Nws yog txhua yam ntawm no: Txhim kho tsev qiv ntawv. Rov pib dua koj li IDE, ua tiav:-)

ntsaws cov duab kos hauv koj UNO/Nano thiab txuas cov resistors/capacitor thiab hloov pauv tam sim no raws li pom hauv cov txheej txheem. CEEV FAJ! Cov duab kos tau hloov kho rau tam sim no hloov pauv Tus lej SCT-013-050. Tus tiv thaiv kab rov tav mus rau tus hloov pauv hauv cov txheej txheem yuav tsum raug tshem tawm (tsuas yog 2 10kOhm thiab lub tshuab hluav taws xob xav tau). Lwm CT tuaj yeem siv tau tab sis kos duab ntsuas tus nqi yuav tsum raug yoog (thiab lub nra hnyav ntxiv thaum muaj "hom tam sim no").

Txuas Arduino rau koj lub khoos phis tawj thiab qhib lub ntsuas hluav taws xob@9600 baud. Pib dua Arduino, saib yog tias cov hlua raug luam tawm hauv cov ntawv saib. Cov hlua tau haum rau RoboRemo interface thiab tuaj yeem hloov kho rau cov neeg siv nyiam (saib RoboRemo phau ntawv qhia). Sim muab upload rau RoboRemo interface tab sis nws ua rau server yuam kev… Xijpeem xa cov ntaub ntawv mus rau RoboRemo yog qhov yooj yim: ua ib txoj hlua uas muaj ID + Txoj hlua (Qhov muaj txiaj ntsig) + / n, yog li ntawd. Cov lus txib los ntawm RoboRemo yog cov hlua xaus nrog / n.

Hloov kho lub Peb Hlis 29 2019: Kuv hloov kho qhov kos me ntsis, vim Arduino ADC kev daws teeb meem txawm tias cov lus luv luv muab.55Amps lossis kwv yees li 100Watts. Yog li txhua qhov tam sim no hauv qab 0.55Amps raug txiav mus rau xoom.

Cov ntaub ntawv tshiab yog version 1.3

Kauj ruam 3: Ceev faj! High Voltage

Txhim kho CT tau piav qhia zoo heev ntawm no. Ua tib zoo saib, High Voltage!

Txuas lub Bluetooth module rau Arduino: 5V rau Vcc, GND rau GND Rx rau Tx, Tx rau Rx.

Arduino yuav tsum tau siv hluav taws xob los ntawm 5V, tsis yog ntawm USB!

khub bluetooth module nrog lub xov tooj/ntsiav tshuaj, tso tawm app thiab koj muaj kWhmeter zoo!

Txaus siab rau!

Pom zoo: