Cov txheej txheem:

Txuas Lub Sijhawm Txuas Rau Cov Menyuam: 12 Kauj Ruam
Txuas Lub Sijhawm Txuas Rau Cov Menyuam: 12 Kauj Ruam

Video: Txuas Lub Sijhawm Txuas Rau Cov Menyuam: 12 Kauj Ruam

Video: Txuas Lub Sijhawm Txuas Rau Cov Menyuam: 12 Kauj Ruam
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Hlis ntuj nqeg
Anonim
Txuas Lub Sijhawm Ib Leeg Rau Cov Menyuam
Txuas Lub Sijhawm Ib Leeg Rau Cov Menyuam

Ua raws li cov lus qhia no, koj yuav tuaj yeem tsim lub moos uas tau qhib lub zog thiab yuav qhia hnub, sijhawm thiab qhov xwm txheej cuam tshuam ntawm hnub ntawd. Nws yuav qhia txog hom kev tsaus ntuj thaum nws txog sijhawm tsaug zog thiab thaum cov menyuam sawv los lawv tuaj yeem nco qab sai sai tias yuav yog lub luag haujlwm tseem ceeb rau hnub twg: tsev kawm ntawv, hnub so, phooj ywg lub hnub yug, rugby lossis ntaus pob ncaws pob thiab lwm yam.

Nws tseem yuav hloov kho lub sijhawm nruab hnub thiab khaws cov ntaub ntawv hais txog hnub so los ntawm daim ntawv qhia hnub so.

Nws tsis yog lub tswb nrov (Kuv tau siv los ntawm kuv niam kuv txiv thaum kuv tseem yog menyuam yaus thiab yuav sim ua tib yam rau kuv cov menyuam, qhia lawv tias ib tus neeg saib xyuas lawv txij li thaum lawv qhib lawv lub qhov muag thaum sawv ntxov).

Lub cuab yeej yuav khaws cov ntaub ntawv los ntawm Google daim ntawv qhia hnub (lossis ib qho kev pabcuam twg tuaj yeem muab daim qhia hnub hli hauv ICS hom ntawv) thiab yuav ua haujlwm sib txuas nrog internet sijhawm, tshem qhov xav tau rau teeb tsa phau ntawv.

Schematic, software thiab 3D tsim rau lub thawv ntawv tau qhib thiab muaj nyob hauv qhov txuas. Ua tsaug pub dawb los pab txhawb ib lub tswv yim lossis kev txhim kho ntawm no lossis ntawm github.

Cov cuab yeej ua raws ESP-32 tus qauv, nws tuaj yeem hloov kho tau yooj yim rau ESP-23 sib txawv raws lub platform thiab tej zaum kuj tseem yuav rau ESP8266 thiab lwm yam khoom siv Arduino uas tuaj yeem muab kev sib txuas.

Kauj Ruam 1: Cheeb Tsam

Cheebtsam
Cheebtsam
Cheebtsam
Cheebtsam
Cheebtsam
Cheebtsam

Kuv cov menyuam pw ntawm lub txaj ob sab thiab lawv tsis muaj lub rooj zaum pw, yog li lub moos tau tsim los txuas nrog cov qauv ntoo ntawm lub txaj. Koj yuav xav rov tsim nws kom zoo dua koj cov kev xav tau (xav tias ua qhov ntawd thiab qhia qhov txiaj ntsig!), Yog li kuv tau faib cov npe ntawm cov khoom siv hluav taws xob (ib txwm xav tau) thiab ntu ntu (tshwj xeeb ntawm qhov tsim no).

Cov Khoom Siv Hluav Taws Xob:

  • ESP-32 raws tus qauv. Koj tuaj yeem siv Adafruit's Huzzah-32 lossis ib qho ESP-32 module uas txhawb nqa Arduino qhov chaw ua haujlwm ib puag ncig. Kuv siv tus qauv los ntawm ua-nws uas muaj los ntawm Amazon.it ntawm tus nqi tsim nyog heev (hmoov tsis Adafruit faib hauv Ltalis tsis zoo heev).
  • PIR sensor (ntawm no yog ntawm e kuv tau siv, tab sis koj tuaj yeem pom lawv yooj yim hauv lub vev xaib lossis hauv khw hauv zos rau cov neeg tsim khoom). Kuv lub ntsuas hluav taws xob xav tau 5V lub zog thiab tsim kom muaj 3.3V cov teeb liab tso tawm uas yog sib xws nrog 5V cov cuab yeej. Txheeb xyuas tias koj tus kheej lub ntsuas hluav taws xob muaj qhov tshwj xeeb tshwj xeeb lossis hloov kho qhov tsim nyog.
  • I2C oled zaub. Kuv siv cov duab monochrome 128x64 pixel thiab nws tau sib xws nrog Adafruit tus kheej cov qauv tsuas yog xav kom muaj kev sib txuas tsawg dua los ua haujlwm (raug teeb tsa rau I2C interface los ntawm lub neej ntawd). Yog tias koj siv cov zaub sib txawv koj yuav xav hloov lub software, tab sis cov duab tau ua tiav siv Adafruit lub tsev qiv ntawv GFX zoo heev, yog li xa mus rau cov khoom sib xws yuav tsum tsis txhob nyuaj.
  • Jumper cables (Kuv phem heev ntawm kev siv lub tshuab soldering, yog li kuv nyiam kom tsis txhob siv lub tshuab ncaj qha rau ntawm tus pin).
  • Lub zog 5V. Hom txuas nws tsis tseem ceeb vim peb yuav txiav nws thiab siv cov xov hlau ncaj qha. Yog tias koj tsuas yog xav tau lub zog ESP-32 tus qauv, yam tsis muaj cov hlau nplaum sib txuas, koj tuaj yeem siv USB-micro lub zog hloov pauv.

Mounting Cheebtsam:

  • Cov ntaub ntawv luam tawm 3D (koj tuaj yeem pom qhov txuas rau tus qauv tsim hauv kev qhia, tsis txhob yig tau xa kuv yog tias koj xav tau qhov txuas rau tus qauv tsim ntawm thinkercad los hloov nws)
  • Hlau nplaum. Lawv tau siv los khaws cov cuab yeej txuas rau lub phaj mounting thiab tseem muab lub zog rau nws. Kuv xaiv qhov kev daws teeb meem no kom muaj qee yam uas kuv tuaj yeem tshem tau yooj yim rau kev saib xyuas (thiab kho kab mob) thiab qhov ntawd tuaj yeem rov pib tau yooj yim los ntawm kev tshem tawm thiab rov txuas nws rau ntawm phab ntsa.
  • Ntoo/phab ntsa ntsia hlau

Cov Cuab Yeej:

  • Soldering hlau
  • Ntsia Hlau
  • Ib lub PC nrog Arduino IDE teeb tsa thiab ESP-32 Arduino Core kev txhim kho ib puag ncig teeb tsa raws li tau piav qhia ntawm nplooj ntawv no.

Kauj ruam 2: Teeb Google Calendar

Teeb Google Calendar
Teeb Google Calendar
Teeb Google Calendar
Teeb Google Calendar
Teeb Google Calendar
Teeb Google Calendar

Nov kuv yuav qhia yuav siv Google Calendar li cas los tsim daim ntawv qhia hnub uas yuav siv los ntawm koj lub cuab yeej, koj tuaj yeem siv cov kev pabcuam daim ntawv qhia hnub uas tso cai rau koj nkag mus rau daim ntawv qhia hnub hauv iCal hom ntawv. Cov npe thiab cov chaw yuav txawv, tau kawg, tab sis tsuav koj tuaj yeem xa koj daim ntawv qhia hnub hauv iCal hom nrog tsau https URL nws yuav tsum ua haujlwm nrog koj lub moos.

Txhawm rau nkag mus rau Google Calendar koj xav tau tus lej Google.

Tom qab ntawd koj tuaj yeem mus ntsib calendar.google.com.

Cov lus qhia txhais tau tias yuav tsum ua raws siv lub browser ntawm koj lub PC/Mac. Koj yuav tsum muaj peev xwm ua haujlwm zoo ib yam los ntawm Google tus kheej daim ntawv thov mobile.

Hauv Google Calendar koj yuav tsum tsim daim ntawv qhia hnub tshiab los ntawm kev xaiv lub cim "+" nyob ib sab ntawm "Ntxiv ib tus phooj ywg daim ntawv qhia hnub" (tsis yog li nkag siab) thiab tom qab ntawd xaiv "Daim Ntawv Teev Npe Tshiab" los ntawm cov ntawv qhia zaub mov (xav paub ntau ntxiv).

Koj tuaj yeem muab lub luag haujlwm rau koj daim ntawv qhia hnub (muaj txiaj ntsig thaum koj yuav tau ntxiv cov xwm txheej rau nws los teeb tsa lub moos) thiab hauv cov lus piav qhia, koj tuaj yeem teeb tsa lub sijhawm pib sawv thiab "mus pw".

Txhawm rau teeb tsa lub sijhawm koj yuav tsum tau sau ib tsab ntawv: "W" rau lub sijhawm sawv ntxov, "H" rau lub asthiv-xaus thiab hnub so sawv ntxov lub sijhawm thiab "B" rau lub sijhawm pw, tom qab ntawd lub semicolon thiab lub sijhawm hauv 24HR hom (Kuv thov txim rau kuv cov phooj ywg Asmeskas). Ntau yam tsis yuav tsum tau ntxiv ntawm kab sib cais.

Piv txwv li:

W: 08:00 Nws

H: 08:30 Nws

B: 22:00 Nws

Txhais tau tias lub sijhawm sawv los yog ib txwm 8AM thiab 8:30 AM rau WE/hnub so thiab lub sijhawm pw yog 10PM.

Txij ntawm no koj tuaj yeem nyem "tsim daim ntawv qhia hnub" ntxiv nws rau hauv daim ntawv teev npe daim ntawv qhia hnub tswj hwm los ntawm Google Calendar.

Koj yuav tsum tau txais qhov URL uas tuaj yeem siv los rub nws hauv hom iCal. Txhawm rau ua qhov no koj yuav tsum nyem rau ntawm cov kab ntsug uas tshwm ntawm sab xis ntawm daim ntawv teev npe thaum koj tuav nws nrog koj tus nas (tsis nkag siab) thiab tom qab ntawd nyem rau "Chaw thiab sib qhia".

Koj yuav tsum tau nqes mus rau nplooj ntawv teeb tsa (tsawg kawg yog tias koj tsis muaj 4k zaub) thiab tshawb nrhiav "Chaw nyob zais cia hauv iCal hom ntawv". Luam thiab khaws cov ntawv (nws tsis meej pem hauv kuv lub screenshot) vim tias koj yuav xav tau nws los teeb tsa koj lub cuab yeej.

Yog tias koj tsis muaj daim ntawv qhia hnub so txuas nrog koj tus lej nyiaj nws yog lub sijhawm los ntxiv ib qho.

Xaiv dua lub cim "+" nyob ib sab ntawm "Ntxiv tus phooj ywg daim ntawv qhia hnub" thiab lub sijhawm no xaiv "xauj daim qhia hnub hli ntawm kev txaus siab".

Qhov no yuav qhia cov npe ntawm ntau daim qhia hnub hli, suav nrog daim ntawv qhia hnub so hauv zos, xaiv qhov koj xav siv thiab nws yuav tshwm nyob rau hauv cov npe ib sab ntawm koj daim ntawv qhia hnub tam sim no.

Qhib nplooj ntawv "teeb tsa", siv cov ntawv qhia zaub mov ntsug raws li tau piav qhia ua ntej rau daim ntawv qhia hnub tsis tu ncua thiab lub sijhawm no luam thiab khaws qhov URL hauv qab "Chaw nyob pej xeem hauv hom iCal".

Yog tias koj nrhiav tsis tau daim ntawv qhia hnub so uas tsim nyog tej zaum tsuas yog tshawb hauv Google tuaj yeem pab koj nrhiav lub vev xaib uas muab iCal daim ntawv qhia hnub rau koj qhov chaw tshwj xeeb.

Txij ntawm no mus koj yuav muaj cov ntaub ntawv koj xav tau kom cia lub cuab yeej rub tawm koj daim ntawv qhia hnub:

  • URL ntawm koj daim ntawv qhia hnub tseem ceeb
  • URL ntawm daim ntawv qhia hnub so

Kauj Ruam 3: Sau Cov Ntaub Ntawv Sijhawm-cheeb tsam

Sau Cov Ntaub Ntawv Hauv Cheeb Tsam Sijhawm
Sau Cov Ntaub Ntawv Hauv Cheeb Tsam Sijhawm
Sau Cov Ntaub Ntawv Hauv Cheeb Tsam Sijhawm
Sau Cov Ntaub Ntawv Hauv Cheeb Tsam Sijhawm

Lub moos muaj peev xwm ua ke nrog cov kev pabcuam hauv internet tab sis nws yuav tsum paub nyob rau lub sijhawm twg uas koj nyob nyob kom tuaj yeem hloov kho nws lub sijhawm tam sim no thiab lub sijhawm tshwm sim rau nws.

Lub sijhawm nyob ib puag ncig tuaj yeem hais qhia siv tus lej cim piav qhia nws qhov kev txiav txim los ntawm GMT (Lub sijhawm Greenwich) thiab cov cai uas siv los hloov nruab hnub nruab hnub txuag lub sijhawm thiab lub sijhawm ib txwm muaj. Ua txoj hlua no tsis yooj yim heev tab sis hmoov zoo Mr. Pavel Gurenko tau siv lub cuab yeej zoo uas tso cai rau peb tsim cov hlua los ntawm tsuas yog muab lub npe ntawm peb lub sijhawm uas koj tuaj yeem pom ntawm https://www.pavelgurenko.com/2017/05/5/getting-posix-tz-strings-from- olson.html

Lub sijhawm teev npe nyob ntawm thaj av/lub tebchaws/nroog uas koj nyob. Hauv Tebchaws Europe nws feem ntau txaus los hais qhia Tebchaws Europe/, rau cov tebchaws uas muaj ntau lub sijhawm-cheeb tsam tej yam tuaj yeem nyuaj me ntsis tab sis nplooj wikipedia no https://en.wikipedia.org/wiki/List_of_tz_database_time_zones yuav pab koj nrhiav qhov yog.

Thaum koj tau pom lub npe cheeb tsam sijhawm koj tuaj yeem ntaus nws hauv daim ntawv ntawm mr. Gurenko's blog thiab nias xa kom tau txais txoj hlua raug (raws li koj tuaj yeem pom hauv cov screenshots).

Piv txwv txoj hlua rau kuv thaj tsam sijhawm (Europe/Rome) yog: Europe/Rome (CET-1CEST, M3.5.0, M10.5.0/3)

Luam thiab khaws cov ntaub ntawv no vim tias koj yuav tsum tau muab nws thaum teeb tsa koj lub cuab yeej.

Kauj Ruam 4: Kho thiab Ntxiv Cov Duab Tshwj Xeeb rau Koj Cov Txheej Txheem

Kho thiab Ntxiv Cov Duab Tshwj Xeeb rau Koj Cov Txheej Txheem
Kho thiab Ntxiv Cov Duab Tshwj Xeeb rau Koj Cov Txheej Txheem
Kho thiab Ntxiv Cov Duab Tshwj Xeeb rau Koj Cov Txheej Txheem
Kho thiab Ntxiv Cov Duab Tshwj Xeeb rau Koj Cov Txheej Txheem
Kho thiab Ntxiv Cov Duab Tshwj Xeeb rau Koj Cov Txheej Txheem
Kho thiab Ntxiv Cov Duab Tshwj Xeeb rau Koj Cov Txheej Txheem
Kho thiab Ntxiv Cov Duab Tshwj Xeeb rau Koj Cov Txheej Txheem
Kho thiab Ntxiv Cov Duab Tshwj Xeeb rau Koj Cov Txheej Txheem

Txij li thaum peb yuav muaj cov duab teeb duab txuas rau peb lub moos, peb tuaj yeem ntxiv qee cov duab rau peb cov xwm txheej, yog li cov menyuam tuaj yeem nkag siab tam sim ntawd dab tsi yog lub luag haujlwm tseem ceeb rau hnub ntawd. Cov cim cim rau hnub kawm ntawv, WE/hnub so thiab sijhawm pw tsaug zog tau teeb tsa hauv cov cai (koj tuaj yeem nrhiav cov lus qhia txog yuav ua li cas hloov kho lawv ntawm github repo), tab sis koj tuaj yeem ntxiv cov duab rau cov xwm txheej tshwj xeeb.

Hmoov tsis zoo, cov duab me me thiab monochromatic, yog li qhov no yuav txwv me ntsis qhov nyuaj ntawm koj cov duab.

Cov cuab yeej txhawb nqa 48x48 pixel monochrome bitmaps. Nws muaj peev xwm rub tawm lawv los ntawm google tsav, tab sis koj yuav tsum tau muab cov ntaub ntawv ntsuas kom phim lawv nrog cov lus hauv koj cov lus piav qhia kev tshwm sim.

Tsim cov duab tshwj xeeb

Ua ntej tshaj plaws, koj yuav tsum tsim bitmaps, koj tuaj yeem siv ib daim ntawv thov uas koj xav tau, tsuav koj txuag nws raws li qhov tsis tau nyem Windows Bitmap (BMP) cov ntaub ntawv. Cov ntaub ntawv loj yuav tsum yog 446 bytes.

Yog tias koj siv MS-Paint koj tuaj yeem tsim cov duab tshiab thiab hloov nws mus rau 48x48 pixels (saib thawj daim duab).

Tom qab ntawd koj tuaj yeem kos cov duab, koj tuaj yeem siv tsuas yog xim dub thiab dawb thiab pixel yuav thim rov qab ntawm lub vijtsam (dawb pixels yuav dawb thiab rov ua dua).

Thaum koj zoo siab nrog cov txiaj ntsig (lub screenshot thib ob) koj tuaj yeem xaiv "txuag raws li …" thiab xaiv cov duab hom li monochrome Windows bitmap file (daim duab thib peb).

Rub cov duab rau Google Drive thiab sau cov ntawv txuas

Thaum koj tau tsim tag nrho cov duab koj xav tau koj tuaj yeem xa lawv mus rau google drive. Kuv hais kom tsim daim nplaub tshev rau lub hom phiaj no.

Thaum koj rub koj cov duab koj yuav tsum tau txais kev rub ncaj qha txuas rau lawv siv txoj hauv kev no:

www.labnol.org/internet/direct-links-for-g…

lossis nplooj ntawv no los hloov pauv cov kev txuas mus ncaj qha rub tawm cov:

sites.google.com/site/gdocs2direct/

Koj yuav tsum koom nrog txhua daim duab txuas nrog lub npe mnemonic. Txhawm rau ua qhov no koj yuav tsum tsim cov ntawv sau tshiab (koj tuaj yeem siv cov ntawv sau ntawm lub tshuab Windows) thiab ntxiv cov duab ib kab siv cov qauv hauv qab no:

:

koj yuav tsum txiav cov npe nrog lo lus tseem ceeb "kawg" ntawm kab tshiab (saib daim duab plaub rau qhov ua piv txwv).

Upload cov ntaub ntawv index

Thaum koj ua tiav koj tuaj yeem xa cov ntaub ntawv ntsuas thiab sau nws tus kheej rub tawm URL, koj yuav tsum tau muab nws rau thaum teeb tsa koj lub cuab yeej.

Hmoov tsis zoo, Google tsav yuav tsis tso cai rau koj rub tawm cov ntawv yog tias koj hloov nws siv Google Docs editor, yog li koj yuav tsum kho cov ntawv hauv koj lub PC thiab xa nws mus rau google tsav txhua lub sijhawm koj xav ntxiv cov duab tshiab lossis hloov qee yam.

Kauj Ruam 5: Txhim Kho Software

Kev Txhim Kho Software
Kev Txhim Kho Software
Kev Txhim Kho Software
Kev Txhim Kho Software

Txhawm rau teeb tsa software ntawm koj lub cuab yeej koj yuav tsum tsim nws los ntawm qhov chaws.

Teeb Arduino IDE thiab ESP-32 kev txhawb nqa

Koj yuav tsum teeb tsa Arduino IDE uas koj tuaj yeem rub tawm los ntawm lub vev xaib raug cai Arduino.

Tom qab ntawd koj yuav tsum teeb tsa ESP-32 kev txhawb nqa raws li cov lus qhia ntawm github.

Txog ntawm qhov no, koj yuav tsum ntsuas tias cov qauv tuaj yeem tsim thiab rub tawm rau koj lub cuab yeej ua ntej tsim cov phiaj xwm tshwj xeeb.

Rub cov tsev qiv ntawv thiab cov lej

Koj yuav tsum tau ntxiv cov tsev qiv ntawv uas xav tau rau txoj haujlwm siv Arduino Library tus thawj tswj hwm.

Xaiv "Sketch suav nrog Lub Tsev Qiv Ntawv Tswj Cov Tsev Qiv Ntawv …" los ntawm Arduino IDE cov ntawv qhia zaub mov tseem ceeb (saib thawj lub screenshot).

Txhawm rau tsim cov cai koj yuav tsum tshawb nrhiav thiab teeb tsa:

  • Adafruit GFX Lub Tsev Qiv Ntawv
  • Adafruit SSD1306
  • RootCertificates

Txhawm rau teeb tsa lub tsev qiv ntawv yooj yim ntaus nws lub npe hauv lub npov tshawb nrhiav, nyem nkag mus, xaiv lub tsev qiv ntawv raug los ntawm cov npe, qhov hloov tshiab kawg los ntawm daim ntawv teev cov version thiab xaiv "nruab" (saib lub screenshot thib ob).

Download tau chaws

Thaum koj tau teeb tsa cov tsev qiv ntawv xav tau koj tuaj yeem rub tawm qhov chaws los ntawm kuv qhov chaw cia khoom github.

Koj tuaj yeem yooj yim unzip lossis clone nws hauv daim nplaub tshev uas koj daim duab Arduino tau txais kev cawmdim.

Software tseem tab tom ua haujlwm, yog li xav tias qhib qhov teeb meem ntawm github yog tias koj ntsib teeb meem thiab khaws qhov muag rau nws rau yav tom ntej hloov tshiab.

Kauj Ruam 6: Teeb Software

Teeb Software
Teeb Software
Teeb Software
Teeb Software
Teeb Software
Teeb Software
Teeb Software
Teeb Software

Txhawm rau tso cai rau koj lub moos txuas rau nws tus kheej daim ntawv qhia hnub thiab sau cov ntaub ntawv ntxiv (daim ntawv qhia hnub so, cim cim thiab lwm yam) koj xav tau ua ntej los teeb tsa daim duab teeb tsa.

Khiav teeb duab kos

Hauv Arduino IDE koj tuaj yeem xaiv "File Open …" thiab mus rau lub nplaub tshev uas koj khaws cov cai koj rub tawm los ntawm github.

Tom qab ntawd koj tuaj yeem txav lub "KidsClockConfig" nplaub tshev thiab qhib qhov "KidsClockConfig.ino" kos duab (saib thawj lub screenshot).

Koj yuav tsum txuas koj lub rooj tsav xwm ESP-32 siv USB cable, qhov no yuav txhawb nws ib yam.

Koj lub khoos phis tawj yuav muab qhov chaw nres nkoj txuas rau nws, koj yuav tsum xaiv nws hauv qhov chaw nres nkoj raug hauv "sub -tools" ports ntawm Arduino IDE.

Koj tuaj yeem xaiv lub pob "upload" (xub taw rau sab xis) los ntawm Arduino toolbar los tsim thiab rub cov cai ntawm koj tus qauv.

Cov lus kawg ntawm lub qhov rais tso tawm (hauv qab ntawm Arduino IDE) yuav tsum yog:

Nyuaj rov pib dua ntawm RTS tus pin…

Yog tias cov txheej txheem ua tiav tiav koj tuaj yeem qhib lub qhov rai dav hlau kom ntxig cov ntaub ntawv teeb tsa.

Txhawm rau qhib lub davhlau ya nyob twg xaiv "cov cuab yeej / serial monitor …" hauv Arduino IDE cov ntawv qhia zaub mov tseem ceeb, qhov no yuav qhib lub qhov rai tshiab uas yuav tso cai rau koj sib txuas lus nrog lub cuab yeej dhau tus lej xov tooj (siv tib lub USB cable koj siv los rub tus lej).

Kho qhov nrawm rau 115200 baud (saib cov ntawv txuas nrog) thiab nias "xa" khawm.

Cov cuab yeej yuav nug koj SSID (lub npe ntawm koj lub network Wi-nkaus). Cov chaw tau khaws cia hauv lub cuab yeej EEPROM (khaws cia tas mus li), yog tias qee yam twb tau txais kev cawm lawm koj tsuas yog xav tau ntaus xa kom nws zoo li nws, txwv tsis pub tsuas yog luam lossis ntaus cov ntaub ntawv hauv kab ntawv thiab ntaus xa.

Koj yuav raug nug txog:

  • SSID (saib screenshot)
  • Wi-nkaus qhov tseem ceeb (password)
  • pej xeem URL ntawm daim ntawv qhia hnub siv rau cov xwm txheej (qhov koj tau tsim hauv qib 2)
  • URL ntawm daim ntawv qhia hnub so (rau koj lub tebchaws/chaw nyob, sau hauv theem 2)
  • Timezone hauv hom ntawv tau txais hauv kauj ruam 3 (piv txwv li lub sijhawm nyob rau tebchaws Ltalis yog "CET-1CEST, M3.5.0, M10.5.0/3" ntxig nrog tsis hais nqe lus)
  • URL ntawm cov ntaub ntawv ntsuas (tsim hauv qib 4)

Tom qab ntxig cov ntaub ntawv kawg koj yuav tsum pom:

Cov chaw tau txais kev cawmdim.

Luam tawm ntawm cov ntawv txuas.

Tam sim no koj lub cuab yeej npaj los ua qhov kev kos duab zaum kawg thiab siv los ua lub txaj pw.

Khiav qhov kos duab zaum kawg

Txij ntawm no mus, koj tuaj yeem qhib qhov kos duab hu ua "KidsClock" thiab rub nws mus rau lub cuab yeej.

Nws yuav thauj cov teeb tsa thiab tso tawm qee cov ntaub ntawv ntawm chaw nres nkoj txuas, rub tawm cov ntaub ntawv los ntawm net.

Txheeb xyuas tias tsis muaj qhov ua yuam kev raug tshaj tawm thiab txiav tawm lub cuab yeej los ntawm koj lub PC, koj npaj tau txuas lwm cov khoom siv kho vajtse thiab siv nws.

Kauj Ruam 7: Base Phaj thiab Cov Khoom Siv Hluav Taws Xob

Phaj Phaj thiab Cov Khoom Siv Hluav Taws Xob
Phaj Phaj thiab Cov Khoom Siv Hluav Taws Xob
Phaj Phaj thiab Cov Khoom Siv Hluav Taws Xob
Phaj Phaj thiab Cov Khoom Siv Hluav Taws Xob
Phaj Phaj thiab Lub Hwj Huam Fais Fab
Phaj Phaj thiab Lub Hwj Huam Fais Fab

Kuv cov menyuam pw ntawm lub txaj ob, yog li kuv xav tsim lub moos uas tuaj yeem txuas nrog cov qauv ntoo ntawm lub txaj. Kuv kuj xav kom nkag mus tau yooj yim rau sab hauv (txhawm rau kho teeb meem) thiab txoj hauv kev yooj yim rau lub zog tua thiab rov qab los ntawm lub moos yog tias muaj qee yam tsis raug ntawm lub software sab.

Kuv txiav txim siab siv cov hlau nplaum ua kom kuv lub moos txuas rau lub phaj txhawb me me txuas rau lub txaj. Txij li cov hlau nplaum tseem ua hluav taws xob Kuv txiav txim siab txuas lawv mus rau lub zog siv. Txoj hauv kev no tshem tawm thiab rov txuas lub moos rau hauv phaj yuav rov pib dua. Koj tuaj yeem pom 3D tsim rau lub thawv ntawv ntawm lub moos xav.

Thawj qhov koj yuav tsum tau xaim yog lub hauv paus phaj. Koj yuav tsum muaj peev xwm ua kom haum cov hlau nplaum hauv qhov. Qhov no yuav xav tau qee qhov kev nyuaj siab, tab sis kom lawv nyob nyab xeeb hauv qhov chaw yuav tsum tau tso cai tias lawv yuav tsis txuas nrog rau rooj plaub tseem ceeb thaum koj tshem lub moos.

Kuv tau siv cov xov hlau los ntawm 5V lub zog xa ncaj qha rau cov hlau nplaum. Koj tuaj yeem tso cov hlau nplaum ua ntej, tom qab ntawd txuas cov xov hlau los ntawm sab nraub qaum. Cua sov cov hlau nplaum tseem yuav yaj me ntsis PLA puag ncig lawv, ua kom ntseeg tau tias lawv yuav tsis raug tshem tawm yooj yim los ntawm phaj.

Kev siv fais fab ntawm lub cuab yeej tsawg heev, yog li 500mA fais fab mov yuav ua. Ceev faj txog cov hlau nplaum uas koj txuas rau lub xov tooj zoo thiab tsis zoo ntawm lub zog siv (nws yog lub tswv yim zoo los sau "+" thiab "-" nrog tus cim kom tsis txhob pauv lawv).

Kauj Ruam 8: Cov Ntaub Ntawv Tseem Ceeb

Case Loj
Case Loj
Case Loj
Case Loj
Case Loj
Case Loj

Koj yuav tsum txuas ob lub hlau nplaum ntxiv thiab siv lawv xa lub zog rau lub rooj tsavxwm, mus rau cov zaub thiab mus rau lub zog txav.

Txhawm rau ua kom yooj yim yam kuv txiav qee cov jumper cables (pawg thawj coj saib thiab lwm yam khoom muaj 2.54mm pins) thiab ua ob kab nrog ntau qhov tso tawm (saib daim duab thawj). Ib qho nrog 3 qhov tso tawm rau 5V cov khoom siv thiab ib qho nrog 4 rau hauv av.

Koj yuav tsum nqa cov xaim uas tsis muaj lub txuas txuas thiab txuas nws mus rau cov hlau nplaum, tab sis koj yuav tsum ua ob yam ua ntej:

  • xyuas seb sab twg ntawm cov hlau nplaum sib phim qhov sib npaug ntawm cov hlau nplaum koj tau kos rau hauv lub hauv paus phaj. Koj tuaj yeem yooj yim txuas ob lub hlau nplaum uas koj npaj yuav siv rau sab saum toj ntawm cov uas twb tau ua hauv lub hauv paus phaj.
  • xaub cov xaim sab hauv lub qhov raug hauv rooj plaub, hauv cov theem no koj yuav tsum tau muab cov xaim txuas mus rau cov hlau nplaum ua ntej thiab tom qab ntawd ntsaws rau hauv nws, raws li qhia hauv duab.

Txheeb xyuas ob zaug tias cov xov hlau liab thiab dub sib phim qhov tsis sib xws ntawm lub hauv paus, xaim lawv hauv txoj kev tsis raug yuav ua rau koj cov khoom puas tsuaj.

Kauj Ruam 9: Txhim Kho Cheeb Tsam Sab Hauv Qhov Rooj

Mounting Cheeb Tsam Sab Hauv Cov Ntaub Ntawv
Mounting Cheeb Tsam Sab Hauv Cov Ntaub Ntawv
Mounting Cheeb Tsam Sab Hauv Cov Ntaub Ntawv
Mounting Cheeb Tsam Sab Hauv Cov Ntaub Ntawv
Mounting Cheeb Tsam Sab Hauv Cov Ntaub Ntawv
Mounting Cheeb Tsam Sab Hauv Cov Ntaub Ntawv

Cov ntaub ntawv luam tawm 3D muaj ob qhov sib dhos, ib qho (nyob rau sab saum toj) rau PIR sensor thiab ib qho nyob hauv qab ntawm cov zaub.

Koj yuav tsum nce cov zaub ua ntej. Maj mam thawb nws sab hauv qhov chaw teeb tsa (iav tsis tiv taus, yam tsawg kawg ntawm cov zaub kuv siv, yog li ceev faj) thiab xauv nws hauv qhov chaw nrog ib qho ntawm cov duab plaub me me. Qhov no yuav tsum txaus kom nws muab xauv rau hauv qhov chaw, ua rau cov pins nkag tau yooj yim rau thaiv.

Tam sim no koj yuav tsum nce lub PIR sensor tab sis ua ntej, koj yuav tsum txo qis nws qhov rhiab heev kom tsis txhob tias nws tuaj yeem tshwm sim los ntawm kev txav thaum pw tsaug zog. Kuv tau siv qee daim kab xev xev los npog lub ntsej muag lub ntsej muag, tsuas yog qhib qhov ze rau sab saum toj ntawm lub ntsuas cua, ua li no koj yuav tsum yoj tes rau ntawm lub moos kom qhib nws. Kuv kuj tseem siv cov ntsia hlau txhawm rau ntsuas kev nkag siab mus rau qib qis, yog li tsuas yog txhais tes nyob ze rau lub sensor yuav qhib nws. Txheeb cov ntaub ntawv ntawm koj lub PIR sensor kom nkag siab yuav teeb tsa nws qhov kev nkag siab li cas (yog tias qhov no tuaj yeem ua tau, tau kawg).

Thaum koj tau npog lub ntsej muag thiab teeb tsa lub sensor koj tuaj yeem kaw lub lens nyob rau hauv qhov chaw thiab xaub lub ntsuas cua sab hauv nws lub qhov ntsaws, kho nws nrog lub thaiv plaub fab zoo li koj tau ua rau cov zaub.

Kauj Ruam 10: Txuas thiab Xeem

Kev thaiv thiab Kev Xeem
Kev thaiv thiab Kev Xeem
Kev thaiv thiab Kev Xeem
Kev thaiv thiab Kev Xeem
Kev thaiv thiab Kev Xeem
Kev thaiv thiab Kev Xeem

Tam sim no nws yog lub sijhawm los xaim koj cov khoom ua ke thiab tshawb xyuas yog tias lub moos ua haujlwm.

Koj tuaj yeem pom cov txheej txheem los ntawm rub tawm cov ntawv PDF txuas rau cov kauj ruam no.

Ua ntej tshaj, koj yuav tsum txuas I2C pins (SCL thiab SDA) ntawm ESP-32 pawg thawj coj saib mus rau cov zaub.

Ntawm daim ntawv doit, cov no yog cov cim npe GPIO21 thiab GPIO22, txoj haujlwm thiab cov ntawv yuav hloov pauv ntawm lwm ESP-32 raws cov laug cam, tab sis koj yuav tsum yooj yim pom SCL thiab SDA tau hais hauv cov ntaub ntawv.

Tom qab ntawd koj yuav tsum txuas tus pin tso tawm ntawm PIR (tus pin nruab nrab rau kuv lub sensor tab sis, dua, txheeb xyuas cov ntaub ntawv yog tias koj siv qhov sib txawv) rau GPIO12.

Ntawm qhov no koj yuav tsum txuas 5V lub zog xa khoom (kab liab) rau VIN tus pin ntawm pawg thawj coj saib, PIR thiab tso saib thiab hauv av cable (dub) rau 2 tus pin hauv av ntawm lub rooj tsavxwm (ib qho yuav tsum txaus, tab sis kuv nyiam siv ob qho tib si los ua kom pawg thawj coj sib txuas nruj dua hauv rooj plaub), PIR thiab tso saib

Tej yam yuav zoo li nyuab me ntsis, tab sis koj yuav tsum muaj peev xwm xaub txhua yam hauv rooj plaub, tawm hauv ESP32 tus qauv rau saum thiab tom qab ntawv muab cov ntaub ntawv tso rau hauv phaj phaj.

Cov zaub yuav tsum qhib hauv tsawg dua ib pliag, qhia cov lus: "txuas rau" thiab koj li SSID.

Tom qab ob peb feeb, nws yuav tsum tso saib lub sijhawm tam sim no thiab tom qab ntawd kho cov duab raws li nws.

Kauj Ruam 11: Ntxiv Kev Nkag Mus Rau Daim Ntawv Teev Npe

Ntxiv Kev Nkag Mus Rau Daim Ntawv Teev Npe
Ntxiv Kev Nkag Mus Rau Daim Ntawv Teev Npe

Tam sim no koj tuaj yeem ntxiv cov nkag tshiab rau hauv daim ntawv qhia hnub.

Koj tuaj yeem siv lub vev xaib daim ntawv qhia hnub lossis lub xov tooj app.

Nias lub cim "+" loj thiab teeb tsa koj qhov kev tshwm sim.

Yam tseem ceeb kom pom (saib screenshot) yog:

- Nco ntsoov tias koj tau xaiv daim ntawv qhia hnub nyoog raug, Google siv koj daim ntawv qhia hnub nyoog raws li lub hauv paus, koj yuav tau hloov nws

- lub sijhawm pib ntawm qhov kev tshwm sim tseem yog lub sijhawm sawv, yog li lub sijhawm thaum cov zaub hloov pauv los ntawm hom tsaus ntuj mus rau qhov xwm txheej

- lub cuab yeej tsuas yog txhawb nqa ib qho xwm txheej, tsis rov ua dua/ncua sijhawm

- Cov ntawv hauv cov ncauj lus kawm (txog 32 tus ntawv) yuav muab tso rau hauv qab lub cim

- Hauv cov lus piav qhia, koj tuaj yeem ntxiv lub npe ntawm ib qho ntawm cov duab uas koj teeb tsa hauv qib 4, lossis tso nws tseg kom siv lub cim cim tseg.

Daim ntawv thov rub daim ntawv qhia hnub txhua 10 feeb, yog li koj qhov xwm txheej yuav tsis tshwm tam sim yog tias koj teeb tsa nws rau hnub tam sim no.

Nws yog lub tswv yim zoo kom tshem tawm cov npe qub hauv daim ntawv qhia hnub, yog li cov ntaub ntawv ntau npaum li cas uas lub cuab yeej yuav tsum rub tawm los hloov kho nws tus kheej lub sijhawm yuav tsis nce ntxiv nyob rau lub sijhawm.

Kauj Ruam 12: Xaus

Xaus
Xaus

Kuv vam tias koj yuav sim tsim thiab hloov kho lub cuab yeej me me no, siv nws yog txoj hauv kev los kawm txog microcontrollers, kev sib txuas thiab lwm yam thiab tseem ua kom sawv ntxov thaum sawv ntxov lom zem rau koj cov menyuam.

Kuv npaj yuav sau nws ntawm kuv qhov blog sai sai no, ntxiv qee qhov kev qhia paub ntxiv piv rau cov lus qhia tsim no.

Yog tias koj muaj teeb meem tsim nws, xav tias siv cov lus pom ntawm no. Yog tias koj ntsib teeb meem nrog software, thov siv github repo.

Qhov no yog, tau kawg, tsis yog cov khoom tiav. Nws tsuas yog kev sim lom zem uas qhia pom tias koj tuaj yeem xa cov ntaub ntawv los ntawm kev siv internet mus rau lub cuab yeej tshwj xeeb lub cev li cas. Nws tseem yog txoj haujlwm tseem ceeb rau kuv, ua cov lus qhia los ntawm cov menyuam txog yuav ua li cas nws tuaj yeem txhim kho. Xav tias dawb los qhia koj cov kev xav thiab cov lus qhia!

Pom zoo: