Cov txheej txheem:

Homemade App Qhov Rooj Xauv: 5 Kauj Ruam (nrog Duab)
Homemade App Qhov Rooj Xauv: 5 Kauj Ruam (nrog Duab)

Video: Homemade App Qhov Rooj Xauv: 5 Kauj Ruam (nrog Duab)

Video: Homemade App Qhov Rooj Xauv: 5 Kauj Ruam (nrog Duab)
Video: Npawg Xeeb thiab Maiv Xis part2 Dab neeg Dab 4/28/2020 2024, Kaum ib hlis
Anonim
Homemade App Qhov Rooj Xauv
Homemade App Qhov Rooj Xauv

Hauv txoj haujlwm no, kuv qhia yuav ua li cas lub xov tooj app yooj yim kaw qhov rooj/qhib tuaj yeem tsim los ntawm cov khoom yooj yim, thiab qhia cov neeg siv tus phooj ywg app hu ua Blynk. Kuv siv Wemos D1 Mini wifi nti thiab Arduino IDE los tsim cov cai. Koj tuaj yeem siv qhov teeb tsa no los sib qhia nkag mus rau chav tsis tas yuav luam daim tseem ceeb li Blynk muaj qhov tshwj xeeb, lossis tso cai rau ib tus neeg nkag thaum koj tsis nyob hauv tsev.

Kauj Ruam 1: Cov Cheeb Tsam Xav Tau

Cheeb Tsam Xav Tau
Cheeb Tsam Xav Tau
  • Wemos D1 Mini Wifi Chip
  • Servo
  • 9V AC/DC Adapter
  • 5V/3.3V Breadboard Fais Fab Khoom
  • 4 Zauv 7 Segment Display
  • Cov qhob cij
  • LED
  • 860 Ohm tus tiv thaiv
  • Jumper Wires & Breadboard Wires
  • Cov Khoom Siv Mounting Qhov Rooj (duab los qhia, kab xev, thiab lwm yam)
  • Dawb Blynk Xov Tooj App
  • Muaj Wifi

Kauj ruam 2: Circuit & App teeb tsa

Circuit & App teeb tsa
Circuit & App teeb tsa
Circuit & App teeb tsa
Circuit & App teeb tsa
Circuit & App teeb tsa
Circuit & App teeb tsa

Daim duab saum toj no qhia tau tias kuv txuas kuv lub xov tooj li cas. Kuv siv LED los ntsuas qhov ua haujlwm ntawm Blynk app (vim nws yog kuv thawj zaug siv nws).

Kuv cov lus pom zoo rau thawj lub sijhawm kom paub nrog Blynk:

  1. Ua raws Blynk cov lus qhia thiab rub tawm Blynk lub tsev qiv ntawv.
  2. Rub tawm Blynk app, thiab xaiv Wemos D1 Mini ntaus ntawv.
  3. Tsim qhov tshiab Blynk Project ntawm lub app thiab ntxiv khawm Widget thiab teeb nws rau tus pin virtual (Kuv teeb kuv li V3)
  4. Google thiab rub tawm Wemos cov tsav tsheb.
  5. Txuas Wemos D1 Mini nti rau koj lub khoos phis tawj thiab khiav lub wifi txuas piv txwv Arduino kos duab (Kuv tsim kuv daim duab kawg siv nws).
  6. Tom qab ntawd kuv txuas lub LED, thiab sau cov cai uas thaum kuv nias lub app khawm widget, LED yuav qhib.
  7. Tom qab tau txais cov saum toj no los ua haujlwm thiab sib txuas cov khoom seem, siv kuv cov cai hauv ntu txuas ntxiv kom ua tiav thiab ua haujlwm.

Cov Lus Cim rau Hooking Up The Rest:

  • Kuv googled thiab rub tawm 'SevenSegmentTM163' lub tsev qiv ntawv rau Zaub kom kuv thiaj tuaj yeem pom cov lus yooj yim.
  • Cov Zaub muaj ob lub teeb liab xov uas yuav tsum tau ntsaws rau hauv tus pin, nrog rau cov xov tooj cua servo. Tom ntej no, 5V thiab av yuav tsum tau muab rau lub servo thiab zaub.
  • Wemos yog 3.3V nti, yog li kuv tau khi 3.3V tus pin ntawm lub nti rau 3.3V breadboard fais fab mov tus pin (raws li qhia hauv daim duab).

Vim li cas kuv thiaj siv qee yam khoom

  • 4 Tus lej 7 Segment Display - Kuv xav kom tuaj yeem pom yooj yim yog lub qhov rooj raug kaw lossis xauv
  • Blynk - Cov neeg siv zoo heev thiab yooj yim dhia hauv.
  • Wemos D1 Mini - pib wifi nti

Kauj ruam 3: Code

Code
Code
Code
Code

Kauj ruam 4: Mounting

Mounting
Mounting
Mounting
Mounting
Mounting
Mounting
Mounting
Mounting

Kuv tsom rau qhov no los ua qhov haujlwm pib, yog li kuv tau siv cov khoom muaj nyob ib puag ncig kuv lub tsev (thiab ua haujlwm hauv chav) rau Macgyver qhov teeb tsa no.

Cov Ntaub Ntawv Kuv Siv:

  • Daim kab xev
  • Duab los qhia
  • Cov hlua roj hmab
  • Cov ntawv nplaum
  • Ntawv Ntawv

Txoj kev teeb tsa no ua haujlwm zoo tshaj plaws nrog lub qhov rooj tuag, thiab xav siv cov ntaub ntawv khov dua. Lub hom phiaj tseem ceeb yog txhawm rau txuas lub Circuit Court mus rau lub qhov rooj, txuas cov hniav servo rau lub xauv, thiab ua li cas ruaj ntseg txuas lub servo casing mus rau lub qhov rooj (txwv tsis pub koj muaj lub rotating servo es tsis txhob tig tig).

Cov kauj ruam rau kuv txoj kev teeb tsa:

  1. Xev daim kab xev rau ntawm qhov rooj.
  2. Siv cov ntaub qhwv los txhawm rau txhawm rau txhawm rau txhawm rau kaw lub qhov rooj thiab ruaj ntseg siv cov hlua roj hmab.
  3. Zes servo cov hniav/lub log nyob rau hauv cov hlau binder clip xaus thiab ruaj ntseg siv cov roj hmab ntau dua.
  4. Khaws cov ntawv ncaj nraim rau hauv cov roj hmab kom ntxiv qhov nruj ntxiv.
  5. Txiav daim ntawv los xij, nrog lub qhov kom khaws cov neeg ua haujlwm nyob hauv qhov chaw, thiab kaw kab xev kom ruaj ntseg rau ntawm lub qhov rooj.

Pom zoo: