Cov txheej txheem:

Yooj Yim Mountable Light Hloov Flicker: Smartphone-Controlled With BLYNK: 10 Cov Kauj Ruam
Yooj Yim Mountable Light Hloov Flicker: Smartphone-Controlled With BLYNK: 10 Cov Kauj Ruam

Video: Yooj Yim Mountable Light Hloov Flicker: Smartphone-Controlled With BLYNK: 10 Cov Kauj Ruam

Video: Yooj Yim Mountable Light Hloov Flicker: Smartphone-Controlled With BLYNK: 10 Cov Kauj Ruam
Video: RIAM NTSE, HLAU ZOO, SIV YOOJ YIM, PHEEJ YIG THIAB ZOO NKAUJ 2024, Hlis ntuj nqeg
Anonim
Yooj Yim Mountable Teeb Hloov Flicker: Smartphone-Tswj Nrog BLYNK
Yooj Yim Mountable Teeb Hloov Flicker: Smartphone-Tswj Nrog BLYNK

Cov cuab yeej IoT tau dhau los ua neeg nyiam ntau dua, yog li vim li cas koj thiaj tsis kawm thiab tsim koj li IoT cov cuab yeej tawm ntawm cov khoom pheej yig thiab ua haujlwm hnyav los ua tej yam uas koj tsis tuaj yeem ua ntej?

Kuv lub npe Szehuai thiab kuv ib txwm pom kuv tus kheej txog yuav tsaug zog, tab sis sawv vim kuv lub teeb tseem nyob. Yog lawm, Kuv tuaj yeem tawm ntawm lub txaj, sawv ntsug, tso tag nrho cov kev sov siab uas kuv tau sau, siv kuv txhais ceg, thiab tig lub teeb tawm, tab sis qhov nyuaj heev. Yog li, kuv tsim phau ntawv qhia no los pab koj tsim lub teeb uas muaj peev xwm haum dua koj lub teeb hloov uas twb muaj lawm los ua qhov nias rau koj. Txij li tsis muaj leej twg puas tau tso lawv lub xov tooj niaj hnub no, zoo dua li tuaj yeem tswj hwm koj li IoT ntaus ntawv nrog app dawb? Lub roob no yuav hloov pauv koj lub neej mus ib txhis los ntawm kev tso cai rau koj qhib koj lub teeb thiab kaw nrog koj lub xov tooj, coj koj lub tsev mus ib kauj ruam kom ntse dua.

Nov yog kuv thawj legitamate qhia paub ntxiv rau kuv thawj daim ntawv pov thawj kev sib tw xa mus sib tw yog li nws yuav txhais tau zoo yog tias koj tau pov npav rau kuv yog tias koj xav tias qhov no yog qhov haujlwm txias heev. (Yog tias ib tus neeg tuaj yeem qhia kuv yuav ua li cas rho tawm lub raj mis spinner yam kuv tau xa tuaj rau kev lom zem xyoo dhau los, uas yuav zoo heev)

Cia peb pib!

Kauj Ruam 1: Teeb meem tshwj xeeb thiab teeb meem kev nyab xeeb

Qhov project no zoo nkauj heev ntsaws thiab mus. Kuv yuav muab cov lus qhia ib qib zuj zus los ntawm 0-100%. Tsuas yog cov teeb meem uas muaj nyob yuav yog qhov tau txais cov ntaub ntawv thiab cov khoom uas kuv tau muab lwm txoj hauv kev rau qhov koj tsis muaj kev nkag mus rau lawv. Tsis tas li ntawd, nws zoo ib yam li Lego, tsuas yog muab nws tso ua ke.

Kauj Ruam 2: Cov Cheeb Tsam Yuav Tsum Tau

Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau

Kho vajtse:

Tag nrho cov no tuaj yeem yuav online

· NodeMCU ESP8266-12E V1.0

· Servo SG90

· Microusb cable

· Powerbank

-Optional, koj tuaj yeem ua tiav qhov no tawm ntawm phab ntsa ntsaws yuav ntsaws lub micro-usb cable rau hauv lub adapter

· Acrylic 3 hli

-Cov tuab tsuas yog teeb meem thaum koj tab tom tsim koj cov acrylic mount thiab koj xav tau ntxiv cov tuab ntawm cov acrylic rau qee qhov ntev, kuv tus kheej xav tias 3mm yog qhov zoo tshaj plaws vim nws tsis dhau tuab/nyias thiab dawb zoo li qhov huv tshaj plaws

Software:

· Arduino IDE

· Blynk app

· Adobe Illustrator

Cov Cuab Yeej:

· Laser txiav (Yog tias koj tsis nkag tau rau lub tshuab txiav laser, koj tuaj yeem pom FabLabs lossis Makerspaces hauv zos thiab thov kom lawv ua rau koj)

· Screwdriver (Rau cov ntsia hlau kom ruaj ntseg servo caj npab rau servo)

· Lub taub hau ntswj taub hau (Rau nqa cov yas yas uas tuav tus poj niam servo pins hauv lawv lub tsev yas)

Kauj Ruam 3: Ntsuas Qhov Ntev rau Acrylic Mount

Ntsuas Qhov Ntev rau Acrylic Mount
Ntsuas Qhov Ntev rau Acrylic Mount
Ntsuas Qhov Ntev rau Acrylic Mount
Ntsuas Qhov Ntev rau Acrylic Mount
Ntsuas Qhov Ntev rau Acrylic Mount
Ntsuas Qhov Ntev rau Acrylic Mount

Tam sim no peb yuav tsum tau hloov daim npog acrylic hla peb lub teeb uas twb muaj lawm yog li nws tuaj yeem nyob hauv tsev cov khoom siv uas yuav tig peb lub teeb rau thiab tawm.

· Siv lub plhaub yas plhaub ntawm lub teeb hloov mus

· Nrhiav sab nraum cov ntaub yas thiab haum lub thawv rau nws, yog tias cov npoo ntawm lub plhaub tau nkhaus (zoo li kuv li)

· Tau txais qhov dav (x) Qhov tob (y) thiab Qhov siab (z)

· Nyob ntawm qhov tuab ntawm koj cov khoom, ntxiv qhov tuab (kuv yog 0.3cm) rau tag nrho 3 qhov tseem ceeb.

· Qhov siab ntawm lub npov yog qhov nyuaj, koj xav tau ntsuas qhov nrug ib yam li kuv tau ua hauv daim duab saib kuv tau txuas thiab ua kom ntseeg tau tias qhov kev pabcuam nyob ze li sai tau yam tsis muaj kev cuam tshuam qhov hloov nws tus kheej los ntawm kev qhib thiab tua.

· Qhov siab ntawm servo, raws li kuv ntsuas yog 1.2cm, koj yuav ntxiv tus nqi no rau Qhov Siab ntawm koj lub thawv qhov ntev

· Qhov dav qhov tob ntawm lub npov yog qhov ntev dua

· Mus rau (https://boxdesigner.connectionlab.org/) thiab tsim lub thawv siv X, Y, Z qhov txiaj ntsig koj tau txais

· Hauv qab qhov kev xaiv siab tshaj, kho qhov ntev me ntsis nyob ntawm qhov tuab ntawm koj cov khoom, yuav siv sijhawm ob peb zaug tab sis kuv teeb kuv li 0.75 uas yog qhov zoo nkauj nruj haum uas yuav tsum tau rauj rau khob qhov chaw rau hauv qhov chaw.

· Kuj xaiv "Tsis yog, tsis suav nrog daim npog"

· Qhib pdf no hauv Adobe Illustrator

· Qhib Lub Teeb Hloov cov ntaub ntawv kuv tau txuas thiab haum cov qauv rau lub qhov thiab muab kev pabcuam rau koj tus kheej lub npog acrylic, Kuv kuj tau muab ib qho uas kuv siv.

Hauv qhov tseeb:

Lub qhov uas yuav tsum tso cai rau cov xov hluav taws xob tawm los ua qhov sib txawv thaum kuv nias nyuaj thiab cov acrylic nyias nyias, ua siab ncaj Kuv xav tias qhov no yuav yog qhov ua tau zoo dua tom qab ntawd nws ua kom yooj yim dua kom haum cov acrylic ua ke ib yam. Tab sis lub bar tsuas yog nyias vim tias qhov siab ntawm kuv npog tau luv heev.

Nws yuav siv sijhawm ob peb zaug kom tau txais lub npog kom sib dhos ua ke zoo kawg tab sis nco ntsoov nws qhov ua tau zoo!

Kauj Ruam 4: Txhim Kho Arduino IDE thiab ESP8266 Library

Txhim kho Arduino IDE thiab ESP8266 Library
Txhim kho Arduino IDE thiab ESP8266 Library
Txhim kho Arduino IDE thiab ESP8266 Library
Txhim kho Arduino IDE thiab ESP8266 Library
Txhim kho Arduino IDE thiab ESP8266 Library
Txhim kho Arduino IDE thiab ESP8266 Library
Txhim kho Arduino IDE thiab ESP8266 Library
Txhim kho Arduino IDE thiab ESP8266 Library

Ua ntej, koj yuav tsum rub tawm Arduino IDE (https://www.arduino.cc/en/Main/Software). Arduino yog dawb kiag li nrog rau cov cai, uas yog vim li cas peb xaiv los siv Arduino. Nws yog qhov yooj yim heev los kawm vim tias muaj ntau cov peev txheej online muaj.

Qhov thib ob, koj yuav tsum rub cov tsav tsheb rau ESP8266.

Tom qab rub tawm Arduino IDE mus rau

1. Cov ntaub ntawv tab thiab tom qab ntawv nyem rau Preferences.

2. Hauv tus Thawj Saib Xyuas Haujlwm Ntxiv URLs txuas qhov txuas hauv qab no (https://arduino.esp8266.com/stable/package_esp8266com_index.json)

3. Nyem OK thiab tom qab ntawv mus rau

4. Cov Cuab Yeej - Pawg Thawj Coj - Cov Thawj Tswj

5. Hauv kev tshawb nrhiav hom esp8266> nyem qhov esp8266 los ntawm ESP8266 Zej Zog - Nyem Nruab

6. Rov qab mus rau Cov Cuab Yeej-Pawg thawj coj xaiv NodeMCU ESP8266-12E V1.0

Tam sim no koj tau teeb tsa Arduino IDE los ua haujlwm nrog NodeMCU.

Kauj Ruam 5: Kev thaiv kab

Thaiv
Thaiv
Thaiv
Thaiv
Thaiv
Thaiv

Vim tias kuv xav tshem tawm qhov xav tau ntawm lub rooj noj mov nrog rau ntxiv cov xov hlau, Kuv tau hloov pauv ncaj qha qhov kev txiav txim ntawm tus poj niam tus pin nyob hauv servo tus pin casing los ntawm kev siv lub taub hau ntsia hlau tsav kom rub lub nrov plig plawg qhib thiab rov kho cov xov hlau

Yog tias koj sau koj cov servos zoo li cas kuv sau lawv (Sab laug thiab Txoj Cai)

Koj yuav tsum hloov kho Sab laug servo los ntawm kev hloov nws

COMMAND, Hwj chim, GND - COMMAND, GND, Hwj chim

Txiv kab ntxwv, Liab, Xim av - Txiv kab ntxwv, Xim av, Liab

Tam sim no txuas koj cov servos, sg90 yog

Txiv kab ntxwv - Liab - Xim av xim av:

Txiv kab ntxwv hlau txuas rau Digital tus pin D4 (Txoj cai servo) LOS YOG TX (Sab laug servo) xa mus rau daim duab (Hais kom ua)

Cov hlau liab txuas rau 3V tus pin (Fais fab)

Cov xim av txuas rau G tus pin (GND)

Yooj yim!

Kauj Ruam 6: BLYNK App teeb tsa hauv Xov Tooj

BLYNK App teeb tsa hauv Xov Tooj
BLYNK App teeb tsa hauv Xov Tooj
BLYNK App teeb tsa hauv Xov Tooj
BLYNK App teeb tsa hauv Xov Tooj
BLYNK App teeb tsa hauv Xov Tooj
BLYNK App teeb tsa hauv Xov Tooj

Tshawb nrhiav Blynk hauv koj lub khw app

Download tau nws:

· Qhib lub app thiab nyem tsim qhov Project tshiab thiab xaiv NodeMCU ntawm qhov nco.

· Ib qho AUTH token yuav raug xa mus rau koj li email sau cia, nco qhov no, koj yuav tsum tau theej thiab muab cov cim token rau hauv Arduino code.

· Coj mus rhaub ntawm lub vijtsam dawb thiab ntxiv SLIDER widget ntawm qhov screen.

· Coj mus rhaub rau ntawm Widget, xaiv tus lej PIN 1 (lossis tus pin koj xav tau, nws tsis muaj teeb meem, qhov teeb meem yog nws sib haum rau koj tus lej) thiab Pib tus nqi yuav tsum yog 0 thiab Tus Nqi kawg yuav tsum yog 180 (Nyob ntawm qhov kev pabcuam, tus nqi ntawm 0 yuav ua rau servo zom thiab tawg, tweak nws kom txog thaum nws tsis ua, kuv yog 10-180)

· Coj mus rhaub ntawm qhov screen thiab ntxiv BUTTON widget ntawm qhov screen.

· Coj mus rhaub rau ntawm Widget, tseem xaiv tus lej PIN tiag 1 (xyuas kom lub pob sib haum nrog tus pin tus swb tau teeb tsa ib yam nkaus) thiab tseem hloov pauv qhov hloov mus (Qhov tseem ceeb)

· Koj yuav ua 2 lub swb thiab 2 lub pob qhov rooj, ib qho ntawm ib sab rau ib tus neeg ua haujlwm

Rov mus saib nov thaum koj tau sib sau ua ke tag nrho cov cuab yeej

Thaum koj tau sib sau ua ke tag nrho lub khoos phis tawj kom pom txoj haujlwm qhov tseem ceeb uas nias nyuaj txaus kom lub teeb tau nyem, cov no yuav yog qhov txiaj ntsig uas koj yuav muab tso rau hauv koj lub pob khawm

Kauj Ruam 7: Tshaj Tawm Txoj Cai Kawg

Rub Tawm Txoj Cai Kawg
Rub Tawm Txoj Cai Kawg
Rub Tawm Txoj Cai Kawg
Rub Tawm Txoj Cai Kawg
Rub Tawm Txoj Cai Kawg
Rub Tawm Txoj Cai Kawg
Rub Tawm Txoj Cai Kawg
Rub Tawm Txoj Cai Kawg

Peb tsuas yog xav tau ntxiv peb AUTH ID (sau tseg saum toj no), Wifi SSID thiab Password hauv tus lej thiab xa nws mus rau NodeMCU siv Arduino IDE. Rub tawm "Light_Switch_Code" thiab qhib nws siv Arduino IDE, nws yuav nug yog tias koj tsim daim nplaub tshev nws yog li tsuas yog nyem ok.

Txog cov cai, Kuv tau suav nrog cov lus piav qhia ntawm txhua kab hauv cov lus, yog tias koj tshwm sim muaj cov lus qhia lossis lus nug ntxiv, thov koj xav nug dawb.

QHOV TSEEB:

Nco ntsoov xaiv qhov chaw nres nkoj raug thaum koj tso koj cov cai yog tias koj tau txais

"yuam kev: espcomm_open ua tsis tiav"

Thaum koj ua tiav, koj tuaj yeem tshawb xyuas seb nws txuas nrog los ntawm saib Blynk qhov xwm txheej (lub cim cim). Nws yuav qhia koj seb nws yog online lossis offline.

Kauj Ruam 8: Txhim Kho Lub Caj Npab Servo hauv Qhov Chaw

Txhim kho Servo Arm hauv Qhov Chaw
Txhim kho Servo Arm hauv Qhov Chaw
Txhim kho Servo Arm hauv Qhov Chaw
Txhim kho Servo Arm hauv Qhov Chaw
Txhim kho Servo Arm hauv Qhov Chaw
Txhim kho Servo Arm hauv Qhov Chaw

Tom qab koj cov cai tau muab tso rau thiab pawg thawj coj hauv online, cov cai yuav khiav thiab cov servos yuav ob qho tib si tau teeb tsa mus rau txoj haujlwm ntawm 90, koj yuav tsum tau siv lub taub hau ntswj thiab ruaj ntseg lub servo caj npab zoo li hauv daim duab, sib dhos nrog lub cev ntawm servo. Ua qhov no yuav tso cai rau koj los saib xyuas koj li txiaj ntsig thiab kho kom haum.

Kauj Ruam 9: Sib Sau Ua Ke

Sib sau ua ke
Sib sau ua ke
Sib sau ua ke
Sib sau ua ke
Sib sau ua ke
Sib sau ua ke
Sib sau ua ke
Sib sau ua ke

Sib dhos txhua yam:

· Thaum koj tau laser txiav koj cov acrylic, sib sau ua ke kom nws zoo li lub hau, zoo nkauj ncaj nraim rau sab xis!

· Ua raws cov kab kos thiab ua kom ntseeg tau tias koj taw qhia koj cov kev pabcuam kom raug yog li ob sab ntawm qhov kev pabcuam ua haujlwm nrog cov kab kos.

· Tau 6 "lub qhov" ntawm blu tack thiab ua raws cov duab, nco ntsoov tshem tawm cov ntawv nplaum "Tower Pro"

· Koj tseem tuaj yeem siv blu tack lossis cable sib txuas lossis ib txoj hauv kev ntawm cable tswj kom txheeb koj cov cables tawm, nws yeej tsis muaj teeb meem tsuav nws tsis cuam tshuam qhov kev pabcuam.

· Thov 2 kab ntawm blu tack ntawm ob sab kom nws lo rau ntawm phab ntsa thiab lub teeb hloov pauv tiag tiag txhawm rau txhim kho tuav

Cov duab kuv tau txuas qhia tias kuv xaiv ua kuv li cas.

RAU POWER, Kuv tsis xav tias qhov no siv lub zog ntau dhau txhua qhov vim tias kuv tau suav nrog kev tshem tawm cov haujlwm yog li cov servos tsis ib txwm sim tswj hwm lawv txoj haujlwm. Koj tuaj yeem ntsaws koj lub micro-usb cable ib qho rau hauv phab ntsa ntsaws adapter LOSSIS lub txhab nyiaj.

Zoo siab!

Kauj ruam 10: Kev xav

Kev xav
Kev xav
Kev xav
Kev xav
Kev xav
Kev xav
Kev xav
Kev xav

Txoj haujlwm no tau qhia kuv ntau yam txog kev muaj peev xwm ntawm ESP8266 NodeMCU lossis tsuas yog cov cuab yeej muaj peev xwm wifi thiaj li tsim tau IoT cov cuab yeej. Cov txuj ci uas kuv tau kawm paub daws nrog qhov no qiv nws tus kheej mus rau lwm qhov IoT cov haujlwm uas kuv xav ua (kev ntsuas dej, nyob twj ywm). Kuv tau kawm Arduino ua ntej nrog Arduino Uno tab sis muaj peev xwm tswj hwm kuv lub cuab yeej nrog app dhau wifi ntawm kuv lub xov tooj?!?!?! Hloov kho loj heev. Nws yog qhov zoo kawg nkaus uas txoj haujlwm no zoo li yooj yim kawg, nws ua rau kuv muaj kev txaus siab los muab kev txiav luv rau txhua tus ntawm koj.

Qee yam uas nyuaj rau kuv yog tsim cov npog acrylic … Yog kuv paub, tsis muaj peev xwm. Thaum xub thawj, kuv tau sim ntsuas qhov kev ncua deb thiab qhov ntev thiab tsis paub tias kuv tsuas tuaj yeem npog lub npog kom txog thaum muaj ib hnub kuv pom nws tawm los ntawm kev sib tsoo. Kuv kuj tau siv sijhawm ntau los sim tsim cov thais uas yuav tso cai rau kuv npog acrylic rau INTERLOCK. Nws yog txheej txheem tsis txaus ntseeg uas kuv twb tau nqis peev mus txog thaum kuv pom tawm txog cov thawv tsim online uas tsuas yog ua txhua yam haujlwm rau koj (ua tsaug rau kuv tom qab). Kuv pom tau tias ib tus neeg tau tsim lub thawv tsim khoom kom tshem tawm txoj haujlwm tsis txaus siab rau lwm tus thiab kuv tsuas yog tawv ncauj nkaus xwb los lees paub qhov tseeb tias kuv tab tom taug txoj hauv kev ntev. Kuv tsuas yog nyob ze xwb … Thaum kawg, Kuv tau siv lub thawv tsim khoom, tau sim ob peb zaug, ntxiv cov ntsiab lus, coj cov ntsiab lus thiab nthuav tawm, nws zoo li ua haujlwm zoo li ntxim nyiam.

Txawm hais tias kuv tau ua tiav lub hom phiaj xav tau rau kuv lub cuab yeej, yog tias kuv yuav tsum ua qhov haujlwm no sib txawv, ua tau nthuav dav ntawm txoj haujlwm no, Kuv xav tshawb nrhiav txoj hauv kev hloov pauv txoj haujlwm servo kom haum rau ntau hom kev hloov pauv. Hloov nrog 1 lub pob loj, hloov nrog 3 lub nyees khawm yooj yim, hloov nrog khawm sib txawv tilts thiab lwm yam.

Pom zoo: