Cov txheej txheem:
- Kauj ruam 1: Kho, Thawj Kauj Ruam
- Kauj Ruam 2: Kho Qhov Teeb Meem Tom ntej
- Kauj Ruam 3: Kho Qhov Teeb Meem Kawg
- Kauj ruam 4: Arduino Sketch
- Kauj Ruam 5: Ua Haujlwm ESP-03 & Cov Lus Xaus
Video: Tsis muaj Kev Tshaj Tawm Ntxiv mus: 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Lwm Lub Npe: IP Sijhawm Sijhawm ntu 3
Yog tias koj nyiam nws, Kuv nkag mus rau qhov no hauv Kev Sib Tw Sijhawm.
Koj puas nkees ntawm muaj caij nplooj ntoo hlav mus?
Koj puas nkees nkees kom poob rov qab?
Zoo, kuv yog. Kuv muaj lub tswb nrov qub uas kho qhov no (ib pliag) (Saib Duab) Nws yuav hloov kho rau Hnub Ci Txuag Sijhawm thiab (Kuv xav tias) nws muaj roj teeb thaub qab thaum koj tsis muaj zog. Hmoov tsis zoo, ntau xyoo dhau los, Asmeskas tau txiav txim siab hloov hnub rau hloov sijhawm. Yog li tam sim no lub moos no xav tau hloov tus kheej plaub zaug hauv ib xyoos! Kuv siv qhov no tsuas yog thaub qab.
Yog li no Lazy Old Geek (LOG) xav tau lub moos zoo tshaj. Txhua tus neeg sib txawv thiab lub sijhawm hloov pauv (Ha! Ha!) Thiab kev xav hloov pauv. Nov yog Kuv Qhov Zoo Tshaj Plaws Clock.
Ib txwm pom thaum hmo ntuj. CAVEAT: Tsis muaj ntsais muag vib nas this thaum hmo ntuj, uas yog kev cuam tshuam ntau dhau.
Tsis siv neeg DST (Lub Hnub Txuag Txuag Sijhawm). Kuv ntxub kom hloov lub moos sijhawm ob zaug hauv ib xyoos.
Qhia hnub ntawm lub lim tiam. Txij li thaum kuv laus thiab tsis tuaj yeem nco tau.
Yog li kuv nyiam vib nas this thaum sawv ntxov Cov lus tshaj tawm hais tias yaug qhov ncauj rau 30 vib nas this, yog li kuv nyiam lub moos uas tso saib vib nas this.
Tsis muaj lub teeb xiav. Peb txhua tus paub tias lub teeb xiav tsis zoo rau koj. Tsis yog ib txwm muaj tseeb, saib qhov no:
www.instructables.com/id/Blue-Light-Proje…
Okay, uas yog yooj yim zoo nkauj. Ntau lub moos pom thaum hmo ntuj thiab ntau yam tsis xiav. Qee qhov yog 'atomic' moos uas kho rau DST. Qhov tseeb qee qhov ntawm kuv 'atomic' moos kuv yuav tsum fiddle nrog DST hloov pauv.
Tam sim no qhov xwm txheej thib ob yog qhov tshwj xeeb. Kuv tau tsim kuv tus kheej los ua qhov no hauv Cov Lus Qhia (txawm hais tias kuv pom kuv tsis tau piav qhia nws zoo heev):
www.instructables.com/id/IP-Time-Clock-Par…
Lub moos no tau siv sijhawm ntev txog plaub xyoos, tsis muaj kev saib xyuas dawb txij li ob peb lub hlis dhau los thaum nws tsis ua haujlwm.
Kauj ruam 1: Kho, Thawj Kauj Ruam
Xiav tshuaj ntsuam tuag, IP moos (ua tau nws yog xim dub).
Technobabble: Cov
Cov lus piav qhia luv ntawm IP Clock. Nws siv ESP-03 microcontroller, qhov no txuas rau internet nrog WiFi. Kuv tau muag ob daim 2mm txiv neej lub taub hau rau ntawm ESP-03 yog li nws yuav ntsaws rau hauv lub qhov (socket) ntawm PCB.
Nws siv ob xya ntu -3 tus lej qhia xws li:
Kuv tsis nco qab yog tias cov no yog cov cathode lossis anode ntau.
Max7219 kom tsav cov lus thiab LEDs tus kheej rau hnub ntawm lub lim tiam.
Yog xav paub ntxiv, thov saib kuv tus IP Clock part 2 Qhia paub.
Zoo, thawj qhov kuv tau sim yog rov sau dua ESP-03 (microcontroller) yog li kuv tau saib kuv Cov Lus Qhia thiab sim tab sis nws yuav tsis cia kuv program nws.
IRRELEVANT HISTORY: Yog lawm, Kuv yog tus txiv neej laus li ntawd kuv lub siab xav tsis thoob. Ib qho laj thawj kuv tau nkag mus rau Instructables.com yog tias nws muaj Cov Lus Qhia Zoo ntawm Arduino. Nws yog ib qho ntawm thawj qhov laj thawj kuv tau nkag mus rau Arduinos thiab kawm paub siv lawv li cas. Cov kws sau ntawv qhia tau yog nyob rau txhua qib sib txawv thiab kev txawj tab sis kuv tuaj yeem nrhiav tau qee qhov uas nyob rau qib uas kuv nkag siab tau. Yog li ua tsaug rau Instructables rau kev pab kuv tawm xyoo.
Txhawm rau rov qab qhov kev pom zoo, Kuv sau Cov Ntawv Qhia uas kuv vam tias yuav pab lwm tus.
Qhov laj thawj thib ob uas kuv sau Cov Ntawv Qhia yog los pab kuv nco qab tias kuv tau ua cov phiaj xwm li cas. Thaum sau Ntawv Qhia Kuv sim muab txhua yam kom ntxaws los ua qhov kuv tau ua. Pom tau rau kuv Kuv tsis tas ua haujlwm zoo.
Okay, Kuv tso IP Clock rau ntawm lub nraub qaum.
Kuv qhov kev xav yog tias ntau lub teeb xiav tau muab zog rau kuv ntau dua (saib saum toj no blueproject Instructable) thiab tsom mus xyuas qhov teeb meem no. Qhov kuv pom thaum kawg yog tias txoj hauv kev kuv tau siv rau program ESP-03 tsis ua haujlwm ntxiv lawm. Kuv sau qhov no hauv lwm Cov Lus Qhia:
www.instructables.com/id 2020-ESP8266/
Teeb meem 1 daws, tam sim no kuv tuaj yeem tsim ESP-03s nrog Arduino kos duab.
Kauj Ruam 2: Kho Qhov Teeb Meem Tom ntej
Zoo, Kuv tau teeb tsa ESP-03 nrog kuv daim duab qub Arduino, muab tso rau hauv kuv tus IP IP, tseem tsis ua haujlwm. Txoj kev, Kuv tau sau daim duab, tsis muaj dab tsi tshwm sim kom txog thaum ua tiav kev sib txuas mus rau Is Taws Nem thiab NTP server (muab sijhawm raug hauv Is Taws Nem) tau ua yog li kuv muaj lub vijtsam dawb.
Siv Arduino Serial monitor, Kuv tuaj yeem pom tias nws tsis txuas rau NTP server.
NCO TSEG: ESP-03 siv ESP8266 microcontroller. Ib qhov zoo ntawm ESP8266 yog nws tau tsim hauv WiFi. Hauv cov ntsiab lus nws tuaj yeem txuas rau WiFi hotspot lossis WiFi router uas ntau lub tsev, suav nrog kuv, muaj.
Tau txais cov cuab yeej zoo nkauj ntawm no, WiFi routers tshiab muaj ob qhov bandwidths, 2.4GHz thiab 5.0GHz. (Saib daim duab rau kuv tus router) Kuv nyiam xav txog lawv li qhov sib txawv ntawm AM thiab FM xov tooj cua. (Nco ntsoov cov?)
Ib qho kev txwv ntawm ESP8266 yog tias lawv tsuas yog siv 2.4GHz bandwidth.
Ntau yam khoom siv, thaum koj txuas rau WiFi koj xav tau tus cim npe hu ua SSID. Nws zoo li lub xov tooj cua tus kheej, K Earth 101. Thiab rau qhov laj thawj kev nyab xeeb, koj kuj xav tau tus password.
Zoo, ntau WiFi dual band routers (2.4GHz thiab 5GHz) siv tib SSID rau ob pawg.
Xijpeem rau qee qhov laj thawj, Kuv tsis tuaj yeem txuas ESP-03 nrog kuv lub router. Kuv zoo li rov nco txog lwm tus neeg uas muaj teeb meem zoo ib yam.
Kab hauv qab: Kuv teeb tsa lwm lub router uas tau cais SSIDs rau 2.4 thiab 5 GHz band, piv txwv li, "mtslink24" thiab "mtslink50" thiab muaj peev xwm tham hauv Internet. (Saib Duab)
CEEB TOOM: Yog tias koj muaj ob kab router nrog tib SSIDs ntawm ob pawg, nws yuav tsis ua haujlwm nrog ESP8266s.
Kauj Ruam 3: Kho Qhov Teeb Meem Kawg
Qhov kuv tau pom yog tias kuv tseem tsis tuaj yeem txuas rau NTP server. Kuv pom lwm Sketch pom tias kuv tuaj yeem siv Internet thiab uas ua haujlwm, yog li cov teeb meem tom ntej zoo li txuas rau NTP server.
Zoo hauv kuv daim duab qub, kuv siv tus IP chaw nyob txuas rau NTP server:
tf.nist.gov/tf-cgi/servers.cgi
Yog li kuv tau sim ob peb IPs los ntawm Boulder thiab FT. Collins uas zoo nkauj dua rau qhov kuv nyob. Tsis muaj leej twg ua haujlwm. Puas tau qee qhov ua si ib puag ncig thiab tau txais daim duab thoob ntiaj teb los ua haujlwm tab sis nws tsuas yog xauv hauv tej zaum ib ntawm tsib zaug. Puas tau tshawb fawb ntxiv thiab pom qee yam hu ua pool.ntp.org. Pom tau tias qhov no ua dab tsi yog tig los ntawm pawg IP chaw nyob yog li tsis muaj ib qho chaw nyob ntau dhau thiab txhua tus ntawm lawv yuav tsum ua haujlwm.
Zoo, kuv tsis nkag siab txog qhov kev qhia WiFi no txhua yam zoo, tab sis tswj hwm kom pom qhov piv txwv uas kuv tuaj yeem hloov kho rau kuv daim duab thiab ua kom nws ua haujlwm. Yippee!
Kauj ruam 4: Arduino Sketch
Txuas nrog yog kuv daim duab ua haujlwm, Special.ino
Nov yog qee cov lus hais txog nws:
Nov yog qhov koj tso koj tus kheej SSID thiab tus lej zais. (Qhov no yuav tsum yog 2.4GHz.)
char ssid = "YourSSID"; // network SSID (npe)
char pass = "Koj li SSID Password"; // network password
Siv pool.ntp.org server npe.
IPAddress timeServerIP; // time.nist.gov NTP server chaw nyob
const char* ntpServerName = "pool.ntp.org";
// tau txais tus neeg rau zaub mov random los ntawm pas dej WiFi.hostByName (ntpServerName, timeServerIP);
Ob txoj haujlwm DST:
void findChangeDates (); // Nrhiav caij nplooj ntoo hlav/caij nplooj zeeg hloov pauv
bool IsDST (); // Txheeb xyuas seb nws puas yog DST
findChangeDates (); siv lub xyoo tam sim no thiab suav tawm hnub twg hauv lub Peb Hlis thiab Kaum Ib Hlis yog hnub hloov pauv
bool IsDST (); txiav txim siab tias hnub no yog DST lossis tsis yog
void digitalClockDisplay ()
Zoo, hmoov tsis zoo kuv lub hlwb qub tsis tuaj yeem paub qhov no ntxiv. Qhov kuv xav tias nws ua yog kaw cov vib nas this tom qab 9 teev tsaus ntuj thiab tig lawv rov qab los ntawm ib ncig 5 teev sawv ntxov Kuv pom nws nyuaj heev los saib ntawm lub moos thaum kuv nyob hauv txaj thiab pom cov vib nas this zuam tawm. Tab sis thaum kuv sawv thaum sawv ntxov kuv nyiam pom cov vib nas this yog li kuv tuaj yeem 'sijhawm' kuv yaug qhov ncauj.
Kauj Ruam 5: Ua Haujlwm ESP-03 & Cov Lus Xaus
Tam sim no kuv tab tom siv Arduino version1.8.12.
Txoj hauv kev yooj yim tshaj plaws rau kuv los teeb tsa ESP8266 cov khoom yog siv Tus Thawj Saib Xyuas Haujlwm siv txoj hauv kev no:
github.com/esp8266/Arduino#installing-with…
Thaum teeb tsa, thaum xaiv Pawg Thawj Coj, Kuv xaiv "Cov Qauv ESP8266"
CEEB TOOM: Ntawm kuv lub PC muaj ob qhov qauv ntawm "Generic ESP8266 module". Ib qho hauv qeb "ESP8266 cov laug cam" ua haujlwm, ib qho hauv Sparkfun tsis ua.
Zoo, kuv tub nkeeg. Qhov kuv tau ua tiag tiag yog siv ESP-03 thiab teeb tsa nws hauv kuv qhov hloov pauv ESP los ntawm:
www.instructables.com/id 2020-ESP8266/
Qhov kuv tuaj yeem ua tau yog hloov kho kuv tus IP Clock 2 PCB raws li cov phiaj xwm no tsuas yog ntxiv ob peb tus dhia.
Ib qho ntxiv, kuv hloov kho CP2102 USB adapter kom muaj RTS txuas nrog tus pin ntawm ib sab ntawm GND.
Nrog cov kev hloov kho no, nws zoo li thauj khoom ib txwm kos duab Arduino yam tsis tas yuav thawb ib lub pob.
XAUS: Zoo, Kuv nyiam kuv IP IP. Nws ua tau raws li txhua qhov kuv tus qauv. Txawm hais tias daim duab qhia li cas, cov LEDs liab tsis dawb yog li tsis muaj xiav.
Pom zoo:
GlobalARgallery - Thoob Ntiaj Teb Kev Tshaj Tawm Kev Tshaj Tawm: 16 Cov Kauj Ruam
#GlobalARgallery - Thoob Ntiaj Teb Tshaj Qhia Kev Muaj Peev Xwm: #GlobalARgallery yog lub sijhawm rau cov tsev kawm ntawv (thiab lwm tus) txhawm rau sib txuas tsis sib xws thoob plaws ntiaj teb thiab sib qhia kev paub, kos duab, dab neeg, sijhawm, nthuav tawm, nthuav tawm, thiab lwm yam uas koj tuaj yeem xav. Tag nrho cov no tshwm sim hauv A
Kho Ob Chav Tawm Tawm Tawm Tawm Tawm Cov Khoom Siv Hluav Taws Xob: 10 Cov Kauj Ruam (nrog Duab)
Kho Ob Chav Tawm Tawm Tawm Tawm Tawm Tawm Cov Khoom Siv Hluav Taws Xob: Nta: AC-DC Hloov pauv ob npaug tso tawm qhov hluav taws xob (Zoo-Hauv av-Tsis Zoo) Kho txoj kab zoo thiab tsis zoo Tsuas yog Ib Leeg Ib Leeg AC hloov pauv cov suab nrov (20MHz-BWL, tsis muaj thauj khoom): Ib puag ncig 1.12mVpp Tsawg suab nrov thiab cov txiaj ntsig ruaj khov (zoo tagnrho
Retrofit BLE Kev Tswj kom Muaj Lub Hwj Huam Muaj Zog - Tsis Xav Tau Kev Txuas Ntxiv: 10 Kauj Ruam (nrog Duab)
Retrofit BLE Kev Tswj kom Muaj Lub Hwj Huam Muaj Zog - Tsis Xav Tau Cov Hluav Taws Xob Ntxiv: Hloov tshiab: Lub Xya Hli Tim 13, 2018 - ntxiv 3 -lub davhlau ya nyob twg tswj rau cov khoom siv hluav taws xob Cov lus qhia no suav nrog BLE (Bluetooth Tsawg Zog) tswj ntawm kev thauj khoom tam sim no hauv thaj tsam 10W rau > 1000W. Lub zog tau hloov pauv nyob deb ntawm koj li Android Txawb ntawm pfodApp. Tsis muaj
Yuav Ua Li Cas Thiaj Li Tshaj Lij Tshaj Lij Tshaj Lij Tshaj Tawm Hauv Circuit Board: Phau Ntawv Qhia Ua tiav: 10 Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Thiaj Li Tshaj Lij Tshaj Lij Tshaj Tawm Hauv Circuit Board: Phau Ntawv Qhia Tiav: Nyob zoo txhua tus, hnub no kuv yuav qhia koj yuav ua li cas thiaj ua tau PCB zoo, txhawm rau txhim kho koj cov phiaj xwm hluav taws xob. Cia peb pib
Phau Ntawv Qhia Rau Qhov Zoo Tshaj Plaws thiab Muaj Kev Nyab Xeeb Freeware Tawm Muaj (Kev Koom Tes): 9 Cov Kauj Ruam
Phau Ntawv Qhia rau Qhov Zoo Tshaj Plaws thiab Muaj Kev Nyab Xeeb Zoo Tshaj Plaws Nyob Hauv No (Kev Koom Tes):