Cov txheej txheem:

Binary Hloov Game: 6 Kauj Ruam
Binary Hloov Game: 6 Kauj Ruam

Video: Binary Hloov Game: 6 Kauj Ruam

Video: Binary Hloov Game: 6 Kauj Ruam
Video: Why Do You Have A Photo of Me?? - Binary Star Hero - Part 3 2024, Kaum ib hlis
Anonim
Image
Image
Binary Hloov Game
Binary Hloov Game
Binary Hloov Game
Binary Hloov Game

Kev tshoov siab los ntawm Ben Heck's Hex Game

Nov yog kev ua si binary kuv tau ua los qhia kuv cov phooj ywg txog binary. Thaum kawg kuv ua si nrog qhov no hauv chav kawm kom kuv tus kheej tsaug zog.

Koj hloov pauv qhov tsis lees paub (0-255) lossis hexadecimal (0-ff) qhov tseem ceeb ntawm lub vijtsam rau binary, thiab tom qab ntawd siv 8 lub ntsiab hloov pauv mus rau qhov txiaj ntsig binary. Koj tuaj yeem xaiv los hloov qhov txiaj ntsig mus rau binary mus ib txhis, lossis hauv 60 lub sijhawm thib ob txwv nrog cov qhab nia siab (Tsis khaws cia hauv lub cim xeeb txawm tias).

Kuj tseem muaj lwm yam ntxiv, xws li

  • Spam game, qhov twg koj spam lub pob hauv 60 vib nas this rau cov qhab nia siab
  • Cov cuab yeej hloov pauv, los hloov binary rau denary, hexadecimal lossis ASCII
  • ASCII Text editor, qhov uas koj nkag mus rau qhov muaj nuj nqis uas sawv cev rau ASCII tus cim rau hauv lub vijtsam, thiab
  • Cov ntawv qhia zaub mov tseem ceeb, qhov uas koj nkag mus rau qhov muaj nuj nqis binary txhawm rau nkag mus rau cov yam ntxwv sib txawv thiab hom
  • Tsis muaj Suab, yog li koj tuaj yeem ua si hauv chav kawm (Nws yog qhov tshwj xeeb, tsis yog kab laum)

Raws li rau Cov Lus Qhia no:

  • Nov yog kuv thawj zaug, yog li thov qhia kuv nrog
  • Kuv siv lub xov tooj lub koob yees duab, yog li kuv thov txim rau cov duab tsis zoo

    Kuv muaj lub ntsiab lus thiab tua, tab sis nws muaj teeb meem ntau dhau, thov txim rau qhov ntawd

  • Kuv tau ua cov lus qhia no thiab tau siv kuv cov duab feem ntau ntawm lub cuab yeej tom qab ua nws, tsis yog thaum ua nws, yog li kuv tsis tshua muaj duab lossis yeeb yaj kiab ntau txog cov txheej txheem. Thov txim rau qhov ntawd ib yam

Muaj qhov zoo sib xws Qhia Ntawv Binary Game, uas tseem coj koj li cas los ua si Binary

Yog li cia peb pib!

Kauj Ruam 1: Cov Ntaub Ntawv thiab Cov Cuab Yeej

Khoom siv

  • Ib lub ATMega 328p (Cov nti hauv Arduino Uno)
  • 8 Hloov (Rau cov tswv yim binary)
  • 2 lwm qhov hloov pauv (1 rau lub zog thiab 1 rau hom)
  • Nokia 5110/3110 LCD
  • Lub Rooj Tswjhwm Saib Circuit (Duh)
  • Lub Hwj Huam Circuit Court

    • 150mAh Lithium polymer Roj Teeb (Tau txais dawb los ntawm kev tshwm sim)
    • Lithium Ion Roj Teeb Charger thiab Kev Tiv Thaiv Circuit (Kuj tau txais dawb los ntawm tib qhov xwm txheej)
    • 3.3V Kauj ruam down converter
  • Acrylic (Dub thiab Ntshiab)

Cov cuab yeej

  • Ib tug soldering hlau thiab solder

    Lub tshuab nqus dej (vim tias koj tuaj yeem ua yuam kev)

  • ISP programmer rau arduino (lossis ntxiv Arduino Uno, Raspberry Pi, thiab lwm yam)

Kauj ruam 2: Ua tsis tiav

Ua tsis tiav
Ua tsis tiav
Ua tsis tiav
Ua tsis tiav
Ua tsis tiav
Ua tsis tiav
Ua tsis tiav
Ua tsis tiav

Vim li cas thiaj ua tsis tiav (2 qhov ua tsis tiav)? Vim tias qhov haujlwm no tau tsim los ntawm ob.

Kuv tau xub xav tsim lub LCD Qho khoom ua si zoo li ib qho los ntawm The 8-Bit Guy. Txawm li cas los xij, txawm hais tias kuv tau tswj kom nws ua haujlwm tau zoo, tus cwj pwm LCD tau kib thaum nws tau muab tso rau hauv lub rooj tsav xwm. Kuv yeej tsis paub tias yog vim li cas. Cov txheej txheem yog zoo ib yam los ntawm The 8-Bit Guy.

Kuv kuj tseem xav tsim DIY Gambuino. Lub vijtsam, lub rooj tswj hwm microcontroller thiab cov kev tswj yuav hloov pauv thiab tshem tawm tau. Txawm li cas los xij, Kuv tsis tuaj yeem rub lub bootloader thiab tau txais SD Card ua haujlwm siv kuv li Raspberry Pi rov qab, thiab kuv tsis muaj Arduino Uno thaum ntawd, yog li kuv tso tseg rau kev ua haujlwm hauv tsev kawm ntawv.

Thaum ua haujlwm ntawm txoj haujlwm no, Kuv tau txiav txim siab los ua ke lub rooj tswj hwm lub microcontroller tseem ceeb los ntawm DIY Gamebuino thiab LCD Toy board nrog cov hloov pauv los ua qhov kev ua si binary.

Kauj ruam 3: Soldering Nws Up

Soldering Nws
Soldering Nws
Soldering Nws
Soldering Nws
Soldering Nws
Soldering Nws

Qhov tseem ceeb, tag nrho cov Circuit Court suav nrog:

  1. Txuas Nokia LCD
  2. Txuas 8 lub hloov pauv, khawm thiab hloov pauv (Pins 9-0, kos kos duab arduino kom paub ntau ntxiv)

    8 qhov hloov pauv tau teeb tsa hauv (2^7, 2^6, 2^5, 2^4, 2^3, 2^2, 2^1, 2^0)

  3. Txuas mus txog 150 mAh Lithium Polymer roj teeb thiab them lub roj teeb, nrog rau lub zog hloov pauv hauv koob

Yog li siv koj lub sijhawm los ua kom nws tawg. Koj tuaj yeem muab txhua yam tso rau ntawm ib lub rooj tsavxwm. Txawm li cas los xij, nrog ATmega328p lub rooj tsavxwm thiab lub rooj tsav xwm hauv Circuit nrog cov hloov pauv nyob ib puag ncig, Kuv tau siv cov kab taub hau thiab cov xov hlau txuas rau lawv ua ke, nrog rau txuas txuas txuas ntxiv LCD los ntawm lub rooj tswj hwm microcontroller.

Kauj ruam 4: Programming

Programming
Programming

Koj yuav tsum tau siv ISP Programmer txhawm rau rub tawm. Yog tias koj tsis muaj ISP programmer zoo li kuv, koj tuaj yeem siv cov khoom seem Arduino Uno nrog ArduinoISP kos duab.

Muaj ob peb yam tseem ceeb rau txoj haujlwm:

  1. Cov Ntawv Qhia Tseem Ceeb

    Nyeem tus nqi binary los ntawm cov hloov pauv (Hauv Arduino kos duab)

  2. Binary Game nws tus kheej (sijhawm tsuas yog siv millis () los tshuaj xyuas yog 60 vib nas this dhau los)
  3. SpamGame (Tsuas yog suav tus naj npawb ntawm lub sijhawm khawm tau nyem thiab siv millis () txhawm rau txheeb xyuas yog tias 60 vib nas this dhau los)
  4. ASCII Text Editor

Tswv yim: Yog tias koj siv Arduino Uno los teeb tsa nws, Tshem tawm Nokia 5110 LCD Ua Ntej. Nws yuav raug kib los ntawm 5 volts los ntawm Arduino Uno. (Tus kheej, Kuv tsis nco qab ua qhov no ob zaug, tab sis hmoov zoo kuv lub LCD tseem ua haujlwm)

Kauj ruam 5: Rooj plaub

Case
Case
Case
Case
Case
Case

Tom qab tsim nws thiab coj nws ncig tsev kawm ntawv, Kuv tau txiav txim siab los ua Acrylic Case los tiv thaiv cov khoom siv hluav taws xob sab hauv nws

Kuv tau txais 2 daim ntawm cov xim dub acrylic yog los ntawm lwm qhov haujlwm, thiab daim ntawv ntshiab ntawm acrylic raws li seem los ntawm kev kawm hauv tsev kawm. Nrog tus nqi pheej yig 60W soldering hlau,, Kuv ua kom sov ntawm cov npoo kuv xav khoov, thiab tom qab ntawd nrog kev pab ntawm ntoo thaiv, khoov cov acrylic mus rau 90 degrees. Txog rau kev hloov pauv hom, Kuv tau siv cov hlau txuas kom yaj lub qhov nyob ntawm ib sab ntawm rooj plaub, yog li nws yuav nkag tau yooj yim. Kuv kuj siv cov hlau txhuam kom yaj tawm qee thaj tsam ntawm acrylic kom cov ntaub ntawv yuav haum. Cov ntawv me me yuav ua rau rooj plaub du dua thiab tsis ntxhib ib ncig ntawm cov npoo.

Txawm li cas los xij, nrog kuv muaj kev ua haujlwm tsis zoo,

  • Kuv ua siab ntev dhau thiab tsoo ib daim ntawm acrylic rau rooj plaub. Vim li ntawd, daim hauv qab tsis muaj ntug du thiab huv si.
  • Kuv tsis tau txais cov acrylic kom khoov zoo li nws tuaj yeem yog, yog li lwm zaus, koj tuaj yeem ua qhov no rau hauv tus lej (Saib cov kab khoov me ntsis)

Siv cov hlau txuas tsis huv lossis zoo, tab sis nws yog txoj hauv kev nrawm thiab qias neeg kom ua tiav cov khoom, thiab nws ua haujlwm!

Tom qab cov ntawv acrylic tau khoov, Kuv tau siv cov kua nplaum kub kom ruaj khov rau cov xim dub ntawm acrylic ua ke. Nrog tsis muaj lub tswv yim yuav ua dab tsi rau qhov pom meej sab saum toj, Kuv tsuas yog kaw nws hauv qhov chaw. Thaum kuv ib txwm xav tau kho ib yam dab tsi, daim kab xev thiab daim thooj sab saum toj los ncaj qha kom nkag mus rau hauv lub tshuab hluav taws xob kom yooj yim kho. Kuv tseem kub kua nplaum lub zog hloov chaw.

Auj, lub hau cwj mem nyob rau sab saud ntawm lub rooj tsav xwm hluav taws xob yog txhawm rau tiv thaiv nws los ntawm kev swb ib puag ncig

Kauj ruam 6: Ua tiav

Tom qab ib lub lim tiam tus nqi ntawm kev ua haujlwm nyuaj, Kuv tau tswj kom khaws 2 (3 yog tias koj suav nrog seem acrylic) cov phiaj xwm tawg rau hauv qhov kev ua si Binary. Txawm li cas los xij, cov cuab yeej me me tau tawg ntawm no thiab nyob ntawd, yog li kom tau txais cov txheej txheem, Kuv yuav tsum hloov lub zog thiab hom hloov pauv, kho cov laug ntawm lub rooj tsav xwm hauv Circuit Court ntawm cov hloov pauv, thiab ua qee lub teeb kov. Lub vijtsam LCD yuav ua haujlwm tsis raug, qee zaum kuv yuav tsum nias nws rau nws kom pom dab tsi. Tab sis hav, nws yog thawj qhov kuv tau ua uas yog qhov muaj txiaj ntsig thiab ua haujlwm!

Pom zoo: