Cov txheej txheem:

Qhov kawg Hloov Lub Teeb: 6 Cov Kauj Ruam (nrog Duab)
Qhov kawg Hloov Lub Teeb: 6 Cov Kauj Ruam (nrog Duab)

Video: Qhov kawg Hloov Lub Teeb: 6 Cov Kauj Ruam (nrog Duab)

Video: Qhov kawg Hloov Lub Teeb: 6 Cov Kauj Ruam (nrog Duab)
Video: LOKY -Txhob Ua Yog Toog (Official MV )Hmong New Song 2024, Hlis ntuj nqeg
Anonim
Qhov kawg Hloov Hloov
Qhov kawg Hloov Hloov

Lub hom phiaj ntawm cov lus qhia no yog piav qhia kuv yuav ua li cas thiaj li hloov lub teeb liab txuas nrog wifi (tseem hu ua kev qhia txuas ntxiv). Lub hom phiaj ntawm cov kev ceeb toom no yog qhib thiab tua ntau lub wifi txuas nrog txuas. Cov relays tsis tau piav qhia hauv cov lus qhia no. Lawv tau piav qhia hauv kev qhia cais uas kuv tau ua yav dhau los: ESP8266 Wifi Hloov.

Cov kev tshem tawm no yuav muaj txog 3 khawm me me. Txhua lub khawm tig rau/tawm ib lossis ntau qhov txuas. LED ib sab ntawm txhua lub pob ua haujlwm raws li kev tawm tswv yim. Lub pob loj dua tau siv rau lub hom phiaj tshwj xeeb: nws tua tag nrho cov kev xa tawm. Tsis yog tsuas yog cov tswj los ntawm cov chaw taws teeb, tab sis txhua qhov kev tswj hwm tau tswj los ntawm txhua lub tsev nyob. Qhov no yog siv los tua txhua yam thaum tawm mus ua haujlwm, lossis mus pw.

Qhov txuas ntawm cov khoom siv tau tswj hwm los ntawm Blynk. Cov chaw taws teeb tswj chaw taws teeb yog Huzzah Feather nrog ESP8266. Lub hwj chim rau cov chaw nyob yog los ntawm USB phab ntsa ntsaws (tsis muaj roj teeb).

Yog tias koj ua raws kuv cov lus qhia, koj yuav pom tias lub cuab yeej no muaj lub hom phiaj zoo ib yam li tau piav qhia hauv cov lus qhia yav dhau los: ESP32 Yam Wifi Chaw Taws Teeb, thiab koj raug lawm. Kuv tau ua cov kev txhim kho hauv qab no los ntawm tus qauv yav dhau los:

  • ESP32 Yam Hloov los ntawm Huzzah Feather nrog ESP8266 (Kuv muaj teeb meem txuas nrog ESP32 Yam).
  • Cov nyees khawm hlau tau hloov los ntawm cov nyees khawm yas (qee zaum hluav taws xob zoo li qub tau xa mus rau lub rooj tsavxwm los ntawm cov nyees khawm khawm, xav tau rov pib dua).
  • Cov chaw nyob tam sim no tsuas yog tswj ob peb lub teeb, feem ntau yog teeb nyob hauv ib chav, tsis yog tswj hwm txhua lub teeb ntawm lub tsev nrog txhua lub chaw taws teeb (yog li koj tsis txhob yuam kev qhib lub teeb hauv lwm chav pw piv txwv).
  • Kuv muaj lub roj teeb hauv tus qauv qub, kom tshem tau cov chaw taws teeb ntawm USB ntsaws, thiab tseem siv nws li ob peb teev. Nws hloov tawm Kuv tsis tau siv lub luag haujlwm no, yog li kuv tshem lub roj teeb los ua kom lub chaw taws teeb yuag dua.
  • Kuv ntxiv qhov "tig txhua yam tawm" khawm.
  • Kuv ntxiv cov tswv yim LEDs.

Qib nyuaj: Nruab nrab

Cov khoom siv xav tau:

  • 1 lub thawv yas PolyCase thiab PolyCase
  • 1 Feather HUZZAH nrog ESP8266 Adafruit
  • 1 ib nrab-qhov loj me uas muag tau lub khob cij Adafruit
  • 3 leds Adafruit
  • 3 siab thiab nqaim laub khawm Adafruit
  • 1 luv thiab dav laub khawm Adafruit
  • 7 3.3k resistors Amazon
  • 1 USB hom-A txiv neej ntsaws Adafruit
  • hlau Sparkfun
  • polyurethane kua nplaum Lowes

Cov cuab yeej xav tau:

  • Soldering hlau Amazon
  • Dremel (yog tias koj tsis muaj, rab riam siv hluav taws xob yuav txaus) Lowes
  • Laum xovxwm (yog tias koj tsis muaj, ib txhais tes yuav txaus) Lowes

Kauj Ruam 1: Tsim

Tsim
Tsim

Microcontroller:

Raws li microcontroller, Kuv siv plaub Huzzah nrog ESP8266, ua los ntawm Adafruit, rau cov laj thawj hauv qab no:

  • Nws muaj peev xwm wifi
  • Nws yog pheej yig ($ 18.95 rau qhov sib dhos ua ke)
  • Nws yog qhov me me (23mm x 51mm x 8mm / 0.9 "x 2" x 0.28 ")
  • Nws muaj 9 GPIOs tus pin (Kuv xav tau 7)

Lub microcontroller yuav siv los ntawm 5V ntawm lub qhov hluav taws xob USB.

4 GPIOs yuav raug siv los ua tswv yim los ntawm cov nyees khawm, thiab 3 yuav siv los ua cov zis rau lub teeb ci. Ib qho ntawm cov nyees khawm (ib qho uas tua tawm txhua lub teeb) muaj LED suav nrog, yog li nws tsis muaj kev nkag siab rau kuv kom muaj kev tawm tswv yim coj rau lub pob no.

Nyees khawm:

Tus qauv tsim rau cov nyees khawm tau yooj yim heev: rau 3 lub nyees khawm me me, Kuv tau xaiv cov cuab yeej hloov pauv, tseem hu ua SPST hloov pauv. Kuv khaws cov uas siab, yog li lawv yuav sawv ntawm qhov thaiv. Txog khawm loj dua, Kuv kuj tau xaiv qhov hloov SPST, tab sis luv dua, yog li nws yuav rov qab rau hauv qhov thaiv, lub hom phiaj yog tias nws yuav tsis raug thawb los ntawm kev sib tsoo. Nws tseem muaj tus coj sab hauv, thiab muaj tus cim I/O.

Raws li tau qhia hauv daim duab saum toj no, cov hloov khoom siv hauv av rau GPIO los ntawm 3.3k rub-down resistor, thiab muab 3.3V rau GPIO thaum nias.

LEDs:

Kuv siv 5 hli daj LEDs. Lawv tau yooj yim txuas nrog GPIO ntawm ib kawg, thiab hauv av los ntawm 3.3k resistor ntawm lwm qhov kawg.

Cov ntaub ntawv:

Rau lub thawv ntawv, Kuv xav tau lub thawv yas nrog qhov ntev ntawm yam tsawg 51mm x 97mm x 11mm / 2.0 "x 3.8" x 0.4 ". Lub thawv uas kuv tau xaiv muaj qhov ntev ntawm 52mm x 100mm x 19mm / 2.0" x 3.9 "x 0.7 "ib. Qhov no txhais tau tias kuv yuav tsum tau teeb tsa ob peb lub thawv ntawv lossis ntawv tom qab lub khob cij, kom ntseeg tau tias lub kaw lus raug thawb tawm nrog lub hau ntswj, thiab cov nyees khawm yuav tawm ntawm lub hau.

Tag nrho cov khoom siv tau muab tso rau ntawm lub khob cij uas muag tau. Qhov no ua rau nws nyob ruaj khov thiab nyab xeeb dua li lub rooj noj mov ib txwm muaj, thiab tsis tas yuav tsim tus qauv tsim PCB. Kuv pom tias daim ntawv tso cai ib nrab ntawm Adafruit ua haujlwm tau zoo.

Kauj Ruam 2: Ua Pawg Thawj Coj

Pom zoo: