Cov txheej txheem:

WakeupNow - Ntse Tswb Tswb: 8 Kauj Ruam
WakeupNow - Ntse Tswb Tswb: 8 Kauj Ruam

Video: WakeupNow - Ntse Tswb Tswb: 8 Kauj Ruam

Video: WakeupNow - Ntse Tswb Tswb: 8 Kauj Ruam
Video: Paim quav g tau nyiaj ces huaj cheej 8/24/23 2024, Kaum ib hlis
Anonim
WakeupNow - Ntse Tswb Tswb
WakeupNow - Ntse Tswb Tswb

Raws li txhua tus paub, lub neej ntawm cov tub ntxhais kawm nyuaj heev, lawv muaj hnub ntev nrog kev qhuab qhia, ua haujlwm ntau hauv tsev thiab feem ntau, lawv muaj lub neej vwm. Lawv tsis muaj sijhawm rau dab tsi, thiab yog tias koj qhia lawv kom ntxiv qee teev rau hnub uas lawv yuav zoo siab. Hmoov tsis zoo, peb tsis tuaj yeem ua qhov ntawd, tab sis tam sim no cov tub ntxhais kawm tuaj yeem siv peb lub tswb WakeupNow lub tswb uas yuav ua kom ntseeg tau tias koj yuav sawv ntawm lub sijhawm thiab nrawm dua.

WakeupNow yog lub tswb tswb ntse, tsim los kom ntseeg tau tias cov neeg nkees yuav sawv los sai thiab raws sijhawm.

Peb yog leej twg?

Peb tus Computer Science cov tub ntxhais kawm los ntawm Interdisciplinary Center (IDC), Herzliya, Israel uas tau nkees heev los ntawm kev sib txuas cov sijhawm nyuaj thiab tsis khoom - tsev kawm ntawv, txoj haujlwm, tsev neeg, thiab lwm yam.

Peb txhua tus muaj qee qhov nyuaj kom sawv ntxov thaum sawv ntxov thiab vim li ntawd, peb paub txhua yam dag ntxias kom tib neeg sawv txawm tias thaum koj sim siv lub tswb.

WakeupNow yog peb qhov haujlwm kawg hauv chav kawm "Internet of Things (IOT)" chav kawm xav los ntawm Zvika Markfeld. Ua tsaug rau koj qhia rau peb txog chav kawm zoo kawg no.

Peb vam tias lub tswb nrov no yuav ua rau koj sawv los yooj yim dua, thiab koj yuav nyiam.

Khoom siv

• 1 x ESP8266 Board (peb siv Wemos D1 mini)

• 1 x Micro-USB Cables

• 1 x Breadboard

• 1 x Sonar

• 1 x Coj

• 1 x Piezo

• 1 x RGB Coj

• 20 x Jumper Cables

• 1 x Kub & Vaum Sensor (Peb siv DHT22)

• 3 x 10K Ohm Resistor

• 1 x NeoPixel Matrix 8x8

• 1 x Hais Lus

Kauj ruam 1: Kev sib txuas

Kev sib txuas
Kev sib txuas
  1. Muab ESP8266 lub rooj tsavxwm tso rau nruab nrab ntawm Breadboard.
  2. Txuas Micro-USB Cable los ntawm ESP8266 pawg thawj coj saib mus rau USB chaw nres nkoj ntawm lub computer.
  3. Txuas ntawm 5V tus pin ntawm ESP8266 pawg thawj coj rau ntxiv rau (+) ntawm Breadboard (liab jumper cable) thiab nruab nrab ntawm G ntawm ESP8266 board rau rho tawm (-) ntawm Breadboard (xiav jumper cable (zoo li hauv daim duab)).
  4. Sonar kev twb kev txuas

    1. Txuas Gnd rau rho tawm (-) ntawm Breadboard.
    2. Txuas Echo rau tus pin D3 ntawm ESP8266 lub rooj tsavxwm.
    3. Txuas Trig rau tus pin D2 ntawm ESP8266 lub rooj tsavxwm.
    4. Txuas Vcc ntxiv rau (+) ntawm Breadboard.
  5. Coj kev txuas

    1. Txuas ntev ceg nrog 10K Ohm resistor rau pin D4 ntawm ESP8266 pawg thawj coj saib.
    2. Txuas luv ceg mus rau rho tawm (-) ntawm Breadboard.
  6. Piezo kev twb kev txuas

    1. Txuas cov hlua dub txuas rau rho tawm (-) ntawm Breadboard.
    2. Txuas lub xov tooj liab txuas rau tus pin A0 ntawm ESP8266 pawg thawj coj saib.
  7. Hais lus txuas

    Txuas ib qho ntawm cov hlua txuas txuas kom rho tawm (-) ntawm Breadboard thiab qhov thib ob nrog 10K Ohm resistor rau pin D8 ntawm ESP8266 pawg thawj coj saib

  8. RGB Led kev twb kev txuas

    1. Txuas cov hlua jumper daj rau tus pin D5 ntawm ESP8266 pawg thawj coj saib.
    2. Txuas cov hlua hluav taws xob liab nrog 10K Ohm resistor ntxiv rau (+) ntawm Breadboard.
    3. Txuas ntsuab jumper cable rau tus pin D6 ntawm ESP8266 pawg thawj coj saib.
    4. Txuas cov xaim jumper txuas rau tus pin D7 ntawm ESP8266 pawg thawj coj saib.
  9. Kub & Vaum sensor txuas

    1. Txuas 3.3V rau tus pin 3.3V ntawm ESP8266 pawg thawj coj.
    2. Txuas #D4 rau tus pin D4 ntawm ESP8266 pawg thawj coj.
    3. Txuas GND rau rho tawm (-) ntawm Breadboard.
  10. NeoPixel Matrix kev txuas

    1. Txuas DOUT rau tus pin D1 ntawm ESP8266 lub rooj tsavxwm.
    2. Txuas 5V rau ntxiv rau (+) ntawm Breadboard.
    3. Txuas GND rau rho tawm (-) ntawm Breadboard.

Saib

Peb tsis muaj qhov chaw ntxig rau txhua qhov khoom siv yog li peb txuas nrog ib feem ntawm lawv rau txhua theem ntawm lub tswb.

Kauj Ruam 2: Kev Npaj Ua Ntej Software

Kev npaj ua ntej software
Kev npaj ua ntej software
Kev npaj ua ntej software
Kev npaj ua ntej software
Kev npaj ua ntej software
Kev npaj ua ntej software

Arduino IDE Cov

  1. Kev teeb tsa Arduino
  2. Kev them nyiaj yug ESP8266

Adafruit IO

  1. Tsim Account
  2. Ntxiv 3 txau tshiab

    • FaceReaction
    • Kub
    • WakeupTime
  3. Ntxiv Dashboard tshiab hu ua "Tswb Diagnostic"

    1. Ntxiv Kab Kab Kab nrog teeb tsa zoo li hauv cov duab.
    2. Ntxiv Kev ntsuas qhov ntsuas nrog kev teeb tsa zoo li hauv cov duab.
    3. Ntxiv a Stream Block nrog kev teeb tsa zoo li cov duab

Koj tuaj yeem pom lub dashboard zoo li cas hauv cov duab

Blynk

  1. Rub mus rau koj lub xov tooj
  2. Luam theej duab QR Code hauv cov duab kom tau txais txoj haujlwm.

Kauj ruam 3: Code

Rub tawm cov ntawv "finalProject.ino" rau cov cai ntawm txoj haujlwm no.

Qhib cov cai hauv Arduino IDE, thiab xaiv pawg tswj hwm cuam tshuam - "LOLIN (WENOS) D1 R2 & mini".

Thaum koj khiav lub ntsuas saib xyuas kom ntseeg tau tias koj nyob ntawm 9600baud - qhov yuav pab koj taug qab yog tias koj muaj qhov ua yuam kev.

Txhawm rau txuas rau Wi-nkaus, Adfruit IO thiab BLYNK koj yuav tsum hloov kho txhua qhov chaw cuam tshuam hauv cov cai-xyuas kom tseeb tias koj ua nws.

Kauj Ruam 4: Xaiv Thaum Twg Sawv Los

Coj koj lub xov tooj ntawm tes thiab xaiv lub sijhawm kom sawv hauv Blynk app.

Led yuav qhib los ceeb toom rau koj tias koj tau teeb tsa lub tswb thiab lub sijhawm xaiv los sawv los yuav pom ntawm tus lej matrix hauv xim liab.

Kauj Ruam 5: Tswb nrov nrov

Thaum nws yog lub sijhawm sawv los, lub tswb yuav ua lub ntsej muag tshiab ntawm "Lub Ntiaj Teb Tshiab" thiab RGB

coj yuav ntsais hauv cov xim sib txawv.

Qhov no yuav txuas ntxiv mus kom txog thaum tus neeg siv ua tsis tiav lub tswb (hauv cov vis dis aus tom ntej no koj yuav tsis hnov lub tswb thiab yuav tsis pom tus coj vim muaj teeb meem hauv qhov chaw).

Kauj Ruam 6: Nres Tswb - Thawj Kauj Ruam

Txhawm rau nres lub tswb koj yuav tsum xub ua raws cov theem hauv qab no:

  1. Mus ze rau lub tswb, tshwj xeeb yog Sonar, nws yuav tuaj tos koj thiab yuav qhib rau qib tom ntej.
  2. Hauv qib tom ntej, Piazo yuav qhib thiab koj yuav tsum tau khob 3 zaug (tsis muaj kev txwv lub sijhawm ntawm kev khob) txhawm rau qhib cov kauj ruam kawg.

Kauj Ruam 7: Nres Tswb - Kawg Kawg

Hauv kauj ruam kawg, cov zaub hauv NeoPixel Matrix yuav hloov mus rau qhov sib npaug thiab koj yuav tsum xa cov lus teb siv Blynk, teb kom raug thiab lub tswb nrov yuav nres.

Kauj ruam 8: Tom qab Deactivateing Tswb

Tom qab koj deactivate lub tswb, koj yuav pom chav sov (peb xav kom nws yog qhov kub ntawm qhov chaw tam sim no siv kev pabcuam tab sis txhua txoj hauv kev peb sim nws tsis ua haujlwm) hauv NeoPixel Matrix, qhov kub tau xa mus rau Afafruit IO thiab koj tuaj yeem tshawb xyuas hauv lub dashboard kom pom qhov ntsuas kub kawg.

Lub tswb moos no txuag lub sijhawm los ntawm thaum lub tswb tau qhib kom txog rau thaum tsis ua haujlwm thiab xa qhov no mus rau Adafuit IO. Yog tias lub sijhawm sawv ntxov tsawg dua 3 feeb tus neeg siv yuav tau txais kev ceeb toom hauv Fast Reaction Block, lwm qhov yog tias nws siv sijhawm ntau dua 5 feeb los tsa tus neeg siv yuav tau txais email ceeb toom nws nws yuav tsum ua haujlwm ntawm nws tus kheej.

Pom zoo: