Cov txheej txheem:

Slack Status Updater Nrog ESP8266: 5 Cov Kauj Ruam (nrog Duab)
Slack Status Updater Nrog ESP8266: 5 Cov Kauj Ruam (nrog Duab)

Video: Slack Status Updater Nrog ESP8266: 5 Cov Kauj Ruam (nrog Duab)

Video: Slack Status Updater Nrog ESP8266: 5 Cov Kauj Ruam (nrog Duab)
Video: NEED FOR SPEED NO LIMITS (OR BRAKES) 2024, Hlis ntuj nqeg
Anonim

Tinkercad Cov Haujlwm »

Txoj haujlwm no pab ua kom koj hnub yooj yim dua yog tias koj yog ib tus neeg ua haujlwm nyob deb siv Slack. Kuv yuav qhia koj yuav tsim nws li cas siv ESP8266 wifi board. Tsis txhob hnov qab cov vis dis aus saum toj no rau kev saib xyuas.

Txawm hais tias koj tshiab los siv Slack lossis koj nyuam qhuav tau siv nws ntau dua tam sim no, koj yuav nkag siab qhov tseem ceeb ntawm kev teeb tsa koj li xwm txheej. Nws ua rau koj cov npoj yaig paub yog tias koj muaj sijhawm los tham, hauv kev sib tham, tawm mob, thiab lwm yam.

Tsis nco teeb tsa nws thaum koj tawm ntawm koj lub rooj, thiab koj tuaj yeem cuam tshuam los ntawm qee tus neeg uas xav tias koj muaj.

Kuv xav tias nws yuav pab kuv nco ntsoov kom muaj lub cuab yeej siv lub cev ntawm kuv lub rooj uas tuaj yeem teeb tsa kuv li Slack xwm txheej rau kuv. Txoj haujlwm no yog kev koom tes nrog Brian Lough, uas yog ESP whiz thiab sau ntau Arduino API cov tsev qiv ntawv suav nrog qhov tshiab rau Slack. Koj yuav nco qab kuv tus neeg rau npe hauv YouTube, uas tseem tau sau siv ib ntawm Brian's API cov tsev qiv ntawv.

Yog tias koj tshiab rau Arduino, sim kuv chav kawm Arduino dawb ua ntej.

Khoom siv

Rau qhov haujlwm no, koj yuav xav tau:

  • ESP8266 wifi board xws li NodeMCU lossis D1 mini
  • Teb hloov
  • Txoj hlua hlau
  • Multimeter
  • Soldering hlau
  • Cov hlua hlau
  • Yaug cutters
  • Pab cov cuab yeej thib peb
  • USB cable
  • Khoos phis tawj siv software Arduino
  • Wifi network npe thiab tus password
  • Slack access token (kawm yuav ua li cas kom tau qhov no hauv cov kauj ruam tom ntej)
  • 3D tshuab luam ntawv (Kuv siv Creality CR-10s Pro)
  • Filament

Txhawm rau ua raws qhov kuv tab tom ua haujlwm, ua raws kuv hauv YouTube, Instagram, Twitter, Pinterest, thiab sau npe yuav rau kuv tsab ntawv xov xwm. Raws li Amazon Kev Koom Tes Kuv khwv tau los ntawm kev tsim nyog yuav khoom koj ua siv kuv cov koom nrog txuas.

Kauj Ruam 1: Khiav Arduino Slack API Library Qauv Qauv Cai

Image
Image

Arduino Slack API tsev qiv ntawv tau txais koj daim ntawv lees paub thiab tso cai rau ESP8266 los tswj cov app hauv Slack. Nws yooj yim los teeb tsa koj lub app thiab tau txais koj tus yuam sij, uas koj tuaj yeem ntsaws rau hauv tus qauv Arduino kos duab thiab sawv thiab khiav hauv ob peb feeb xwb. Saib Brian txoj kev taug cov vis dis aus thiab tshawb xyuas lub tsev qiv ntawv nyeem rau cov lus qhia.

Txog lub hom phiaj ntawm kev sim, koj yuav zoo li xav tsim Slack chaw ua haujlwm tshiab rau txoj haujlwm no ua ntej teeb tsa nws xoob ntawm koj cov npoj yaig tiag. Hauv ntau qhov xwm txheej, koj yuav tsum tau txais koj daim ntawv pom zoo los ntawm koj lub tuam txhab Slack tus thawj coj ua ntej koj tuaj yeem siv nws nrog txoj haujlwm no lawm. Hmoov zoo, lub app tsis thov kev tso cai ntau dhau, tsuas yog koj tus kheej li xwm txheej thiab muaj.

Kauj ruam 2: Tsim Circuit Court

Tsim Circuit Court
Tsim Circuit Court
Tsim Circuit Court
Tsim Circuit Court

Los ntawm no, nws yog txhua yam hais txog kev sib cuam tshuam ntawm lub cev thiab yam xwm txheej twg koj ua haujlwm nws teeb tsa rau koj. Kuv tau xaiv los siv qhov hloov pauv hloov pauv los hu rau hauv kuv li xwm txheej los ntawm pawg xaiv nyob ib puag ncig. Kuv siv lub ntsuas ntsuas los txiav txim seb qhov hloov pauv txuas mus rau txoj haujlwm twg.

Daim duab hluav taws xob piav qhia cov kev sib txuas hauv qab no:

  • Hloov pauv mus rau ESP8266 hauv av
  • Hloov ua rau ESP8266 GPIO pins 13, 12, 14, 4, 5, thiab 16 (NodeMCU pins cim D7, D6, D5, D2, D1, thiab D0)
  • 10K rub tawm tus tiv thaiv ntawm tus pin 16 thiab 3V (tus pin no tsis muaj kev rub sab hauv zoo li lwm tus)

Kuv ib txwm nyiam ua cov laug cam uas tsis muaj ntawv pov thawj ntawm kuv cov phiaj xwm ua ntej ua rau daim ntawv kawg. Hauv qhov no, Kuv kuj tau ntxiv qee qhov LEDs rau qhov qauv los pab kuv debug kuv cov cai.

Kuv tau suav nrog qhov pib hloov pauv txoj cai rau rau qhov xwm txheej. Rub nws los ntawm hauv qab ntawm cov kauj ruam no.

Yog tias koj xav ntxiv ntau txoj haujlwm hloov pauv, koj tuaj yeem tshem tawm qhov kev debugging los ntawm cov cai thiab siv RX thiab TX pins kom tau txais ob qhov kev nkag mus ntxiv ntawm ESP8266, lossis hloov kho rau ESP32 rau ntau tus pin.

Kauj Ruam 3: Cov Ntawv Luam 3D

3D Luam Ntawv Tshaj Tawm
3D Luam Ntawv Tshaj Tawm

Kuv ua qauv ib qho thaiv uas siv Tinkercad txhawm rau hloov qhov hloov pauv thiab lub rooj tsav xwm hauv.

USB cable tawm sab. Koj tuaj yeem luam Tinkercad tsim los ua koj tus kheej hloov kho ua ntej luam, lossis rub tawm STL cov ntaub ntawv ncaj qha los ntawm cov kauj ruam no. Kuv siv Cura los hlais STL rau kuv lub tshuab luam ntawv.

Kev nthuav tawm: thaum lub sijhawm sau ntawv no, Kuv yog ib tus neeg ua haujlwm ntawm Autodesk, uas ua rau Tinkercad.

Kauj Ruam 4: Koj Cov Cai thiab Qhov Taw Qhia Duab

Koj Cov Cai thiab Qhov Taw Qhia Duab
Koj Cov Cai thiab Qhov Taw Qhia Duab

Kauj ruam kawg yog txiav txim siab qhov xwm txheej tseeb uas koj xav kom hloov ntawm thiab tsim qee qhov cim qhia kom mus nrog lawv.

Txog kev sau cov xwm txheej Slack, Kuv pom daim ntawv no dag dag ntawv kom muaj txiaj ntsig zoo. Tab sis koj tuaj yeem siv ib qho emoji txhawb nqa los ntawm koj lub chaw ua haujlwm-tsuas yog yuj hla nws hauv kab ntawv emoji kom pom nws daim ntawv lo, thiab ntaus nws rau hauv koj daim duab Arduino.

Kuv tau suav nrog Illustrator cov ntaub ntawv thiab tus qauv PDF rau cov duab kuv tau tsim rau txoj haujlwm no (ntawv ntawv loj).

Pib ntawm kab 156 ntawm qhov yooj yim kos duab los ntawm ua ntej, koj tuaj yeem hloov koj li xwm txheej uas xav tau rau rau teev. Nov yog kuv li:

hloov (uasStatus) {

rooj plaub 0: slack.setPresence (SLACK_PRESENCE_AWAY); profile = slack.setCustomStatus ("Taug kev tus dev", ": dog2:"); tawg; rooj plaub 1: slack.setPresence (SLACK_PRESENCE_AWAY); profile = slack.setCustomStatus ("Noj su", ": hamburger:"); tawg; rooj plaub 2: slack.setPresence (SLACK_PRESENCE_AUTO); profile = slack.setCustomStatus ("Hauv kev sib tham", ": daim ntawv qhia hnub:"); tawg; rooj plaub 3: slack.setPresence (SLACK_PRESENCE_AUTO); profile = slack.setCustomStatus ("Muaj los tham", ": zap:"); tawg; rooj plaub 4: slack.setPresence (SLACK_PRESENCE_AWAY); profile = slack.setCustomStatus ("Lurking", ": crystal_ball:"); tawg; rooj plaub 5: slack.setPresence (SLACK_PRESENCE_AWAY); profile = slack.setCustomStatus ("Offline", ""); tawg; }

Kauj ruam 5: Txaus siab rau

Txaus siab rau!
Txaus siab rau!

Kuv vam tias tsim ib qho ntawm no rau koj lub rooj yuav lom zem thiab muaj txiaj ntsig zoo rau koj. Kuv xav pom koj cov ntawv tshaj tawm hauv "Kuv Ua Nws" ntu hauv qab no.

Yog tias koj nyiam txoj haujlwm no, tej zaum koj yuav txaus siab rau qee qhov ntawm kuv:

  • YouTube Tus Neeg Sau Npe Suav nrog ESP8266
  • Social Stats Tracker Zaub Nrog ESP8266
  • 3 Pib Pib Arduino Yuam Kev
  • Internet Valentine
  • WiFi Huab Cua Qhia Nrog ESP8266

Tsaug rau ua raws nrog! Txhawm rau ua raws qhov kuv tab tom ua haujlwm, ua raws kuv hauv YouTube, Instagram, Twitter, Pinterest, thiab sau npe yuav rau kuv tsab ntawv xov xwm.

Pom zoo: