Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Cov Khoom Kawg
- Kauj ruam 2: Ntaj ntsej muag
- Kauj Ruam 3: Dot Matrix LED Zaub
- Kauj ruam 4: Lub zog
- Kauj ruam 5: Schematic
- Kauj Ruam 6: 3d Luam Ntawv
- Kauj ruam 7: Programming
- Kauj Ruam 8: Dot Matrix Control
- Kauj Ruam 9: Tshaj Tawm Video
- Kauj ruam 10: Kev teeb tsa
- Kauj Ruam 11: Hloov Kho Firmware OTA
- Kauj ruam 12: MJPEG Server
- Kauj ruam 13: Blynk App
- Kauj ruam 14: Txaus siab rau
- Kauj Ruam 15: Cov Tsev Qiv Ntawv thiab Cov Cai
Video: Sib tham Minecraft Tsis txhob Nkag Ntaj/Kos Npe (ESP32-CAM): 15 Cov Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Muaj ntau ntau yam laj thawj vim li cas txoj haujlwm no tau los rau hauv lub neej:
1. Raws li tus sau ntawm kev sib koom ua haujlwm ntau lub tsev qiv ntawv TaskScheduler Kuv ib txwm xav paub yuav ua li cas txhawm rau muab cov txiaj ntsig ntawm kev koom tes ua haujlwm ntau yam nrog cov txiaj ntsig ntawm ua ntej ib leeg. Muaj cov txiaj ntsig rau ob qho tib si thiab ob qho tib si muaj qhov ua tsis tau. Kev sib txuas ob qho no tso cai rau lub sijhawm tshwj xeeb los txhawb cov txiaj ntsig thiab txo qis cov teeb meem ntawm ib qho twg los ntawm kev siv tshwj xeeb. Nthuav? Nyeem rau…
2. Qhov tseeb tiag tias ESP32 yog cov tub ntxhais siv ntau lub microcontroller yog qhov txaus nyiam. Kuv ib txwm xav paub yog tias kuv tuaj yeem siv qhov zoo ntawm qhov ntawd. Yog li qhov kev sim ntawm no yog: ESP32 tuaj yeem tso cov vis dis aus tau yooj yim siv ib qho tseem ceeb thaum ua lwm yam (muaj txiaj ntsig thiab muaj txiaj ntsig zoo ib yam ntxiv) ntawm lwm qhov tseem ceeb. Txawm ntau nthuav ?? Nyeem rau …!
3. Kuv xav tau qhov chaw sim rau kuv cov phiaj xwm tsis ntev los no nyob ib puag ncig OTA kev teeb tsa thiab teeb tsa kev tswj hwm …
4. Kuv tau yuav ob lub LED Dot Matrix modules qee lub sijhawm dhau los thiab tsis tuaj yeem txiav txim siab yuav ua li cas nrog lawv …
5. Kuv tus tub yog Minecraft gamer, thiab zoo li txhua tus menyuam yaus nyiam kho nws lub qhov rooj nrog "Tsis txhob nkag mus" cov ntawv tshaj tawm …
Yog li ntawm no koj mus - txhua qhov laj thawj zoo rau: Sib cuam tshuam Tsis Nkag Nkag lub qhov rooj nrog ESP32 -CAM tso cov vis dis aus "los tom qab lub qhov rooj kaw" - lossis "Leej twg tuaj rau hauv kuv chav?"
Yog li … txhua yam hais txog dab tsi?
Yog tias koj muaj lub siab ntev nyeem tag nrho zaj dab neeg koj paub tias qhov no tsis yog tiag tiag txog ntaj Minecraft. Txoj haujlwm no yog pov thawj ntawm ntau lub ntsiab lus:
- Kev nyob ua ke ntawm kev npaj ua ntej thiab kev koom tes ua haujlwm ntau yam
- Xaiv siv ESP32 cores
- Siv phau ntawv txhais lus tshiab thiab EspBootstrap cov tsev qiv ntawv
- OTA firmware npaj
- Kev teeb tsa kev tswj hwm
- Kev tshaj tawm video rau ntau tus neeg siv khoom
thiab ntau ntxiv.
Txaus siab rau
Khoom siv
- ESP32-CAM
- MAX7219 Dot Matrix Module 4-in-1 LED Zaub Module Geekcreit rau Arduino
- Attom Tech 2500mAh Fais Fab Nyiaj Txiag
Kauj Ruam 1: Cov Khoom Kawg
Kuv yuav pib nrog qhov khoom kawg zoo li cas, thiab tom qab ntawd piav qhia nws tau tsim thiab yuav tswj hwm nws li cas.
Nws zoo li muaj kev koom nrog txoj hauv kev no …
Kauj ruam 2: Ntaj ntsej muag
Lub ntsej muag ntaj yog tsim los ntawm cov ntawv dawb, cim nrog tus xaum, thiab xim nrog Crayola cov cim. Qhov no ib leeg tuaj yeem yog qhov haujlwm nthuav nrog koj tus menyuam:
- Kos ib rab ntaj ntawm daim ntawv dawb
- Txiav tawm daim npog ntsej muag
- Kos cov xwm txheej (lossis thaiv)
- Xim lawv tus kheej
- Ntxiv cov kab dub nrog cov ntse.
Kuv suav nrog daim ntawv qhib chaw ua haujlwm nrog daim duab piv txwv ntawm rab ntaj pob zeb diamond uas koj tuaj yeem lo rau saum cov ntawv dawb yog tias koj xav tau luv luv … Thaum txhua yam ua tiav koj tuaj yeem ua tau kub-nplaum lub ntsej muag rau qhov sib dhos lossis siv ob npaug- daim kab xev
Kauj Ruam 3: Dot Matrix LED Zaub
Kuv muaj 2 ntawm lawv, 4 ntu txhua, yog li kuv txiav txim siab los ua 8-ntu ib.
Yooj yim muaj 5-tus pin txiv neej lub taub hau ntawm ib sab, thiab sib piv 5 qhov ntawm sab nraud. Khoov tus txiv neej lub taub hau rau hauv cov khoom zoo li] cov duab, Kuv muaj peev xwm txuas ob lub qauv ob qho tib si hluav taws xob thiab tshuab! Tua ob tug noog nrog ib lub pob zeb (lossis ob lub yoov nrog ib lub swat, kom nres ob lub qhov ncauj nrog ib lub ncuav, kom ua ob tug phooj ywg nrog ib qho khoom plig, kom muaj ob txoj hlua rau ib rab hneev, lwm yam lus piv txwv txog qhov teeb meem - koj puas tau xav? Thov txim, Kuv digressed).
Tus txiv neej tus lej sib txawv yuav siv los txuas tus poj niam sib piv lub taub hau los ntawm veroboard nrog ESP32-Cam thiab lwm yam khoom siv.
Ob lub Cheeb Tsam tau txuas nrog tus choj 3d-luam ntawv, uas tseem muaj lub tsev hloov pauv thiab qhib lub zog.3d STL cov ntaub ntawv rau tus choj thiab lwm yam khoom nyob hauv cov ntawv/3d nplaub tshev ntawm GitHub.
Kauj ruam 4: Lub zog
Ntaj tau siv los ntawm 2500 mAh USB lub txhab nyiaj fais fab - qhov tsawg tshaj plaws thiab thim qhov kuv pom tau. Powerbank swb rau hauv 3d-luam ntawv rooj plaub, uas tseem txuas rau dot matrix modules, yog li tuav txhua yam ua ke.
Muaj ob lub hlau nplaum puag ncig rau ntawm lub txhab nyiaj fais fab, thiab yog li cas rab ntaj txuas rau lub qhov rooj (yog li nws tuaj yeem yooj yim cais rau kev saib xyuas).
Kauj ruam 5: Schematic
Cov txheej txheem tiag tiag nyob ntawm GitHub, tab sis daim duab muaj nqis 1000 lo lus (1024 hauv Cov Ntaub Ntawv Technology), yog li ntawm no koj yog:
Qhov no yog qhov ncaj ncaj yog tias koj paub koj txoj hauv kev nrog rab phom phom. NOV NCO NTSOOV: Qhov ntu 3d choj tau tsim los rau qhov tshwj xeeb tshwj xeeb veroboard loj: 30 x 70 hli. Koj yuav tsum txiav txim siab siv qhov sib txawv, koj yuav tsum rov tsim tus choj txuas.
Kauj Ruam 6: 3d Luam Ntawv
Cov roj teeb thiab tus choj txuas ESP32-CAM veroboard mus rau dot-matrix zaub sib dhos tau 3d tsim thiab luam tawm.
Cov roj teeb rooj tuaj nyob hauv 2 ntu, uas yuav tsum tau ua ke ua ke tom qab luam ntawv los tsim "hnab tshos" rau lub roj teeb. Tus choj tsuas yog yuav tsum tau ntxuav ntawm txhua qhov kev txhawb nqa (tsis muaj kev qhia zoo tiag tiag uas txo lawv, hmoov tsis zoo). STL cov ntaub ntawv nyob ntawm GitHub thiab TinkerCad cov hauv paus tseem nyob ntawm no.
Kev tsim 3D ntawm TinkerCad kuj suav nrog cov qauv sib dhos ua piv txwv ntawm yuav ua li cas ntu haum ua ke thiab yuav tsum txuas nrog.
Kauj ruam 7: Programming
Multi-multitasking
Qhov kev tsim no siv FreeRTOS rau kev npaj ua ntau yam ua ntej thiab TaskScheduler lub tsev qiv ntawv rau kev koom tes. Ntaj tus cwj pwm thiab cov lus raug tswj los ntawm Blynk App. Tom qab teeb tsa (pins, lub koob yees duab thiab dot-matrix pib, txuas rau WiFi, thiab lwm yam), ob lub ntsiab RTOS cov haujlwm tau tsim:
- Kev tshaj tawm video RTOS ua haujlwm, txuas rau Daim Ntawv Thov Tub Ntxhais ntawm ESP32 (core 1)
- Cov ntawv nyeem thiab Blynk tswj RTOS txoj haujlwm, txuas rau Lub Hwj Chim ntawm ESP32 (core 0), uas tseem yog lub luag haujlwm rau txhua yam haujlwm ntsig txog WiFi. Cov ntawv thiab Blynk ntsig txog kev ua tiav yog tswj hwm los ntawm TaskScheduler cov haujlwm.
Kuv pom tias 4K ntawm pawg chaw txaus rau RTOS cov haujlwm, tab sis muaj peev xwm khiav tawm ntawm pawg, yog li yog tias koj xav tau, ua rau nws 8K - muaj RAM ntau ntawm ESP32.
Txhua qhov vis dis aus ntes thiab tshaj tawm tau tshwm sim ntawm Core 1. Txhua yam ntxiv - ntawm Core 0.
ESP32 muaj lub zog txaus los daws txhua qhov ntawd nrog tsoo me ntsis hws (pawg thawj coj tau kub thaum tshaj tawm cov vis dis aus).
Qhov no yog lub hom phiaj tseem ceeb ntawm txoj haujlwm: muaj kev thaj yeeb nyab xeeb thiab muaj txiaj ntsig ntawm kev npaj ua ntej thiab koom tes ua haujlwm ntau yam!
Kauj Ruam 8: Dot Matrix Control
Kuv tab tom siv muaj zog heev MD_Parola thiab MD_MAX72xx cov tsev qiv ntawv kuj muaj nyob hauv Arduino IDE tus thawj tswj tsev qiv ntawv.
Txhua qhov tshwj xeeb cov ntawv tau ua tiav ntawm cov tsev qiv ntawv ntawd. Nws siv zog me ntsis los txiav txim siab qhov tseeb MAX72XX hom kho vajtse (MD_MAX72XX:: ICSTATION_HW hauv kuv qhov xwm txheej, koj li yuav txawv), tom qab ntawd, tswj cov ntawv yog cua.
Ntaj tso cai rau kev tswj hwm hauv qab no:
- Ci ntsa iab
- Tsaus muag
- Nyem
- Scroll ceev thiab kev taw qhia (nce/nqis, sab laug/sab xis, khov kho)
- Koj tseem tuaj yeem hloov nws mus rau hauv Lub Sijhawm Phab Ntsa
Kauj Ruam 9: Tshaj Tawm Video
Blynk App muaj cov cuab yeej me me los tso video, tab sis koj tuaj yeem nkag mus rau hauv qhov browser, VLC player, lossis txhua yam uas txhawb MJPEG tus qauv.
Txog li 10 tus neeg siv sib txuas tau txais kev txhawb nqa.
Koj yuav tsum nrhiav tus IP chaw nyob ntawm koj li ESP32-CAM kom tuaj yeem txuas rau nws. Koj tuaj yeem saib nws ntawm koj lub router, lossis suav qhov kos duab no nrog _DEBUG_ kev xaiv ua ntej, thiab nyeem tus IP chaw nyob ntawm lub davhlau ya nyob twg thaum nws txuas rau koj lub network.
TSEEM CEEB: Nws raug nquahu kom muab tus IP chaw nyob ruaj khov rau, lossis tsim DHCP qhov tshwj tseg rau, ESP32-CAM module yog li nws qhov chaw nyob tsis hloov pauv thaum daim ntawv cog lus tas sijhawm. Koj kuj tseem tuaj yeem hloov kho Blynk App txhawm rau hloov kho tus IP chaw nyob hauv kwj URL - qhov haujlwm ua haujlwm zoo yog tias koj ua tiav.
Cov duab kos tam sim no siv QVGA daws teeb meem: 320x240 pixels, uas ua rau nws nrawm heev. Koj muaj kev ywj pheej thiab txhawb kom ua si nrog lwm qhov kev txiav txim siab thiab txiav txim siab ua haujlwm dab tsi rau koj.
RAM yuav tsum tsis muaj teeb meem raws li cov duab kos ua kom zoo dua ntawm PSRAM.
Kauj ruam 10: Kev teeb tsa
Cov duab kos siv qhov zoo ntawm kuv phau ntawv txhais lus thiab EspBootstrap cov tsev qiv ntawv los thauj cov teeb tsa tsis los ntawm kev teeb tsa server thaum khau raj.
Kuv khiav kuv tus kheej teeb tsa server, uas koj tuaj yeem ua tau ib yam (nws yog Apache2 web server yooj yim tiag tiag tsuas yog ua haujlwm rau JSON cov ntaub ntawv).
Koj tseem tuaj yeem siv ib qho ntawm cov kev pabcuam online muaj rau txoj haujlwm: (OTADrive, Microsoft Azure, AWS IoT, thiab lwm yam). Hauv qhov xwm txheej no thov hloov Txoj Cai makeConfig (Txoj hlua txoj hauv kev) kom tsim nyog tsim URL taw tes rau koj qhov chaw teeb tsa. Xwb, koj tuaj yeem txuag cov ntaub ntawv teeb tsa mus rau hauv SPIFFS cov ntaub ntawv system ntawm ESP32-CAM thiab nyeem nws los ntawm qhov ntawd, lossis tsuas yog hardcode txhua qhov nkag. Thov saib README ntawm EspBootstrap lub tsev qiv ntawv rau koj cov kev xaiv.
Ib qho piv txwv ntawm cov ntaub ntawv teeb tsa tau muab rau ntawm GitHub.
Yog tias koj xav tau hardcode tsis, piv txwv yog hauv qab no:
pd ("Title", "DND Ntaj Teeb");
pd ("ssid", "koj li wifi ssid"); pd ("password", "koj tus password wifi"); pd ("msg", "Nyob zoo!"); pd ("khoom siv", "8"); pd ("blynk_auth", "koj blynk AUTH UUID"); // yog tias koj khiav koj tus kheej lub server nkaus xwb: pd ("blynk_host", "koj blynk server IP"); pd ("blynk_port", "koj qhov chaw nres nkoj server");
Kauj Ruam 11: Hloov Kho Firmware OTA
Cov duab kos tseem yog OTA (Dhau The Air) firmware hloov tshiab tau qhib thiab tab tom tshawb xyuas cov firmware tshiab ntawm txhua lub khau raj.
Ib zaug ntxiv, Kuv tau khiav kuv tus kheej OTA hloov tshiab server, uas koj tuaj yeem ua tau ib yam (nws yog qhov yooj yim Apache2 webserver nrog me ntsis ntawm PHP scripting ua haujlwm cov ntaub ntawv binary).
Koj tseem tuaj yeem siv ib qho ntawm IoT cov kev pabcuam online muaj rau txoj haujlwm: (OTADrive, Microsoft Azure, AWS IoT, thiab lwm yam). Hauv qhov no thov hloov pauv qhov khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khoob khawm teeb liab teeb liab teeb liab teeb liab teeb pom kev teeb tsa qhov teeb meem URL taw rau koj cov ntaub ntawv binary.
Qhov no yog nyob ntawm yeem - koj tuaj yeem xaiv tsuas yog upload binaries ntawm kev txuas txuas.
Kauj ruam 12: MJPEG Server
Cov ncauj lus no tau piav qhia ntxaws ntawm no.
Kauj ruam 13: Blynk App
Blynk yog huab-based IoT platform uas tso cai rau App txhim kho sai. Nws yog pub dawb rau siv tus kheej thiab txawm tias muaj kev xaiv khiav koj tus kheej Blynk server.
Kuv (raws li koj yuav tau kwv yees lawm) kuv tab tom khiav kuv tus kheej Blynk server, tab sis nws yuav yooj yim dua rau koj siv huab huab. Nruab Blynk iOS lossis Android App, thiab ua raws cov duab hauv qab no txhawm rau txhim kho App ntawm koj lub xov tooj.
Koj yuav tsum tau muab koj tus kheej Blynk Auth UUID rau daim ntawv thov ua haujlwm nrog koj App. Qhov no yog vim li cas kuv siv cov ntaub ntawv teeb tsa. Txawm li cas los xij, rau ib qhov haujlwm ib zaug, tus lej nyuaj yuav ua haujlwm zoo ib yam.
TSEEM CEEB: Thov nco ntsoov tias koj li Blynk Project tau teeb tsa los ceeb toom Cov Khoom Siv Thaum Txuas App.
LUS CEEB TOOM ntawm cov vis dis aus tso tawm suab: qee zaum cov vis dis aus tsis pib. Nws tsis zoo li muaj teeb meem nrog ESP32, theej nrog cov vis dis aus widget ntawm Blynk daim ntawv thov. Sim kaw thiab rov qhib App lossis nres/pib qhov haujlwm dua. Thaum kawg, nws pib. Qhov teeb meem no tsis zoo li muaj nyob hauv qhov browser lossis VLC player (piv txwv).
Kauj ruam 14: Txaus siab rau
Nws yog qhov lom zem heev tsim lub tsev no thiab ua pov thawj tias cov cuab yeej siv cim npe zoo li ESP32 tuaj yeem ua ntau ntau dua li tsuas yog kwj video. Ntau lub tswv yim los ntawm txoj haujlwm no tuaj yeem rov siv dua hauv lwm daim ntawv thov.
Kauj Ruam 15: Cov Tsev Qiv Ntawv thiab Cov Cai
Tsev qiv ntawv:
- Blynk neeg rau zaub mov
- EspBootstrap lub tsev qiv ntawv
- TaskScheduler lub tsev qiv ntawv
- Lub tsev qiv ntawv txhais lus
- LED Matrix Library
- Lub tsev qiv ntawv rau modular scrolling LED matrix ntawv qhia
Qhov chaw cia khoom tiag:
Minecraft Sib tham sib Tsis txhob nkag Ntaj/Kos Npe (ESP32-CAM)
Pom zoo:
SASSIE: Cov Txheej Txheem rau Kev Txaus Siab Tsis Txaus Siab thiab Kev Sib Tham Sib Tham: 5 Cov Kauj Ruam
SASSIE: Cov Txheej Txheem rau Kev Txom Nyem Tsis Txaus Siab thiab Kev Sib Tham Sib Tham: SASSIE yog lo lus teb rau lo lus nug peb txhua tus tau nug peb tus kheej thaum muaj kev ntsiag to txawv ntawm ib qho hauv peb lub neej, "Kuv puas yuav tham tom ntej?" Zoo tam sim no koj tsis tas yuav txhawj xeeb vim tias SASSIE tau tsim tshwj xeeb los lees paub qhov txawv txav uas ntsiag to
THIAB LUB NEEJ !! (Sib tham sib tham rooj sib tham): 4 Kauj Ruam
THIAB LUB NEEJ !! (sib tham sib tham txog Thruth Table): Nyob zoo cov phooj ywg, Kuv vam tias koj txhua tus nyob hauv koj lub tsev zoo thiab xav tsis thoob dab tsi ntawm cov ntaub ntawv uas muaj ?? Nkag siab cov rooj vag logic yog qhov tseem ceeb heev rau ob leeg
Customize Koj Tawv, Nrog Koj Kos Npe Kos Npe: 9 Cov Kauj Ruam
Customize Your Leather, With Your Engraved Signature: Nyob Zoo Txhua Tus, hauv cov lus qhia no peb yuav ua kev cai laser engraving ntawm tawv hnab thiab koj tuaj yeem ua qhov no ntawm cov khoom tawv sib txawv
Qhov Sib Txawv Ntawm Lub Rooj Sib Tham Lub Rooj Sib Tham Lub Hwj Huam!: 6 Kauj Ruam (nrog Duab)
Qhov Sib Txawv Ntawm Lub Rooj Sib Tham Bench Power Supply!: Koj puas tau tsim koj qhov haujlwm tshiab thiab tuav rov qab los ntawm qhov koj tsis muaj kev tswj hwm koj li peev txheej? Zoo, qhov no yog qhov haujlwm rau koj! Hnub no kuv yuav qhia koj yuav ua li cas thiaj tsim tau lub rooj zaum hauv lub rooj zaum ua haujlwm tau zoo rau qhov pheej yig heev! Kuv tau ua qhov no tag nrho
Ua: NYC Cov Ntawv Sib Tw Nkag Nkag Los Ntawm Cov Qub GameBoy Tshuab Luam Ntawv: 14 Cov Kauj Ruam (nrog Duab)
Ua: NYC Cov Ntawv Sib Tw Nkag Nkag Los Ntawm Cov Qub GameBoy Tshuab Luam Ntawv: Nyob zoo txhua tus, nov yog kuv qhov kev txhaj tshuaj thib ob ntawm kev qhia paub .. ua siab zoo .. Yog li hauv zos Ua: NYC lub rooj sib tham tau muaj daim ntawv sib tw sib tw rau nws lub rooj sib tham zaum ob .. (txuas ntawm no) , qhov tseem ceeb ntawm kev sib tw yog ua kom muaj npe hnav/cim npe ntawm qee yam, ntawm qee cov ntaub ntawv