Cov txheej txheem:

HackerBox 0030: Teeb pom kev zoo: 11 Kauj Ruam
HackerBox 0030: Teeb pom kev zoo: 11 Kauj Ruam

Video: HackerBox 0030: Teeb pom kev zoo: 11 Kauj Ruam

Video: HackerBox 0030: Teeb pom kev zoo: 11 Kauj Ruam
Video: dab neeg noj kauv dawb zaj pob zos 20/11/2020 2024, Kaum ib hlis
Anonim
HackerBox 0030: Teeb pom kev zoo
HackerBox 0030: Teeb pom kev zoo

Lub hlis no, HackerBox Hackers tab tom tsim kev txawj ntse, peb sab, teeb pom kev zoo. Cov Lus Qhia no muaj cov ntaub ntawv rau ua haujlwm nrog HackerBox #0030, uas koj tuaj yeem khaws tau 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 0030:

  • Kho ESP8266 NodeMCU rau siv nrog Arduino IDE
  • Sib sau ua ke cov qauv los ntawm cov xim puv xim RGB LED
  • Tswj RGB LED strips siv ESP8266 NodeMCU
  • Txuas NodeMCU kev ua haujlwm dhau Wi-nkaus wireless network
  • Ua lub 8x8x8 LED Cube
  • Kev sim nrog kev rov sau dua ib qho 8051-based microcontroller

HackerBoxes yog lub npov muab kev pabcuam txhua hli rau DIY khoom siv 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 0030: Cov Ntsiab Lus Box

Image
Image
  • HackerBoxes #0030 Daim Npav Siv Tau
  • NodeMCU V3 Module nrog ESP8266 thiab 32M Flash
  • Reel ntawm 60 WS2812B RGB LEDs 2 meters
  • 8x8x8 LED Cov Khoom Siv nrog 8051-Raws MCU thiab 512 LEDs
  • USB Serial Module nrog CH340G thiab Jumper Wires
  • Stranded Hookup Wire 3 meters, 22 ntsuas
  • Tshwj xeeb HackerBoxes Decal
  • Tshwj Xeeb Tsaus Sab Sab Nrauv LED Decal

Qee qhov lwm yam uas yuav pab tau:

  • Soldering hlau, cov laug, thiab cov cuab yeej siv yooj yim
  • Khoos phis tawj rau kev khiav cov cuab yeej software
  • Cardboard lossis ntoo rau LED sib dhos jig

Qhov tseem ceeb tshaj, koj yuav xav tau kev nkag siab ntawm kev taug txuj kev nyuaj, tus ntsuj plig DIY, thiab xav paub xav paub hacker. Hardcore DIY cov khoom siv hluav taws xob tsis yog qhov tsis tseem ceeb, thiab HackerBoxes tsis tau ywg dej. Lub hom phiaj yog kev vam meej, tsis yog kev ua tiav. Thaum koj mob siab rau thiab txaus siab rau kev taug txuj kev nyuaj, kev txaus siab ntau tuaj yeem tau los ntawm kev kawm thev naus laus zis tshiab thiab vam tias yuav tau txais qee qhov haujlwm ua haujlwm. Peb hais kom ua txhua kauj ruam qeeb, mloog cov ntsiab lus, thiab tsis txhob ntshai thov kev pab.

Tias muaj cov ntaub ntawv nplua nuj rau tam sim no, thiab yav tom ntej, cov tswv cuab hauv HackerBox FAQ.

Kauj Ruam 2: NodeMCU thiab Arduino IDE

RGB LED Sawb
RGB LED Sawb

NodeMCU yog qhov qhib IoT platform. Nws suav nrog cov software uas khiav ntawm ESP8266 Wi-Fi SoC los ntawm Espressif Systems.

Txhawm rau pib, nco ntsoov tias koj tau teeb tsa Arduino IDE (www.arduino.cc).

Tom ntej no, koj yuav xav tau cov tsav tsheb rau qhov tsim nyog Serial-USB nti ntawm NodeMCU module koj tab tom siv. Tam sim no ntau NodeMCU cov qauv suav nrog CH340 Serial-USB nti. Cov chaw tsim khoom ntawm CH340 chips (WCH.cn) muaj cov tsav tsheb muaj rau txhua lub tshuab ua haujlwm nrov. Txheeb xyuas Google nplooj ntawv txhais lus rau lawv lub xaib. Qee qhov ntawm cov neeg tsav tsheb no tseem tau tsom rau ntawm WeMos qhov chaw.

Thaum kawg, ua raws cov lus qhia ntawm no txhawm rau txhim kho ESP8266 pawg thawj coj txhawb rau hauv Arduino IDE.

Thaum teeb tsa IDE, xaiv "ESP-12E Module" ua lub rooj tsavxwm. Xaiv qhov chaw nres nkoj tsim nyog uas tshwm thaum koj txuas NodeMCU rau koj lub khoos phis tawj.

Raws li ib txwm muaj, pib nrog Blink piv txwv los sim ua ke thiab xa mus rau NodeMCU. Muaj lub xiav LED ntawm lub rooj tsav xwm ntawm tus pin txhais tias "LED_BUILTIN" yog li daim duab piv txwv yuav tsum ua haujlwm yam tsis hloov kho. Hloov tus naj npawb ntawm milliseconds dhau (ob zaug) mus rau ncua () muaj nuj nqi los hloov qhov ntsais ntawm LED. Txheeb xyuas tias cov kev hloov pauv tau tshwm sim hauv kev ua haujlwm tom qab ua tiav kev tshaj tawm.

Kauj Ruam 3: RGB LED Sawb

Cov yoog raws RGB LED strips yog txoj hauv kev yooj yim los ntxiv teeb pom kev zoo rau txhua txoj haujlwm. Txhua LED muaj tus tsav tsheb sib xyaw uas tso cai rau koj los tswj cov xim thiab ci ntawm txhua LED ntawm nws tus kheej. Kev sib xyaw ua ke LED/tsav IC ntawm cov kab no yog qhov sib tw heev WS2812B (cov ntawv). Yog tias koj saib mus rau hauv WS2812 "pixel" nrog lub tshuab ua kom pom tseeb, koj tuaj yeem pom cov tsav tsheb sib txuas nrog cov xov txuas txuas nws mus rau sab hauv me me ntsuab, liab, thiab xiav LEDs.

Txhawm rau tswj cov saw ntawm WS2812 LEDs los ntawm NodeMCU, FastLED lub tsev qiv ntawv yog qhov kev xaiv muaj zog heev.

Lub Tsev Qiv Ntawv los nrog qee qhov piv txwv zoo uas koj tuaj yeem sim tawm. Nco ntsoov hloov cov lus txhais no:

#define LED_PIN D1#txhais COLOR_ORDER GRB#txhais CHIPSET WS2812

POWER SUPPLY NCO TSEG Txhua WS2812 tuaj yeem kos ib puag ncig 60mA, yog li nco ntsoov muab lub zog 5V txaus rau qhov ntau kawg ntawm cov LEDs uas koj yuav tau teeb ntawm txhua lub sijhawm.

Kauj Ruam 4: Cov teeb pom kev zoo

Lub teeb
Lub teeb

LED Strips tuaj yeem tsim ua ntau yam qauv kom haum rau txhua qhov kev xav. Nov yog ob peb qhov piv txwv nthuav qhov haujlwm:

Koov

Lub Disco Jar

Daim iav Infinity

Huab Teeb

Moos

Zaub Backlight

Lub voos xwmfab

Cosplay

Zaj sawv Jar

Kauj Ruam 5: Lub Teeb Hluav Taws

Lightform qhov cub
Lightform qhov cub
Lightform qhov cub
Lightform qhov cub

Yog tias koj muaj qee daim ntawv parchment thiab lub thawv nyias (lossis daim duab thav duab los ntawm lub khw muag khoom lossis khw muag khoom daus las), koj tuaj yeem tso ua qhov phiaj xwm qhov cub no ob peb teev.

RGB LED sawb raug txiav mus rau kaum rau daim kab xev LED thiab txuas ua ke nyob hauv tus qauv nab. Ob peb nplooj ntawv ntawm parchment ntawv ua tus diffuser. NodeMCU module tuaj yeem ua kom sov rau sab nraub qaum nrog USB chaw nres nkoj nthuav tawm rau kev ua haujlwm thiab txuas lub zog.

Pom zoo: