Cov txheej txheem:

Ntsuas Hluav Taws Xob Hluav Taws Xob: 3 Kauj Ruam
Ntsuas Hluav Taws Xob Hluav Taws Xob: 3 Kauj Ruam

Video: Ntsuas Hluav Taws Xob Hluav Taws Xob: 3 Kauj Ruam

Video: Ntsuas Hluav Taws Xob Hluav Taws Xob: 3 Kauj Ruam
Video: Hmong new song 2016 - Yog dab tsi - Xub Hluav Taws (Official MV) 2024, Hlis ntuj nqeg
Anonim
Image
Image

Zoo nkauj npaum li txhua tus Hluav Taws Xob Digital (ntse lossis tsis) muaj lub teeb uas ntsais muag txhua lub sijhawm siv lub zog tshwj xeeb - feem ntau ib zaug rau txhua Watt -teev (Feem ntau sau tias yog 1000 imp/kWh).

Koj tuaj yeem txheeb xyuas qhov no tau yooj yim nrog Lub Teeb Pom Kev Ntsuam Xyuas yooj yim thiab siv nws los ntsuas thiab sau koj lub zog siv sijhawm dhau los. Peb yuav siv Puck.js los ua haujlwm txheeb cais thiab cia koj saib lawv hla Bluetooth, tab sis koj tuaj yeem yooj yim sau lawv rau SD daim npav lossis tshaj tawm lawv mus rau qee yam zoo li Raspberry pi.

Cov vis dis aus saum toj no yuav tsum ua kom koj ua tau zoo los ntawm yam koj yuav tsum tau ua, lossis tshawb xyuas cov kauj ruam ntawm no (thiab tseem https://www.espruino.com/Smart+Meter) kom paub ntau ntxiv.

Kauj ruam 1: Kho vajtse

Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse

Kho vajtse yooj yim heev. Koj tsuas yog xav tau Puck.js lub cuab yeej thiab Lub Teeb nyob ntawm tus tiv thaiv (feem ntau LDRs yuav tsum ua haujlwm).

Laum ib lub qhov hauv Puck.js rooj plaub kom haum rau LDR (nrog 'cov kauj ruam' hauv rooj plaub tig mus rau sab saud, koj xav laum qhov twg ntawm sab laug sab laug sab xis yog). Thawb LDR rau hauv D1 thiab D2 pins (kev taw qhia tsis tseem ceeb), haum txhua yam hauv rooj plaub thiab tom qab ntawd muab nws tso rau hauv.

Kom haum Puck rau lub ntsuas hluav taws xob Kuv tsuas yog siv qee daim nplaum nplaum (VHB daim kab xev) thiab tau txiav lub qhov rau nws rau LDR - qhov no ua kom koj tau txais qhov haum zoo rau lub ntsuas hluav taws xob thaum tseem txiav tawm ib qho twg sab nraum lub teeb.

Thaum kawg, tsuas yog tso lub Puck nrog lub LDR kom ze rau lub Electricty meter lub teeb pom kev li sai tau.

Kauj ruam 2: Software

Software
Software
Software
Software

Txhua yam koj yuav tsum ua yog:

  • Ua raws Espruino Phau Ntawv Qhia kom tau txuas nrog Puck.js:
  • Luam thiab muab kab ntawv txuas rau sab xis ntawm IDE
  • Nyem rau 'Upload' khawm
  • Ntaus 'txuag ()' thiab ntaus nkag ntawm sab laug sab tes ntawm IDE
  • Txiav txuas.

Pom zoo: