Cov txheej txheem:

IoT Laser Tsiaj Qho Khoom Ua Si: 5 Kauj Ruam
IoT Laser Tsiaj Qho Khoom Ua Si: 5 Kauj Ruam

Video: IoT Laser Tsiaj Qho Khoom Ua Si: 5 Kauj Ruam

Video: IoT Laser Tsiaj Qho Khoom Ua Si: 5 Kauj Ruam
Video: Tus Neeg Ruam - R-Lin Thoj | New Song [ Official MV ] Nkauj Tawm Tshiab 2023 Hmong Song 2023 2024, Hlis ntuj nqeg
Anonim
Image
Image

Qee lub sij hawm, kuv chav ua noj poob rau tus dev dhuav. Thaum tsis muaj neeg saib xyuas, cov laug cam, cov txaj dev, cov phuam da dej hauv chav ua noj, cov txee hauv chav ua noj thiab cov xim pleev xim tau raug kev txom nyem tag nrho. Txhawm rau pab ua kom kuv tus menyuam lom zem thaum kuv ua haujlwm, Kuv tsim IoT laser tsiaj cov khoom ua si kom nws nyob. Hauv hom pib, lub laser yuav txav ib puag ncig hauv pem teb hauv qhov qauv tsis raug rau lub sijhawm, tom qab uas cov khoom lag luam raug tso tseg kom muab nqi zog rau tus tsiaj. Cov nqi zog yog qhov tseem ceeb yog li lawv tsis poob siab los ntawm cov teeb meem laser thiab nws txhawb kom lawv ua si!

Nws tuaj yeem tswj tau ntawm tus kheej ntawm lub xov tooj smartphone, lossis teeb tsa rau hom pib. Nws kuj tseem tuaj yeem qhib tau los ntawm lub suab siv Google Assistant (hom pib nkaus xwb).

Khoom siv

Txhawm rau tsim txoj haujlwm no, koj yuav xav tau:

  • 2mg995 wb
  • yias thiab qaij sensor mount cov khoom siv
  • 1 micro servo SG90
  • protein ntau los yog sib npaug
  • 650nm Liab Laser Diode Module
  • nodeMCU
  • xaim
  • pcb xab
  • fais fab mov (12v 5A)
  • DC-DC 24V/12V Rau 5V 5A Kauj Ruam Down Buck Converter
  • laug
  • cam khwb cia hlau
  • smartphone/Google lub cuab yeej hauv tsev
  • phom phom
  • kab xev/kua nplaum

Cov software hauv qab no tseem xav tau:

  • Arduino IDE thiab esp8266 lub tsev qiv ntawv
  • IFTTT
  • Blynk app thiab tsev qiv ntawv
  • Google Pabcuam

Kauj ruam 1: Kho vajtse

Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse
  1. Sib dhos cov khoom siv servo mount. Kuv kaw lub hauv paus ntawm nws mus rau pcb, lub sijhawm ntev, kuv yuav kho nws mus rau saum kuv chav ua noj nrog cov ntsia hlau.
  2. Xa mus rau daim duab qhia chaw rau thaiv. Kuj pom cov duab ntawm kuv qhov kev sim tsis zoo ntawm kev siv lub tshuab:)
  3. Kaw lub laser mus rau sab saum toj ntawm lub lauj kaub/qaij servos thiab tseem muab cov kua nplaum rau kho qhov kev pabcuam (Kuv kuj tseem siv lub duav thib ob los ua sawv rau kev kho servo tab sis koj tuaj yeem siv txhua yam).

Sau ntawv:

Cov servos kuv siv yog qhov hnyav heev, koj yuav tau txais tsawg dua vim tias cov haujlwm me me.

Txhua qhov kev pabcuam tuaj yeem kos txog 1200mA (qhov me dua qhov kos tsawg dua), ntxiv lwm ~ 700mA rau nodeMCU thiab koj tau txais qhov siab tshaj ntawm ~ 3100mA. Qhov no yog vim li cas kuv thiaj siv 5A khoom. Kuv xub siv lub khob cij thiab 1A mov, thaum kuv qhib nws, nodeMCU khaws cia rov pib dua. Yog tias koj ntsib teeb meem no, rov txheeb xyuas ob zaug tias koj teeb tsa tuaj yeem muab khoom txaus tam sim no.

Kauj Ruam 2: Software: Blynk App

Software: Blynk App
Software: Blynk App
Tus tsim tawm: Blynk App
Tus tsim tawm: Blynk App
Software: Blynk App
Software: Blynk App
Software: Blynk App
Software: Blynk App
  1. Nruab Blynk App:
  2. Ua raws cov kauj ruam los tsim ib tus as khauj, ib qhov haujlwm tshiab thiab tau txais daim ntawv lees paub
  3. Xaiv lub hom phiaj ntaus ntawv thaum tsim qhov project (nodeMCU)
  4. Sab hauv qhov haujlwm koj yuav ntxiv 5 cov cuab yeej:

    1. Khawm kom qhib/tua lub laser

      1. map rau D0
      2. teeb kom hloov hom
    2. Slider los kho lub kaum sab xis (V0, thaj tsam 0-180)
    3. Slider los kho lub kaum sab xis (V1, thaj tsam 0-180)
    4. Slider los kho kho servo (V3, thaj tsam 0-180)
    5. Khawm kom qhib/tua hom pib

      1. map rau V2
      2. teeb kom hloov hom

Kauj Ruam 3: Software: Arduino IDE

Software: Arduino IDE
Software: Arduino IDE
  1. Nruab Arduino IDE:
  2. Ntxiv blynk thiab esp8266 cov tsev qiv ntawv

    1. Blynk: Yuav ua li cas rau nruab Blynk lub tsev qiv ntawv
    2. esp8266: Yuav Ua Li Cas Nruab ESP8266 Rau Hauv Arduino IDE credit rau mybotic
  3. Code

    1. Rub tawm lossis luam cov cai los ntawm Github (cov ntaub ntawv hauv qab no kuj)
    2. Hauv txoj cai, koj yuav tsum teeb tsa ssid thiab tus password rau koj lub router (wifi).
    3. Koj kuj tseem yuav tsum teeb tsa tus cim token uas tau tsim rau Blynk. Koj tuaj yeem thov lub cim cim ntawm email los ntawm app.
    4. Koj kuj tseem yuav xav kho lub min thiab max kaum ntawm cov servos, cov no tau teeb tsa kom lub laser ib txwm taw tes rau hauv pem teb, thaum thawj qhov kev sim kuv pom tias cov dev yuav caum lub laser nce ntawm phab ntsa:) Khaws nws mus rau hauv pem teb tshwj tsis yog tias koj xav rov kho dua tshiab!
    5. Nco tseg: cov timers tau siv hauv txoj haujlwm no txhawm rau txo tus naj npawb ntawm kev thov mus rau Blynk huab, yog tias muaj kev thov ntau dhau ib pliag, koj yuav raug txiav tawm. Nws tseem yog ib qho tseem ceeb kom ua kom cov lej ua tiav hauv lub voj () ua haujlwm kom tsawg. Xa mus rau kab lus no kom paub ntxiv. Hom pib yuav txav cov servos randomly txhua 2 vib nas this, 10 zaug thiab tom qab ntawd tso qhov kho, koj tuaj yeem kho qhov no rau koj tus kheej xav tau.
    6. Txuas lub nodeMCU rau koj lub khoos phis tawj ntawm usb.
    7. Ua kom ntseeg tau tias lub rooj tsavxwm raug thiab chaw nres nkoj raug xaiv nyob hauv cov cuab yeej.
    8. Tshaj tawm cov cai rau nodeMCU (txoj cai xub khawm nyob rau sab saum toj toolbar).

Kauj Ruam 4: Software: IFTTT

Software: IFTTT
Software: IFTTT
Software: IFTTT
Software: IFTTT
Software: IFTTT
Software: IFTTT

Txhawm rau qhib cov khoom ua si siv Google Assistant, koj yuav tsum tsim daim ntawv thov siv IFTTT.

  1. Tsim ib tus account
  2. Mus rau "Kuv Applets"> "Applet Tshiab"
  3. Nyem rau ntawm "Qhov no" thiab tshawb rau Google tus pab
  4. Xaiv "Hais cov kab lus yooj yim"
  5. Sau rau hauv cov teb raws li koj pom zoo thiab xaiv "tsim ua"
  6. Nyem rau ntawm qhov ntawd thiab tshawb rau webhooks
  7. Xaiv "Ua lub vev xaib thov"
  8. teeb url rau BLYNK_IP/AUTH_TOKEN/hloov tshiab/V2? tus nqi = 1

    1. Txhawm rau kom tau blynk IP los ntawm koj lub tebchaws tsuas yog mus rau kab hais kom ua thiab nkag mus: ping cloud.blynk.cc
    2. Hloov kho tus IP thiab daim ntawv lees paub token hauv qhov url. Nws yuav tsum zoo li:
  9. Thaum lub applet tau txais kev cawmdim, koj tuaj yeem kuaj lub laser siv Google Assistant!

Kauj Ruam 5: Kev Xav Thaum Kawg

Thiab nyob ntawd koj muaj nws, lub suab lossis xov tooj tswj IoT cov khoom ua si tsiaj. Txhawm rau txhim kho txoj haujlwm ntxiv, Kuv yuav ntxiv rooj plaub rau kev sib txuas, thiab tseem muaj lub vev xaib kom koj tuaj yeem saib koj tus tsiaj ua si thaum koj tsis nyob. Kev tswj lub suab tuaj yeem txhim kho los ntawm kev tuaj yeem hais qhia qhov ntev npaum li cas cov khoom ua si khiav rau piv txwv li "tig lub laser rau 5 feeb". Ib txoj hauv kev rov qab kho kho daus yuav zoo ib yam thiab. Txaus siab rau kev tsim thiab tshaj tawm koj qhov kev nce qib hauv qab no!

Pom zoo: