Cov txheej txheem:

Ntse Tsev Telegram Bot Nrog Nodemcu (esp8266, Txuas, Ds18b20): 8 Kauj Ruam
Ntse Tsev Telegram Bot Nrog Nodemcu (esp8266, Txuas, Ds18b20): 8 Kauj Ruam

Video: Ntse Tsev Telegram Bot Nrog Nodemcu (esp8266, Txuas, Ds18b20): 8 Kauj Ruam

Video: Ntse Tsev Telegram Bot Nrog Nodemcu (esp8266, Txuas, Ds18b20): 8 Kauj Ruam
Video: thauj tais laus los txog tsev lawm zoo siab thiab ho tu siab thiab 2024, Kaum ib hlis
Anonim
Ntse Tsev Telegram Bot Nrog Nodemcu (esp8266, Txuas, Ds18b20)
Ntse Tsev Telegram Bot Nrog Nodemcu (esp8266, Txuas, Ds18b20)

Hauv qhov kev qhia no kuv yuav qhia koj yuav tsim telegram bot thiab tswj lub tsev siv nws li cas.

Tab sis ua ntej tshaj, sau npe yuav kuv Telegram channel, thiab tshawb pom cov haujlwm tshiab sai dua lwm tus. Nws yog kev txhawb siab rau kuv.

Wb mus!

Kauj Ruam 1: Cheeb Tsam

Cheebtsam
Cheebtsam

Koj yuav xav tau:

  • NodeMCU
  • ds18b20
  • 4x relay board
  • breadboard, xov hlau, 4.7kohm resistor
  • 5v2a zog
  • telegram tus account

Kauj ruam 2: Kev thaiv kab

Thaiv
Thaiv
Thaiv
Thaiv

Txuas tag nrho cov khoom siv zoo li ntawm cov phiaj xwm. Tsis txhob hnov qab txog 4.7kohm resistor rau ds18b20.

Kauj ruam 3: Nruab Libraries

Koj tuaj yeem ua nws manually. Mus rau C/cov neeg siv/cov neeg siv/cov ntaub ntawv/arduino/tsev qiv ntawv

Kauj Ruam 4: Tau Ds18b20 Chaw Nyob

Tau Ds18b20 Chaw Nyob
Tau Ds18b20 Chaw Nyob

Rub cov duab kos rau nodemcu thiab khiav daim duab. Qhib serial chaw nres nkoj thiab tau txais sensor qhov chaw nyob

Kauj Ruam 5: Tsim Telegram Bot

Tsim Telegram Bot
Tsim Telegram Bot

Tiv tauj nrog botfather.

Tsim bot tshiab.

Coj nws token.

Kauj Ruam 6: Programming Nodemcu

Programming Nodemcu
Programming Nodemcu

Txuas nodemcu rau PC.

Qhib daim duab.

Kho ssid, password, bot token, ds18b20 chaw nyob.

Upload cov duab kos rau aduino.

Kauj Ruam 7: Nrog koj zoo siab

Nrog koj zoo siab
Nrog koj zoo siab

Ccommands rau bot:

  • 1on, 1off, 2on, 2off, 3on, 3off, 4on, 4off
  • kub

Kauj Ruam 8: Hu Rau Kuv

Koom nrog kuv telegram channel rau ntau txoj haujlwm.

Nws yog kuv qhov kev txhawb siab rau cov haujlwm loj tshaj plaws.

Tsis tas li, kuv instagram

Pom zoo: