Cov txheej txheem:

HackerBox 0046: Zam Kev: 9 Kauj Ruam
HackerBox 0046: Zam Kev: 9 Kauj Ruam

Video: HackerBox 0046: Zam Kev: 9 Kauj Ruam

Video: HackerBox 0046: Zam Kev: 9 Kauj Ruam
Video: Zam Kev Rau Koj 2024, Kaum ib hlis
Anonim
HackerBox 0046: Kev mob siab rau
HackerBox 0046: Kev mob siab rau

Txais tos rau HackerBox Hackers thoob ntiaj teb! Nrog HackerBox 0046, peb tab tom sim nrog cov ntawv siv hluav taws xob tsis tu ncua, LED tsis tu ncua ntawm lub zeem muag (POV) cov ntawv sau, Arduino microcontroller platforms, hluav taws xob prototyping, thiab rechargeable roj teeb lub txhab nyiaj.

Cov Lus Qhia no muaj cov ntaub ntawv txhawm rau pib nrog HackerBox 0046, uas tuaj yeem yuav ntawm no thaum cov khoom siv kawg. 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 hloov pauv!

HackerBoxes yog lub npov pabcuam txhua hli rau kev txaus siab rau cov khoom siv hluav taws xob thiab khoos phis tawj thev naus laus zis - Cov Khoom Siv Hluav Taws Xob - Cov neeg npau suav npau suav.

HACK THE PLANET

Kauj Ruam 1: Cov Ntsiab Lus Sau rau HackerBox 0046

Cov Ntsiab Lus Teev Npe rau HackerBox 0046
Cov Ntsiab Lus Teev Npe rau HackerBox 0046
  • ePaper Module
  • Arduino UNO nrog MicroUSB
  • Ob UNO Prototyping Shields
  • USB 18650 Roj Teeb Hluav Taws Xob
  • Diffused Liab 5mm LEDs
  • 560 Ohm resistors
  • Txiv neej-Poj Niam DuPont Jumper Wires
  • 9V Cov Roj Teeb
  • Qhib Hardware Sticker
  • Tshwj Xeeb Qhib Kho Vajtse Lapel Pin

Qee qhov lwm yam uas yuav pab tau:

  • 9V Roj Teeb
  • Soldering hlau, cov laug, thiab cov cuab yeej siv yooj yim
  • Khoos phis tawj rau khiav cov cuab yeej software

Qhov tseem ceeb tshaj plaws, 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. Ua txhua kauj ruam qeeb, mloog cov ntsiab lus, thiab tsis txhob ntshai thov kev pab.

Muaj cov ntaub ntawv muaj txiaj ntsig zoo rau cov tswv cuab tam sim no thiab yav tom ntej hauv HackerBoxes FAQ. Yuav luag txhua qhov tsis yog-kev txhawb nqa email uas peb tau txais twb tau teb rau ntawd, yog li peb zoo siab heev uas koj tau siv ob peb feeb los nyeem FAQ.

Kauj ruam 2: Arduino UNO

Arduino UAS
Arduino UAS

Qhov Arduino UNO R3 no yog tsim los siv yooj yim hauv siab. Lub MicroUSB interface chaw nres nkoj tau sib xws nrog tib lub MicroUSB cables siv nrog ntau lub xov tooj ntawm tes thiab ntsiav tshuaj.

Kev qhia tshwj xeeb:

  • Microcontroller: ATmega328P (cov ntawv)
  • USB Serial Choj: CH340G (tsav tsheb)
  • Ua haujlwm voltage: 5V
  • Cov tswv yim hluav taws xob (pom zoo): 7-12V
  • Cov tswv yim hluav taws xob (txwv): 6-20V
  • Digital I/O pins: 14 (ntawm uas 6 muab PWM tso tawm)
  • Analog input pins: 6
  • DC tam sim no rau I/O Pin: 40 mA
  • DC tam sim no rau 3.3V Pin: 50 mA
  • Flash nco: 32 KB uas 0.5 KB siv los ntawm bootloader
  • SIB: 2 KB
  • EEPROM: 1 KB
  • Moos ceev: 16 MHz

Arduino UNO cov laug cam muaj lub built-in USB/Serial choj nti. Ntawm qhov kev hloov pauv tshwj xeeb no, tus choj choj yog CH340G. Rau CH340 USB/Serial chips, muaj cov tsav tsheb muaj rau ntau lub tshuab ua haujlwm (UNIX, Mac OS X, lossis Windows). Cov no tuaj yeem pom los ntawm qhov txuas saum toj no.

Thaum koj xub ntsaws Arduino UNO rau hauv USB chaw nres nkoj ntawm koj lub computer, lub teeb liab liab (LED) yuav qhib. Yuav luag tam sim tom qab, cov neeg siv LED liab feem ntau yuav pib ntsais muag sai. Qhov no tshwm sim vim tias lub khoos phis tawj tau npaj ua ntej nrog BLINK txoj haujlwm, uas peb yuav tham txog ntxiv hauv qab no.

Yog tias koj tseem tsis tau teeb tsa Arduino IDE, koj tuaj yeem rub nws los ntawm Arduino.cc thiab yog tias koj xav tau cov ntaub ntawv qhia ntxaws ntxiv rau kev ua haujlwm hauv Arduino ecosystem, peb hais qhia tshawb xyuas cov lus qhia rau HackerBoxes Starter Rhiav.

Txuas UNO rau koj lub computer siv MicroUSB cable. Tua tawm Arduino IDE software.

Hauv IDE ntawv qhia zaub mov, xaiv "Arduino UNO" hauv qab cov cuab yeej> pawg thawj coj. Tsis tas li, xaiv qhov tsim nyog USB chaw nres nkoj hauv IDE hauv cov cuab yeej> chaw nres nkoj (yuav muaj lub npe nrog "wchusb" hauv nws).

Thaum kawg, thauj khoom ib qho piv txwv code:

Cov ntaub ntawv-> Piv txwv-> Pib-> Blink

Qhov no yog qhov chaws uas tau tso ua ntej rau UNO thiab yuav tsum tau khiav tam sim no kom ntsais tus neeg siv liab liab. Txoj haujlwm BLINK tus lej rau hauv UNO los ntawm txhaj lub pob UPLOAD (lub cim xub) nyob rau sab saud ntawm cov kab lus tso tawm. Saib hauv qab cov cai rau cov ntaub ntawv xwm txheej: "suav" thiab tom qab ntawd "xa tawm". Thaum kawg, IDE yuav tsum qhia "Uploading Complete" thiab koj LED yuav tsum pib ntsais muag dua - tejzaum nws txawv me ntsis.

Thaum koj muaj peev xwm rub tawm thawj BLINK tus lej thiab txheeb xyuas qhov kev hloov pauv ntawm LED nrawm. Ua tib zoo saib cov cai. Koj tuaj yeem pom tias qhov haujlwm qhib LED, tos 1000 milliseconds (ib pliag), tig LED tawm, tos lwm thib ob, thiab tom qab ntawd ua txhua yam ntxiv - mus ib txhis. Hloov kho cov cai los ntawm kev hloov ob qho ntawm "ncua (1000)" nqe lus rau "ncua (100)". Qhov kev hloov kho no yuav ua rau LED ntsais kaum zaus sai dua, puas yog?

Thauj cov cai hloov pauv mus rau UNO thiab koj lub LED yuav tsum ntsais muag sai dua. Yog tias muaj, nrog koj zoo siab! Koj nyuam qhuav tau nyiag koj thawj daim ntawm cov lej kos. Thaum koj cov ntawv ntsais ntsais tau rub thiab khiav, vim li cas ho tsis pom tias koj puas tuaj yeem hloov pauv txoj cai kom ua rau LED ntsais ntsais sai dua ob zaug thiab tom qab ntawd tos ob peb feeb ua ntej rov ua dua? Muab nws sim! Yuav ua li cas txog qee qhov qauv? Thaum koj ua tiav ntawm kev pom lub txiaj ntsig xav tau, coding nws, thiab saib xyuas nws kom ua haujlwm raws li tau npaj tseg, koj tau ua cov kauj ruam loj los ua tus tsim programmer thiab kho vajtse hacker.

Kauj Ruam 3: Cov Ntawv Luam Ntawv Hauv Tshuab

Ntawv Ntawv Hauv Tshuab
Ntawv Ntawv Hauv Tshuab

Daim Ntawv Hluav Taws Xob, ePaper, tus lej hluav taws xob, lossis e-ink thev naus laus zis pab ua kom pom cov khoom siv uas ua rau pom qhov pom ntawm tus cwj mem zoo tib yam ntawm daim ntawv. Cov ntawv siv hluav taws xob feem ntau tsis tu ncua nyob hauv qhov duab tseem pom txawm tias tsis muaj lub zog lossis nrog kev tswj hluav taws xob tshem tawm lossis kaw. Tsis zoo li cov lus pom zoo rov qab pom lub vaj huam sib luag uas tso tawm lub teeb, cov ntawv hluav taws xob qhia pom lub teeb zoo li ntawv. Qhov no tuaj yeem ua rau lawv yooj yim nyeem thiab muab lub kaum sab xis pom ntau dua li cov teeb pom kev zoo tshaj plaws.

Qhov sib piv piv rau cov ntawv xov xwm nrog cov ntawv tsim tshiab (txij li xyoo 2008) tau zoo dua me ntsis. Qhov pom zoo ePaper tuaj yeem nyeem hauv lub hnub ci ncaj qha yam tsis muaj duab zoo li ploj mus.

Cov ntawv hluav taws xob hloov pauv tau yooj yim siv cov yas yas hloov pauv tau thiab cov khoom siv yas yas rau cov duab rov qab. Muaj kev sib tw tsis tu ncua ntawm cov tuam ntxhab los muab cov ntawv hluav taws xob puv xim.

(Wikipedia)

Kauj Ruam 4: Multicolor EPaper Module

Multicolor EPaper Module
Multicolor EPaper Module

MH-ET LIVE 1.54-inch ePaper Module tuaj yeem pom ob qho xim dub thiab liab. Tus qauv raug xa mus rau hauv qhov piv txwv thiab cov ntaub ntawv ua dub/dawb/liab (b/w/r) 200x200 cov ntawv hluav taws xob tso saib (EPD).

Cov thev naus laus zis tso tawm yog Microencapsulated Electrophoretic Display (MED), uas siv cov duab me me nyob qhov twg cov xim xim raug ncua raug ncua hauv cov pob tshab pob tshab thiab txav mus rau qhov pom nyob ntawm kev thov siv hluav taws xob.

Lub vijtsam ePaper tuaj yeem pom cov qauv los ntawm kev pom lub teeb pom kev ib puag ncig, yog li nws ua haujlwm yam tsis muaj lub teeb pom kev. Txawm tias nyob hauv lub hnub ci ci, ePaper npo muab kev pom siab nrog 180 degree saib lub kaum ntse ntse.

Siv MH-ET Module nrog Arduino UNO:

  1. Nruab Arduino IDE (yog tias tsis tau teeb tsa)
  2. Siv Tus Thawj Saib Xyuas Tsev Qiv Ntawv (Cov Cuab Yeej-> Tswj Cov Tsev Qiv Ntawv) los teeb tsa Adafruit GFX Library
  3. Siv Tus Thawj Saib Xyuas Haujlwm los nruab GxEPD (TSIS YOG GxEPD2)
  4. Qhib cov ntaub ntawv-> piv txwv-> GxEPD> GxEPD_Example
  5. Tsis suav nrog kab kom suav nrog GxGDEW0154Z04 (1.54 "b/w/r 200x200)
  6. Wire UNO to EPD: Busy = 7, DC = 8, Reset = 9, CS = 10, DIN = 11, CLK = 13, GND = GND, VCC = 5V
  7. Teeb EPD Hloov Ob Leeg rau "L"
  8. Rub tawm GxEPD_Example kos duab los ntawm IDE rau UNO raws li ib txwm muaj

Lwm lub tsev qiv ntawv nrog cov lej ua lej (muab los ntawm EPD chaw tsim khoom) tuaj yeem pom ntawm no. Nco ntsoov tias cov kev qhia no (thiab qee qhov piv txwv muaj nyob hauv online) muaj ntau txoj haujlwm pin ntau dua li cov uas tau hais los saum no hauv GxEPD piv txwv. Qhov tseem ceeb tshaj, koob 8 thiab 9 feem ntau thim rov qab.

Kauj Ruam 5: Arduino UNO Prototyping Shield

Arduino UNO Prototyping Shield
Arduino UNO Prototyping Shield

Arduino UNO Prototyping Shield haum ncaj qha mus rau Arduino UNO (lossis sib xws) pawg thawj coj ib yam li lwm yam ntaub thaiv npog. Txawm li cas los xij, Arduino UNO Prototyping Shield muaj lub hom phiaj dav dav "perf-board" thaj chaw nyob hauv nruab nrab qhov uas koj tuaj yeem muab tshuaj txhuam ntawm koj tus kheej cov khoom los tsim koj tus kheej cov ntaub thaiv npog. Cias yooj yim muab cov taub hau tso rau ntawm kab sab nraud ntawm daim ntaub thaiv kom nws tuaj yeem ntsaws ncaj rau saum UNO. Cov plated qhov nyob ib sab ntawm lub headers txuas rau lub header cov cim kom cov kab los ntawm UNO tuaj yeem txuas tau yooj yim rau hauv koj li kev cai lij choj.

Kauj Ruam 6: Xya Teeb Teeb ntawm Tsab Ntawv Tiv Thaiv

Xya LED Teeb ntawm Tsab Ntawv Tiv Thaiv
Xya LED Teeb ntawm Tsab Ntawv Tiv Thaiv

Ib qho Arduino Prototype Shield tuaj yeem siv los txhawb qhov kev qhia hauv Circuit. Lub Circuit Court muaj I/O pins 1-7 ntawm Arduino txuas nrog rau xya LEDs. Txhua LED tau txuas nrog kab nrog nws tus kheej tam sim no txwv tsis pub siv, uas hauv qhov piv txwv no yog 560 Ohm resistors.

Nco ntsoov tias tus pin luv ntawm txhua tus LED xav tau los qhia rau GND tus pin ntawm Arduino. Cov resistors tuaj yeem ua rau txhua qhov kev taw qhia. Tus tuav lub 9V tuaj yeem txuas nrog los ua txoj haujlwm "nqa tau" tab sis yuav tsum tau txuas rau Vin tus pin (tsis yog 5V lossis 3.3V).

Thaum cov kab hluav taws xob LEDs thiab cov tiv thaiv hluav taws xob tau txuas mus, sim nrog qhov piv txwv ntsais muag piv txwv los ntawm kev hloov tus lej tus lej rau ntau yam txiaj ntsig ntawm 1 thiab 7.

Thaum kawg, sim tawm daim duab knight_rider.ino txuas ntawm no rau qhov rov qab los ntawm 80s.

Kauj Ruam 7: Zam Tsis Pom Kev

Zam Kev Pom Kev
Zam Kev Pom Kev

Kev nyob ruaj khov ntawm lub zeem muag [VIDEO] hais txog qhov muag pom qhov tsis zoo uas tshwm sim thaum pom kev pom ntawm ib yam khoom tsis tso tseg rau qee lub sijhawm tom qab cov duab ci ntawm lub teeb pib los ntawm nws tau tso rau hauv qhov muag. Qhov kev xav tsis zoo kuj tau piav raws li "retinal persistence", "persistence of impressions", lossis yooj yim "persistence". (Wikipedia)

Sim tawm POV.ino kos duab suav nrog ntawm no ntawm "Xya LED" kho vajtse teeb tsa los ntawm qib kawg. Hauv daim duab, sim nrog cov ntawv sib txawv ntawm cov ntawv thiab lub sijhawm ntsuas kom tau txais ntau yam cuam tshuam.

Kev tshoov siab: Arduino POV Project los ntawm Ahmad Saeed.

Cov Duab Duab: Charles Marshall

Kauj Ruam 8: USB 18650 Roj Teeb Hluav Taws Xob

USB 18650 Roj Teeb Hluav Taws Xob
USB 18650 Roj Teeb Hluav Taws Xob

Tsuas yog nthuav tawm 18650 Lithium-Ion cell rau hauv tus menyuam no los ua koj tus kheej lub roj teeb "Lub txhab nyiaj" rau siv nrog ntau yam 5V thiab 3V cov haujlwm!

Koj tuaj yeem pom cov no 18650 Lithium-Ion hlwb ib txwm los ntawm ntau qhov chaw, suav nrog qhov no los ntawm Amazon.

Lub Hwj Chim Lub Hwj Huam Muaj Peev Xwm:

  • Cov tswv yim (Them) Cov Khoom: 5 txog 8V ntawm micro USB chaw nres nkoj txog 0.5A
  • Lub zog tso tawm:

    • 5V ntawm USB Hom A chaw nres nkoj
    • 3 txuas rau xa 3V txog 1A
    • 3 txuas txuas kom xa 5V txog 2A
  • Qhov xwm txheej qhia LED

    • Ntsuab = them roj teeb
    • Liab = them nqi)
  • Kev tiv thaiv roj teeb (tshaj tawm lossis tshaj tawm)
  • CEEB TOOM: Tsis muaj kev tiv thaiv rov qab-polarity!

Kauj ruam 9: Ua neej nyob HackLife

Ua neej nyob HackLife
Ua neej nyob HackLife

Peb vam tias yuav txaus siab rau lub hlis no HackerBox taug txuj kev nyuaj rau hauv khoom siv hluav taws xob thiab tshuab computer. Mus txog thiab qhia koj qhov kev vam meej hauv cov lus hauv qab no lossis ntawm HackerBoxes Facebook Group. Tsis tas li, nco ntsoov tias koj tuaj yeem xa email [email protected] txhua lub sijhawm yog tias koj muaj lus nug lossis xav tau kev pab.

Dab Tsi Ntxiv? Koom nrog kev hloov pauv. Ua neej nyob HackLife. Tau txais lub thawv txias ntawm cov cuab yeej hackable xa mus rau koj lub mailbox txhua lub hlis. Caij hla mus rau HackerBoxes.com thiab zwm npe rau koj txhua lub hlis HackerBox kev tso npe.

Pom zoo: