Cov txheej txheem:

Hmoov Tsis Zoo Tus Hawj Hloov: 5 Kauj Ruam (nrog Duab)
Hmoov Tsis Zoo Tus Hawj Hloov: 5 Kauj Ruam (nrog Duab)

Video: Hmoov Tsis Zoo Tus Hawj Hloov: 5 Kauj Ruam (nrog Duab)

Video: Hmoov Tsis Zoo Tus Hawj Hloov: 5 Kauj Ruam (nrog Duab)
Video: Koj Tsuas Zoo Tham Xwb Tsis Zoo Yuav - Maiv Xis Hawj (Official MV 2023) 2024, Hlis ntuj nqeg
Anonim
Image
Image
Yam Koj Xav Tau
Yam Koj Xav Tau

Hauv cov lus qhia no kuv yuav qhia koj yuav ua li cas thiaj tsim tau lub wireless hloov pauv tau yooj yim heev rau Phillips Hawj Teeb.

Teeb meem

Cov teeb no xav tau lub zog txuas mus tas li, cov hloov phab ntsa yuav tsum tau nyob tas li.

Yog tias koj mus pw thiab tua lub phab ntsa hloov lub teeb yuav tsis ci dua yog tias tus choj hue sim hloov lub teeb, piv txwv li thaum sawv ntxov kom sawv koj tsaug zog nrog "lub teeb sov".

Koj yuav tsum yuav Hue Tap lossis dimmer keyboards, uas kim heev, tshwj xeeb tshaj yog tias koj xav tau ib qho rau txhua chav.

Kev daws yog siv ESP8266. Cov tswj hwm me me no nrog inbuild usb adapter muaj rau tsawg dua 3 $. Rau cov khoom siv hluav taws xob koj tsuas xav tau 2 pcs. AAA roj teeb, los ntawm kev siv DeepSleep tus qauv ntawm Esp8266 lub roj teeb ua haujlwm ntev.

Txhua lub sijhawm koj nias lub pob pib dua ESP sawv, txuas nrog koj WLAN, tau txais cov xwm txheej ntawm lub teeb, yog tias nws nyob ntawm nws hloov pauv lossis hloov pauv, tom qab cov lus txib no nws poob pw tsaug zog

Kauj Ruam 1: Yam Koj Xav Tau

Yam Koj Xav Tau
Yam Koj Xav Tau

Muaj ob qhov sib txawv PCBs nrog Esp8266 thiab tsim kho usb-adapter rau cov phiaj xwm yooj yim:

Wemos D1 mini, me me heev, nrog USB

los yog

  • NodeMCU, tsis yog me me, nrog USB
  • Tus tuav rau 2 Micro cells (AAA), cov ntawv cim npe
  • 2ks ua. AAA cell alkaline
  • xov hlau
  • ntsia hlau me 2x8mm, saib daim duab

rau vaj tse:

Cov ntaub ntawv luam tawm 3D (saib cov ntawv STL cov kauj ruam tom ntej)

los yog

ib lub tsev nyob los ntawm cov chaw taws teeb qub qub (saib daim duab)

los yog

tso Esp thiab roj teeb tom qab khawm hloov phab ntsa

Kauj Ruam 2: Vaj Tsev

Vaj tse
Vaj tse
Vaj tse
Vaj tse

Yog tias koj yog tus tswv ntawm 3D Tshuab Luam Ntawv, tom qab ntawd tsuas yog siv STLs txuas, koj txawm tsis xav tau khawm ntxiv, peb siv lub pob pib dua onboard nrog lub tshuab luam ntawv 3D.

Lwm qhov kev daws teeb meem yog lub qub chaw taws teeb tswj.

Yog tias koj xav hloov lub phab ntsa hloov nrog khawm hloov thiab Esp koj yuav tsum hla txoj kab 2 kab thiab ISOLATE lawv kom lub Teeb tau txais txuas ntxiv tam sim no.

!!!!!! UA HAUJ LWM NTAWM ELECTRICAL SHOCK; KOJ YUAV TSUM YOG TUS NEEG UA HAUJ LWM !!!!!

Kauj Ruam 3: Coding Esp8266

Coding tus Esp8266
Coding tus Esp8266

Ua ntej koj xav tau Arduino IDE.

Tom qab ntawd koj yuav tsum teeb tsa lub tsev qiv ntawv rau Esp8266. Koj yuav pom ntau qhov kev qhia ntawm no ntawm cov lus qhia yuav ua li cas npaj cov khoom me me no:-)

Tom qab qhib daim duab txuas nrog Arduino IDE koj yuav tsum ua qee qhov kev teeb tsa nyob ntawm koj li WIFI hauv zos.

Rau kev txuas nrawm dua/hloov pauv peb siv tus IP chaw nyob zoo li qub.

IPAddress rooj vag (192, 168, 178, 1);

ip chaw nyob ntawm koj lub zos wifi router qhov twg lub choj hue txuas nrog

Tus IP chaw nyob IP (192, 168, 178, 216);

IP chaw nyob ntawm koj qhov kev hloov pauv, paub txog kev siv chaw nyob siab nyob hauv thaj tsam ntawm 200-250 uas tsis siv rau lwm yam khoom siv

IPAddress subnet (255, 255, 255, 0);

int lub teeb = 2; //

tus naj npawb ntawm koj lub teeb uas tau hloov

const char hueHubIP = "192.168.178.57";

th e ip chaw nyob ntawm tus choj hue

const char hueUsername = "hue choj username"

koj yuav tsum tsim lub npe tso cai siv tus choj hue, saib ntawm qhov kev qhia no

const int hueHubPort = 80;

ib txwm "80"

const char ssid = "SSID"; // network SSID (npe)

const char pass = "password"; // network password

thaum kawg SSID thiab tus password ntawm koj lub wifi

Tom qab hloov cov chaw no koj tau npaj rau upload!

Kauj ruam 4: Schematic

Schematic
Schematic

Cov txheej txheem yog yooj yim heev, koj tsuas yog yuav tsum txuas lub roj teeb rau GND thiab 3V3.

Kev siv lub khawm sab nraud yog nyob ntawm yeem.

Kauj Ruam 5: Cov Lus Qhia Ntxiv

Cov Lus Qhia Ntxiv
Cov Lus Qhia Ntxiv

Txhawm rau txo qhov kev siv hluav taws xob nws yog qhov tsim nyog kom tshem tawm qhov ntsuas hluav taws xob.

Ntsuas tam sim no ua ntej thiab tom qab tshem tawm, qhov tam sim no hauv kev pw tsaug zog yuav tsum tsawg dua 0, 1mA.

Qee lub sij hawm koj kuj yuav tsum tshem tus pin muab los ntawm UART nti. Saib ntawm no kom paub ntau ntxiv.

Pom zoo: