Cov txheej txheem:

HackerBox 0036: JumboTron: 7 Kauj Ruam
HackerBox 0036: JumboTron: 7 Kauj Ruam

Video: HackerBox 0036: JumboTron: 7 Kauj Ruam

Video: HackerBox 0036: JumboTron: 7 Kauj Ruam
Video: Hackerboxes 0011 Haxor Treat 2024, Kaum ib hlis
Anonim
HackerBox 0036: JumboTron
HackerBox 0036: JumboTron

Lub hlis no, HackerBox Hackers tab tom tshawb pom jumbo LED matrix zaub, ESP32 ib leeg-tshuab computer, thiab joystick game tswj. Cov Lus Qhia no muaj cov ntaub ntawv rau pib nrog HackerBox #0036, uas tuaj yeem yuav ntawm no thaum cov khoom siv kawg. Tsis tas li, yog tias koj xav tau txais HackerBox zoo li txoj cai no hauv koj lub mailbox txhua lub hlis, thov sau npe ntawm HackerBoxes.com thiab koom nrog kev tawm tsam!

Cov Ntsiab Lus thiab Kawm Lub Hom Phiaj rau HackerBox 0036:

  • Txhim kho Arduino IDE rau program ESP32
  • Interface joystick thiab laub-khawm tswj cov tswv yim
  • Cov ntaub ntawv xov hlau thiab lub zog rau JumboTron LED Panels
  • Qhov kev zov me nyuam ntau yam kev thov siv cov lus qhia hauv matrix

HackerBoxes yog lub npov muab kev pabcuam txhua hli rau DIY hluav taws xob thiab tshuab computer. Peb yog cov nyiam ua haujlwm, tsim khoom, thiab sim ua. Peb yog cov neeg ua npau suav npau suav. HACK THE PLANET!

Kauj Ruam 1: HackerBox 0036: Cov Ntsiab Lus Box

Image
Image
  • P3 RGB LED Matrix nrog 64x32 pixels
  • ESP32 Pawg Neeg Saib Xyuas Kev Txhim Kho
  • Game Controller Board nrog Joystick
  • Cov Khoom Siv Hluav Taws Xob rau LED Matrix
  • DuPont Jumpers Poj niam-Poj niam 20 cm
  • Tshwj xeeb HackerBoxes Glider Koozie
  • Tshwj xeeb Atari retro kiv cua kos duab Decal

Qee qhov lwm yam uas yuav pab tau:

  • 5V DC fais fab mov (2-4 Amps)
  • Soldering hlau, cov laug, thiab cov cuab yeej siv yooj yim
  • Khoos phis tawj rau khiav cov cuab yeej software

Qhov tseem ceeb tshaj, koj yuav xav tau kev nkag siab ntawm kev taug txuj kev nyuaj, hacker lub siab, ua siab ntev, thiab xav paub ntxiv. Tsim thiab sim nrog cov khoom siv hluav taws xob, thaum muaj txiaj ntsig zoo, tuaj yeem ua qhov nyuaj, nyuaj, thiab txawm tias ua rau lub sijhawm nyuaj. Lub hom phiaj yog kev vam meej, tsis yog kev ua tiav. Thaum koj mob siab rau thiab txaus siab rau txoj kev taug txuj kev nyuaj, kev txaus siab ntau tuaj yeem muab los ntawm txoj haujlwm no. Peb txhua tus nyiam kawm paub thev naus laus zis tshiab thiab vam tias yuav tsim qee qhov haujlwm txias. Ua txhua kauj ruam qeeb, mloog cov ntsiab lus, thiab tsis txhob ntshai thov kev pab.

Muaj cov ntaub ntawv nplua nuj rau tam sim no, thiab yav tom ntej, cov tswv cuab hauv HackerBoxes FAQ.

Lub Glider yog tus qauv uas taug kev hla lub rooj tsavxwm hauv Conway's Game of Life. Nws tau xoob raws li lub cim los sawv cev rau hacker kab lis kev cai txij li Game of Life cellular automaton rov hais dua rau cov neeg nyiag nkas thiab lub tswv yim ntawm lub dav hlau tau yug los yuav luag tib lub sijhawm zoo li Internet thiab Unix. Koj puas tuaj yeem ua haujlwm Conway's Game of Life ntawm 64x32 LED Matrix?

Kauj Ruam 2: ESP32 thiab Arduino IDE

Game Controller Board Nrog Joystick
Game Controller Board Nrog Joystick

ESP32 yog tib lub tshuab computer. Nws tau koom ua ke zoo nrog 2.4 GHz Wi-nkaus thiab Bluetooth. ESP32 koom ua ke hloov lub kav hlau txais xov, RF balun, lub zog siv hluav taws xob, lub suab qis tau txais lub suab nrov, lim, thiab tswj hwm cov qauv. Yog li ntawd, tag nrho cov kev daws teeb meem nyob rau thaj tsam me me Luam Luam Circuit Board (PCB).

Muaj ob peb hom ESP32 Cov Txheej Txheem Txhim Kho. Ib qho siv ntawm no yog kev hloov pauv ntawm "DOIT ESP32 DevKit". Feem ntau ntawm I/O tus pin tau tawm mus rau tus pin headers ntawm ob sab kom yooj yim cuam tshuam. USB interface nti thiab tus tswj hluav taws xob tau koom ua ke rau hauv tus qauv. ESP32 tau txais kev txhawb nqa hauv Arduino ecosystem thiab IDE, uas yog txoj hauv kev nrawm thiab yooj yim los ua haujlwm nrog ESP32.

Arduino ESP32 github repository suav nrog cov lus qhia teeb tsa rau Linux, OSX, thiab Windows. Nyem rau qhov txuas ntawd thiab ua raws cov lus qhia uas cuam tshuam nrog kev ua haujlwm ntawm koj lub khoos phis tawj.

PROGRAMMING BOARD DEVELOPMENT

Txhawm rau ntsuas tias IDE raug teeb tsa kom raug ua ntej txav mus, ntsaws qhov piv txwv BLINK txhawm rau nyem lub onboard LED. Hloov qhov txiaj ntsig ncua los sim sib txawv ntsais ntsais thiab ua kom ntseeg tau tias cov cai tau rov ua haujlwm tau zoo mus rau ESP32 pawg thawj coj saib.

Thaum ua haujlwm ESP32, nias thiab tuav "BOOT" khawm hauv ESP32 pawg thawj coj txhim kho ua ntej los tsoo lub pob upload ntawm Arduino IDE. Thaum cov lus "Txuas _ _ _ _ …" tshwm ntawm Arduino IDE, koj tuaj yeem tso lub "BOOT" khawm thiab lub program yuav tsum pib.

Kauj Ruam 3: Game Controller Board Nrog Joystick

Qhov kev tswj hwm game "breakout board" suav nrog kev sib piv joystick tswj thiab plaub lub nyees khawm. Nws qhov loj me thiab cov duab zoo haum rau kev tuav tes.

Kev tswj hwm txoj haujlwm sib piv yog ua raws ob lub zog (ib qho rau x thiab ib qho rau y) uas tau txuas rau hauv tus qauv "faib faib hluav taws xob" teeb tsa. Raws li, OUTX thiab OUTY yuav tsum tau nyeem raws li cov txiaj ntsig zoo sib xws thiab ntsuas raws li qhov tsim nyog raws li tau qhia hauv kab lus demo. OUTZ thiab plaub lub khawm yog yooj yim rau/tawm cov hloov pauv uas ib txwm ntab qhib thiab luv rau GND thaum qhib.

Lub rooj tsavxwm tuaj yeem txuas rau ESP32 siv DuPont Jumpers ntawm cov pins hauv qab no:

ESP32 Game Controller

GND GND 3V3 VCC 35 OUTX 34 OUTY 26 OUTZ 27 KEY1 32 KEY2 33 KEY3 25 KEY4

Tsis muaj ib yam tshwj xeeb txog cov haujlwm no tus lej, tab sis lawv yog cov uas tau siv hauv cov lej ua qauv qhia. Txij li qee qhov IO pins ntawm ESP32 tsuas yog tso tawm, koj yuav xav khaws nws yooj yim thiab tsuas yog siv cov txiaj ntsig zoo ib yam.

Kauj Ruam 4: 64x32 RGB LED Matrix P3 Vaj Huam Sib Luag

64x32 RGB LED Matrix P3 Vaj Huam Sib Luag
64x32 RGB LED Matrix P3 Vaj Huam Sib Luag

Nrog 2048 puv xim RGB LEDs, cov lej no zoo li koj tus kheej "mini" jumbotron zaub. Cov vaj huam sib luag no tau zoo ib yam siv hauv jumbo LED cov lus qhia zoo li koj tuaj yeem tuaj yeem qhia los ntawm cov khoom lag luam muaj zog. Cov LEDs tau muab tso rau ntawm 3mm suab kab sib chaws (yog li P3 lub npe). Lawv tau tsav nrog tus lej 1:16 scan.

Peb yuav siv PXMatrix Library rau Arduino IDE. Mus tom ntej thiab teeb tsa lub tsev qiv ntawv tam sim no. Kuj tseem muaj qhov tuj ntawm txoj haujlwm kev ua haujlwm nthuav dav ntawm qhov txuas yog tias koj txaus siab txheeb xyuas qhov ntawd.

Muaj peb qhov txuas txuas tom qab ntawm LED Matrix Vaj Huam Sib Luag. Cov no suav nrog ob 16 tus pin ob lub taub hau (sau npe IN thiab OUT) thiab tseem muaj lub zog me me lub taub hau. Muaj peb qhov sib txawv ntawm cov xov hlau los txuas rau cov no raws li tau piav qhia hauv qab no.

FINE Jumpers los ntawm DATA IN rau DATA OUT

Tawm

R2 R1 G1 R2 G2 G1 B1 G2 B2 B1

NINE Jumpers los ntawm ESP32 mus rau DATA IN

ESP IN IB

13 R1 22 LAT 19 A 23 B 18 C 5 D 2 OE 14 CLK GND GND

Hwj chim Hwj chim

Cov hlua hluav taws xob tau muab xav tau txuas nrog 5VDC cov khoom siv. Yog tias koj npaj yuav ua kom pom kev txhua lub LED kom ci ntsa iab, lub vaj huam sib luag yuav kos txog kwv yees li 4A. Yog tias koj muaj qhov tsim nyog "rooj tog zaum" uas yuav tsum tau siv los muab 4A. Rau kev ua haujlwm nruab nrab nruab nrab, 2A yuav txaus. Piv txwv li, peb sim tawm 2.5A USB lub txhab nyiaj fais fab (roj teeb pob), uas ua haujlwm tau zoo. Peb tau muab lub USB txuas tso rau hauv qhov chaw ntawm cov ntsia hlau ntsaws rau ntawm lub zog txuas uas tso cai rau nws ntsaws rau hauv USB lub txhab nyiaj.

Muaj ob lub taub hau plaub-tus pin ntawm cov hlua fais fab. Cov no yog rau kev txhawb nqa ob lub vaj huam sib luag. Ib lub taub hau tuaj yeem raug tshem tawm yog tias koj xav kho cov khoom kom huv, tsuas yog nco ntsoov qhwv cov kab xaim txiav (nrog kab xev lossis tubing) txhawm rau tiv thaiv kom tsis muaj zog.

Cov Khoom Siv Hluav Taws Xob rau LED Vaj Huam Sib Luag thiab ESP32

Txiav ib kawg ntawm DuPont jumper. Siav thiab tin cov xaim txuas nws mus rau kab liab ntawm txoj hlua. Qhov kev xaiv yooj yim yog siv ib ntawm kab uas peb tshem tawm plaub-tus lej txuas ntxiv lub hwj chim. Ib zaug ntxiv, nco ntsoov qhwv lub hwj chim txuas rau txhawm rau tiv thaiv kom luv yam tawm. Tom qab ESP32 tau ua haujlwm thiab tshem tawm USB cable, tus poj niam DuPont ntsaws rau lwm qhov kawg ntawm cov xov txuas tuaj yeem tso rau ntawm VIN tus pin (tsis yog 3V3 tus pin) ntawm ESP32 pawg thawj coj. Qhov no yuav muab lub zog rau ESP32 pawg thawj coj thiab thiab LED matrix los ntawm tib 5V cov khoom ua kom nruj thiab teeb tsa tau yooj yim rau kev khiav hauv roj teeb lub zog.

Kauj Ruam 5: Matrix Demo Prog

Matrix Demo Prog
Matrix Demo Prog

Program qhov txuas jumbotrondemo.ino kos duab rau hauv ESP32.

Nco ntsoov tias lub tsev qiv ntawv PxMatrix tau teeb tsa.

Plaub hom ntawm qhov program demo raug xaiv siv K1 - K4. Txoj cai yuav tsum tau piav qhia tus kheej kom nthuav dav rau hauv koj tus kheej cov haujlwm.

Kauj Ruam 6: 1 2 3 Mus

1 2 3 mus!
1 2 3 mus!

Koj yuav ua dab tsi nrog koj li 64x32 Xim Zaub thiab Game Controller? Pib tawm tswv yim nrog qee qhov kev tshoov siab los ntawm lwm qhov haujlwm piv txwv …

  • Morphing Digital Clock project
  • Adafruit Matrix Zaub cov peev txheej
  • Qhia nrog LED Matrix Projects
  • Ntxiv Android BLE tswj
  • Yuav ua li cas txog qhov kev ua si zoo ntawm Tetris?
  • CHIP-8 Kev Ua Si (thawj rau 64x32 cov lus)
  • Lub tsev qiv ntawv siv nrog ESP32 IDF (tsis yog Arduino)
  • Kaum Great DIY Electronic Games los ntawm WIRED

Thov xa qhov txuas mus rau koj qhov haujlwm kom peb tuaj yeem faib nws nrog lwm tus hauv qab no:

  • Physics Toy los ntawm JeffG
  • Snake Game los ntawm Collene
  • Go Fast Turn Left Game from ppervink
  • Cryptocurrency Ticker los ntawm ananseMugen
  • Christmas Countdown Clock los ntawm rznazn

Kauj Ruam 7: HACK THE PLANET

HACK THE PLANET
HACK THE PLANET

Yog tias koj tau nyiam qhov Kev Qhia Ntawv no thiab xav kom muaj lub thawv txias ntawm hackable electronics thiab khoos phis tawj thev naus laus zis nqis los rau hauv koj lub thawv ntawv txhua lub hlis, thov koom nrog kev hloov pauv los ntawm kev nkag mus rau HackerBoxes.com thiab sau npe kom tau txais peb lub npov txhua lub hlis.

Mus txog thiab qhia koj qhov ua tiav hauv cov lus hauv qab no lossis ntawm HackerBoxes Facebook Page. Muaj tseeb qhia rau peb paub yog tias koj muaj lus nug lossis xav tau kev pab nrog dab tsi. Ua tsaug rau koj ua ib feem ntawm HackerBoxes!

Pom zoo: