Cov txheej txheem:

IDC2018IOT Cloth Hanger: 6 Kauj Ruam
IDC2018IOT Cloth Hanger: 6 Kauj Ruam

Video: IDC2018IOT Cloth Hanger: 6 Kauj Ruam

Video: IDC2018IOT Cloth Hanger: 6 Kauj Ruam
Video: КРЕМЕНЬ - Серия 1 / Боевик | Все серии на epicplus.online 2024, Kaum ib hlis
Anonim
Image
Image
IDC2018IOT Cloth Hanger
IDC2018IOT Cloth Hanger
IDC2018IOT Cloth Hanger
IDC2018IOT Cloth Hanger

IOT daim ntaub dai yuav ua rau koj lub txee dai khaub ncaws ntse dua thiab muab cov txheeb cais online rau koj cov khaub ncaws sab hauv.

nws muaj 3 lub ntsiab lus tseem ceeb:

  1. thaum koj xav xaiv qhov yuav hnav dab tsi, koj tuaj yeem nyem rau ntawm cov xim uas koj xav tias zoo li niaj hnub no thiab IOT cov khaub ncaws dai nrog cov xim sib txuam yuav ci tuaj.
  2. thaum mus yuav daim ntaub tshiab koj tuaj yeem pom peb cov khaub ncaws koj muaj ntawm txhua xim.
  3. thiab tseem ceeb tshaj yog tias koj muaj ib tug nus muag uas niaj hnub "qiv" koj cov khaub ncaws koj yuav tau txais lub tswb rau koj li ntawv yog tias qhov ntawd tshwm sim.

Kauj Ruam 1: Cov Khoom Sib Txawv ntawm IOT Cloth Hanger

rau txhua daim ntaub dai peb siv:

  • nodemcu: "hlwb".
  • rgb sensor (tcs34725): txhawm rau txiav txim tias xim twg yog daim ntaub ntawm tus dai khaub ncaws.
  • siab sensor: txhawm rau txheeb xyuas thaum tso daim ntaub rau ntawm lub dai khaub ncaws lossis tshem tawm.
  • coj kab txaij: mus rau lub teeb liab yog tias daim ntaub phim qhov kev xaiv ntawm lub app.

Kauj ruam 2: Cov ntaub ntawv ntws

daim ntaub khuam khawb ncaws => muab tso rau ntawm daim ntaub => kuaj xim => xa cov xim thiab khij khawb id pov HTTP rau firbase

daim ntaub dai => tshem daim ntaub => xa GET thov rau ifttt webhook => xa email (SMTP tej zaum)

Blynk app => xaiv xim => http thov kom ntaub dai khaub ncaws => txhua daim ntaub dai nrog cov xim xaiv yuav teeb xim ntawm coj sawb

daim ntaub dai => siv tag nrho cov ntaub ntawv los ntawm firbase databse (http) => hloov tshiab adafriut txau (mqtt)

Kauj Ruam 3: Kev Sib Tw Loj Tshaj thiab Peb Yuav Tsum Ua Li Cas

peb qhov kev sib tw loj tshaj plaws hauv txoj haujlwm no yog nrhiav txoj hauv kev los hloov RGB sensor qhov tso tawm rau Liab Ntsuab thiab Xiav qhov txiaj ntsig uas zoo ib yam li lub qhov muag pom, thiab tom qab ntawd los txiav txim seb nws yog xim dab tsi ntawm tus dai khaub ncaws.

txhawm rau ua kom tus nqi RGB zoo ib yam li qhov muag pom peb tau siv lub rooj gamma yog li txhua qhov nyeem ntawm RGB lub cim tau teeb tsa los ntawm 256 kab lus no. lub rooj gamma tau tsim nrog txoj haujlwm no:

rau (int kuv = 0; kuv <256; kuv ++) {

ntab x = i;

x /= 255;

x = pow (x, 2.5);

x = 255;

gammatable [kuv] = x;

}

tom qab ntawd peb yuav tsum coj tus nqi rgb thiab paub qhov txawv nws yog xim twg. rau qhov ntawd peb suav "qhov deb" ntawm txhua qhov xim pib los ntawm lub sensor tso tawm, kom ua li ntawd peb khaws txhua qhov xim yooj yim hauv 3 arrays rau liab ntsuab thiab xiav thiab suav qhov deb ntawm cov zis thiab txhua xim, tom qab ntawd peb tshawb xyuas qhov tsawg nrug deb ntawm lub rooj thiab yog xim uas ze tshaj rau xim tiag.

Kauj Ruam 4: Txwv Cov Khaub Ncaws Khaub Ncaws

  • nws tsuas tuaj yeem kuaj pom 3 xim: liab, ntsuab thiab xiav
  • nws xav tau txuas nrog lub zog siv yog li nws xav tau lub roj teeb rau txhua daim ntaub dai lossis txhua lub sijhawm koj tso lub khwb koj yuav txuas nws nrog cable
  • nws xav tau kev sib txuas wifi zoo

Kauj Ruam 5: Cov phiaj xwm yav tom ntej

  1. ntxiv cov xim ntxiv: yuav tsum ntsuas ntau cov khaub ncaws ntawm rgb sensor txhawm rau nkag siab qhov txiaj ntsig peb tau txais rau txhua xim thiab tom qab ntawd ntxiv ntau xim kom tuaj yeem kuaj pom (1 lub lis piam)
  2. tom qab ntxiv cov xim ntxiv peb xav kom tuaj yeem qhia cov xim sib txuas rau cov neeg siv (2 hnub)
  3. tsim ib daim ntawv dai rau cov khoom siv iot (3 lub lis piam)

Kauj Ruam 6: Yog Koj Xav Tsim Nws Koj Tus Kheej

Yog Koj Xav Ua Nws Li Koj Tus Kheej
Yog Koj Xav Ua Nws Li Koj Tus Kheej
Yog Koj Xav Ua Nws Li Koj Tus Kheej
Yog Koj Xav Ua Nws Li Koj Tus Kheej
Yog Koj Xav Ua Nws Li Koj Tus Kheej
Yog Koj Xav Ua Nws Li Koj Tus Kheej

Kuv tau tshaj tawm txoj cai yog li koj tuaj yeem sim thiab ua nws, txhua yam koj yuav tsum tau ua yog txuas tag nrho cov khoom siv raws li hauv daim duab.

tom qab ntawd hauv blynk app ntxiv 3 khawm rau txhua xim, xiav v0, liab v1, ntsuab v2.

kuj qhib qhov ifttt aplet hauv webhook hu ua "Yog tus tsim Event" someonetouchingcloset ", tom qab ntawv xa email rau kuv ntawm" los ntawm cov chaw koj tuaj yeem tau txais webhhook txuas thiab ntxig nws hauv pob blynk hu ua webhook ib yam nrog V4.

thiab koj txhua tus tau teeb tsa! muaj kev lom zem!

Pom zoo: