Cov txheej txheem:
- Kauj Ruam 1: Yam Koj Yuav Tsum Tau
- Kauj Ruam 2: Tsim Koj Cov Qauv thiab Kuaj
- Kauj Ruam 3: Arduino Sketch
- Kauj Ruam 4: Tsim Koj Txoj Haujlwm Blynk
- Kauj Ruam 5: Tam sim no Tsis Txhob Nyob Ib Leeg thiab Ua Koj Ntxuav
Video: Lus Ceeb Toom Arduino Tshuab Ntxhua Khaub Ncaws - Thawb Ceeb Toom rau Xov Tooj Nrog Blynk: 5 Cov Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Peb lub tshuab ntxhua khaub ncaws nyob hauv chav nres tsheb thiab peb tsis tuaj yeem hnov lub suab nrov los qhia tias ntxuav tas lawm. Kuv xav nrhiav txoj hauv kev kom tau txais kev ceeb toom, txhua qhov chaw peb nyob hauv tsev, thaum lub voj voog tiav lawm. Kuv tau tinkering nrog Arduino, ESP8266 WiFi rau qee lub sijhawm, thiab nyuam qhuav pib nrog Blynk - Kuv xav tias qhov no yuav muab qhov yooj yim tab sis yoog raws daws tau.
Kuv qhov kev xav thawj zaug yog siv lub tshuab ntxhua khaub ncaws kom lub zog Arduino, thiab txuas lub tshuab ntxhua khaub ncaws buzzer rau tus lej digitial tus pin txhawm rau ua rau ceeb toom. Tom qab ob peb teev tshawb xyuas lub tshuab ntxhua khaub ncaws, tsis muaj daim duab qhia chaw, thiab ob peb qhov kev xav tsis zoo txog hluav taws xob (txawm tias tom qab ntsuas kev sib txuas, tus pin nrog kuv lub ntsuas ntsuas …)..
Nrog kev pab los ntawm Mr Google thiab lus tsis txaus ntseeg los ntawm kuv lub Arduino lub thawv ntim khoom Kuv tau txiav txim siab ntawm lub tshuab ntsuas kev co txuas rau sab nraud ntawm lub tshuab ntxhua khaub ncaws, txuas nrog WiFi, thiab Blynk platform los tswj lub zog ceeb toom rau peb lub xov tooj (Kuv sim email thiab twitter), tab sis cov no tau tsawg dua tam sim thiab xav tau kev ceeb toom ntxiv/ceeb toom teeb tsa ntawm iPhone).
Cov lus qhia no yuav piav qhia qhov koj xav tau (kho vajtse, app thiab Arduino code); cov lus qhia thiab cov kev kawm tau kawm ntawm txoj kev - rau Arduino, ESP8266 (ntawm WEMOS D1 Mini Pro board).
Cia peb pib…
Kauj Ruam 1: Yam Koj Yuav Tsum Tau
1. WEMOS D1 Mini Pro - lub mini wifi board nrog 16MB flash, txuas tus kav hlau txais xov sab nraud thiab ua hauv kav hlau txais xov raws li ESP8266EX.
2. GY-521 (MPU-6050) Gyroscope/Accelerometer.
3. Blynk tus account thiab app ntawm koj lub smartphone.
4. Pib dua SW thiab Hloov Lub Hwj Chim (xaiv tau), Ntau lub khob cij, sib txuas xov hlau thiab lwm yam rau kev sim.
5. Heavy Duty Ob-sided daim kab xev.
6. Cov kua nplaum kub los yog lwm yam nplaum los khov kho lub sensor rau rooj plaub.
* Lub ntsuas cua yuav tsum tau muab khi ruaj khov rau hauv rooj plaub, thiab rooj plaub rau lub tshuab ntxhua khaub ncaws. Yog tias nws tsis khov txaus koj yuav tau txais qhov tsis txaus ntseeg thiab poob qee qhov rhiab heev hauv koj qhov kev ntsuas.
Kauj Ruam 2: Tsim Koj Cov Qauv thiab Kuaj
Txuas GY-521 mus rau D1 Mini:
GY-521 D1 Mini
VCC ----- +5V
GND ----- NCO
SCL ----- D1
SDA ----- D2
Thawb cov duab kos thiab ib zaug koj lees paub (saib ua ntu zus) tias GY-521 tau rov qab X, Y thiab Z kev tswj hwm (muaj ntau qhov yooj yim GY-521 cov lus qhia thiab cov qauv piv txwv hauv internet). Rau qhov yooj yim Kuv tsuas yog siv X axis los ntsuas kev co.
Tam sim no muab daim GY-521 mus rau koj lub tshuab ntxhua khaub ncaws ib ntus thiab tso cai rau tag nrho lub voj voog kom khiav. Qhov no yuav sib sau ua ke qhov siab tshaj plaws thiab yam tsawg X uas tuaj yeem siv los txiav txim siab thaum lub tshuab ua haujlwm thiab thaum twg nws raug tso tseg (cov lus hauv kab lus kawg piav qhia qhov laj thawj).
NCO TSEG: Pins D1 thiab D2 yog rau WEMOS D1 Mini Pro, lawv tuaj yeem yog tus lej sib txawv ntawm koj li Arduino/ESP board - saib online rau tus pin daim duab qhia chaw.
Tom ntej teeb tsa koj txoj haujlwm Blynk.
Kauj Ruam 3: Arduino Sketch
Kuv yuav xav tias koj paub siv Arduino IDE thiab rub tawm thiab khiav cov duab kos rau cov laug cam sib xws. Muaj ntau cov lus pom hauv daim duab nws tus kheej, yog li kuv yuav tsis nkag mus ntau dhau ntawm no.
Cov theem pib rau kev kos duab yog raws li hauv qab no:
1. Nyeem tus nqi tam sim no ntawm X axis, khaws tus nqi no. Yog X yog> xMax ces txuag nws li xMax. Yog X yog <xMin ces txuag nws li xMin.
2. Txhua 5 feeb ua qhov kev tshuaj xyuas seb lub tshuab puas lawm: "yog XMax - xMin <= 2". Kuv tau xaiv 5 feeb vim qhov no tso cai rau ncua kev ncua hauv kev ntxuav thiab zam kev ceeb toom tsis tseeb.
3. Yog tias lub tshuab tau nres lawm, tom qab ntawv ceeb toom rau Blynk kom xa daim ntawv ceeb toom thawb rau koj lub xov tooj - Kev ntxuav tau ua tiav!
* Kuv siv lub millis () kev ua haujlwm los tswj lub sijhawm 5 feeb. Blynk xav qhia kom TSIS siv ncua () raws li qhov no txwv tsis pub lub voj () thiab ua rau txuas mus rau Blynk server tsis ua haujlwm. millis () yog trickey kom tau txais koj lub taub hau ib puag ncig thaum xub thawj, tab sis tsim nyog ua siab ntev, nws yog lub sijhawm zoo nrog qhov zoo uas lwm lub hauv paus ntawm txoj cai txuas ntxiv mus (piv txwv li nyeem pins, xa cov ntaub ntawv thiab lwm yam), qhov ncua () nres txhua txoj haujlwm.
* Blynk muaj kev txuas mus rau BlynkSimpleEsp8266.h lub tsev qiv ntawv. Qhov no tswj hwm txhua qhov kev sib cuam tshuam ntawm Blynk ntawm ESP8266 nti ntawm D1 mini thiab txhua txoj haujlwm Blynk.
* Lub tsev qiv ntawv Wire.h suav nrog hauv Arduino IDE los ntawm lub neej ntawd. Qhov no tswj I2C kev sib txuas lus ntawm D1 mini thiab Gy-521.
Kauj Ruam 4: Tsim Koj Txoj Haujlwm Blynk
Txawm hais tias koj siv daim ntawv thov ntawm koj lub xov tooj, Blynk hais txog cov haujlwm ib leeg thiab cov khoom siv (lawv tsuas yog dhau los ua cov apps tom qab koj txiav txim siab tshaj tawm lawv, qhov tshwj xeeb muaj los ntawm Blynk uas kuv tsis tau siv, koj tsis tas yuav tshaj tawm los siv cov phiaj xwm. rau koj tus kheej siv).
Kuv yuav tsis descibe teeb tsa Blynk vim tias lawv muaj kev qhia ntau thiab txhawb nqa los ntawm lawv lub vev xaib thiab txhawb zej zog.
Kuv txoj haujlwm Blynk suav nrog cov cuab yeej los tswj lub iPhone Push ceeb toom (Ntxuav tas li!), Thiab qhov tseem ceeb rau X Axis thiab xMax thiab xMin. Kuv suav nrog cov no txhawm rau txheeb xyuas qhov tseeb kom paub meej tias txoj haujlwm raug txuas nrog WiFi/Blynk thiab GY-521is rov qab cov ntaub ntawv siv tau.
Thaum koj tau ua tiav koj txoj haujlwm, yog tias koj teeb lub sijhawm ncua hauv daim duab kos rau tus nqi qis (piv txwv li 10 vib nas this), tom qab ntawd txav tus kheej GY-521 txhawm rau txhawm rau lub chaw pib koj yuav tsum tsis txhob tau txais kev ceeb toom thawb thaum lub ntsuas cua txav mus. Yog tias koj khaws lub sensor tseem koj yuav tsum tau txais kev ceeb toom thawb, (Ntxuav tas lawm!), Hauv koj lub xov tooj.
Thaum kawg teeb tsa ncua sijhawm rov qab mus rau 5 feeb (lossis ib qho txiaj ntsig zoo li cas rau koj).
Kauj Ruam 5: Tam sim no Tsis Txhob Nyob Ib Leeg thiab Ua Koj Ntxuav
Qee qhov kev xav zaum kawg…
1. Pib koj ntxuav tom qab ntawd qhib qhov haujlwm. Txheeb xyuas X qhov tseem ceeb ntawm lub app kom ntseeg tau tias lub ntsuas tau pib raug, Kuv pom qee zaum tias lub ntsuas cua tsis pib thiab rov qab 225 rau txhua qhov txiaj ntsig, rov pib dua sai yuav kho qhov no.
2. 5 feeb qeeb txhais tau tias hauv qhov xwm txheej phem tshaj plaws koj yuav tsis tau txais daim ntawv ceeb toom txog 5 feeb tom qab ntxuav tas - qhov no yog kev pom zoo uas kuv nyiam, tsis yog lub tswb cuav thaum lub sijhawm ntxuav.
3. Tsis txhob hnov qab qhib kev ceeb toom rau Blynk app hauv koj lub xov tooj. Kho lub xov tooj chaw kom tso cai ceeb toom thaum lub xov tooj raug kaw.
Tej lus nug lossis lus nug qhia rau kuv paub
ua
nqi
Pom zoo:
Khaub Ncaws Ntxhua Khaub Ncaws/Tshuab Ziab Khaub Ncaws Nrog ESP8266 & Kev Ceev Ceev: 6 Kauj Ruam
Khaub Ncaws Ntxhua Khaub Ncaws/Tshuab Ziab Khaub Ncaws Nrog ESP8266 & Kev Ua Haujlwm nrawm: Cov khaub ncaws ntxhua khaub ncaws/tshuab ziab khaub ncaws nyob hauv qab daus, thiab koj, raws li txoj cai, muab cov khaub ncaws tso rau hauv thiab tom qab ntawd, koj dhau los ua haujlwm hauv koj lwm lub tsev ua haujlwm. Koj tsis quav ntsej cov khaub ncaws uas tau tawm hws thiab nqus hauv qab daus ntawm koj lub tshuab
Cov Khaub Ncaws Khaub Ncaws Jelly Donuts - Kev Taw Qhia rau Xaws Cov Khaub Ncaws Nrog Makey Makey: 4 Cov Kauj Ruam (nrog Duab)
Cov Khaub Ncaws Khaub Ncaws Khaub Ncaws - Kev Taw Qhia rau Xaws Cov Khaub Ncaws Nrog Makey Makey: Peb pom hauv Twitter tias ntau ntawm peb Cov Khaub Ncaws thiab Makey Makey cov neeg ntxeev siab xav paub ntau ntxiv txog kev xaws khaub ncaws, yog li peb tau tsim qhov kev qhia no kom qhia rau koj sai ntawm kev xaws khaub ncaws thiab yuav ua li cas koj tuaj yeem xaws qee cov khoom sib dhos. (Qhov no yog
Tshuab Ntxhua Khaub Ncaws Ceeb Toom Sensor: 6 Cov Kauj Ruam (nrog Duab)
Kev Siv Lub Tshuab Ntxhua Khaub Ncaws Ceeb Toom: Qhov ntsuas lub tshuab ntxhua khaub ncaws no nyob saum kuv lub tshuab ntxhua khaub ncaws thiab siv lub ntsuas cua ntsuas kom pom kev co los ntawm lub tshuab. Thaum nws paub tias lub voj voog ntxuav tau ua tiav, nws xa ntawv ceeb toom rau kuv ntawm kuv lub xov tooj. Kuv ua qhov no vim tias lub tshuab nws tus kheej
Cov Khaub Ncaws Khaub Ncaws: Ua Cov Khaub Ncaws Yooj Yim Siv Lub Tshuab Luam Ntawv: 4 Cov Kauj Ruam (nrog Duab)
Cov Khaub Ncaws Khaub Ncaws: Ua Cov Khaub Ncaws Yooj Yim Siv Lub Tshuab Luam Ntawv Inkjet: Tsis yooj yim heev thiab yuav luag txhua lub voj voos tuaj yeem ua tau siv cov ntaub qhwv. Nov yog qee qhov kev sim uas kuv tau ua nrog cov ntaub coj ua. Lawv tuaj yeem pleev xim lossis kos rau ntawm kev tawm tsam thiab tom qab ntawd kos ib yam li cov txheej txheem txheej txheem txheej txheem. C
Cov Khaub Ncaws Khaub Ncaws Khaub Ncaws: 6 Kauj Ruam (nrog Duab)
Cov Khaub Ncaws Khaub Ncaws Khaub Ncaws: Khaub Ncaws Khaub Ncaws Khaub Ncaws Khaub Ncaws Khaub Ncaws Khaub Ncaws Khaub Ncaws Khaub Ncaws Khaub Ncaws Khaub Ncaws Khaub Ncaws Khaub Ncaws: Khaub Ncaws Khaub Ncaws Khaub Ncaws Khaub Ncaws Khaub Ncaws Khaub Ncaws Khaub Ncaws Khaub Ncaws: Khaub Ncaws Khaub Ncaws Khaub Ncaws Khaub Ncaws Khaub Ncaws Khaub Ncaws Khaub Ncaws Lub khoos phis tawj tau txuas nrog Arduino uas txuas nrog qee qhov ntsuas. Nov yog cov ntaub ntawv muaj tseeb