Cov txheej txheem:

Universal Chaw Taws Teeb Siv ESP8266 (Wifi Tswj): 6 Cov Kauj Ruam (nrog Duab)
Universal Chaw Taws Teeb Siv ESP8266 (Wifi Tswj): 6 Cov Kauj Ruam (nrog Duab)

Video: Universal Chaw Taws Teeb Siv ESP8266 (Wifi Tswj): 6 Cov Kauj Ruam (nrog Duab)

Video: Universal Chaw Taws Teeb Siv ESP8266 (Wifi Tswj): 6 Cov Kauj Ruam (nrog Duab)
Video: Lub Zog Nruab Nrog (Hmong Dubbed) 2024, Kaum ib hlis
Anonim
Universal Chaw Taws Teeb Siv ESP8266 (Wifi Tswj)
Universal Chaw Taws Teeb Siv ESP8266 (Wifi Tswj)
Universal Chaw Taws Teeb Siv ESP8266 (Wifi Tswj)
Universal Chaw Taws Teeb Siv ESP8266 (Wifi Tswj)
Universal Chaw Taws Teeb Siv ESP8266 (Wifi Tswj)
Universal Chaw Taws Teeb Siv ESP8266 (Wifi Tswj)

Txoj haujlwm no yog txhawm rau hloov cov kev tswj chaw deb ib txwm rau txhua yam khoom siv hauv tsev xws li AC, TV, DVD player, suab paj nruag, cov cuab yeej SMART !!! Ua tag nrho cov khib nyiab ntawm cov chaw deb deb nyob ib puag ncig, ua rau peb puzzle !!!

Txoj haujlwm no yuav cawm peb los ntawm cov khoom tsis zoo los ntawm kev hloov pauv txhua qhov los ntawm ONE REMOTE!

2 feem ntawm txoj haujlwm no:

  • DECODING YUAV REMOTE
  • ENCODING ESP8266 NODEMCU 1.0 (ESP-12E module) lossis ib qho esp8266 version nrog kev sib txuas ttl

TSEEM CEEB: THOV NYEEM NTAWV TSHWJ XEEB TSHUAJ TSHAJ PLAWS YUAV TSUM siv sijhawm 3 feeb tab sis tsis txhob nyeem ib nrab thiab ua rau koj qhov puas …. Kuv yuav tsis muaj lub luag haujlwm

Kauj Ruam 1: Kho Nodemcu Nrog Arduino IDE

Kho Nodemcu Nrog Arduino IDE
Kho Nodemcu Nrog Arduino IDE
Kho Nodemcu Nrog Arduino IDE
Kho Nodemcu Nrog Arduino IDE
Kho Nodemcu Nrog Arduino IDE
Kho Nodemcu Nrog Arduino IDE
  • Ua ntej tshaj plaws txuas Nodemcu (kuv ib tus yog lolin v3, amica thiab lwm yam clones yuav ua haujlwm ib yam nkaus) nrog khoos phis tawj lossis laptop.
  • Tam sim no teeb tsa tus tsav tsheb ntawm nodemcu (google tshawb nrhiav yuav pab tau).
  • Tom qab qhov no qhib Arduino IDE (Ofcourse koj yuav tsum rub nws thiab teeb nws)
  • Nyem rau ntawm "Cuab Yeej" ntawm Arduino toolbar
  • Nyem rau ntawm "Board"
  • Xaiv "Tus Thawj Saib Xyuas Haujlwm" thiab tshawb nrhiav esp8266 nruab nws (yuav siv qee lub sijhawm los ua kom tiav)
  • Tam sim no, xaiv "Sketch" los ntawm arduino toolbar
  • Xaiv "suav nrog Lub Tsev Qiv Ntawv" los ntawm qhov ntawd xaiv "Tswj cov tsev qiv ntawv"
  • Nrhiav "IRremoteESP8266" thiab nruab nws

Tam sim no kev teeb tsa tau ua tiav tsuas yog los ntawm "Cuab Yeej" peb yuav tsum mus rau "Cov laug cam" Xaiv "NodeMcu 1.0 (ESP 12-E)" lossis lwm yam ntawm ESP8266.

Kauj Ruam 2: DECODING Chaw Taws Teeb | CIRCUIT | Code

DECODING a Remote | CIRCUIT | Code
DECODING a Remote | CIRCUIT | Code
DECODING a Remote | CIRCUIT | Code
DECODING a Remote | CIRCUIT | Code
DECODING a Remote | CIRCUIT | Code
DECODING a Remote | CIRCUIT | Code
DECODING a Remote | CIRCUIT | Code
DECODING a Remote | CIRCUIT | Code

Yog li, txhawm rau ua kom thoob ntiaj teb nyob deb peb yuav tsum tau txiav txim siab lwm qhov kev hais tawm xws li kom tau txais IR hexadecimal cov lej tso tawm los ntawm txhua lub pob ntawm qhov chaw nyob. Tsuas yog nyiam hais lus thoob ntiaj teb peb yuav tsum paub txhua yam lus !!! LOS YOG kawm lus Askiv! Txawm hais tias kuv hlub kuv niam tus nplaig Bengali cov lus qab tshaj plaws !! Tiag tiag nws yog, tshawb nrhiav nws …

Yog li cov khoom siv xav tau los txiav txim qhov chaw deb:

  • Ntoo board
  • TSOP1738 IR tus txais lossis qee qhov lwm tus tau txais IR
  • dhia

Tam sim no, ua raws cov lus hais saum toj no tab sis tom qab xa cov duab kos mus rau nodemcu los ntawm Arduino.

  • Qhib Arduino thiab txuas lub nodemcu rau laptop lossis khoos phis tawj
  • Los ntawm "Cov Ntaub Ntawv" xaiv piv txwv mus thiab los ntawm IRremoteESP8266 xaiv IRrecvDump
  • Upload rau nodemcu

Txuas TSOP1738 mus rau Nodemcu raws li lub Circuit Court thiab qhib qhov "serial monitor" los ntawm Arduino kom pom cov lej txiav txim siab hex-code ntawm ib qho chaw deb li cov duab tau hais los saum no. Tseem uploading cov cai rau siv hloov tshiab nws raws li nws tau ntev Kuv tsis wotrking ntawm no ntxiv … xav tias hloov pauv hauv github

CODE:

Kauj ruam 3: Encoding Nodemcu | CIRCUIT

Encoding Nodemcu | CIRCUIT
Encoding Nodemcu | CIRCUIT
Encoding Nodemcu | CIRCUIT
Encoding Nodemcu | CIRCUIT
Encoding Nodemcu | CIRCUIT
Encoding Nodemcu | CIRCUIT
Encoding Nodemcu | CIRCUIT
Encoding Nodemcu | CIRCUIT

Tom qab txiav txim siab qhov kev tshem tawm tam sim no nws tau tig los tso cov lej hex rau Nodemcu kom nws tuaj yeem muab IR coj cov lus txib kom tso tawm cov cim hex-code.

  • NCO TSEG: tsis tuaj yeem txuas IR coj ncaj qha rau Nodemcu ua rau nws tsis tuaj yeem xa khoom tam sim no txaus.
  • Yog li xav tau transistor ntsuas IR LED piv txwv li teeb liab los ntawm Nodemcu mus rau transistor ces IR LED.
  • Transistor zoo li 2N222, 2N3904, BC547 ua haujlwm tab sis

Transistor 2N222, 2N3904 tus neeg khaws khoom tam sim no: 600mA

Transistor BC547 tus neeg khaws khoom tam sim no: 100mA

ob txoj haujlwm…

CAUG ZOO TSHAJ PLAWS COLLECTOR, EMITTER, BASE TERMINALS li BC547 thiab 2N222 muaj qhov sib txawv. Kuv tau siv BC547 vim nws yooj yim siv thiab ua haujlwm tau zoo.

Txoj cai tau muab los ntawm "IRremoteESP8266" piv txwv "IRserver" hloov kho raws li qhia hauv daim duab.

Circuit Court raws li qhia Thov NCO TSEG Kuv tau siv BC547 transistor thiab tsis muaj kev tiv thaiv nruab nrab thiab D2 tus pin.

COLLECTOR, EMITTER, YUAV TSUM MUAJ NTAWV NYEEM hauv daim duab. Tsis txhob ua qhov zoo ib yam rau lwm tus neeg hloov pauv

EDITS: Khab nias "3615JMD"

Hloov kho:

Kuv puas tuaj yeem hais qhia 2 qhov kev txhim kho: 1) yog tias ib qho hloov pauv: uint32_t code = strtoul (server.arg (i).c_str (), NULL, 10); los ntawm qhov no uint32_t code = strtoul (server.arg (i).c_str (), NULL, 16); Lub vev xaib lees txais HEX cov lej ncaj qha. Tsis tas yuav hloov kho tus kheej rau decimal!

2) Kuv tau txhim kho tus tuav haujlwm kom muaj peev xwm ua haujlwm nrog ntau hom IR. Zoo thaum peb xav tswj hwm ntau yam khoom siv los ntawm ntau hom: (ntau hom tuaj yeem ntxiv nrog hloov/rooj plaub)

tsis muaj dab tsi handleIr ()

{rau (uint8_t i = 0; i <server.args (); i ++) {if (server.argName (i) == "rcmm") {// format pour la freebox uint32_t code = strtoul (server.arg (kuv).c_str (), NULL, 16); irsend.sendRCMM (chaws, 32); Serial.println (chaws); } lwm tus yog (server.argName (i) == "rc6") {// format pour la TV phillips uint32_t code = strtoul (server.arg (i).c_str (), NULL, 16); irsend.sendRC6 (code, 20); Serial.println (chaws); }} tuavRoot (); } HTTP txuas yuav tsum tau hloov kho raws li qhov tseeb:…. href = / "ir? rcmm = 2400260C …….…. href = \” ir? rc6 = 0000C….

Kauj ruam 4: Encoding Code

Encoding Txoj Cai
Encoding Txoj Cai
Encoding Txoj Cai
Encoding Txoj Cai

Kuv tau coj cov cai los ntawm cov piv txwv ntawm "IRremoteESP8266", "IRserver".

Tab sis muaj qee qhov kev hloov pauv kom ua tiav koj li ntawv pov thawj wifi - Wifi ssid, Wifi password

Lub Vev Xaib raws tus lej (hais xim daj) - Cov lej no yog daim ntawv zauv ntawm hexadecimal IR cov lej. Cov lej zauv no tau dhau mus rau ESP8266 raws li cov lus sib cav hloov mus rau hex-code thiab xa mus rau IR LED.

TSEEM CEEB: Tom qab DECODING REMOTE BUTTON CONVERT THE HEXADECIMAL CODE TO DECIMAL AND REPLACE IT In the Arduino program. Nws tsis nyuaj heev los hloov hex rau decimal, tshawb hauv google rau online hexadecimal rau decimal converter.

cov duab yog piav qhia tus kheej !!! Ntau tus lej qub (2017), zoo siab los kho..

CODE:

Kauj ruam 5: CONTROLLING

Tswj
Tswj
Tswj
Tswj
Tswj
Tswj

Peb tuaj yeem tswj hwm nws los ntawm lub vev xaib sib txuas server … tus IP ntawm ESP8266 tus qauv ntawm peb lub router tuaj yeem paub los ntawm kev qhib lub koos pij tawj saib tom qab rub tawm cov cai. Raws li hauv daim duab kuv yog 192.168.0.1

Ntawm kev qhib tus IP no hauv txhua lub browser ntawm lub xov tooj ntawm tes lossis lub laptop peb tuaj yeem pom nplooj ntawv raws li qhia hauv daim duab.

LOS YOG Lwm Yam Rau Qhov Zoo thiab yooj yim peb tuaj yeem siv Android app …

"HTTP YUAV TSUM SHORTCUT" app thiab sau qhov chaw nyob kom yooj yim ua txoj cai. Raws li hauv daim duab, peb tuaj yeem ntxiv cov widget ntawm lub vijtsam hauv tsev kom nkag tau yooj yim cov nyees khawm virtual thiab tau txais cov nyees khawm nyob deb.

Cov duab piav qhia tus kheej.

Yog li tsis txhob sau ntawv hauv qhov program peb tuaj yeem hla qhov kev sib cav "CODE" Nrog rau qhov txiav txim zaum kawg ntawm HEXADECIMAL CODE EXTRACTED LOS NTAWM DECODING REMOTES DIRECTLY hauv WIDGET

TSEEM CEEB: THOV NYEEM NTAWV TSHWJ XEEB TSHUAJ TSHAJ PLAWS YUAV TSUM siv sijhawm 3 feeb tab sis tsis txhob nyeem ib nrab thiab ua rau koj qhov puas …. Kuv yuav tsis muaj lub luag haujlwm

Kauj Ruam 6: Txoj Haujlwm Ntim-g.webp" />

Pom zoo: