Cov txheej txheem:

YouTube Cov Neeg Sau Npe Suav Siv E-Paper Display thiab Raspberry Pi Zero W: 5 Cov Kauj Ruam (nrog Duab)
YouTube Cov Neeg Sau Npe Suav Siv E-Paper Display thiab Raspberry Pi Zero W: 5 Cov Kauj Ruam (nrog Duab)

Video: YouTube Cov Neeg Sau Npe Suav Siv E-Paper Display thiab Raspberry Pi Zero W: 5 Cov Kauj Ruam (nrog Duab)

Video: YouTube Cov Neeg Sau Npe Suav Siv E-Paper Display thiab Raspberry Pi Zero W: 5 Cov Kauj Ruam (nrog Duab)
Video: Musicians talk about Buckethead 2024, Kaum ib hlis
Anonim
YouTube Cov Neeg Sau Npe Suav Siv E-Paper Display thiab Raspberry Pi Zero W
YouTube Cov Neeg Sau Npe Suav Siv E-Paper Display thiab Raspberry Pi Zero W
YouTube Cov Neeg Sau Npe Suav Siv E-Paper Display thiab Raspberry Pi Zero W
YouTube Cov Neeg Sau Npe Suav Siv E-Paper Display thiab Raspberry Pi Zero W
YouTube Cov Neeg Sau Npe Suav Siv E-Paper Display thiab Raspberry Pi Zero W
YouTube Cov Neeg Sau Npe Suav Siv E-Paper Display thiab Raspberry Pi Zero W

Hauv Cov Lus Qhia no, Kuv yuav qhia koj yuav tsim koj tus kheej li cas hauv Youtube Cov Neeg Sau Npe Counter siv e-ntawv tso saib, thiab Raspberry Pi Zero W txhawm rau nug YouTube API thiab hloov kho cov zaub. Cov ntawv E-ntawv yog qhov zoo rau hom haujlwm no vim tias lawv muaj kev nyeem tau zoo, txawm tias nyob hauv lub hnub ci ci, thiab tuaj yeem pom los ntawm yuav luag txhua lub kaum ntse ntse, zoo li ntawv.

Cov zaub yuav tsum tau hloov kho yam tsawg kawg ib zaug hauv ib hnub los tiv thaiv kev hlawv hauv cov zaub, tab sis kuv tau teeb tsa kuv li hloov tshiab txhua peb teev.

Lub txee no siv lub zog me me li cov zaub tsuas yog siv thaum nws hloov kho, lub sijhawm tas nws yog qhov tseem ceeb. Raspberry Pi Zero W khiav tsis tu ncua nyob tom qab ntawm tus ncej thiab siv ib puag ncig 0.6W thaum tsis ua haujlwm.

Khoom siv

Txhua yam koj xav tau rau txoj haujlwm no yog Raspberry Pi Zero W, daim npav SD thiab Waveshare E-Ink Display, nco ntsoov tias koj xaj cov zaub uas suav nrog lub kaus mom zaub rau Raspberry Pi. Koj tseem yuav xav tau lub thav duab lossis lub thawv duab ntxoov ntxoo los tsim cov zaub rau hauv.

  • Raspberry Pi Zero W - Yuav Ntawm No
  • Micro SD Card - Yuav Ntawm No
  • Waveshare 7.5 "HD E -Paper Display (B) Nrog Lub Hwj Huam Tswj - Yuav Ntawm No
  • 6x8 "Duab Duab Duab Ncej - Yuav Ntawm No (Qhov no tsis yog tib lub thav duab, tab sis ze tshaj plaws kuv tuaj yeem pom ntawm Amazon)
  • Keyboard, Mouse & Monitor Rau Teeb (lossis Txuas Los Ntawm SSH)

Kauj Ruam 1: Npaj Koj Cov Khoom Siv Hluav Taws Xob

Npaj Koj Cov Khoom Siv Hluav Taws Xob
Npaj Koj Cov Khoom Siv Hluav Taws Xob
Npaj Koj Cov Khoom Siv Hluav Taws Xob
Npaj Koj Cov Khoom Siv Hluav Taws Xob
Npaj Koj Cov Khoom Siv Hluav Taws Xob
Npaj Koj Cov Khoom Siv Hluav Taws Xob
Npaj Koj Cov Khoom Siv Hluav Taws Xob
Npaj Koj Cov Khoom Siv Hluav Taws Xob

Pib tawm los ntawm kev siv koj lub taub hau txuas rau koj li Raspberry Pi Zero W yog tias lawv tseem tsis tau teeb tsa thaum koj tau txais nws, thiab txuas lub rhaub dej kub yog tias nws tuaj nrog ib qho.

Cov zaub kuv tau siv yog Waveshare 7.5 HD 3 Xim E-Paper (Qauv B). Lawv kuj tau ua ob xim thiab lwm qhov peb xim hloov nrog daj hloov xim liab, tab sis liab ua haujlwm zoo dua rau khawm YouTube ua si. Cov zaub yog nyias tiag tiag, zoo meej rau kev teeb tsa hauv daim duab tsis tas yuav hloov kho lub vaj huam sib luag tom qab.

Hauv lub npov, koj yuav tau txais SPI cov khoom tswj, uas tau tsim los ua lub kaus mom, npaj kom tau ntsaws ncaj qha mus rau Pi's GPIO pins, yog li koj tsis tas yuav ua qhov txuas ntxiv lawm.

Plug cov zaub kab xev rau hauv cov khoom sib txuas los ntawm kev nqa lub tab dub, thawb cov hlua kab rau hauv qhov txuas thiab tom qab ntawd thawb lub tab dub kom rov xauv nws rau hauv qhov chaw.

Koj daim npav SD tuaj yeem txuas rau koj Pi yog tias nws tau thauj khoom ua ntej nrog Raspberry Pi OS, lwm qhov khaws cia nws ib sab kom txog thaum koj tau rub lub software.

Thaum kawg, ntsaws lub kaus mom rau Pi.

Tam sim no koj tau npaj los sim koj cov zaub. Qhov chaw zoo pib yog nrog Waveshare 7.5 E-Paper Wiki, lawv tau txais qee cov lus qhia zoo kom pib thiab qee qhov piv txwv piv txwv ib yam.

Yog tias koj tsis xav ua si ib puag ncig nrog cov piv txwv, peb yuav saib qhov program thiab teeb tsa hauv cov theem tom ntej.

Kauj Ruam 2: Hloov Kho Cov Zaub Box

Hloov Kho Cov Zaub Box
Hloov Kho Cov Zaub Box
Hloov Kho Cov Zaub Box
Hloov Kho Cov Zaub Box
Hloov Kho Cov Zaub Box
Hloov Kho Cov Zaub Box

Tom ntej no koj yuav tsum tsim cov zaub rau hauv koj lub thav duab lossis lub thawv duab ntxoov ntxoo.

Kuv tau txais daim duab 6x8 nti los ntawm lub khw muag khoom hauv zos rau ob peb daus las.

Tshem lub vaj huam sib luag rov qab kom tau mus rau lub thav duab thav duab dawb.

Tej zaum koj yuav xav tau txiav lub vaj huam sib luag no me ntsis kom haum rau thaj tsam ntawm koj daim ntawv e-ntawv. Ntsuas thaj chaw tso saib thiab tom qab ntawd siv tus pas ntsuas thiab rab riam ntse los kos thiab txiav nws tawm kom raug qhov loj me.

Koj kuj tseem tuaj yeem hloov kho cov qauv teeb tsa thiab cov khoom me me kom haum rau hauv koj lub vaj huam sib luag dawb yog tias koj tsis xav txiav nws.

Tom ntej no, khij tawm ib lub qhov rau kab hlua txuas kom dhau los ntawm lub vaj huam sib luag tom qab thiab siv riam riam lossis cov cuab yeej siv los txiav nws tawm. Kuv siv lub tshuab txiav laser los txiav cov duab plaub uas nyob ib sab thiab ua qee qhov kom nce lub Raspberry Pi mus rau qhov sawv ntsug.

Kauj Ruam 3: Nruab Cov Khoom Siv Hluav Taws Xob

Nruab Cov Khoom Siv Hluav Taws Xob
Nruab Cov Khoom Siv Hluav Taws Xob
Nruab Cov Khoom Siv Hluav Taws Xob
Nruab Cov Khoom Siv Hluav Taws Xob
Nruab Cov Khoom Siv Hluav Taws Xob
Nruab Cov Khoom Siv Hluav Taws Xob
Nruab Cov Khoom Siv Hluav Taws Xob
Nruab Cov Khoom Siv Hluav Taws Xob

Tev tawm cov yeeb yaj kiab tiv thaiv thiab tom qab ntawd muab cov kua nplaum tso rau ntawm lub thav duab dawb, ua kom ntseeg tau tias nws yog ib nrab thiab ncaj. Kuv tsuas yog siv me me ntawm cov kua nplaum kub ntawm lub ces kaum los tuav nws hauv qhov chaw. Nws yuav maj mam clamped los ntawm nraub qaum ib yam, yog li koj tsis xav tau ntau cov kua nplaum.

Rov ua dua cov txheej txheej, maj mam rub daim kab xev hla lub vaj huam sib luag rov qab ua ntej koj kaw nws.

Txuas cov hlua txuas rau hauv qhov txuas thiab tom qab ntawd muab cov nplaum txuas rau hauv qhov chaw txhawm rau tiv thaiv kom tsis txhob rub lossis muaj zog raug muab tso rau ntawm kab, uas tuaj yeem rhuav nws.

Thaum kawg, nce lub Raspberry Pi thiab lub kaus mom mus rau qhov sawv ntawm tus ncej. Nws yog qhov zoo tshaj los siv qee cov yas lossis tooj dag sawv ntsug rau qhov no. Koj tuaj yeem siv cov kua nplaum kub los ua kua nplaum rau sab nraum qab ntawm Pi rau sawv ntsug yog tias koj tsis muaj qhov sawv ntsug.

Qhov ntawd yog nws, koj cov zaub yog tam sim no npaj rau programmed.

Kauj Ruam 4: Khoos Phis Tawj & Teeb Tus Raspberry Pi

Txoj Haujlwm & Teeb Tus Raspberry Pi
Txoj Haujlwm & Teeb Tus Raspberry Pi
Txoj Haujlwm & Teeb Tus Raspberry Pi
Txoj Haujlwm & Teeb Tus Raspberry Pi
Txoj Haujlwm & Teeb Tus Raspberry Pi
Txoj Haujlwm & Teeb Tus Raspberry Pi
Txoj Haujlwm & Teeb Tus Raspberry Pi
Txoj Haujlwm & Teeb Tus Raspberry Pi

Lub cajmeem ntawm cov zaub yog ncaj ncaj rau pem hauv ntej tab sis tuaj yeem yog txheej txheem ntev los ua haujlwm dhau los.

Koj yuav tsum:

  • Npaj Raspberry Pi OS kev teeb tsa
  • Nruab cov tsev qiv ntawv thiab hloov tshiab
  • Tau koj tus lej YouTube API thiab Channel ID
  • Hloov kho Python tsab ntawv thiab khaws nws rau koj Pi
  • Xeem khiav tsab ntawv
  • Automate khiav tsab ntawv nrog crontab

Kuv yuav tsis mus rau qib ib qib zuj zus qhia hauv Cov Lus Qhia no, raws li kuv twb tau sau tawm cov lus qhia ntxaws thiab cov txheej txheem ntawm kuv blog nrog rub tawm rau Python cov ntawv sau - Youtube Subscriber Counter

Python tsab ntawv tseem ceeb xa cov tsev qiv ntawv thiab cov haujlwm uas xav tau, tom qab ntawv nug YouTube API, hloov kho tus lej kom suav nrog tus lej thiab tom qab ntawd hloov kho cov duab kom pom qhov txiaj ntsig tshiab kawg. Nws kuj tseem hloov kho thaj chaw me me nyob rau hauv qab txoj cai ces koj tuaj yeem qhia tau yooj yim yog tias Pi tsis tau hloov kho cov zaub ib ntus vim qhov ua yuam kev.

Thaum koj sau tsab ntawv, cov zaub yuav pib txheej txheem rov ua dua tom qab ob peb feeb. Nws yuav siv sijhawm ib ncig 30-40 vib nas this rau kev ua kom tiav tshiab. Lub sijhawm no, cov zaub yuav xub flicker dub thiab dawb thiab tom qab ntawd ploj mus, tom qab ntawd nws yuav tsim cov xim dub thiab dawb ntawm cov zaub thiab thaum kawg sau liab los ntawm kev hloov qee qhov chaw dub. Qhov flickering yog qhov ib txwm muaj thiab ua tiav los ntawm tus maub los los hloov cov khoom tso tawm thiab tiv thaiv kev hlawv hauv.

Kauj Ruam 5: Siv Koj Cov Neeg Sau Npe

Siv Koj Cov Neeg Sau Npe Suav
Siv Koj Cov Neeg Sau Npe Suav
Siv Koj Cov Neeg Sau Npe Suav
Siv Koj Cov Neeg Sau Npe Suav

Thaum koj tau txais koj tsab ntawv khiav thiab ua haujlwm siv crontab, koj lub txee npaj tau siv. Tsuas yog ntsaws nws rau hauv USB fais fab mov thiab muab tso rau ntawm koj lub rooj lossis txee.

Kuv xav tsim qhov tshwj xeeb YouTube Cov Neeg Siv Khoom Siv Counter siv Raspberry Pi Zero W, tab sis koj kuj tseem tuaj yeem siv ESP32 los siv lub zog txawm tias tsawg dua los ntawm kev tso tus tswj kom pw ntawm qhov hloov tshiab rau cov zaub, qee yam uas nyuaj rau ua ntawm Raspberry Pi.

Ua raws li kuv li YouTube channel rau ntau Raspberry Pi thiab Arduino cov haujlwm, thiab pab txhawb nqa lub txee!

Qhia rau kuv paub koj xav li cas hauv kab lus thiab qhia rau kuv paub yog tias koj sim tsim koj tus kheej!

Pom zoo: