Cov txheej txheem:

YouTube Desktop Notifier: 11 Kauj Ruam (nrog Duab)
YouTube Desktop Notifier: 11 Kauj Ruam (nrog Duab)

Video: YouTube Desktop Notifier: 11 Kauj Ruam (nrog Duab)

Video: YouTube Desktop Notifier: 11 Kauj Ruam (nrog Duab)
Video: Plab Plab Ntswg..(Pluav Pluav Ntswg) Maiv Twm New Song 2023-2024 2024, Kaum ib hlis
Anonim
Image
Image

Koj puas tau npau suav phem ntawm kev poob koj li YouTube Subscribers? Yog koj ua, koj tsis yog tib leeg xwb.

Hmoov zoo kuv tau ua qhov no "YouTube Desktop Notifier" kom ua rau kuv paub nrog kuv cov channel Subscriber thiab View Counts. Qhov haujlwm DIY yooj yim heev no ua rau kuv nyob ib ncig $ 10 thiab tam sim no nws ua rau kuv taug qab nrog kuv cov channel. Lwm yam tshaj li tso tawm Tus Neeg Sau Npe thiab Saib suav cov cuab yeej no kuj "Beeps thiab Glows" thaum kuv cov channel tau txais cov neeg siv tshiab.

Kauj Ruam 1: Yuav Tsum Kho Vajtse - 1

Yuav Tsum Kho Vajtse - 2
Yuav Tsum Kho Vajtse - 2

Txog qhov haujlwm no, peb xav tau kev sib xyaw ntawm ob qho khoom siv hluav taws xob thiab cov cuab yeej ua haujlwm ntoo.

  • Cov khoom siv hluav taws xob suav nrog:
  • Ib Perfboard
  • NodeMCU
  • 220v AC rau 5v DC Buck Step-Down Module
  • Buzzer Shield lossis Buzzer thiab 100Ω Resistor
  • SPDT hloov
  • 4 x TM1637 4 Bits Digital 7-Segment Displays
  • Ob peb xim LEDs thiab sib npaug ntawm 220Ω Resistors
  • Ob peb txuas cov cables
  • Ib tug USB cable kom upload cov chaws
  • thiab General Soldering Equipments

Kauj Ruam 2: Yuav Tsum Kho Vajtse - 2

Rau kev ua haujlwm me ntsis peb xav tau:

  • Ntoo Ntoo
  • Mem hluav
  • Xev Xev
  • Hand/Chop Pom
  • Rauj
  • Ntsia
  • Sanding Tool
  • thiab Cov Khoom Siv Tiv Thaiv Tus Kheej (PPE) rau kev txiav ntoo

Kuv tab tom ua qhov thaiv tawm ntawm pallet-ntoo raws li kuv muaj cov pawg loj ntawm cov khoom seem tshuav los ntawm kuv lwm qhov DIY WoodWorking Projects. Koj tseem tuaj yeem ua lub thawv tawm ntawm cov duab los qhia lossis yas ntim thiab pleev xim kom muab nws saib zoo.

Kauj Ruam 3: Cov ncauj lus npog

Cov ntsiab lus npog
Cov ntsiab lus npog

Kauj Ruam 4: Txoj Kev Npaj

Txoj Kev Npaj
Txoj Kev Npaj

Txoj kev npaj yuav ua lub thawv 24cm x 10cm los tuav cov khoom siv hluav taws xob hauv nws.

Thaum lub cuab yeej siv tau, nws yuav xub txuas rau lub network Wi-nkaus tshwj xeeb uas siv SSID thiab tus lej password muab hauv tus lej. Thaum qhov kev sib txuas ua tiav cov cai siv ua ke ntawm "Google API tus yuam sij" (Kuv yuav qhia koj yuav tsim nws li cas hauv ntu tom qab) thiab koj "YouTube Channels 'ID" mus nqa cov ntaub ntawv los ntawm YouTube server. Cov cuab yeej tom qab ntawd qhia pom thiab pom cov neeg siv suav nrog siv 7 ntu saib.

Tom qab tso tawm cov ntaub ntawv nws tos 5 feeb ua ntej mus nqa cov txheej txheem tom ntej los ntawm YouTube server. Qhov sib txawv tau siv los khaws cov neeg rau npe tam sim no. Yog tias cov neeg siv npe tshiab suav ntau dua li suav qhov qub lub suab nrov mus thiab cov xiav thiab dawb LEDs nyem (ci).

Kauj Ruam 5: Kev thaiv kab

Thaiv
Thaiv

Txoj hlua yog yooj yim heev. Peb yuav pib los ntawm kev txuas 7-Segment cov lus rau lub microcontroller. Txhua ntawm cov lus qhia no muaj 4 tus pin, 2 rau lub zog thiab ib qho rau lub moos thiab lwm qhov rau cov ntaub ntawv. Txuas cov ntaub ntawv thiab tus lej xov tooj mus rau NodeMCU raws li qhov kev qhia qhia ntawm lub vijtsam.

Tom qab ntawd peb yuav txuas txhua VCC tus pin ntawm cov lus rau 3.3V tus pin ntawm NodeMCU. Tom ntej no, txuas lub buzzer shield/buzzer nrog 100Ω Resistor rau D8 tus pin. Tom qab ntawd txuas cov xiav thiab dawb LEDs rau D9 thiab D10 pins nrog 220Ω tam sim no txwv kev tiv thaiv feem.

Tam sim no, mus tom ntej thiab txuas tag nrho cov pins hauv av rau GND tus pin ntawm NodeMCU. Thaum txhua tus pin txuas nrog, txuas qhov hloov pauv mus rau VIN ntawm NodeMCU thiab GND rau GND ntawm tus hloov pauv.

Kauj Ruam 6: Siv Lub Tsev Qiv Ntawv

Tsev qiv ntawv siv
Tsev qiv ntawv siv
Cov tsev qiv ntawv siv
Cov tsev qiv ntawv siv
Tsev qiv ntawv siv
Tsev qiv ntawv siv
Cov tsev qiv ntawv siv
Cov tsev qiv ntawv siv

Tus neeg siv channel thiab tus lej ID yog teev nyob hauv "Cov ntaub ntawv nyiaj txiag"

Nkag mus rau hauv koj tus lej YouTube.

Nyob rau sab xis saum toj, nyem rau koj tus account icon> Chaw.

Los ntawm sab laug tes vaj huam sib luag nyem rau ntawm "Advanced settings".

Nov yog cov npe tsev qiv ntawv uas peb xav tau rau txoj haujlwm no.

Software Libraries:

  • TM1637 LED Tsav Tsheb:
  • ESP8266WiFi:
  • Arduino Json:
  • Arduino YouTube API:

Koj tuaj yeem rub lawv tag nrho los ntawm GitHub, Kuv tau muab cov kab ntawv txuas hauv cov lus piav qhia hauv qab no. Thaum rub tawm unzip thiab hloov npe cov tsev qiv ntawv los ntawm kev tshem tawm cov cim tshwj xeeb thiab "tus tswv" los ntawm lawv cov npe. Muab daim nplaub tshev tso rau hauv koj lub Arduino lub tsev qiv ntawv tais ceev tseg. Tej zaum koj yuav xav tsim lub Tsev Qiv Ntawv yog tias qhov no yog koj lub tsev qiv ntawv thib 1. Rov pib dua IDE kom nws ua kom raug cov ntaub ntawv KEYWORD, Piv txwv, thiab ntxiv Cov Tsev Qiv Ntawv rau Cov Ntawv Qhia Qiv.

Cim Cim:

  • WiFi SSID/tus password
  • YouTube channel ID:
  • Google API Key:
  • Nrog rau cov tsev qiv ntawv koj tseem xav tau ob peb tus cim tshwj xeeb rau txoj haujlwm no.
  • Thawj qhov yog SSID thiab tus password ntawm koj lub wireless network.
  • Tom qab ntawd, koj xav tau koj li YouTube Channel tus cim channel ID. Kom tau qhov ntawd:

    • Nkag mus rau hauv koj tus lej YouTube.
    • Nyob rau sab xis saum toj, nyem rau koj tus account icon> Chaw.
    • Los ntawm sab laug tes vaj huam sib luag nyem rau ntawm "Advanced settings".
    • Tus neeg siv channel thiab tus lej ID yog teev nyob hauv "Cov ntaub ntawv nyiaj txiag"
  • Thiab thaum kawg koj yuav tsum tsim "Google API Key" rau koj cov channel. Txhawm rau tsim tus yuam sij

    • Google tshawb "Siv API Keys" lossis qhib qhov txuas uas tau muab hauv cov lus piav qhia hauv qab no.
    • Scroll cia thiab nyem rau ntawm "APIs & Cov Kev Pabcuam red Cov Ntawv Pov Thawj"
    • Yog tias qhov no yog thawj zaug koj tau nkag mus rau nplooj ntawv no koj yuav tsum tsim txoj haujlwm tshiab los ntawm txhaj rau "Tsim" khawm.
    • Txais cov lus thiab muab koj lub npe lub npe tom qab ntaus "Tsim" khawm los tsim txoj haujlwm
    • Thaum ib qhov haujlwm tau tsim koj tsuas yog yuav tsum nyem rau ntawm "Tsim daim ntawv pov thawj" poob thiab xaiv "API yuam sij" los ntawm qhov ntawd
    • Lub kaw lus yuav siv nws lub sijhawm los tsim tus yuam sij. Thaum tsim tawm, nws yuav qhia koj tus yuam sij hauv kev sib tham popup. - Luam thiab khaws nws hauv koj tus email
    • Tam sim no nyem rau ntawm "Library" xaiv los ntawm sab laug tes vaj huam sib luag thiab
    • Scroll cia thiab pab kom "YouTube Cov Ntaub Ntawv API v3" thiab "YouTube Qhia Txog API" los ntawm txhaj rau lawv thiab tsoo lub pob "Pab kom"
    • Tos li 5 txog 10 feeb thiab tom qab ntawd koj yuav tsum tuaj yeem siv API Key koj nyuam qhuav tsim hauv koj li kev cai.

Kauj Ruam 7: Ntoo Ua Haujlwm

Ntoo Ua Haujlwm
Ntoo Ua Haujlwm
Ntoo Ua Haujlwm
Ntoo Ua Haujlwm
Ntoo Ua Haujlwm
Ntoo Ua Haujlwm
Ntoo Ua Haujlwm
Ntoo Ua Haujlwm

Cia peb pib peb txoj haujlwm los ntawm kev sib dhos lub thawv ntoo. Raws li tau tham ua ntej, Kuv yuav txiav:

2 x 24x10cm, 2 x 10x6cm sab panels thiab ib qho 24x10cm rov qab phaj. Tom qab txiav tag nrho cov ntoo thaiv kuv yuav mus koom thiab xuab zeb lawv muab lub thawv kom zoo thiab du. Nyob tom qab ntawm chav tsev kuv yuav laum 2 lub qhov, ib qho ntawm lawv yuav yog rau lub hwj huam qaum thiab lwm qhov yog rau lub qhov hluav taws xob qhib thiab tawm.

Kauj ruam 8: Soldering

Soldering
Soldering
Soldering
Soldering
Soldering
Soldering
Soldering
Soldering

Thaum lub thawv tau npaj tiav, Kuv yuav muab cov khoom siv hluav taws xob tso rau tag nrho thiab nruab rau hauv lub thawv.

Kuv yuav pib los ntawm kev siv lub NodeMCU. Tom qab ntawd, Kuv yuav muab 100Ω Resistor rau D8 tus pin ntawm NodeMCU. Tom qab ntawd kuv yuav txuas lub suab nrov rau lub perfboard thiab yuav txuas nws mus rau NodeMCU. Tom ntej no, Kuv tab tom yuav hloov qhov hloov pauv thiab teeb tsa nws nyob tom qab ntawm lub npov. Raws li cov txheej txheem ib tus pin ntawm qhov hloov pauv yuav txuas rau VIN ntawm NodeMCU thiab lwm qhov rau +ve lub davhlau ya nyob twg ntawm cov hloov pauv. Qhov kawg ntawm qhov hloov pauv yuav txuas rau GND tus pin ntawm NodeMCU. Tam sim no, Kuv tab tom yuav solder 7-ntu raws li cov txheej txheem.

Tom ntej no, Kuv tab tom siv cov xim xiav thiab dawb LEDs rau D9 thiab D10 pins ntawm NodeMCU. Yog li, qhov no yog li cas kuv lub ntsej muag zoo li. Cia kuv ua qhov ntsuas nrawm ua ntej txhim kho lub ntsej muag. Zoo li txhua yam ua haujlwm zoo li lawv yuav tsum tau ua. OK, yog li cia kuv teeb tsa lub ntsej muag thiab tom qab ntawd kuv yuav piav qhia txoj cai rau koj.

Kauj Ruam 9: Txoj Cai

Txoj Cai
Txoj Cai

Cov no yog cov npe ntawm cov tsev qiv ntawv uas peb xav tau rau txoj haujlwm no.

Tam sim no, yog tias koj siv tib lub phiaj xwm zoo ib yam li kuv koj tsis tas yuav hloov kho dab tsi hauv cov cai no dua li ob peb kab no. Koj tsuas yog xav tau ntxiv SSID thiab Password ntawm koj WiFI network thiab Google API Key thiab cov lej ID ntawm no. So koj tuaj yeem tawm mus raws li yog thiab thauj cov cai rau NodeMCU.

"Api_mtbs" yog lub sijhawm nruab nrab ntawm API thov los ntawm microprocessor.

Tom qab ntawd, Kuv tab tom pib ua cov lus qhia los ntawm kev teeb tsa lub moos thiab cov ntaub ntawv pins. Tom qab ntawd kuv teeb tsa lub tswb nrov thiab 2 LEDs.

Hauv kev teeb tsa () ntu Kuv tab tom teeb tsa tus qauv LED tus pin thiab tig lub xiav LED rau thaum pib. Tom qab ntawd kuv tau tshem tag nrho 7-Segments thiab tso tawm 0 ntawm cov zaub 1 thiab 3. Tom qab ntawd lub cuab yeej yuav txuas rau WiFI network siv cov ntaub ntawv pov thawj muab.

Hauv lub voj () ntu thaum tus nqi ntawm lub txee ntau dua api_mtbs lossis hauv cov lus yooj yim, thaum lub sijhawm los ua qhov kev thov tom ntej rau YouTube server, API hu nrog tus lej ID tau ua thiab cov txiaj ntsig tau tshwm rau ntawm serial monitor thiab ntawm 7-Segment display. Koj yuav tsum suav tus MOD ntawm cov suav tau txais los tso saib 4 tus lej kawg thiab tom qab ntawd rho tawm tus nqi los ntawm tus lej qub kom tau txais thawj 4 tus lej. Ib yam uas kuv tau pom yog tias yog tus MOD cia rau hais 24 ces cov zaub tsuas yog qhia 24 thiab tsis yog 0024. Yog li peb yuav tau ntxiv cov zeros uas ploj lawm rau hauv cov zaub. Qhov me ntsis ntawm cov cai yog ntxiv 0 qhov uas ploj lawm.

Thiab thaum kawg, qhov me me ntawm cov cai yog qhib lub buzzer thiab LEDs thaum cov neeg siv tshiab suav ua ntau dua li cov neeg siv qub.

Nco tseg: Tus Pin D9 thiab D10 yog RX thiab TX tus pin ntawm NodeMCU. Yog li, yog tias koj txuas cov LEDs rau cov pins no koj yuav tsis tuaj yeem tau txais ib yam dab tsi ntawm tus lej saib. Yog li, thaum ntsuas txheej txheem tsis txuas ib yam dab tsi rau D9 thiab D10 tus pin thiab tawm tswv yim me ntsis uas teeb tsa tus qauv rau tus pin no.

Koj tuaj yeem rub tawm cov cai los ntawm qhov txuas hauv kab lus piav qhia hauv qab no.

Kauj Ruam 10: Kev Txhim Kho Yav Tom Ntej

Kev Txhim Kho Yav Tom Ntej
Kev Txhim Kho Yav Tom Ntej

Ob peb yam uas kuv yuav suav nrog hauv qhov yuav los tom ntej ntawm txoj haujlwm no yog:

  • Txuag kev suav txhua hnub rau lub vev xaib cov vev xaib cov ntaub ntawv
  • Txuag suav txhua hli rau lub vev xaib cov vev xaib cov ntaub ntawv
  • Tsim Web Interface los tso saib txhua hnub/txhua hli kev txheeb xyuas siv kab/kab kab
  • Ntxiv NeoPixels hloov qhov ntsais LEDs

Yog tias koj muaj lwm yam lus qhia thov qhia rau kuv paub hauv cov lus hauv qab no. Yog lawm, yog li cas koj tseem tos? Mus tom ntej thiab ntaus lub pob nyem sau npe thiab cia kuv lub desktop ceeb toom ceeb toom thiab ci.

Pom zoo: