Cov txheej txheem:

ESP8266/Arduino MQTT Memo Minder W/LCD (AKA Teenage Gamer Attention Getter!): 4 Kauj Ruam
ESP8266/Arduino MQTT Memo Minder W/LCD (AKA Teenage Gamer Attention Getter!): 4 Kauj Ruam

Video: ESP8266/Arduino MQTT Memo Minder W/LCD (AKA Teenage Gamer Attention Getter!): 4 Kauj Ruam

Video: ESP8266/Arduino MQTT Memo Minder W/LCD (AKA Teenage Gamer Attention Getter!): 4 Kauj Ruam
Video: ESP8266/Arduino MQTT Text Memo Notifier 2024, Kaum ib hlis
Anonim
Image
Image

Puas muaj cov tub ntxhais hluas uas kaw lawv tus kheej mus ua si lawv cov game online nrog lub mloog pob ntseg? Nkees ntawm lawv tsis hnov koj qw rau lawv lossis tsis teb lawv cov ntawv lossis hu xov tooj? Yog … US TOO! Qhov ntawd yog qhov kev txhawb siab rau kuv qhov tseeb gizmo tau tsav los ntawm (Ntxiv rau nws tsuas yog lom zem los tsim). Nres lub pov haum me me no nyob rau ntawm lawv lub vijtsam. Thaum nws nyob ntsiag to, nws tsuas yog zaum nyob ntawd xav txog nws tus kheej kev lag luam. Tab sis … thaum koj xa nws cov lus, nws tau txais OBNOXIOUS me ntsis thiab lub suab nrov thiab ntsais LED'S nrog rau koj cov lus ntawm LCD … TSEEM CEEB tau txais koj tus hluas uas muaj txiaj ntsig mloog. Yog li nyeem, txheeb xyuas cov vis dis aus saum toj no, thiab tsim koj tus kheej ib yam.

Kauj Ruam 1: Yuav tsum kho vajtse thiab sib txuas

Kho vajtse yuav tsum tau thiab Hookup
Kho vajtse yuav tsum tau thiab Hookup
Kho vajtse yuav tsum tau thiab Hookup
Kho vajtse yuav tsum tau thiab Hookup

XEEM:

ESP8266 NodeMCU 1.0 (Txhua ESP yuav tsum ua haujlwm)

1602 lossis 2004 LCD nrog Serial/I2C Interface

Momentary Push Button

Cov qhob cij

LED

Cov neeg dhia

HOOKUP:

ESP8266 ----------- LCD ----------- BUTTON ----------- BUZZER ------------- LED

Grnd ----------------- Grnd ---------- Pole 1 -------------- Grnd ------ ------------ Grnd

Vcc ---------------------- Vcc

D6 ------------------------------------------------------- --------------------------------------- LongLeg

D7 ----------------------------------------------------------------------- -------------- Phab 2

D4 -------------------------------------- 2nd Ncej

D1 ---------------------- SCL

D2 -------------------- SDA

Kauj ruam 2: Software Yuav Tsum Tau thiab Kho

Yuav tsum tau Software thiab teeb tsa
Yuav tsum tau Software thiab teeb tsa
Yuav tsum tau Software thiab teeb tsa
Yuav tsum tau Software thiab teeb tsa
Yuav tsum tau Software thiab teeb tsa
Yuav tsum tau Software thiab teeb tsa

Kev xav: Kev paub thiab kev xyaum siv Arduino IDE thiab tsev qiv ntawv.

Yuav tsum tau Software:

  • Arduino IDE (Kuv siv 1.8.5)
  • Android App MQTT Dash (Tsis paub yog tias muaj iOS version)
  • Lub Vev Xaib

Kev teeb tsa Software:

  1. Android App MQTT DashUse tib tus neeg siv.subscribe (Tseem hu ua Topic) cov ntsiab lus raws li hauv qab no. Qhov tseem tshuav ntawm lub neej ntawd 'yuav tsum yog OK. Ua cov ntsiab lus pom ntawm lub vev xaib saum toj no rau chaw nres nkoj# thiab server npe lub npe:
  2. Arduino Sketch (Programming uas xav tau kev hloov pauv kuj tau hais tawm hauv daim duab)

    • I2C Chaw Nyob ntawm koj lub LCD
    • WiFi Creds
    • MQTT Broker Info (xaiv/xaiv tus kheej koj muab)

      1. Txoj hlua clientId = "YOUR_CHOICE_HERE";
      2. client.subscribe ("YOUR_Topic_HERE")

Kauj ruam 3: Kev ua haujlwm

Kev ua haujlwm
Kev ua haujlwm

Thaum Qhib MQTT Dash App:

  1. Nyem PLUS kos npe rau sab xis.
  2. Xaiv Hom 'Ntawv'.
  3. Lub npe yog koj xaiv.
  4. Sau koj lub Npe Lub Npe ntawm no raws li tau hais hauv kauj ruam dhau los.
  5. Nyem Disk nyob rau sab saud kom txuag.
  6. Qhib Pobzeb teev los ntawm lub npe xaiv hauv qib 3 saum toj no.
  7. Sau cov ntawv dawb ntawm kab lus nthuav qhia. Nyem SET
  8. Cov lus yuav tsum tshwm ntawm LCD yog txhua yam ua haujlwm raws li xav tau.
  9. Kom tshem cov lus xa lus tsis pub leej twg paub.
  10. LOS YOG… Nias lub khawm txuas rau ESP ib pliag kom pom tseeb.

Kauj Ruam 4: Txhua Lub Boxed Up and Ready to MQTT

Tau khaws lub thawv khoom siv tes ua thiab khawm zoo dua tam sim no thiab muab tso ua ke hauv qhov no.

Pom zoo: