Cov txheej txheem:

Hav Pillow IoT Tswb: 8 Kauj Ruam (nrog Duab)
Hav Pillow IoT Tswb: 8 Kauj Ruam (nrog Duab)

Video: Hav Pillow IoT Tswb: 8 Kauj Ruam (nrog Duab)

Video: Hav Pillow IoT Tswb: 8 Kauj Ruam (nrog Duab)
Video: Xav rov ntsib koj ib zaug dua. 8/8/2018 2024, Kaum ib hlis
Anonim
Hav Pillow IoT Tswb
Hav Pillow IoT Tswb
Hav Pillow IoT Tswb
Hav Pillow IoT Tswb

Paub ib tus neeg uas niaj hnub tawm tsam kom tawm ntawm lub txaj, tuaj lig rau kev ua haujlwm thiab koj tsuas yog xav muab rau lawv thaum sawv ntxov. Tam sim no koj tuaj yeem ua koj tus kheej Hey Pillow. Sab hauv lub tog hauv ncoo tau txuam nrog qhov tsis txaus siab piezo buzzer uas koj tuaj yeem tswj hwm ntawm koj lub xov tooj, yog li koj tuaj yeem tso nws tawm qhov twg thiab txhua lub sijhawm koj xav tau nrog Arduino ESP8266 kho vajtse.

Kauj ruam 1: Cov ntaub ntawv

Khoom siv
Khoom siv

Koj yuav tsum tau sau cov ntaub ntawv no los pib ua haujlwm:

  • Buzzer
  • Cov Khoom Siv Hluav Taws Xob
  • Laub Khawm
  • Usb Fais Adapter
  • Breadboard Xov
  • Liab Led (raws li qhia)
  • Ada txiv hmab txiv ntoo Huzzah Board
  • Ib Nrab Loj Cij Board
  • Hauv ncoo
  • Kov Capacitive Standalone Sensor
  • Solder

Kauj Ruam 2: Cov Hluav Taws Xob Cov Hluav Taws Xob rau Qhov Tsis Txaus Siab Capacitive Touch Sensor

Solder Wire rau Standalone Capacitive Touch Sensor
Solder Wire rau Standalone Capacitive Touch Sensor

Hauv cov kauj ruam no koj yuav xav tau lub tshuab ntxig 3 tus pin mus rau qhov raug xaiv los ntawm qhov kov lub peev xwm ntsuas tau:

(Duab 1 & 2)

AT42QT101X = Arduino

VDD = 5V

TSUAS = 2

GND = GND

Tom qab ntawd koj yuav ntxig lub kov sensor mus rau lub khob cij (Duab 3)

Kauj Ruam 3: Muab Cov Hluav Taws Xob thiab Cov Cheeb Tsam tso rau ntawm lub Rooj Mov Mov

Muab Cov Hluav Taws Xob thiab Cov Cheeb Tsam tso rau ntawm Pawg Cij
Muab Cov Hluav Taws Xob thiab Cov Cheeb Tsam tso rau ntawm Pawg Cij
Muab Cov Hluav Taws Xob thiab Cov Cheeb Tsam tso rau ntawm Pawg Cij
Muab Cov Hluav Taws Xob thiab Cov Cheeb Tsam tso rau ntawm Pawg Cij

Kauj ruam 4: Code

Kauj Ruam 5: Tsim Applet ntawm IFTTT

Tsim Applet ntawm IFTTT
Tsim Applet ntawm IFTTT

Tsim IFTTT los tsim lub pob nyem ntawm applet los pib lub suab nrov nrov kom tsa tus neeg siv los ntawm lawv qhov kev pw tsaug zog. Koj ua qhov no los ntawm kev tsim ib qho applet nrog "thawb khawm widget" thiab tom qab ntawd teeb nws txuas rau Ada txiv hmab txiv ntoo IO nrog cov khoom tsim. Cia cov ntaub ntawv khaws tseg rau "1" yog li thaum nias "1" cov ntaub ntawv yuav pib Buzzer kom qhib.

Kauj Ruam 6: Xaws Cov Cuab Yeej Cuam Tshuam rau hauv ncoo

Xaws Cov Khoom Siv Hluav Taws Xob rau hauv Lub Hauv ncoo
Xaws Cov Khoom Siv Hluav Taws Xob rau hauv Lub Hauv ncoo
Xaws Cov Khoom Siv Hluav Taws Xob rau hauv Lub Hauv ncoo
Xaws Cov Khoom Siv Hluav Taws Xob rau hauv Lub Hauv ncoo

Hauv cov kauj ruam no koj yuav siv koj cov ntaub qhwv cov ntaub qhwv thiab kaw nws hauv qab ntawm lub hauv ncoo hauv qab (duab 4). Ua li ntawd yuav tso cai rau tus neeg siv kom yooj yim siv lub tog hauv ncoo.

Kauj Ruam 7: Ntxig Daim Ntawv Cuam Tshuam Hauv Lub Hauv Pillow thiab Zip Up Hauv Pillowcase

Ntxig Daim Ntawv Cuam Tshuam Breadboard Sab Hauv Hauv Hauv Hauv thiab Zip Up Lub Hauv ncoo
Ntxig Daim Ntawv Cuam Tshuam Breadboard Sab Hauv Hauv Hauv Hauv thiab Zip Up Lub Hauv ncoo

Tom qab lub Circuit Court tom qab ntawd pauv mus rau lwm daim ntawv qhia zaub mov kom nws ntau dua. Ib lub thawv kuj tau tsim los tiv thaiv lub Circuit Court thaum tso rau hauv lub tog hauv ncoo.

Kauj Ruam 8: Sim Nws

Tam sim no koj tau suav ua ke kho vajtse teeb tsa nrog rau cov khoom muag muag ntawm koj li applet koj tau npaj siv koj li Hey Pillow. Muab rau koj cov neeg hlub, koj cov phooj ywg zoo thiab peb cov neeg ua haujlwm uas ib txwm tuaj lig. Sim nws thiab saib yog tias lub suab tsis zoo ntawm lub buzzer tuaj yeem ua rau lawv tawm ntawm txaj yooj yim dua. Ntxiv mus ntxiv cov kauj ruam tom ntej rau Hey Pillow yuav txuas nws mus rau lub tswb ceeb toom, kom tus neeg tuaj yeem paub tshwj xeeb thaum yuav tshuaj xyuas yog tias tus neeg tseem nyob hauv ncoo lossis tsis thiab xa lawv cov suab nrov. Ib qho ntxiv los txhim kho yog nthuav dav thaj chaw ntawm qhov uas cov ntaub ntawv coj ua yog teeb tsa nrog siv lwm cov ntaub ntawv xws li cov xaim hluav taws xob/xov ua kom tag nrho hauv ncoo nkag mus rau qhov kov lub peev xwm.

Pom zoo: