Cov txheej txheem:

Commodore 64 Hloov Kho Nrog Raspberry Pi, Arduino thiab Lego: 17 Cov Kauj Ruam (nrog Duab)
Commodore 64 Hloov Kho Nrog Raspberry Pi, Arduino thiab Lego: 17 Cov Kauj Ruam (nrog Duab)

Video: Commodore 64 Hloov Kho Nrog Raspberry Pi, Arduino thiab Lego: 17 Cov Kauj Ruam (nrog Duab)

Video: Commodore 64 Hloov Kho Nrog Raspberry Pi, Arduino thiab Lego: 17 Cov Kauj Ruam (nrog Duab)
Video: Commodore 64: неизвестная в СССР легенда (история, обзор, реставрация, запуск софта) 2024, Kaum ib hlis
Anonim
Commodore 64 Hloov Kho Nrog Raspberry Pi, Arduino thiab Lego
Commodore 64 Hloov Kho Nrog Raspberry Pi, Arduino thiab Lego
Commodore 64 Hloov Kho Nrog Raspberry Pi, Arduino thiab Lego
Commodore 64 Hloov Kho Nrog Raspberry Pi, Arduino thiab Lego
Commodore 64 Hloov Kho Nrog Raspberry Pi, Arduino thiab Lego
Commodore 64 Hloov Kho Nrog Raspberry Pi, Arduino thiab Lego
Commodore 64 Hloov Kho Nrog Raspberry Pi, Arduino thiab Lego
Commodore 64 Hloov Kho Nrog Raspberry Pi, Arduino thiab Lego

Txoj haujlwm no tso cai rau koj rov tshawb pom xyoo 1980 qhov kev ua si los ntawm kev rov ua dua lub qub Commodore 64 lub khoos phis tawj hauv tsev siv cov khoom siv tshiab thiab cov uas siv tau ntau yam Lego cib! Yog tias koj muaj ib lub khoos phis tawj no, qhov kev tsim no yuav tso cai rau koj rov ua si tsis nco qab thiab ntaus cov qhab nia qub. Yog tias koj tshiab rau kev suav rov qab, tam sim no koj yog lub sijhawm pom vim li cas Commodore 64 thiaj li nrov heev.

  • Lub khoos phis tawj Raspberry Pi tau siv los hloov lub motherboard
  • RetroPie muab cov qauv ua piv txwv rau Commodore (thiab lwm lub tshuab)
  • Ib qho me me Arduino Micro tso cai rau Commodore 64 keyboard los siv ua lub keyboard USB ua haujlwm tau zoo
  • Lego daim yog siv los tsim vaj tsev sab hauv
  • Keystone txuas txuas muab Commodore nrog USB, HDMI thiab cov chaw nres nkoj network uas txuas nrog sab hauv rau Pi

Txoj haujlwm no tsis xav tau kev txawj sau ntawv lossis hluav taws xob. Cov neeg tsim khoom uas tau siv Raspberry Pi lossis Arduino cov laug cam yuav pom qhov kev tsim no yooj yim heev thiab nws yeej pab tau yog tias koj tau siv Lego ua ntej - muaj tseeb txhua tus muaj?!

Txoj haujlwm no yuav tsis hloov lub cev Commodore 64 rooj plaub lossis keyboard, tsuas yog thaum koj txiav txim siab siv nws hauv txoj kev sib txawv yav tom ntej. Tej zaum koj yuav tsum tau kho dua ib qho qub txawm tias.

Khoom siv

Cov no tau piav qhia hauv cov kauj ruam uas ua raws. Lawv suav nrog cov khoom siv xav tau rau kev tsim kho tseem ceeb thiab qee qhov kev xaiv uas xav tau yog tias koj xav suav nrog qhov hloov hluav taws xob on-off.

Cov cuab yeej thiab software xav tau rau kev tsim thiab qee yam khoom yuav yog ib feem ntawm kev sib dhos ua tiav xws li USB joysticks los ua si cov kev ua si qub nrog!

Kauj Ruam 1: Tau Cov Cheeb Tsam Ua Ke

Tau Cov Cheeb Tsam Ua Ke
Tau Cov Cheeb Tsam Ua Ke
Tau Cov Cheeb Tsam Ua Ke
Tau Cov Cheeb Tsam Ua Ke
Tau Cov Cheeb Tsam Ua Ke
Tau Cov Cheeb Tsam Ua Ke

Cheebtsam xav tau teev tseg hauv ntu no. Yog tias koj tsis muaj lawv txhua tus, muaj cov txuas thiab cov lus qhia muaj rau tuav lawv nrog qhov kwv yees kwv yees tus nqi hauv Asmeskas las (raws li thaum Lub Yim Hli 2019). Nws yog qhov tsim nyog nyeem kab ntawv no tag nrho los pab txiav txim siab txog Lego thiab cov kab hluav taws xob uas koj yuav siv.

Thaum koj muaj txhua yam, koj yuav tsum muaj peev xwm ua kom yooj yim ua qhov kev tsim no nyob rau hnub so.

Cov Commodore 64

  • Qhov zoo tshaj plaws tau txais lub tshuab tsis ua haujlwm tab sis nrog cov keyboard ua haujlwm. Nws yuav yog kev txaj muag kom tawg lub tshuab ua haujlwm lossis ib qho uas yuav xav tau kev saib xyuas me ntsis los kho! Yog tias koj tsis tuaj yeem tau txais Commodore 64, tom qab ntawd Vic 20 lossis C16 yuav tsum ua haujlwm nrog qhov hloov pauv me me tau hais hauv phau ntawv qhia no
  • Tus Commodore yog qhov nyuaj tshaj plaws kom tau tab sis lawv muaj nyob ntawm eBay hauv Asmeskas thiab UK pib txij li $ 50. Zoo tshaj los saib ib qho uas tau muag rau ib feem thiab xav tau qee qhov TLC. Koj tsuas yog xav tau rooj plaub thiab keyboard yog li koj tuaj yeem tuaj yeem yuav cov khoom sib cais

Raspberry Pi

  • Raspberry Pi 2 thiab 3B yuav ua haujlwm zoo. Pi 4 yog qhov ntxiv tshiab zoo rau Pi tsev neeg tab sis xyuas tias koj tuaj yeem tau txais Lego cov ntaub ntawv rau nws. Tsis tas li nco ntsoov tias cov kab ntawv xav tau sib txawv vim tias nws muaj micro-HDMI thiab USB-C chaw nres nkoj
  • Pi 3B muaj nyob ib puag ncig $ 35. Siv koj lub tshuab tshawb fawb uas koj nyiam tshaj los nrhiav ib lossis ua raws qhov txuas thiab hloov mus rau koj qhov chaw: Raspberry Pi 3B+

Cov ntaub ntawv Lego Raspberry Pi

  • Qhov no yog qhov kev xaiv zoo tshaj plaws rau kev tsim Pi rau sab hauv Lego casing. Muaj ntau qhov xwm txheej rau Pi yog li nws yuav muaj peev xwm tshem tawm nrog lwm txoj hauv kev, haum Lego daim ib puag ncig nws
  • Cov ntaub ntawv Lego los ntawm Pi Hut tau siv rau qhov kev tsim no. Nws raug nqi kwv yees li $ 10 thiab tuaj yeem xaiv cov xim. Siv qhov txuas no txhawm rau nrhiav ib qho: Lego Raspberry Pi rooj plaub

Micro SD daim npav

  • Koj tus Pi yuav xav tau daim npav micro SD txhawm rau nruab RetroPie software rau
  • RetroPie yog qhov kev xaiv zoo tshaj yog tias koj yuav siv koj li Commodore 64 ua lub tshuab ua si
  • Micro SD phaib muaj dav thiab pheej yig, ib ncig $ 5. Daim npav 16GB yog qhov kev xaiv zoo tshaj plaws rau cov neeg siv feem ntau

Raspberry Pi fais fab mov

  • Kev ua haujlwm Raspberry Pi lub zog siv hluav taws xob yog qhov kev nyab xeeb tshaj plaws
  • Koj yuav tsum muaj peev xwm tau txais cov khoom siv hluav taws xob los ntawm tib qhov chaw koj tau txais Raspberry Pi los ntawm

Arduino Micro Cov

  • Qhov microprocessor me me txhais cov Commodore 64 matrix keyboard rau hauv USB HID ua raws cov keyboard uas tau txuas rau hauv Pi
  • Lub software xav tau los txhais lus muaj nyob hauv kab lus no thiab tau muab xa mus rau Micro siv Arduino IDE. Yog tias koj ua Vic 20 lossis C16 tsim, tom qab ntawd cov software no yuav xav tau kev hloov pauv me me rau lub rooj sib piv daim duab, piav qhia tom qab
  • Nws yog ib qho ntawm cov laug cam Arduino me tshaj thiab raug nqi ib puag ncig $ 20. Siv koj lub tshuab tshawb fawb uas koj nyiam tshaj los nrhiav ib lossis ua raws qhov txuas no thiab hloov mus rau koj qhov chaw: Arduino Micro

Ib nrab-qhov loj me ntawm daim ntawv

  • Qhov no yog siv los txuas Arduino Micro mus rau 20 tus pin txuas ntawm Commodore 64
  • Lawv muaj nyob ntawm cov khw hluav taws xob thiab online, tus nqi ib ncig $ 5. Qhov txuas no yog rau ib nrab ntawm lub khob cij los ntawm Adafruit: Ib nrab ntawm lub khob cij loj

Jumper xov hlau

  • Cov txiv neej no rau txiv neej thiab txiv neej rau poj niam jumper xov hlau tau siv nrog lub khob cij thiab txuas rau Commodore 64 LED rau GPIO pins ntawm Pi
  • Lawv muaj nyob ntawm cov khw hluav taws xob thiab online, tus nqi ib ncig $ 2 txog $ 4 ib pob. Qhov txuas no yog rau 40 pob ntawm 75mm txiv neej rau txiv neej jumper xov los ntawm Adafruit: 40 pob ntawm 75mm txiv neej rau txiv neej. Qhov txuas no yog rau 20 pob ntawm 75mm poj niam rau txiv neej jumper xov hlau los ntawm Adafruit: 20 pob ntawm 75mm poj niam rau txiv neej

Keystone ntxig

  • Cov no muab USB, HDMI thiab Network chaw nres nkoj ntawm Commodore 64 los ntsaws rau hauv. Lawv suav nrog:

    • 2 x Keystone USB ntxig
    • 1 x Keystone HDMI ntxig
    • 1 x Keystone RJ45 network ntxig
  • Lego daim feem ntau haum zoo ib puag ncig Keystone ntxig nrog qee qhov kev hloov pauv me me (hais hauv cov txheej txheem tsim tom qab). Cables los ntawm Pi txuas mus rau lwm qhov kawg ntawm Keystone ntxig
  • Lawv muaj los ntawm cov khw hluav taws xob thiab online, qhov chaw zoo tshaj los pib saib yog tej zaum eBay tshawb nrhiav "keystone usb", "keystone hdmi" thiab "keystone rj45". Lawv yog tus qauv loj thiab txhua qhov nqi ntawm $ 5 txog $ 10

Cov kab

  • Cables ntawm Pi thiab Keystone cov lus ntxig saum toj no xav tau. Cov no yog:

    • 2 x txiv neej rau txiv neej USB cables
    • 1 x txiv neej rau poj niam micro-USB txuas txuas
    • 1 x txiv neej rau txiv neej HDMI cable
    • 1x network coj. Cov kab no yuav raug txiav ua ob qhov txuas rau Keystone RJ45 network txuas, yog li rov siv qhov qub yog tias ua tau. Kuv pom ib qho nrog cov clip tawg ntawm ib kawg kom rov siv dua
    • 1 x txiv neej USB rau txiv neej micro-USB cable
  • Lawv npaj tau yooj yim los ntawm khoos phis tawj, TV thiab khoom siv hluav taws xob thiab hauv online, muag rau ib ncig $ 5
  • Raws li lawv txhua tus yuav haum rau hauv Commodore, sim kom tau cov xov hluav taws xob luv, ib puag ncig 20cm yog tias ua tau. Zam cov kab zoo li kuv ib nrab-meter HDMI cable snaking ncig hauv rooj plaub!

Lego

  • Qhov xav tau zoo ntawm Lego daim yog qhov xav tau, tshwj xeeb yog cov phaj thiab cov cib sib txawv ntawm qhov ntev nrog ib qhov dav dav. Rau Vic 20 lossis C16 tsim, koj yuav xav tau qhov sib txawv me ntsis kom haum ib puag ncig lawv cov chaw nres nkoj sab nraud piv rau Commodore 64
  • Lawv muaj nyob ntawm cov khw muag khoom ua si, kev lag luam thiab hauv online. Kuv tau txais feem ntau ntawm cov khoom xav tau los ntawm kev ua lag luam hnub Sunday tab sis khaws-ib-cib los ntawm Lego lub vev xaib khw yog qhov kev xaiv online zoo kom tau txais cov khoom tseeb:

Kauj ruam 2: Txiav txim siab yog tias muaj On-off Power Switch

Txiav txim siab yog tias muaj On-off Power Switch
Txiav txim siab yog tias muaj On-off Power Switch
Txiav txim siab yog tias muaj On-off Power Switch
Txiav txim siab yog tias muaj On-off Power Switch
Txiav txim siab yog tias muaj On-off Power Switch
Txiav txim siab yog tias muaj On-off Power Switch

Qhov kev tsim no suav nrog muaj lub zog tua hluav taws kom muaj kev nyab xeeb tig Pi tawm thiab rov qab qhib. Muaj qhov qhib-tawm yog qhov zoo rau muaj tab sis tsis tseem ceeb vim tias koj ib txwm tuaj yeem tua Pi kom raug siv RetroPie.

Muaj cov khoom siv ntxiv thiab cov cuab yeej xav tau. Koj tuaj yeem ntxiv qhov hloov pauv rau yav tom ntej yog tias koj xav tau - peb tab tom siv Lego tom qab txhua qhov! Tsis quav ntsej cov khoom hauv qab no thiab cov kauj ruam 8 thiab 9 hauv kab lus no yog tias koj yuav tsis muaj lub khawm qhib.

Momentary khawm

  • Lub khawm me me tau siv los qhib Pi thiab tua. Nws tau txuas nrog GPIO pins ntawm Pi thiab software suav nrog hauv kab lus no pom lub pob tau raug nias thiab kaw zoo.
  • Cov no muaj los ntawm cov khw hluav taws xob thiab online. Qhov txuas no yog rau 20 pob ntawm 6mm nyees khawm luv nqi ib ncig $ 2.50 los ntawm Adafruit: 20 pob ntawm 6mm khawm

Jumper xov hlau

  • Cov poj niam no rau cov poj niam xaim hluav taws xob tau siv los txuas qhov hloov pauv mus rau GPIO pins ntawm Pi
  • Lawv muaj nyob ntawm cov khw hluav taws xob thiab online, tus nqi ib ncig $ 2 txog $ 4 ib pob. Rau 20 pob ntawm 75mm poj niam rau poj niam jumper xov hlau los ntawm Adafruit: 20 pob ntawm 75mm poj niam rau poj niam

Kauj Ruam 3: Tau Txais Cov Khoom Siv thiab Software Xav Tau

Cov cuab yeej tseem ceeb thiab software xav tau yog teev hauv qab no.

  • PC (Windows lossis Mac) txhawm rau rub tawm thiab teeb tsa software
  • RetroPie software, rub tawm los ntawm: RetroPie
  • Arduino IDE software, rub tawm los ntawm: Arduino IDE
  • FTP software txhawm rau luam cov ntaub ntawv los ntawm koj lub PC mus rau Pi. Yog tias koj xav tau ib qho, FileZilla yog qhov kev xaiv dawb: FileZilla
  • Saib xyuas nrog HDMI cable txuas rau Commodore
  • Network cable txuas rau koj lub tsev network thiab internet
  • USB Joystick (hom phiaj ob)
  • Spare USB keyboard rau kev teeb tsa thawj zaug thiab muaj peev xwm ua rau muaj teeb meem tua
  • Screwdriver kom tawg thiab rov sib sau ua ke ntawm Commodore
  • Trimming riam (Stanley riam) rau kev txiav cov Keystone ntxig, txiav cov hlau lead network thiab Lego cib on-off hloov
  • Cov ntawv me me-nruab nrab txhawm rau hloov kho me ntsis Keystone ntxig rau kom Lego daim tuaj yeem haum ib puag ncig lawv kom raug
  • Soldering hlau rau qhov hloov mus
  • Superglue nplaum rau gluing qhov qhib-tawm mus rau Lego cib

Ceev faj

Ib feem ntawm qhov kev tsim no suav nrog siv rab riam ntse. Cov khoom los txiav thiab txiav yog me me thiab yuav xav tau qee qhov siab los txiav kom raug. Nco ntsoov tias cov khoom muaj kev nyab xeeb thiab yuav tsis plam thaum koj ua haujlwm rau lawv. Yog tias koj tab tom tsim lub on-off switch, yuav siv cov hlau txuas, xyuas kom koj ntseeg siab siv ib qho ua ntej yuav mus.

Tsis muaj leej twg xav kom raug mob thaum txaus siab rau lawv txoj haujlwm nyiam, yog li thov nrhiav kev pab yog tias koj xav tau.

Kauj Ruam 4: Npaj Commodore 64 Case

Npaj Commodore 64 Case
Npaj Commodore 64 Case
Npaj Commodore 64 Case
Npaj Commodore 64 Case
Npaj Commodore 64 Case
Npaj Commodore 64 Case

Tau txais Commodore 64 rooj plaub ntxuav thiab npaj rau theem tom ntej.

  • Txiav cov keyboard thiab LED los ntawm lub motherboard, tom qab ntawd ntswj lub motherboard los ntawm rooj plaub. Khaws cov motherboard kom nyab xeeb vim nws yuav muaj txiaj ntsig yav tom ntej
  • Nyob ntawm qhov xwm txheej ntawm chav tsev, tshem cov keyboard thiab muab rooj plaub kom huv nrog dej xab npum thiab tawm mus kom qhuav. Txheeb xyuas yog tias rooj plaub xav tau kev kho, tshwj xeeb tshaj yog rau cov ntaub ntawv rov qab thiab cov hauv ntej ntsia hlau-hauv kev txhawb nqa
  • Yog xav tau, ua tib zoo ntxuav cov keyboard nrog cov phuam hauv chav ua noj me ntsis. Tsis txhob npog nrog dej lossis siv tshuaj ntxhua khaub ncaws. Rov ua dua cov keyboard thiab rooj plaub thaum ua tiav

Kauj Ruam 5: Npaj Raspberry Pi

Npaj Raspberry Pi
Npaj Raspberry Pi
Npaj Raspberry Pi
Npaj Raspberry Pi
Npaj Raspberry Pi
Npaj Raspberry Pi

Teeb thiab teeb tsa Raspberry Pi nrog RetroPie software thiab ua tiav cov kauj ruam xav tau los theej cov ntawv rau nws.

  • Ntxig rau Pi rau hauv paus ntawm Lego rooj plaub. Tsis txhob kaw rooj plaub Lego ntawm theem no vim tias GPIO tus pin yuav xav tau txuas tom qab
  • Nruab RetroPie rau hauv daim npav SD thiab ntxig daim npav SD rau hauv Pi. Cov ntawv txuas nrog ntawm no yog rau RetroPie duab: RetroPie thiab Raspberry Pi lub vev xaib: Raspberry Pi Nruab SD Card
  • Txuas tus saib xyuas siv HDMI cable, txuas cov keyboard USB uas seem thiab lub network txuas rau hauv Pi Ethernet chaw nres nkoj. Txuas lub hwj chim rau Pi uas yuav tsum tau khau raj thiab pib RetroPie. Tsis tas yuav tsum tau nkag mus, txawm hais tias lub npe siv thiab tus lej nkag mus yog lub hauv paus rau Pi: pi thiab raspberry
  • Thaum RetroPie pib thawj zaug, nws qhia rau kev tswj xyuas cov ntawv qhia. Tawm qhov no rau tam sim no los ntawm nias F4 uas coj koj mus rau qhov hais kom ua sai
  • Pab kom SSH (ruaj ntseg lub plhaub) ntawm Pi kom koj nkag tau los ntawm lwm lub computer thiab tuaj yeem luam cov ntawv rau nws. Ntaus sudo raspi-teeb tsa thiab xaiv Kev cuam tshuam kev xaiv> SSH> pab
  • Nrhiav tus IP (internet raws tu qauv) chaw nyob rau Pi los ntawm kev ntaus hostname -I (rho tawm thiab cov ntawv loj i) ntawm qhov hais kom sai thiab nco nws rau cov kauj ruam tom ntej
  • Yog tias koj tsis muaj FTP software, teeb tsa nws ntawm koj lub PC tam sim no. Cov neeg siv FileZilla FTP raug pom zoo: FileZilla. Txuas mus rau Pi siv FTP tus thov kev pabcuam software siv tus IP chaw nyob ntawm Pi, tus lej chaw nres nkoj 22 nrog rau lub npe siv thiab tus lej zais raws li qhia

Kauj Ruam 6: Tshaj Tawm Cov Keyboard Mapping Software rau Arduino Micro

Rub cov Keyboard Mapping Software rau Arduino Micro
Rub cov Keyboard Mapping Software rau Arduino Micro
Rub cov Keyboard Mapping Software rau Arduino Micro
Rub cov Keyboard Mapping Software rau Arduino Micro

Teeb tsa Arduino Micro nrog cov keyboard keyboard software.

  • Muab Arduino Micro tso rau ntawm lub khob cij me me thiab txuas nws mus rau PC siv USB rau micro-USB cable
  • Rub tawm thiab teeb tsa Arduino IDE rau koj lub PC: Arduino IDE
  • Nruab cov keyboard thiab cov keyboard cov tsev qiv ntawv los ntawm cov ntawv qhia zaub mov: Cuab Yeej> Tswj Cov Tsev Qiv Ntawv
  • Tsim cov duab kos tshiab (program Arduino) thiab luam cov keyboard program code los ntawm cov ntawv txuas ntawm nplooj ntawv no mus rau hauv daim duab
  • Ntawm IDE, siv cov cuab yeej ntawv qhia zaub mov> Pawg thawj coj saib thiab teeb tsa pawg thawj coj saib rau Arduino / Genuino Micro thiab muab lub chaw nres nkoj nws txuas nrog rau siv cov cuab yeej ntawv qhia zaub mov> Chaw Nres Nkoj. Txuag, muab tso ua ke thiab rub tawm daim duab
  • Yog tias siv Vic 20 lossis C16, daim duab Arduino yuav xav tau kho dua vim tias lawv muaj cov keyboard sib txawv sib txawv rau Commodore 64. Hloov kho cov pawg uas qhov chaws tau piav qhia qhov tsis hloov pauv thiab hloov pauv, siv qhov txuas muab los pab kom nkag siab cov keyboard matrix. rau cov khoos phis tawj no: Keyboard Matrix Chart rau Vic-20

uint8_t tuav [ROWS] [COLS]…

uint8_t shiftkeys [ROWS] [COLS]…

Kauj Ruam 7: Txuas Commodore, Arduino Micro thiab Raspberry Pi Ua ke

Txuas tus Commodore, Arduino Micro thiab Raspberry Pi Ua ke
Txuas tus Commodore, Arduino Micro thiab Raspberry Pi Ua ke
Txuas tus Commodore, Arduino Micro thiab Raspberry Pi Ua ke
Txuas tus Commodore, Arduino Micro thiab Raspberry Pi Ua ke
Txuas tus Commodore, Arduino Micro thiab Raspberry Pi Ua ke
Txuas tus Commodore, Arduino Micro thiab Raspberry Pi Ua ke
Txuas tus Commodore, Arduino Micro thiab Raspberry Pi Ua ke
Txuas tus Commodore, Arduino Micro thiab Raspberry Pi Ua ke

Txuas tus Commodore 64 keyboard mus rau Arduino Micro siv cov xov hluav taws xob thiab cov ntawv ci.

  • Siv tus pin daim duab qhia pom, txuas Arduino Micro mus rau Commodore 64 20 tus pin header siv cov jumper xov hlau thiab cov mov ci
  • Txhawm rau qhia 'sab saum toj' los ntawm 'hauv qab' ntawm Commodore 64 20 tus pin header, 'sab saum toj' tsis muaj tus pin txuas rau pins 2 thiab 4. Kab pins (5 txog 12) thiab kab pins (13 txog 20) yog siv rau Commodore keyboard matrix, thaum rov kho qhov tseem ceeb yog cais ntawm tus pin 3. Hauv av tus pin 1 yuav tsum tau txuas nrog rau tus yuam sij rov ua haujlwm
  • Tshem lub Arduino los ntawm lub PC thiab ntsaws nws rau hauv USB chaw nres nkoj ntawm Pi
  • Ntawm Pi hais kom sai, txheeb xyuas txhua yam uas Commodore 64 cov keyboard ua haujlwm kom raug. Yog tias koj ntsib teeb meem, tom qab ntawv txheeb xyuas qhov no thiab qib ua ntej ua tib zoo. Tej zaum yuav muaj kev sib txuas tsis zoo lossis cov keyboard yuav xav tau kev huv huv dua. Commodore keyboard cov duab qhia chaw rau cov keyboard niaj hnub no thiab cov yuam sij tsis pom ntawm Commodore muaj nyob rau siv kev hloov pauv thiab tswj tus yuam sij raws li qhia hauv kab ntawv

Kauj Ruam 8: Sib dhos On-off Switch

Sib dhos On-off Switch
Sib dhos On-off Switch
Sib dhos On-off Switch
Sib dhos On-off Switch
Sib dhos On-off Switch
Sib dhos On-off Switch

Qhov qhib-tawm yog tsim los ntawm Lego daim txuas rau lub pob me me uas txuas nrog ob lub Raspberry Pi GPIO pins. Hla cov kauj ruam no yog tias koj tsis muaj lub khawm qhib.

  • Txuas ob tus poj niam-xaus ntawm cov xov hlau jumper mus rau tus pin ntawm lub sijhawm tam sim no. Cov no yuav txuas nrog Pi GPIO pins tom qab. Muaj 4 tus pin ntawm lub sijhawm tam sim no uas tuaj ua khub. Koj yuav tsum txuas cov dhia mus rau ib tus pin ntawm txhua khub raws li qhia. Cov kev sib txuas yuav tsum muaj kev nyab xeeb. Yog tias tsis yog, siv cov hlau txhuam los txhuam rau hauv qhov chaw
  • Lub sijhawm tam sim no yuav muab tso rau hauv 2x2 hloov kho Lego cib. Ntsuas qhov nrug nruab nrab ntawm cov pins ntawm lub pob (feem ntau nyob ib puag ncig 6mm) thiab kos rau ntawm ntug ntawm cov cib uas nws yuav xav tau txiav raws li qhia
  • Ruaj ntseg Lego cib kom nws tsis txhob plam thiab ua tib zoo txiav mus rau hauv lub cib. Lego nyuaj heev yog li koj yuav tsum tau siv qee qhov siab siv riam. Lwm cov cuab yeej tuaj yeem siv suav nrog hacksaw me me lossis Dremel. Qhov kawg yuav tsum tshwm raws li qhia
  • Xov tus pin ntawm lub sijhawm tam sim no rau hauv Lego daim uas tau txiav tawm. Yog tias qhov haum me ntsis xoob, tom qab ntawd khawm sab nraub qaum ntawm lub pob zeb
  • Tsim qhov hloov chaw nyob raws li qhia. Nco tseg lub tiaj Lego phaj nyob rau hauv pem hauv ntej ntawm qhov hloov, uas yog siv rau Lego khawm kom nws tuaj yeem txav tau zoo raws lub phaj
  • Tsim Lego khawm thiab superglue nws mus rau sab saum toj ntawm lub sijhawm tam sim no. Lub pob yuav tsum xaub zoo hauv lub tsev hloov

Kauj Ruam 9: Teeb tsa On-off Hloov Software ntawm Pi

Txoj cai xav tau ntawm Pi txhawm rau txheeb xyuas cov cim los ntawm GPIO pins thiab pib ua kom muaj kev nyab xeeb kaw ntawm Pi. Hla cov kauj ruam no yog tias koj tsis muaj lub khawm qhib.

  • Luam mloog -for-shutdown.py thiab mloog- rau-shutdown.sh (hloov npe los ntawm.shx rau.sh) los ntawm cov ntawv txuas ntawm nplooj ntawv no mus rau lub tsev khaws khoom ntawm Pi /home /pi
  • Cov lus txib hauv qab no ua rau ob daim ntawv ua tiav thiab txav lawv mus rau lawv lub hom phiaj. Tom qab ntawd nws hloov kho qhov haujlwm pib ua haujlwm tseem ceeb kom hu xov tooj kaw thiab pib nws

### ua kom ob daim ntawv ua tiav

sudo chmod +x mloog- rau-shutdown.py sudo chmod +x mloog- rau-shutdown.sh ### txav lawv mus rau lawv lub hom phiaj nplaub tshev sudo mv mloog-rau-shutdown.py/usr/local/bin/sudo mv mloog -for-shutdown.sh /etc/init.d/ ### hloov kho lub hauv paus pib ua haujlwm kom hu xov tooj kaw thiab pib tam sim no sudo hloov tshiab-rc.d mloog- rau-shutdown.sh defaults sudo/etc/ init.d/mloog- rau-shutdown.sh pib

Kuaj lub pob uas yuav tsum tig Pi tawm ntawm cov txheej txheem kaw ib txwm muaj. Thaum Pi tawm, nias lub pob kom rov qhib dua

Kauj Ruam 10: Tsim Lego Foundations

Tsim Lego Foundations
Tsim Lego Foundations
Tsim Lego Foundations
Tsim Lego Foundations

Lego daim hlau tau haum rau hauv paus ntawm Commodore 64 rooj plaub rau lwm qhov txuas rau.

  • Lub hauv paus Lego tau tsim hauv ob ntu, ib qho yog rau sab xis ntawm Commodore qhov chaw nres nkoj USB yuav nyob, thiab ntu tom qab uas lub zog, HDMI thiab network chaw nres nkoj yuav tsim
  • Phaj daim yog haum nyob ib ncig ntawm sab hauv grooves hauv rooj plaub. Thaum ob lub rooj sib txoos tau tig dua lawv haum nrog kev txav me me, muab lub suab zoo rau cov ntu uas ua raws

Kauj ruam 11: Sib sau USB Ports

Sib sau ua ke USB Ports
Sib sau ua ke USB Ports
Sib sau ua ke USB Ports
Sib sau ua ke USB Ports
Sib sau ua ke USB Ports
Sib sau ua ke USB Ports

Ob lub USB chaw nres nkoj nyob ib sab ntawm Commodore 64 tau tsim nrog Lego thiab Keystone daim thiab cabled mus rau Pi USB chaw nres nkoj.

  • Keystone USB ntxig rau yuav tsum tau kho me ntsis kom Lego daim haum nyob ib puag ncig lawv. Tshem cov kab ntawv uas siv rab riam txiav thiab cov ntawv xuab zeb tshem tawm cov kaum sab xis kom lawv zoo li qhov pom. Cov ntawv qub tau qhia rau siv
  • Tsim Lego cib nyob ib puag ncig ntawm Keystone USB ntxig rau kom ntseeg tau tias sab hauv ntawm USB chaw nres nkoj ntsib lub hauv ntej ntawm Commodore 64. Cib tau siv los txhawb lub nraub qaum ntawm qhov ntxig uas tuav nws nyob hauv qhov chaw thaum lub USB cable ntsaws rau hauv. ntawm USB tso rau ntawm lub phaj me me kom tsis muaj qhov sib txawv ntawm sab xub ntiag ntawm qhov chaw nres nkoj
  • Ua kom tiav qhov tsim. Tom qab ntawd, txiv neej - txiv neej USB cables yuav txuas Keystone USB ntxig thiab Pi USB chaw nres nkoj

Kauj Ruam 12: Sib sau Micro-USB Port

Sib sau Micro-USB Port
Sib sau Micro-USB Port
Sib sau Micro-USB Port
Sib sau Micro-USB Port

Lub micro-USB chaw nres nkoj rau muab lub zog rau Pi tau tsim nrog Lego daim thiab haum rau sab nraum qab ntawm Commodore 64.

  • Tsim Lego daim ib ncig ntawm tus poj niam kawg ntawm micro-USB txuas txuas. Qhov kawg no yuav xav tau kev txiav tawm nyob ntawm hom cable koj yuav tsum ua kom ntseeg tau tias nws haum rau sab hauv nws ib puag ncig Lego daim kom nws tsis tuaj yeem rub tawm lossis thawb rau hauv thaum txuas kab txuas
  • Ua kom tiav qhov tsim. Tom qab ntawd, txiv neej kawg ntawm micro-USB yuav ntxig rau hauv micro-USB chaw nres nkoj fais fab ntawm Pi

Kauj Ruam 13: Sib dhos HDMI Port

Sib dhos HDMI Port
Sib dhos HDMI Port
Sib dhos HDMI Port
Sib dhos HDMI Port
Sib dhos HDMI Port
Sib dhos HDMI Port

Qhov chaw nres nkoj HDMI nyob tom qab ntawm Commodore 64 yog tsim nrog Lego thiab Keystone daim thiab cabled mus rau Pi HDMI chaw nres nkoj.

  • Keystone HDMI ntxig xav tau kev hloov kho kom Lego daim haum nyob ib puag ncig nws thiab kom nws nthuav tawm los ntawm rooj plaub ntawm Commodore 64, ua kom yooj yim txuas nrog HDMI cable. Txiav qhov clip siv rab riam txiav thiab muab tshem tawm hauv qab cov npoo ntawm HDMI ntxig siv cov ntawv txhuam kom nws zoo li qhov pom
  • Tsim Lego ncig Keystone HDMI ntxig ua kom ntseeg tau tias sab nraum qab ntawm daim clip tau khov kho nyob hauv qhov chaw los ntawm Lego daim. Qhov no tiv thaiv HDMI ntxig los ntawm kev raug thawb rau hauv rooj plaub thaum txuas HDMI cable
  • Ua kom tiav qhov tsim. Tom qab ntawd, HDMI cable yuav txuas Keystone HDMI ntxig thiab Pi HDMI chaw nres nkoj

Kauj Ruam 14: Sib sau Network Port

Sib sau Network Port
Sib sau Network Port
Sib sau Network Port
Sib sau Network Port
Sib sau Network Port
Sib sau Network Port

Qhov chaw nres nkoj Ethernet nyob tom qab ntawm Commodore 64 yog tsim nrog Lego thiab Keystone daim thiab cabled mus rau Pi Ethernet chaw nres nkoj.

  • Keystone RJ45 qhov xav tau hloov kho kom Lego daim haum nyob ib puag ncig nws thiab kom nws nthuav tawm los ntawm rooj plaub ntawm Commodore 64, ua kom yooj yim txuas nrog lub network cable. Tshem tawm qhov clip thiab ib feem ntawm sab saum toj tom qab nws siv rab riam txiav thiab puag ncig cov hauv qab ntawm RJ45 ntxig siv cov ntawv txhuam kom nws zoo li qhov pom
  • Siv rab riam txiav, txiav ib kawg ntawm lub network cable thiab xov nws los ntawm Lego daim nrog lub qhov nyob hauv. Qhov no tuaj yeem ua tau nruj tab sis pab txhawb nqa sab nraum qab ntawm RJ45 ntxig rau thaum txuas lub network cable txuas nrog
  • Txiav cov yas thaiv kom nthuav tawm cov xov hlau sab hauv kab. Txuas tus kheej cov xov hlau xim raws li cov lus qhia muab nrog Keystone ntxig, los ntawm nias cov xov hlau rau hauv lawv qhov chaw tso hlau. Koj tsis tas yuav nthuav tawm cov hlau sab hauv ntawm cov xov hlau ua ntej raws li cov hlau tso yuav txiav cov yas yas thaiv thiab ua kom muaj kev sib txuas. Tej zaum koj yuav xav tau rab riam yas me me txhawm rau thawb cov xov hlau mus rau hauv lawv qhov chaw
  • Tsim Lego ncig Keystone RJ45 ntxig
  • Ua kom tiav qhov tsim. Tom qab ntawd, lwm qhov kawg ntawm lub network cable yuav txuas nrog Ethernet chaw nres nkoj ntawm Pi

Kauj Ruam 15: Muab tag nrho Tshooj thiab Xeem

Muab tag nrho txhua qhov thiab Xeem
Muab tag nrho txhua qhov thiab Xeem
Muab tag nrho txhua qhov thiab Xeem
Muab tag nrho txhua qhov thiab Xeem
Muab tag nrho txhua qhov thiab Xeem
Muab tag nrho txhua qhov thiab Xeem

Kev sib txuas Pi GPIO tau ua tiav thiab txhua daim tau sib sau ua ke.

  • Nyob rau theem no, koj yuav tsum muaj cov keyboard thiab ntu ntu npaj kom txuas nrog Raspberry Pi
  • Ntxiv cov ntaub ntawv Lego nrog Raspberry Pi tom qab txuas tus txiv neej-poj niam jumper xov hlau rau Raspberry Pi GPIO pins rau Commodore 64 LED raws li qhia
  • Yog tias koj tau hloov qhov hloov pauv, txuas tus poj niam kawg ntawm cov xov txuas txuas mus rau Raspberry Pi GPIO pins raws li qhia
  • Kaw qhov tsis tau siv Commodore 64 chaw nres nkoj nyob tom qab ntawm rooj plaub nrog Lego cib raws li qhia. Tom qab kaw qhov Raspberry Pi Lego cov ntaub ntawv thiab xyuas kom txhua daim Lego ruaj khov nyob rau hauv qhov chaw thiab haum kom raug sab hauv Commodore 64
  • Ntxiv Lego daim hlau hla rau sab saum toj ntawm cov khoom siv txhawm rau ntxiv dag zog rau lawv thiab tuav lub rooj sib txoos hauv qhov chaw txawm hais tias Commodore tau tuav upside down
  • Ntxig cov kab hluav taws xob los ntawm cov keyboard thiab txhua qhov Keystone ntxig. Tom qab ntawd kaw qhov Commodore 64 cov keyboard tshuaj xyuas tias nws zaum tau zoo thiab tsis muaj cov hlua txuas
  • Ceev cov ntsia hlau pem hauv ntej tab sis tsis txhob nrawm dua

Kauj Ruam 16: Teeb tsa RetroPie

Teeb tsa RetroPie
Teeb tsa RetroPie
Teeb tsa RetroPie
Teeb tsa RetroPie
Teeb tsa RetroPie
Teeb tsa RetroPie

Thaum kawg, teeb tsa Commodore 64 emulator thiab games hauv RetroPie.

  • RetroPie lub vev xaib piav qhia yuav teeb tsa emulators li cas, teeb tsa cov ntsiab lus, khawb game box-art thiab qhov twg tso cov ntawv ua si (roms). Nws tau pom zoo tias koj saib ntawm lub xaib no txhawm rau coj mus rau txhua qhov tshwj xeeb: RetroPie
  • Khau raj Commodore 64 uas pib RetroPie. Nws yuav ua kom sai rau cov tswv yim tswj mappings thawj zaug nws tau siv. Pib nrog cov keyboard thiab tuav tus yuam sij kom pib txheej txheem txheej txheem
  • Yog tias qhov yuam kev tsis raug lossis cov khoom siv joystick raug xaiv thaum kos duab, sim siv tus lej nce ntawm cov keyboard kom rov qab thiab rov ua dua. Yog tias ua tsis tiav, nias F4 ntawm cov keyboard kom tawm RetroPie mus rau qhov hais kom ua sai. Ntaus emulationstation kom rov pib dua
  • Txhawm rau teeb tsa ntau dua ib lub cuab yeej siv (feem ntau yog joystick) hauv RetroPie, xaiv Pib> Kho Kho Kev Nkag Mus thiab thaum hais kom sai, tuav tus yuam sij lossis khawm ntawm lub cuab yeej. Qhov no pib lub tswv yim tswj kev sib tham sib tham rau lub cuab yeej tshiab. Siv qhov kev xaiv no hloov pauv daim duab qhia chaw rau lub cuab yeej twb tau teeb tsa
  • Txhawm rau teeb tsa Commodore 64 emulator, hu ua VICE, taug kev hauv RetroPie raws li hauv qab RetroPie teeb> Tswj cov pob> Tswj cov pob khoom xaiv. Xaiv VICE emulator thiab xaiv Nruab los ntawm binary. Nws siv sijhawm li 5 feeb los nruab
  • Tshawb nrhiav qhov twg kom tau txais cov ntaub ntawv qub game (roms) thiab luam lossis ftp lawv rau/home/pi/RetroPie/roms/c64
  • Restart Emulation Station thiab koj cov kev ua si yuav pom. Koj yuav tsum zoo mus!

Kauj Ruam 17: Nrog koj zoo siab! Sijhawm Ua Si

Nrog koj zoo siab! Sijhawm Ua Si
Nrog koj zoo siab! Sijhawm Ua Si

Tam sim no koj muaj Commodore 64 game platform uas yuav cia siab ua haujlwm rau koj ntau xyoo tom ntej! Tsis txhob hnov qab tshawb nrhiav lwm qhov kev ua si platform - koj tuaj yeem ua piv txwv, zoo siab heev khiav Sinclair Spectrum thiab Atari kev ua si los ntawm koj tus Commodore 64 tshiab!

Nyob rau yav tom ntej kuv yuav zaum saib kom tau PCB los txuas rau Commodore 20 tus pin header rau Arduino Micro hloov pauv lub khob cij me me.

Lub sijhawm no, tawm ib qho lus pom thiab ua kev zoo siab!

Kev Sib Tw Ua Si
Kev Sib Tw Ua Si
Kev Sib Tw Ua Si
Kev Sib Tw Ua Si

Runner Up hauv Kev Sib Tw Ua Si

Pom zoo: