Cov txheej txheem:

HackerBox 0041: CircuitPython: 8 Kauj Ruam
HackerBox 0041: CircuitPython: 8 Kauj Ruam

Video: HackerBox 0041: CircuitPython: 8 Kauj Ruam

Video: HackerBox 0041: CircuitPython: 8 Kauj Ruam
Video: HackerBox 0041 CircuitPython 2024, Hlis ntuj nqeg
Anonim
HackerBox 0041: CircuitPython
HackerBox 0041: CircuitPython

Txais tos rau HackerBox Hackers thoob ntiaj teb. HackerBox 0041 coj peb CircuitPython, MakeCode Arcade, Atari Punk Console, thiab ntau ntxiv. Cov Lus Qhia no muaj cov ntaub ntawv rau pib nrog HackerBox 0041, 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!

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

  • Tshawb nrhiav SAMD51 ARM Cortex M4
  • Embedded programming nrog CircuitPython
  • Retro game tsim rau MakeCode Arcade
  • Sib sau ua ke ntawm Atari Punk Console Synth

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: Cov Ntsiab Lus Teev Npe rau HackerBox 0041

Image
Image
  • Adafruit ItsyBitsy M4 Qhia
  • Tshwj xeeb MakeCode Arcade PCB
  • Tshwj xeeb Atari Punk Console PCB
  • Ob Qhov Khoom Siv Hluav Taws Xob
  • Xim Zaub 128x160 Pixel TFT
  • CR2032 Npib Cell Tsib Pob
  • RGB 12 LED Ntiv Nplhaib Module
  • SG90 Micro Servo Tsav
  • 400 Point Clear Breadboard
  • DuPont Jumper Wires Txiv neej-Txiv neej
  • Braided MicroUSB Cable
  • Tsuas yog Circuit Python Decal
  • Tsuas yog HackerBox Maker Decal
  • Tshwj xeeb HackerBox Iron-On Patch

Qee qhov lwm yam uas yuav pab tau:

  • 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: Cov Khoom Siv Hluav Taws Xob

Adafruit ItsyBitsy M4 Qhia
Adafruit ItsyBitsy M4 Qhia

Paub koj tus kheej nrog cov khoom uas tau qhia ntawm no. Nco tseg qhov kev faib tawm pom zoo ntawm cov khoom no raws li cov xim coded.

HackerBox 0041 suav nrog cov khoom no ntim rau hauv ob lub hnab poly rov tuaj yeem kho tau. Thov nco ntsoov cov khoom sib cais tsuas yog faib ua ob lub hnab kom yooj yim ntim thiab tsis muaj lub ntsiab lus rau kev tso cov khoom sib xyaw rau hauv ib lossis ob qho ntawm ob lub hnab.

Kauj Ruam 3: Adafruit ItsyBitsy M4 Express

Adafruit ItsyBitsy M4 Express nta Microchip ATSAMD51 ARM Cortex M4 (cov ntawv teev npe) processor khiav ntawm 120 MHz. Lub microcontroller muaj kev txhawb nqa ntab, 512KB Flash, thiab 192KB RAM.

Thaum lub ItsyBitsy M4 tuaj yeem siv nrog Arduino IDE, nws xa nrog CircuitPython ntawm lub nkoj. Thaum koj ntsaws nws, nws yuav tshwm los ua lub disk me me nrog main.py ntawm nws. Hloov kho main.py nrog koj cov ntawv nyeem uas nyiam tshaj plaws los tsim koj txoj haujlwm siv Python, cov lus programming nrov tshaj plaws. Tsis muaj kev teeb tsa, IDE lossis tus xav tau tus compiler, yog li koj tuaj yeem siv nws ntawm txhua lub khoos phis tawj, txawm tias ChromeBooks lossis khoos phis tawj koj tsis tuaj yeem teeb tsa software rau.

Kauj ruam 4: CircuitPython

CircuitPython
CircuitPython

CircuitPython yog hom lus programming tsim los kom yooj yim sim thiab kawm ua haujlwm rau ntawm tus nqi qis microcontroller boards. CircuitPython yog qhov qhib tau los ntawm MicroPython programming lus. Nws yog kev siv software ntawm Python 3 cov lus programming thiab tau raug xa los ua haujlwm ntawm ntau lub microcontrollers niaj hnub no. (saib Wikipedia)

Adafruit Zoo Siab Txais Tos rau CircuitPython nplooj ntawv yog qhov pib zoo tshaj plaws.

Cov laug cam uas tsis muaj kab, cov xov hlau txuas, thiab ntau yam khoom los ntawm HackerBox 0041 muaj txiaj ntsig zoo thaum ua haujlwm dhau mus rau Adafruit CircuitPython Essentials qhov kev sim ua piv txwv.

Kauj ruam 5: MakeCode Arcade

MakeCode Arcade
MakeCode Arcade

MakeCode Arcade yog lub vev xaib, pib ua haujlwm zoo rau tsim cov retro arcade games rau lub vev xaib thiab rau microcontrollers. Siv qhov tshwj xeeb HackerBox MakeCode Arcade PCB, Adafruit ItsyBitsy M4 Express, xim TFT zaub, thiab xya lub pob nyem, koj tuaj yeem sib sau ua ke ntawm koj tus kheej HandCall MakeCode Arcade platform.

LUS QHUAB QHIA: Pib nrog PCB sab nrog rau cov ntawv "ItsyBitsy" hauv lub silkscreen tig ntsej muag. Tag nrho cov khoom siv mus rau sab no ntawm PCB. Muaj lub piezo buzzer hauv PCB tsim los txuas rau ItsyBitsy. Txawm li cas los xij, kev txhawb nqa rau qhov tso tawm tsis zoo li yuav tsum tau ua nyob rau hauv Arcade code tsis tau, yog li siv lub buzzer ntawm yog xaiv tau nyob rau lub sijhawm no. 40pin poj niam lub taub hau tuaj yeem tawg ua ob ntu 14 tus lej txhawm rau tsim "lub qhov (socket)" rau ItsyBitsy. Socketing ItsyBitsy txhawb nqa popping tus qauv rau thiab tawm ntawm Arcade PCB thiab cov laug cam uas tsis tau siv raws li qhov tsim nyog rau ntau txoj haujlwm. Yog lawm, yog tias koj siv tag nrho ob lub platform rau ItsyBitsy nrog ntau zaus, koj yuav xav khaws lwm ItsyBitsy thiab txuas nws ncaj qha mus rau Arcade PCB.

PROGRAMMING: Saib cov ntsiab lus ntawm MakeCode Arcade rau SAMD51.

Kauj Ruam 6: Roj Teeb Fais Fab rau MakeCode Arcade PCB

Roj teeb Fais Fab rau MakeCode Arcade PCB
Roj teeb Fais Fab rau MakeCode Arcade PCB

Los ntawm lub neej ntawd, MakeCode Arcade PCB tau siv los ntawm microUSB chaw nres nkoj ntawm ItsyBitsy. Lub hwj chim USB tuaj yeem muab los ntawm lub khoos phis tawj USB chaw nres nkoj, phab ntsa wart, thiab lwm yam.

Rau lub platform Arcade nqa tau yooj yim, USB chaw nres nkoj tuaj yeem siv hluav taws xob USB lub txhab nyiaj. Xaiv tau, kev daws teeb meem huv rau sib xyaw LiPo roj teeb lub zog yog Adafruit LiIon/LiPoly Backpack uas qhia hauv daim duab. Lub hnab ev ntawv tuaj yeem ua ke nrog LiPo Roj teeb thiab xaiv tau lub khawm rau/tawm. Nco tseg los ntawm daim duab uas LiPo Hnab Hnab tuaj yeem ua haujlwm tau zoo nyob tom qab ntawm arcade PCB. Nws pab tawm qhov cuam tshuam peb tus lej ntawm ItsyBitsy yog tias koj npaj yuav txiav lwm tus pin tom qab siv tas.

Kauj Ruam 7: Atari Punk Console Badge

Atari Punk Console Badge
Atari Punk Console Badge

Atari Punk Console yog lub voj voos nrov uas siv ob 555 timer ICs lossis ib leeg 556 dual timer IC. Thawj qhov kev tshaj tawm tau tshaj tawm hauv Phau Ntawv Xov Xwm Radio Shack xyoo 1980. Nws tus tsim qauv, Forrest M. Mims III, tau hu xov tooj cua tias "Stepped Tone Generator" hauv nws phau ntawv "Engineer Mini -Notebook - 555 Circuits".

Cov Circuit feem ntau hu ua "Atari Punk Console" vim tias nws "qis-suab" suab zoo ib yam li Atari console games los ntawm xyoo 1980s, nrog rau lub xwmfab nthwv dej tso tawm zoo ib yam li Atari 2600. Txuj ci nws yog qhov zoo ib puag ncig xwm yeem oscillator tsav tsheb monostable oscillator uas tsim ib leeg (square) mem tes.

LUS CEEB TOOM:

  • Ob daim npav rho nyiaj ntawm tes mus rau tom qab ntawm lub rooj tsavxwm
  • Tag nrho lwm cov khoom mus rau ntawm lub hauv ntej ntawm lub rooj tsavxwm
  • Muab tag nrho peb daim ntaub qhwv rau txhua daim clip kom ntseeg tau tias muaj kev sib cuag tau zoo nrog cov npib cell
  • 1K resistor R2 nyob hauv qab IC nkaus xwb
  • DIP keyboards tswj lub zog rau oscillators thiab LEDs sib cais
  • C1 thiab C2 yog 0.1uF Caps
  • C3 yog 10uF Cap
  • Rau tag nrho peb lub kaus mom, nco ntsoov lub cim polarity ntawm lub rooj tsavxwm los ntawm kev tso tus pin ntev dua rau ntawm + cim
  • Rau qhov pom tseeb, tus kheej-flashing LEDs tus pin luv mus rau hauv lub qhov nyob ze ntawm ntug tiaj ntawm lub rooj tsavxwm vajvoog
  • Muaj + cim rau ntawm PCB rau tus hais lus
  • IC (thiab nws lub qhov (socket)) yuav tsum tau taw qhia raws li ib nrab-lub cim kos rau ntawm lub rooj tsavxwm
  • Solder IC lub qhov (socket) yam tsis muaj lub nti nyob hauv thiab tom qab ntawd muab IC tso rau hauv lub qhov (socket) thaum txias
  • 1Mohm potentiometers tau cim "B105" hauv qab. Hauv qee qhov qauv ntawm cov khoom siv, 500Kohm potentiometers tau muab hloov pauv. Cov no yog cim "B504".
  • 5Kohm potentiometer tau cim "B502". Hauv qee qhov hloov pauv ntawm cov khoom siv, 1Kohm potentiometer tau muab hloov pauv. Nws yog cim "B102".

Wikipedia Atari Punk Console Page

Jameco Electronics Atari Punk Console Page

Kauj Ruam 8: Livin 'HackLife

Livin 'HackLife
Livin 'HackLife

Peb vam tias koj tau txaus siab rau lub hlis no lub voyage rau hauv DIY electronics. Mus txog thiab qhia koj qhov kev vam meej hauv cov lus hauv qab no lossis ntawm HackerBoxes Facebook Group. Muaj tseeb qhia rau peb paub yog tias koj muaj lus nug lossis xav tau kev pab nrog dab tsi.

Koom nrog kev hloov pauv. Ua neej nyob HackLife. Koj tuaj yeem tau txais lub thawv txias ntawm hackable electronics thiab khoos phis tawj thev naus laus zis xa mus rau koj lub thawv ntawv txhua lub hlis. Tsuas yog nthwv hla mus rau HackerBoxes.com thiab sau npe yuav cov kev pabcuam HackerBox txhua hli.

Pom zoo: