Cov txheej txheem:

Cosmo Moos - Hloov Xim Txhua Lub Sijhawm Astronaut Nkag Mus Rau Qhov Chaw: 8 Kauj Ruam (nrog Duab)
Cosmo Moos - Hloov Xim Txhua Lub Sijhawm Astronaut Nkag Mus Rau Qhov Chaw: 8 Kauj Ruam (nrog Duab)

Video: Cosmo Moos - Hloov Xim Txhua Lub Sijhawm Astronaut Nkag Mus Rau Qhov Chaw: 8 Kauj Ruam (nrog Duab)

Video: Cosmo Moos - Hloov Xim Txhua Lub Sijhawm Astronaut Nkag Mus Rau Qhov Chaw: 8 Kauj Ruam (nrog Duab)
Video: 6 Nqi Lus Qhia Kev Ua neej ( leej twg mloog lub neej yuav zoo tuaj) 2024, Kaum ib hlis
Anonim
Image
Image
Cosmo Moos - Hloov Xim Txhua Lub Sijhawm Astronaut Nkag Mus Rau Qhov Chaw
Cosmo Moos - Hloov Xim Txhua Lub Sijhawm Astronaut Nkag Mus Rau Qhov Chaw
Cosmo Moos - Hloov Xim Txhua Lub Sijhawm Astronaut Nkag Mus Rau Qhov Chaw
Cosmo Moos - Hloov Xim Txhua Lub Sijhawm Astronaut Nkag Mus Rau Qhov Chaw

Nyob zoo! Koj puas yog tus nyiam chaw? Yog tias yog ces hi-fi! Kuv nyiam chaw thiab astronomy. Pom tseeb kuv tsis yog tus kws tsav dav hlau mus rau ntawd thiab saib ze rau ntiaj teb. Tab sis txhua lub sijhawm kuv pom tias ib tus neeg hauv ntiaj teb tau mus saum ntuj, kuv tau txais kev tshoov siab kom tshawb nrhiav ntxiv. Yog tias koj zoo li kuv, ntawm no yog qee yam uas yuav ua rau koj tshoov siab txhua lub sijhawm.

Qhia tawm, Cosmo Moos! Nws yog lub moos uas tuaj yeem qhia lub sijhawm! Yog, kuv paub, tsis muaj dab tsi tshwj xeeb hauv qhov ntawd. Tab sis qhov tshwj xeeb yog nyob hauv nws lub nplhaib ci. Nws hloov xim txhua lub sijhawm tus neeg ya dav hlau nkag mus rau qhov chaw! Zoo li cas? Cia li xav tias koj muaj lub moos no nyob ib sab ntawm koj lub rooj txhua hnub thiab ib tag kis koj sawv los pom nws cov xim hloov. Koj yuav paub tam sim ntawd lwm tus neeg tsuas yog nce mus rau ntawd!

Dab tsi ntxiv? Lub nplhaib ci ntsa iab tsis tawg tsuas yog ua kom nws txias. Nws yog Morse code! Nws hais dab tsi? Zoo, Kuv yuav cia koj paub qhov ntawd;)

Kwv yees dab tsi? Nws yooj yim zoo nkauj los tsim. Yog li cia peb ua!

Khoom siv

Nodemcu (esp8266)

Poj niam-Poj niam jumper xov

1x Commom cathode RGB LED

Cov ntaub ntawv kaw rau lub moos (tuaj yeem luam tawm 3D)

Module moos

5v USB fais fab mov

Kauj Ruam 1: Ua Nws Tik

Ua Nws Tik
Ua Nws Tik
Ua Nws Tik
Ua Nws Tik
Ua Nws Tik
Ua Nws Tik

Koj tuaj yeem siv lub moos moos rau qhov no. Kuv tau siv ib qho los ntawm lub moos vim tias nws me dua thiab tuaj yeem haum tau yooj yim sab hauv.

Txij li thaum kuv yuav ua rau lub moos dub, nws txhais tes yuav tsum dawb. Yog li kuv tshem tawm cov caj npab uas twb muaj lawm thiab hloov lawv nrog cov uas kuv tau ua kuv tus kheej. Nws yog qhov yooj yim, Kuv tsuas yog txiav tawm ob daim nyias nyias ntawm cov yas dawb los ntawm lub ntim qub thiab hloov lawv zoo li daim duab peb sab ntev. Tom qab ntawd kuv tau ua qhov kawg saib xyuas nws qhov loj me kom txhua tus tuaj yeem haum rau nws qhov ib feem ntawm lub moos moos. Kuv tsis tau muab ob txhais tes txhais tes vim kuv xav kom nws zoo li niaj hnub no thiab tsawg heev.

Kuv xav kom siv cov hlau tsis txhob siv cov yas vim nws yuav ua kom nyias nyias thiab ua kom lub qhov yog yuav yooj yim dua.

Kauj ruam 2: Chassis

Lub Chassis
Lub Chassis
Lub Chassis
Lub Chassis
Lub Chassis
Lub Chassis
Lub Chassis
Lub Chassis

Tam sim no cia ua qhov thaiv ntawm lub moos. Kuv yuav hu nws lub chassis vim nws suab zoo.

Yog tias koj muaj lub tshuab luam ntawv 3D, nws yuav tsum yog daim ncuav mog qab zib. Koj tuaj yeem luam tawm lub ncuav mog qab zib nkaus xwb. Uh, Kuv txhais tau tias koj tuaj yeem luam lub chassis tawm. Nws yeej yog lub tog raj kheej hollow nrog ib sab kaw. Yuav ua li cas txog qhov siab? Nws tuaj yeem tsuas yog me ntsis siab dua qhov siab ntawm Nodemcu thaum nws sawv ntawm tus pin. Tab sis kuv tsis muaj lub tshuab luam ntawv 3D. Kuv tsis tuaj yeem tawm sab nraud mus yuav ib yam dab tsi, vim tias muaj kev kaw hauv peb lub tebchaws. Yog li kuv tau mus rau chav ua noj thiab pom lub thawv uas nws lub hau yas zoo ib yam li kuv tab tom nrhiav. Zoo meej.

Tom qab ntawd koj yuav tsum txiav txim siab dab tsi Morse cov ntawv sau ntawm koj lub moos yuav tsum hais. Thaum kuv txiav txim siab qhov kuv yuav tsum yog, Kuv pom Morse tus lej hloov pauv online thiab ntaus "ntuj" thiab tau txais nws tus lej Morse. Oops. Kuv tsis xav kom nthuav tawm qhov ntawd.

Tom qab ntawd kuv txiav tawm ib daim hlab ntawm daim npav dub ntawm ob qhov dav sib txawv. Qhov chaw nruab nrab ntawm ob tsab ntawv yuav tsum loj dua qhov chaw nruab nrab ntawm qhov sib npaug thiab cov cim ntawm ib tsab ntawv. Cov chaw no yog qhov uas cov kab ntawv ntawm daim npav yuav tsum raug kaw. Kuv xub ua cov cim siv tus cim thiab siv cov nplaum los lo cov kab kom haum. Tom qab ntawd, Kuv txiav ib txoj hlua ntev thiab kaw rau sab ntawm lub chassis thiab lub voj voog nyob rau sab saum toj, ua kom ntseeg tau tias tsis muaj chaw txaus nyob ib puag ncig nws kom lub teeb tawm tuaj.

Kauj ruam 3: Electronics

Electronics
Electronics
Electronics
Electronics
Electronics
Electronics
Electronics
Electronics

Tus yeeb yam ntawm tus yeeb yam yog Nodemcu board. Peb siv Nodemcu hloov chaw ntawm Arduino vim tias nws muaj peev xwm wifi uas peb tab tom yuav siv los txais cov ntaub ntawv thaum tus neeg ya mus saum ntuj.

Cov kev sib txuas yog yooj yim zoo nkauj. Txhua yam koj yuav tsum ua yog txuas lub RGB LED raws li qhia hauv daim duab kos. Tom qab ntawd luv D1 rau D3 thiab D2 rau D4.

Kauj Ruam 4: Teeb Blynk

Teeb tsa Blynk
Teeb tsa Blynk
Teeb tsa Blynk
Teeb tsa Blynk
Teeb tsa Blynk
Teeb tsa Blynk

Txhawm rau ua tus pin ntawm peb Nodemcu los ntawm is taws nem, peb xav tau ib qho app hu ua blynk

Ua si txuas txuas

App khw txuas

Tsim txoj haujlwm tshiab. Auth token yuav xa tuaj rau koj. Peb yuav siv tus cim no hauv cov kauj ruam tom ntej.

Coj mus rhaub rau "+" thiab ntxiv khawm los ntawm lub thawv widget. Hauv lub pob teeb tsa (uas koj tuaj yeem qhib los ntawm nyem rau ntawm lub pob), xaiv tus lej PIN ua "GP2" thiab xaub lub toggle ntawm "hloov".

Rov ua cov kauj ruam los tsim lwm lub khawm nrog tus PIN li "GP0"

Kauj Ruam 5: Teeb IFTTT

Teeb IFTTT
Teeb IFTTT
Teeb IFTTT
Teeb IFTTT
Teeb IFTTT
Teeb IFTTT

Nov yog qhov kev pabcuam uas yuav qhia rau peb paub thaum tus neeg ya dav hlau mus rau qhov chaw. Koj tuaj yeem siv lub vev xaib lossis nws yog Android lossis IOS app. Ua raws cov kauj ruam hauv cov duab saum toj no.

Ntawm IFTTT, nyem rau "tau ntau dua". Tam sim no nyem rau ntawm + thiab tom qab ntawv nyem rau "no". Tom qab ntawd tshawb rau thiab xaiv "chaw". Tom qab ntawd nyem rau ntawm "tus neeg tsav nkoj mus rau qhov chaw".

Tam sim no nyem rau ntawm "ntawd" thiab tshawb rau "webhooks" ntawm qhov bar tshawb. Nyem rau "ua lub vev xaib thov" thiab nkag mus rau URL. Hom URL yog https:// IP/Auth/hloov tshiab/D2

Hloov Auth nrog tus cim cim ntawm blynk txoj haujlwm thiab IP nrog blynk huab IP ntawm koj lub tebchaws. Kom tau tus IP, qhib qhov hais kom sai thiab ntaus "ping blynk-cloud.com". Rau Is Nrias teb, tus IP yog 188.166.206.43

Xaiv "muab" hauv ntu ntu txheej txheem thiab xaiv "application/json" hauv hom ntsiab lus. Hauv lub cev, ntaus ["1"].

Tam sim no peb yuav ntxiv lwm qhov ua kom ntseeg tau tias peb lub moos tua thaum peb tsaug zog. Qhov no yog nyob ntawm yeem, tab sis nws yog lub tswv yim zoo los ua qhov no, vim tias nws txuag lub zog.

Nyem rau ntawm +, xaiv "qhov no" thiab xaiv "hnub tim thiab sijhawm". Xaiv "Txhua hnub ntawm" thiab teem sijhawm koj sawv. Tom qab ntawd rov ua cov kauj ruam rau webhooks li saum toj no. Lub sijhawm no URL yog https:// IP/Auth/hloov tshiab/D0.

Rov ua cov kauj ruam thiab tsim lwm qhov ua rau lub sijhawm koj mus pw thiab lub sijhawm no hom ["0"] hauv lub cev. Vim tias peb tau tig nws tawm hmo ntuj.

Phew.. Qhov ntawd yog haujlwm ntau. Tab sis txhua yam tau teeb tsa tam sim no thiab koj zoo mus.

Kauj Ruam 6: Txoj Haujlwm

Program
Program
Program
Program

Kev tsim lub Nodemcu yog qhov yooj yim txij li peb tau ua tiav feem ntau ntawm cov haujlwm hauv blynk thiab ifttt. Qhov xwm zoo yog, Kuv tau txuas qhov program hauv qib no uas koj tuaj yeem tso rau hauv koj qhov project. Ua ntej koj txo qis lub tab no kom rub koj cov program, tsuas yog nyeem ua ntej. Koj yuav tau hloov ob peb yam.

Koj yuav tsum ntxiv koj li wifi ssid thiab tus password rau hauv qhov haujlwm uas nws hais tias 'YourNetworkName' thiab 'YourPassword'. Tsis tas li ntawd 'YourAuthToken' yuav tsum tau hloov pauv nrog tus cim token uas koj tau txais los ntawm blynk. Yog lawm, txhua yam tam sim no koj tuaj yeem mus thiab upload cov cai.

Kuv yuav hais ob peb yam txog qhov chaws ua haujlwm li cas. Nws yooj yim zoo nkauj. Nws tsuas yog nyeem lub xeev ntawm D2 uas txuas nrog D4 (gpio 2) uas tau tshwm sim los ntawm ifttt thaum tus kws tsav dav hlau nkag mus rau qhov chaw. Thaum nws tau tshwm sim, nws tsim tus lej ntawm 0 thiab 255 rau txhua xim. Cov lej tsis raug no yuav muab cov xim tsis raug rau RGB LED. Ib yam li D1 txuas nrog D3 (gpio 0) uas tua LED thaum lub sijhawm koj tau teeb tsa hauv ifttt. Lub neej xim ntawm LED tau teeb rau xiav

Kauj Ruam 7: Sib dhos

Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke

Tam sim no txhua yam uas tau ua yog tso Nodemcu thiab LED sab hauv lub chassis. Kuv tau txhuam cov LED nrog cov ntawv txhuam kom nthuav lub teeb. Ua qhov me me rau lub usb cable kom dhau los thiab ua kom lub zog Nodemcu. Tom qab ntawd, kaw nws nrog ib ncig ntawm cov duab los qhia los yog pvc board. Koj tuaj yeem ntxiv ntau LEDs ua ke kom muaj qhov ci zoo dua. Rau kuv li, ib qho twb tau ci txaus lawm.

Kauj Ruam 8: Cia Nws Glow

Cia Nws Glow!
Cia Nws Glow!
Cia Nws Glow!
Cia Nws Glow!
Cia Nws Glow!
Cia Nws Glow!

Thiab muaj koj muaj nws! Lub moos Cosmo tab tom kos! Nws tsis yog txhua hnub uas ib tus neeg ya dav hlau taug kev mus rau qhov chaw, yog li koj yuav tsum ua siab ntev. Lub moos zoo zoo tiag tiag ntawm phab ntsa txawm hais tias. Nws kuj tuaj yeem muab tso rau ntawm lub rooj lossis rooj.

Nws tuaj yeem yog khoom plig zoo tiag tiag rau ib tus neeg uas nyiam chaw thiab astronomy. Koj tuaj yeem ntxiv ntau qhov ua rau hais, tig nws tawm ntawm koj lub smartphone thaum koj tawm. Muaj peev xwm kawg. Kuv vam tias koj yuav txaus siab ua nws ntau npaum li kuv tau ua. Pom koj hauv kuv qhov haujlwm tom ntej. Txog thaum ntawd,… -.- -.--.. -. ….--. …..-.. -..

Pom zoo: