Cov txheej txheem:
- Kauj Ruam 1: Kho Vajtse Yooj Yim
- Kauj ruam 2: Sketches
- Kauj Ruam 3: Eric Sketch
- Kauj ruam 4: PHP Code
- Kauj Ruam 5: Cov vis dis aus thiab Ntau ISS & Ham Cov Lus Qhia
- Kauj Ruam 6: Kev Xav Thaum Kawg …
Video: Ib qho yooj yim ISS ceeb toom System: 6 Cov kauj ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Chaw Tshav Dav Hlau Thoob Ntiaj Teb yog dab tsi thiab Vim li cas koj thiaj xav twv seb nws nyob qhov twg?
Txhawm rau teb thawj lo lus nug peb tuaj yeem saib ntawm NASA lub vev xaib rau cov lus teb. Qhov uas luv yog:
Chaw Thoob Ntiaj Teb Thoob Ntiaj Teb yog lub dav hlau loj. Nws orbits ncig lub ntiaj teb. Nws yog ib lub tsev uas cov neeg tsav dav hlau nyob. Qhov chaw nres tsheb no tseem yog chaw tshawb fawb. Ntau lub tebchaws tau ua haujlwm ua ke los tsim nws. Lawv kuj ua haujlwm ua ke siv nws. Qhov chaw nres tsheb tau ua los ntawm ntau daim. Cov khoom tau muab tso ua ke hauv qhov chaw los ntawm cov neeg caij nkoj. Lub chaw nres tsheb qhov chaw ncig yog kwv yees li 220 mais siab dua Lub Ntiaj Teb. NASA siv lub chaw nres tsheb los kawm txog kev nyob thiab ua haujlwm hauv chaw. Cov kev kawm no yuav pab NASA tshawb nrhiav chaw.
www.nasa.gov/audience/forstudents/k-4/stor…
Lo lus nug thib ob yog nyuab dua los teb - Tab sis kuv yuav sim.
Kuv yog Amateur Radio Operator (lossis Ham Radio Operator) - ib yam uas kuv ib txwm pom muaj kev lom zem yog siv lub zog uas tsis muaj tes tuav (5 watt lossis tsawg dua) xov tooj cua thiab sib tham nrog lub hnub qub ncig. ISS muaj cov cuab yeej siv xov tooj cua nyob hauv nkoj.
Thaum ntxov hauv kuv cov hnub ham kuv siv kev sib txuas lus nrog lub hnub qub me ntsis, txawm tias ua qee qhov kev sib cuag nrog tsuas yog roj hmab ducky kav hlau txais xov - qee yam nyuaj ua. Kuv tau ua ob peb tus neeg sib cuag nrog ISS siv APRS (cov ntawv qhia tsis siv neeg pob ntawv) uas yog xyoo 2013 - ntev dhau los, Kuv tau ua haujlwm tsis zoo txij thaum ntawd los. Nws yog ib yam uas kuv xav tau rov qab los rau hauv koj.
Xyoo 2013 Kuv tau sau ob peb tsab ntawv PHP rau kab hais kom ua uas yuav qhia kuv qhov chaw nyob ntawm ISS, thiab pab kwv yees thaum nws yuav nyob hauv taub hau. Lub sijhawm ntawd kuv siv lub ntsais ntsais, thiab kom nws hloov xim thaum ISS mus txog. Ua tsaug rau kev ua haujlwm ntawm https://open-notify.org thiab nws API nws tau yooj yim zoo nkauj los ua cov no.
2018 - 5 xyoos tom qab kuv thaum kawg hloov cov PHP no rau Arduino C (qhov tseeb nws yooj yim heev ua.)
Kuv qhov haujlwm siv D-Duino (uas yog NodeMCU tiag tiag nrog OLED ntawm lub nkoj), uas yog txhua yam muaj rau nws.
Kuv tseem siv tib API los ntawm
Kuv kuj tau sau qee qhov cai siv D1 Mini thiab WS2812 Shield (saib kuv Tus Thawj Saib Xyuas Haujlwm Eric Project kom paub ntau ntxiv txog qhov ntawd).
Kauj Ruam 1: Kho Vajtse Yooj Yim
D-Duino (NodeMCU) Cov
www.aliexpress.com/item/NodeMCU-CP2102-ESP…
Qhov ntawd yog nws, qhov ntawd yog txhua yam uas xav tau. Tau kawg koj tuaj yeem siv lwm yam khoom siv - qhov no yuav tsum ua haujlwm ntawm ib qho khoom siv ESP8266 uas tuaj yeem siv I2C OLED. D-Duino yog rau feem ntau ntawm NodeMCU nrog rau ntxiv ntawm OLED.
Cov lej tuaj yeem pom
Koj yuav tsum muaj ESP8266 cov laug cam teeb tsa hauv Arduino IDE. Cov lus qhia tuaj yeem pom ntawm no:
(txoj hauv kev yooj yim tshaj plaws nrog tus thawj tswj hwm)
Koj tseem yuav xav tau qee lub tsev qiv ntawv - Kuv xav tias txhua qhov no tuaj yeem pom hauv tus thawj tswj tsev qiv ntawv tam sim no (tab sis kuv tsis 100% paub tseeb txog qhov ntawd).
Cov Tsev Qiv Ntawv Xav Tau: ArduinoJson.h
Adafruit_NeoPixel
WifiManager.h
TimeLib.h
esp8266-oled-ssd1306
(Kuv tsis paub tseeb qhov twg kuv tau TImeLib los ntawm, thiab nws tej zaum suav nrog hauv Arduino IDE ??)
Txoj hauv kev yooj yim tshaj plaws los teeb tsa cov no yog siv tus thawj tswj tsev qiv ntawv. Yog tias tsis ua raws cov lus qhia nrog txhua lub tsev qiv ntawv.
Kauj ruam 2: Sketches
Tam sim no muaj ob daim duab kos thiab peb daim ntawv PHP suav nrog hauv github chaw cia khoom.
DDuino_ISS_notification uas yuav tsum tau siv nrog D-Duino kho vajtse los saum toj no.
Thiab EricISSnotification uas siv kuv yav dhau los "Tus Thawj Saib Xyuas Eric" los ntawm kev ua yeeb yam "Cov Neeg Hauv Ntiaj Teb". (Ntau ntxiv txog qhov no tom qab)
Hauv ob qho kev kos duab ze rau kab 30 (lossis qee qhov ze rau nws) - Koj yuav pom ob peb qhov sib txawv ntab hu ua mylat thiab mylon. Koj yuav tsum tau hloov ob kab no nrog koj Latitude thiab Longitude - yog tias koj tsis paub koj li lat thiab Lon koj tuaj yeem siv lub vev xaib no https://www.latlong.net Lub hauv paus ntawm koj lub nroog yuav tsum zoo. Nws tsis tas yuav phim koj qhov kev pom zoo lossis qhov ntev thiab ntev. Cov duab kos ua qee qhov puag ncig, thiab lwm yam kev ua lej los nrog qhov kwv yees kwv yees deb ntawm ISS hauv Asmeskas Miles.
Kuv ntseeg tias qhov no tsuas yog ib qho uas yuav tsum tau hloov pauv hauv cov duab kos.
Kev ua lej rau kev suav nrug yog ua raws lub vojvoog zoo nyob deb ntawm ob lub ntsiab lus, thiab tuaj yeem nrhiav pom ntawm no-https://www.movable-type.co.uk/scripts/latlong.htm…
Lub vev xaib no muab ntau cov ntaub ntawv hais txog yuav ua li cas xam nrug ntawm ob txoj kab nruab nrab thiab txoj kab nruab nrab nrog rau kev coj tus kheej. Peb tsis siv cov lej suav rau qhov no.
Txhawm rau ua haujlwm kom raug peb yuav tsum tau txais daim ntawv theta thiab hloov qee qib kom ci ntsa iab, thiab lwm txoj hauv kev ib puag ncig, ci ntsa iab mus rau qib. Txij li Arduino tsis ua lej zoo, peb yuav tsum pab nws me ntsis nrog kev hloov pauv.
tsis muaj dab tsi getDistance () {
ntab theta, deb, mais;
theta = mylon - islon;
dist = sin (deg2rad (mylat)) * sin (deg2rad (isslat)) + cos (deg2rad (mylat)) * cos (deg2rad (isslat)) * cos (deg2rad (theta));
dist = acos (deb); dist = rad2deg (deb);
mais = deb * 60 * 1.1515;
nrug = mais;
}
ntab deg2rad (ntab n) {
ntab radian = (n * 71)/4068;
rov qab radian;
}
ntab rad2deg (ntab n) {
ntab degree = (n*4068)/71;
rov qab kawm tiav;
}
Feem ntau ntawm kev ua lej nyob ze ntawm kab 127 - Yog tias koj xav tau qhov sib txawv deb (hais KM lossis Nautical Miles)
koj tuaj yeem hloov "mais = deb * 60 * 1.1515;" kab.
Rau KM nws yuav yog qee yam xws li "mais = (deb*60*1.1515)*1.609344;"
Rau Nautical Miles tej yam zoo li "mais = (deb*60*1.1515)*0.8684;"
Tej zaum koj kuj tseem yuav xav hloov pauv Kab ntawv luam tawm thiab cov kab ntawv OLED uas hais tias mais rau koj qhov ntsuas tshiab.
Uas yog kab 86 thiab 96 hauv DDuino_ISS_notification kos duab.
Kauj Ruam 3: Eric Sketch
Tus saib xyuas Eric yog AI lossis neeg txawv teb chaws los ntawm TBS TV Cov Neeg Hauv Ntiaj Teb, Thov saib kuv lwm Cov Lus Qhia ntawm kuv tsim.
Qhov yooj yim heev uas koj xav tau rau lub kaw lus ceeb toom no koj yog D1 Mini thiab WS2812 daim ntaub thaiv - muaj nws hauv lub thawv zoo nrog lub lens zoo ua rau nws zoo - zoo nkauj.
Ib zaug ntxiv, ib qho ESP8266 nrog WS2812 pixel yuav tsum ua haujlwm, yeej tsis muaj khawv koob mus ntawm no - WS2812 daim ntaub thaiv txuas nrog D2 ntawm D1 mini (uas kuv ntseeg tias yog tus pin 4 ntawm NodeMCU cov laug cam, thiab tej zaum lwm ESP8266 cov laug cam).
Rau sketch:
Raws li saum toj no koj yuav tsum tau hloov koj qhov latitude thiab longitude nyob rau hauv daim duab kab ze rau kab 27. Thiab zoo li saum toj no daim duab no tseem suav qhov nrug ntawm latitude thiab longitude. Tsis zoo li cov duab kos saum toj no, tsuas yog tso saib nrog WS2812 Neopixel LED.
Kev ua lej nyob ze ntawm kab 96, tab sis lwm yam zoo ib yam li saum toj no. Tseem muaj cov ntawv tso tawm yog tias koj xav pom dab tsi tshwm sim. Qhov Sketch no tsuas yog ua ISS qhov chaw thiab kev suav nrug - nws tsis ua qhov kev kwv yees dhau los lossis pes tsawg tus neeg nyob hauv qhov chaw.
* Nws yuav tsum tau sau tseg tias qhov kev ncua deb ntawm no yog mais, nws tuaj yeem hloov pauv yog tias koj nyiam, tab sis koj yuav tsum tau hloov qee qhov kev hloov pauv ntxiv rau koj chav nyob. *
Nyob ze Kab 116:
void setColor () {
yog (nrug = 1201) {colorDisplay (strip. Color (255, 0, 0), p);}
yog (nrug = 1151) {colorDisplay (strip. Color (255, 153, 0), p);} // zoo li daj dua rau kuv
yog (nrug = 951) {colorDisplay (strip. Color (255, 255, 0), p);} // zoo li ntsuab/daj rau kuv
yog (nrug <= 950) {colorDisplay (strip. Color (0, 255, 0), p);}
yog (nrug> = 1351) {colorDisplay (strip. Color (0, 0, 0), p);}
}
Cov chav nyob yog mais, thiab yog tias koj xav hloov mus rau KM lossis NM koj kuj tseem xav hloov cov kab no.
Koj tab tom ua dab tsi ntawm no, Ntawm 1350 mais, ISS tsuas yog nyob saum qab ntug thiab koj tuaj yeem pib hnov lub transponders los ntawm xov tooj cua - nws tsis zoo, thiab kev sib txuas lus ntawm qhov no tsis tuaj yeem tshwm sim tiag tiag. LED tig RED - qhov no yog lub taub hau - ISS tau los ze.
Tom qab lub sijhawm luv, lossis yog ISS nyob nruab nrab ntawm 1150 thiab 1200 mais, LED yuav tig txiv kab ntxwv - qhov no zoo li daj dua rau tab sis nws txhawb kom ua txiv kab ntxwv. - Ntawm 1150 mais koj yuav tsum pib hnov me ntsis ntxiv - ob txoj kev sib txuas lus tej zaum tseem tseem tsis tuaj yeem ua tau ntawm 5 watt HT.
Nruab nrab ntawm 950 thiab 1150 mais - Cov LED yuav tsum tig daj - koj muaj txoj hauv kev zoo los ua kev sib cuag - tseem tsis zoo, tab sis nws tsawg kawg tuaj yeem ua tau ntawm qhov no (Daj zoo li ntsuab dua rau kuv dua daj - yog li lwm yam ua haujlwm) rau)
Hauv qab 950 mais LED yuav yog GREEN khoom - thiab ob txoj hauv kev tuaj yeem ua tau.
Raws li ISS txav deb ntawm LED yuav mus ntawm ntsuab mus rau daj mus rau txiv kab ntxwv rau liab thiab tom qab ntawd thaum kawg mus rau OFF.
Nws yuav tsum tau sau tseg ntawm no, txhua qhov no tshwm sim sai heev - feem ntau hla hauv kuv thaj tsam kawg li 10 feeb, thiab lub sijhawm siv tau sib txuas tau tsawg dua 5 feeb.
Nws tseem yuav tsum tau sau tseg tias ISS tuaj yeem hloov nws qhov chaw nyob, thiab API yuav lossis yuav tsis hloov tshiab - yog li txawm tias koj muaj lub teeb ntsuab - koj yuav tsis hnov dab tsi.
** Khiav cov cuab yeej siv amateur tau ua tiav thiab yeem ua ib yam nkaus, thiab thaum lawv sim khiav cov cuab yeej muaj lub sijhawm thaum lawv yuav tsum kaw nws lub zog, lossis vim lawv xav tau dab tsi. Nws ib txwm yog lub tswv yim zoo los tshuaj xyuas AMsat lossis ARISS cov vev xaib **
Kauj ruam 4: PHP Code
Hauv github chaw cia khoom, Kuv tau suav nrog kuv tus lej PHP los ntawm 2013.
Cov cai tau tsim los khiav los ntawm CLI (lossis Kab hais kom ua). Nws tau nyob ib ntus txij li thaum kuv tau sau cov no tab sis kuv xav tias qhov xav tau tsuas yog kom muaj JSON txuas ntxiv ua haujlwm.
Cov ntawv sau tseem ua haujlwm, thiab yog tias koj xav ua kom lawv ua siab dawb ua li ntawd!
Rau Cov Neeg Siv Windows muaj cov ntaub ntawv ntawm no ntawm kev txhim kho PHP
Nco ntsoov teeb tsa CLI version. Kuv xav tias thaum koj teeb tsa koj tuaj yeem xaiv qhov txuas txuas ntxiv qhib.
Linux cov neeg siv vam khom koj li distro - Kuv siv Ubuntu raws li distro - thiab synaptic ua kuv tus thawj tswj hwm pob.
Koj yuav xav tau php7.0-common, php7.0-json, php7.0-cli, php7.0-curl
Kuv tsis xav tias kuv siv CURL nrog cov no, yog li koj yuav tsis xav tau qhov ntawd. Tus so yuav tsum pom hauv koj lub pob tswj hwm kev xaiv lossis hauv https://php.net lub vev xaib.
Ob ntawm cov ntawv yuav tsum tau kho nrog koj qhov latitude thiab longitude - lawv tsis ntev heev, thiab qhov yuav tsum tau hloov pauv yog nyob rau sab saud ntawm tsab ntawv. Lawv yog iss-location.php thiab iss-pass-api.php
iss -location.php muaj kuv lub suab ntsais ntsais qub hu rau sab laug hauv nws - Kuv tsis paub tseeb tias cov haujlwm ntawd ib qho ntxiv - tab sis koj tuaj yeem pom kuv tau hloov LED ntau ntau ib yam nkaus li kuv ua nrog kuv "Eric Notification". Kuv tsis xav tias lawv ua rau muaj teeb meem, tab sis koj yuav xav tawm tswv yim rau lawv.
iss-pass-api.php siv sijhawm lub sijhawm thiab muab lub sijhawm hauv zos ntawm kev kwv yees dhau los. Hauv txhua qhov kev ncaj ncees Kuv nyiam PHP version ntawm tsab ntawv no thaum piv rau DDuino version (uas tam sim no tsuas yog UTC kwv yees)
PHP version kuj tseem tsim tau zoo dua rau tso saib - tab sis qhov ntawd yog qhov me me xwb.
Qhov kawg PHP tsab ntawv yog iss -people.php - thiab nws yuav tso saib cov npe thiab qhov chaw paj ntaub uas lawv nyob. Qhov ntawd yog txhua yam nws ua. (Thiab cov ntaub ntawv no tsis hloov ntau zaus)
Cov hauv paus ntawm kev khiav PHP tsab ntawv los ntawm kab hais kom ua yog:
$ php yog-neeg.php
PHP cov ntaub ntawv yog cov ntawv nyeem, thiab tuaj yeem qhib los ntawm ib qho ntawv sau. Cov neeg siv Windows Kuv xav tias kuv tau khaws cov no yog li lawv muaj ob kab thiab thauj khoom rov los. YOG tsis yog https://www.editpadlite.com/ yuav ua haujlwm rau lawv.
Kauj Ruam 5: Cov vis dis aus thiab Ntau ISS & Ham Cov Lus Qhia
Tau Txais Daim Ntawv Tso Cai Ham Hauv Tebchaws Meskas:
Tsis nyob hauv Asmeskas? Txhua lub tebchaws muaj nws tus kheej cov cai thiab daim ntawv tso cai qhia - txheeb xyuas nrog leej twg tswj hwm koj kev sib txuas lus (Ntawm no hauv Asmeskas uas yog FCC Tsoom Fwv Kev Sib Txuas Lus)
Xam deb, kev coj tus kheej thiab ntau ntxiv ntawm latitude thiab longitude cov ntsiab lus.
Qhov no yuav yog qhov nyuaj dua los ua nrog cov txiaj ntsig zoo APIs los ntawm Qhib Qhia
Yuav ua li cas pom Chaw Nres Tsheb los ntawm Hauv av.
AMSAT Radio Amateur Satellite
AMSAT Cov Lus Qhia ntawm Xov Tooj Cua ntawm ISS
ARISS Amateur Xov Tooj Cua ntawm Chaw Tshav Dav Hlau Thoob Ntiaj Teb
ISS Fan Club - ISS Zaus
Kev nkag Wikipedia ntawm APRS
APRS.org
Kauj Ruam 6: Kev Xav Thaum Kawg …
Nov yog qhov haujlwm lom zem, nrog kho vajtse yooj yim heev.
Muaj ob peb yam kuv xav hloov, tab sis tag nrho kuv zoo siab heev nrog cov txiaj ntsig.
Yam uas yuav tsum tau hloov:
1) Txheeb xyuas txoj hauv kev kom dhau qhov kev twv ua ntej hauv lub sijhawm hauv nroog, tsis yog UTC
2) Nrhiav cov lej xim zoo dua rau txiv kab ntxwv thiab daj.
3) Hloov kho kom ua haujlwm nrog ESP32 X-board, nrog OLED thiab 4 Neopixels.
Yog tias koj pom qhov no lossis ib qho ntawm kuv cov phiaj xwm muaj txiaj ntsig lossis txaus siab thov txhawb nqa kuv.
Txhua yam kuv ua tau mus yuav ntau qhov thiab ua ntau yam/cov haujlwm zoo dua.
www.patreon.com/kd8bxp
ko-fi.com/lfmiller
Pom zoo:
D.I.Y YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM LOS NTAWM SCRAPS: 4 Cov Kauj Ruam (nrog Duab)
D.I.Y YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM LOS NTAWM SCRAPS: Hnub no kuv xav qhia yuav ua li cas kom pom lub teeb pom kev zoo los ntawm lub zog xa hluav taws xob tsis siv hluav taws xob los ntawm tus txhuam txhuam hniav thiab lub tshuab solenoid valve coils uas tau khaws los ntawm scrapyard.Ua ntej pib, thov saib cov vis dis aus hauv qab no:
Kev Ceeb Toom Hluav Taws Xob Siv Arduino [Hauv Qhov Yooj Yim Yooj Yim Yooj Yim]: 3 Kauj Ruam
Kev Ceeb Toom Hluav Taws Xob Siv Arduino [Hauv Ob Qes Yooj Yim Yooj Yim]: Puas yog koj tab tom nrhiav kom ua txoj haujlwm yooj yim thiab nthuav nrog Arduino uas nyob rau tib lub sijhawm tuaj yeem muaj txiaj ntsig tiag tiag thiab muaj peev xwm cawm txoj sia? tej yam tshiab thiab tshiab. Hauv kab ntawv no peb mus
Lus Ceeb Toom Arduino Tshuab Ntxhua Khaub Ncaws - Thawb Ceeb Toom rau Xov Tooj Nrog Blynk: 5 Cov Kauj Ruam (nrog Duab)
Lus Ceeb Toom Arduino Tshuab Ntxhua Khaub Ncaws - Thawb Ceeb Toom rau Xov Tooj Nrog Blynk: Peb lub tshuab ntxhua khaub ncaws nyob hauv lub nkas -las thiab peb tsis hnov lub suab nrov 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
YUAV UA LI CAS YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM TSHAJ PLAWS YOOJ YIM: 4 Cov Kauj Ruam
YUAV UA LI CAS YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM TSHAJ PLAWS: Nyob zoo txhua tus hauv cov lus qhia no kuv yuav qhia koj yuav ua li cas kom yooj yim " SOIL DRYNESS SENSOR ". Qhuav ntawm cov av tau txheeb xyuas siv qhov taw qhia coj. Lub teeb ci wi
Ib qho yooj yim heev/yooj yim/Tsis yooj yim txoj hauv kev kom tib neeg/tib neeg/tsiaj/neeg hlau zoo li lawv muaj txias tiag tiag/Lub zeem muag tshav kub kub (Xim ntawm Koj Xaiv) Siv GIMP: 4 Cov Kauj Ruam
Ib qho yooj yim heev/yooj yim/Tsis yooj yim txoj hauv kev kom tib neeg/tib neeg/tsiaj/neeg hlau zoo li lawv muaj txias tiag tiag/Lub zeem muag tshav kub kub (Xim ntawm Koj Xaiv) Siv GIMP: Nyeem … lub npe