自製遊戲機編程營Build-a-Console Camp

學生親手組裝掌上遊戲機,
以真實 C++ 編寫自己的遊戲
Students build a handheld console from components and program their own games in C++

Build-a-Console Camp:Make the console. Make the games.Make the console. Make the games.

學生每天接觸電子遊戲,卻鮮少理解裝置內部的硬件結構與程式邏輯。本課程以兩節共四小時的實作教學,引導十歲以上學生設計個人 3D 外殼改裝件、免焊接組裝離線 Raspberry Pi Pico 2 掌上遊戲機,並透過 Edcosys 遊戲程式碼庫以 C++ 編寫兩個遊戲。完成後整套系統由學生帶回家繼續開發。Most students play games every day without seeing the electronics or code behind them. Across two two-hour sessions, students aged 10 and up design custom 3D-printed case modifications, assemble an offline Raspberry Pi Pico 2 handheld with no soldering, and program two games in C++ using the Edcosys game code base. Every student takes the complete working system home.

小班教學(1 位導師對 6 位學生);家長可以學生身分一同參與,亦可接送。Small-group instruction (1 teacher : 6 students). Parents may enrol alongside their child to build a console, or drop off.

Build-a-Console handheld game console design illustration Diagram of the student-built handheld game console: a 3D-printed 110 by 124 by 25 mm screw-fastened case with a 3.5-inch 480 by 320 colour screen showing pixel art and PRESS A, a clickable joystick on the left, four coloured buttons on the right, a buzzer grille, a Raspberry Pi Pico 2 microcontroller inside, and a custom yellow 3D-printed case mod clipped to the top corner. 3.5" TFT 480 x 320 JOYSTICK Click = Btn 5 3D MOD Student CAD 4 BUTTONS + Buzzer Edcosys OS OFFLINE > PRESS A < PICO 2 / 110 x 124 x 25 MM / NO WI-FI
完成品結構示意:3D 打印外殼、3.5 吋彩色顯示屏、可按壓搖桿、四顆實體按鍵、壓電蜂鳴器及學生設計的 3D 打印改裝件,課程結束後整套由學生保留。Finished console schematic: 3D-printed enclosure, 3.5-inch colour TFT display, clickable joystick, four tactile buttons, piezo buzzer and student CAD modifications, kept by the student after camp.
適合年齡Ages
10 歲以上(家長可同行)10+ (parents welcome)
課堂時數Format
2 天 × 2 小時(共 4 小時)2 days x 2 hours (4 hours total)
師生比例Ratio
1 位導師對 6 位學生1 teacher : 6 students
地點與語言Where & language
中環,英語授課Central HK, taught in English

親手組裝底層電子元件,
讓學生真正理解遊戲機如何運作
Building from discrete components teaches students how a computing device actually works

學生先逐件檢視微控制器、顯示屏、輸入模組與蜂鳴器,以低電壓插線完成接駁與系統測試,再裝入可拆式螺絲外殼,把封閉消費電子產品轉化為可理解的工程系統。Before closing the enclosure, students inspect, wire and test the microcontroller, display, input controls and audio module individually, turning a closed consumer device into a transparent embedded system.

Working Build-a-Console hardware prototype running a coin-collecting game on a 3.5-inch colour display connected to a joystick and tactile buttons on a cutting mat.
第一天實作原型測試狀態:學生先在工作枱接駁並逐項驗證微控制器、顯示屏與按鍵模組,確認電路運作正常後,第二天再裝入 3D 打印外殼。Day 1 bench-testing stage: students wire and verify the microcontroller, display and input module in the open before assembling the system into its 3D-printed enclosure on Day 2.
110 x 124 x 25 mm螺絲固定外殼尺寸Screw-fastened enclosure
480 x 3203.5 吋彩色顯示屏3.5-inch TFT display
免焊接電路Solder-free低電壓插線組裝Low-voltage plug-in
  1. Raspberry Pi Pico 2 微控制器Raspberry Pi Pico 2 microcontroller

    系統的運算與控制核心,屬工程界廣泛採用的微控制器,硬件本身不設無線網絡模組。The system's computing core: an industry-standard microcontroller built without wireless hardware.

  2. 3.5 吋彩色顯示屏(480 × 320)3.5-inch colour TFT display (480 x 320)

    負責輸出遊戲畫面與介面;操作全由實體按鍵控制,不設觸控輸入。Renders game graphics at 480 by 320 resolution, driven solely by physical controls with no touchscreen.

  3. 模擬搖桿與四顆實體按鍵Analog joystick and four tactile buttons

    負責方向與動作指令輸入;搖桿同時具備按壓開關功能,兼作第五個輸入按鍵。Provides directional and action input; the joystick also depresses as a fifth switch input.

  4. 壓電蜂鳴器Piezo buzzer

    透過程式碼控制頻率與節拍,產生遊戲音效與簡單旋律。Generates programmed audio feedback and melodies directly from student code.

  5. 3D 打印外殼與個人立體改裝件3D-printed enclosure and custom CAD modifications

    機身尺寸約 110 × 124 × 25 毫米,以螺絲固定並可隨時拆開檢視,配搭學生首節以電腦輔助設計(CAD)製作的立體配件。Approximately 110 by 124 by 25 mm, secured with screws for open inspection and fitted with each student's CAD-designed 3D-printed add-ons.

  6. 專屬開機啟動畫面Custom start-up sequence

    內置復古像素風格 Edcosys 開機標誌、動畫與啟動提示音,完成電路接駁後即可驗證系統啟動。A retro pixel Edcosys logo, boot animation and audio cue confirming system initialisation as soon as wiring passes verification.

先完成硬件驗證,再投入程式開發,
兩節課都有明確的工程里程碑
Hardware verification comes before programming, giving each session a measurable engineering milestone

依照真實嵌入式系統開發次序,學生先確認電路與輸入輸出運作無誤,再於第二節集中撰寫與測試 C++ 程式;兩節之間由導師印製學生的個人 3D 改裝件。Following real embedded-systems engineering order, students validate every circuit before writing game logic. Between sessions, the instructor 3D-prints each student's custom enclosure modifications.

Day 1 2 小時2 hours

立體設計、電路接駁與硬件測試CAD design, electronics wiring and hardware testing

  1. 電腦輔助設計(CAD)改裝件:運用基礎電腦輔助設計(CAD)工具設計外殼上的個人 3D 改裝配件;課後由導師以 3D 打印機印製,供第二節課堂裝配。CAD case modifications: model personal 3D enclosure add-ons using beginner-friendly CAD software for the instructor to 3D-print after class.
  2. 元件認知與按圖接線:檢視顯示屏、搖桿、按鍵與蜂鳴器的接口與功能,按電路接線圖以低電壓插線接駁(免焊接,暫不裝殼)。Component inspection and wiring: learn the function of the display, joystick, buttons and buzzer, then connect the low-voltage plug-in wiring from a diagram with no soldering.
  3. 系統化測試與開發環境設定:逐項驗證畫面輸出、按鍵輸入與音效回饋,全部通過測試後於 Arduino IDE 設定 Raspberry Pi Pico 2。Systematic testing and IDE setup: verify display output, physical controls and audio one by one, then configure the Raspberry Pi Pico 2 in Arduino IDE.
第一天檢核標準Day 1 verification milestone 顯示屏、按鍵輸入與音效回饋全部通過硬件測試,並提交個人 3D 改裝件設計檔。Working uncased console with display, input controls and audio passing every check, plus a CAD file ready for printing.
兩堂之間Between sessions

導師課後以 3D 打印機印製每位學生的專屬改裝件,翌日帶回課堂裝配。Our instructor 3D-prints every student's custom modifications after Day 1, ready for assembly on Day 2.

Day 2 2 小時2 hours

機身裝配、C++ 遊戲編程與作品展示Enclosure assembly, C++ game programming and showcase

  1. 裝配 3D 打印外殼與改裝件:將通過測試的電路模組裝入 3D 打印外殼並以螺絲固定,再安裝翌堂印製的個人立體改裝件。Enclosure and mod assembly: secure the verified electronics inside the 3D-printed shell with screws and fit the custom modifications printed between sessions.
  2. 獨立編寫第一個 C++ 遊戲:於 Arduino IDE 運用 Edcosys 遊戲程式碼庫,以真實 C++ 語法由零編寫第一個可運行遊戲。Program Game 1 from scratch: write a first playable game in real C++ inside Arduino IDE on top of the Edcosys game code base.
  3. 改寫並延伸第二個遊戲:從 Edcosys 起始遊戲範本出發,修改規則並擴展功能,透過系統化除錯(可選配 AI 輔助)修正程式錯誤。Extend Game 2 from a starter template: modify and expand an Edcosys starter game while practising structured debugging, optionally supported by AI.
第二天評核與展示Day 2 assessment and showcase 完成裝殼並穩定運行學生親手編寫的兩個遊戲;課堂尾聲由每位學生示範作品,整套系統帶回家。Assembled console running the student's own coded games, demonstrated at the end of Day 2 and taken home.

硬件工程與 CAD 能力Hardware engineering and CAD

  • 基礎 CAD 立體建模CAD modelling fundamentals
  • 3D 打印成型原理3D printing workflow
  • 電路接線圖閱讀Reading wiring diagrams
  • 系統化硬件測試Systematic hardware testing
  • 微控制器開發環境設定Microcontroller configuration

C++ 程式設計基礎C++ programming fundamentals

  • 變數與資料狀態(Variables)Variables and state
  • 條件判斷(If-statements)Conditional logic (if-statements)
  • 迴圈結構(Loops)Iteration (loops)
  • 座標與移動邏輯(Movement)Coordinate movement
  • 遊戲主迴圈(Game loop)The game loop
  • 系統化除錯與可選 AI 輔助除錯Debugging and optional AI debugging

學習評核設三個階段檢核點:第一天每件電子元件須逐項通過測試;第二天主機完成裝殼並穩定運行學生編寫的程式;課堂尾聲由每位學生公開示範作品(具體遊戲項目由課程研發團隊按每期教材安排)。Learning progress is verified at three checkpoints: every electronic part passes its Day 1 test check, the assembled console runs the student's own code on Day 2, and each student demonstrates their coded games at the end of Day 2 (specific game projects are updated by our curriculum team each cohort).

抽離繁瑣的底層硬件設定,
讓初學者專注 C++ 邏輯與負責任的 AI 除錯
Abstracting low-level hardware drivers lets beginners focus on real C++ logic and disciplined AI debugging

微控制器開發通常需要大量底層驅動設定才能控制顯示屏與輸入訊號。Edcosys 遊戲程式碼庫將重複的底層介面封裝,讓十歲以上初學者在兩小時內直接撰寫並測試核心 C++ 程式邏輯。Embedded programming normally requires extensive hardware boilerplate before a single sprite moves. Our Edcosys game code base abstracts display and input drivers so beginners aged 10+ write real C++ logic and complete two playable games within two hours.

真實 C++ 與可選 AI 除錯Real C++ with optional AI debugging
my_game.ino (Arduino IDE / C++) C++ 遊戲主迴圈結構示意Illustrative C++ game loop
// Edcosys game code base
#include "EdcosysConsole.h"

int playerX = 120;
int speed = 4;

void loop() {
  if (btnRight()) playerX += speed;
  if (btnLeft())  playerX -= speed;
  drawPlayer(playerX, 200);
  updateScreen();
}
Edcosys 遊戲程式碼庫封裝的底層功能Abstracted by the Edcosys game code base 顯示屏驅動、搖桿與按鍵訊號讀取及蜂鳴器底層控制。Display drivers, joystick polling, button debouncing and buzzer signalling.
學生親手編寫的 C++ 核心邏輯Programmed by the student in C++ 變數、條件判斷、迴圈、座標移動、遊戲規則與除錯。Variables, conditionals, loops, coordinate movement, game rules and debugging.

AI 的教學定位:程式診斷與除錯助手The pedagogical role of AI: diagnostic debugging support

可選配置,非必須項目Optional, not required
  1. 01
    識別編譯或邏輯異常Identify compiler or logic errors

    學生先檢視遊戲畫面表現,並閱讀 Arduino IDE 的編譯錯誤訊息。Students inspect screen behaviour alongside the compiler output in Arduino IDE.

  2. 02
    向 AI 查詢錯誤成因(如 Gemini 或 Copilot)Consult AI for error diagnosis (Gemini, Copilot or similar)

    AI 負責解釋出錯原因並建議修正方向,全程不上載任何學生個人資料。AI explains the root cause and suggests a correction without uploading any personal data.

  3. 03
    獨立驗證建議並親手修改程式碼Verify the diagnosis and implement the fix independently

    AI 不會代學生編寫整套遊戲;每項修改均由學生理解原理後親手輸入並重新編譯驗證。AI never writes the games for the student. Every fix is reviewed, typed in by hand and re-tested.

即使完全不使用任何 AI 工具,學生亦可完整修畢課程並完成兩個遊戲。Students can complete the entire curriculum and both games without using any AI assistant.

每位學生獨立編寫自己的程式Independent coding for every student

導師負責講解概念、示範原理與引導排查錯誤,絕不代寫程式碼,確保每位學生真正掌握自己主機內的程式結構。Instructors explain concepts and guide troubleshooting without writing code on a student's behalf, ensuring genuine comprehension.

結合語法根基與專業 AI 素養Syntax foundations alongside disciplined AI literacy

自然語言編程(Vibe Coding)擅長以語言指揮 AI 快速建構;本營隊則讓學生先建立親手讀寫 C++ 的基礎,再學會像工程師一樣善用 AI 除錯。While vibe coding uses natural language to direct AI builds, this camp anchors hands-on C++ syntax first and teaches students to use AI the way software engineers debug.

課後以免費開發環境持續延伸Continued development at home with free tools

Arduino IDE 為免費開源軟件。學生回家接駁個人電腦即可繼續擴充遊戲作品,亦可報讀延伸練習班或進階編程課程。Arduino IDE is free software. Students can connect their console to a home laptop to build additional games, or progress to extra classes and follow-up courses.

離線架構與免焊接設計,
從硬件層面落實安全與私隱
Offline architecture and solder-free wiring enforce safety and privacy at the hardware level

安全與私隱保障直接落實於微控制器選型與低電壓電路設計,從源頭杜絕無線連線、錄影錄音與高溫焊接風險。Hardware selection and low-voltage circuit design enforce safety from the outset, eliminating wireless connectivity, cameras, microphones and soldering hazards.

無線網絡(Wi-Fi)Wireless networking
不設(無無線晶片)None (non-Wi-Fi Pico 2)
鏡頭與麥克風Camera and microphone
不設None
遊戲取得方式Game installation
僅限自行編程燒錄Student-coded only
電路接駁方式Circuit assembly
低電壓插線,免焊接Low-voltage plug-in, no soldering
個人資料私隱Personal data privacy
不上載至 AI 或主機Never uploaded
  • 完全離線的微控制器架構Strictly offline microcontroller architecture

    主機採用不設 Wi-Fi 晶片的 Raspberry Pi Pico 2,沒有網絡連線、內置 AI、鏡頭或麥克風,日後亦無法連線上網。Built on the non-Wi-Fi Raspberry Pi Pico 2, the handheld has no internet access, onboard AI, camera or microphone, and never will.

  • 只能透過編程新增遊戲New games arrive only through coding

    主機不設應用程式商店,亦無法下載現成檔案。學生必須親手編寫並燒錄程式才能遊玩,讓遊玩成為完成編程的學習成果。There is no app store and no downloadable library. New games exist only when students code and flash them, making gameplay the direct reward of programming.

  • 低電壓插接電路,全程免焊接Low-voltage plug-in circuitry with no soldering

    所有電子模組均採低電壓插線連接。每塊電路板由教學團隊於課前預先準備,學生於課堂上安全接駁並逐項測試。Every module connects through low-voltage plug-in wiring. Staff prepare each board in advance so students wire and verify circuits safely in class.

  • 零學生個人資料上載Zero personal data uploaded

    學生的姓名與個人資料不會上載至任何 AI 平台,亦不會儲存於掌上遊戲機內。No student name or personal information is uploaded to any AI platform or stored on the console.

  • 透明結構,由元件到成品完全可見Transparent build from component to enclosure

    每件電子元件裝入外殼前均經學生親手檢視與測試,讓學生清楚掌握每個組件在嵌入式系統中的角色。Students inspect and verify every electronic part before closing the enclosure, gaining clear visibility into how the system functions.

小班指導配合封裝程式碼庫,
十歲以上初學者也能獨立完成硬件與編程
Small-group instruction and a structured code base make hardware and C++ accessible to beginners aged 10 and up

具備積木編程經驗有助加快節奏,完全零基礎的學生亦可在導師指導或家長陪同下完成作品;開班日期、中環確實場地與最新學費會於查詢時確認。Prior block coding helps, while complete beginners can also finish with small-group instruction or a parent alongside them. Upcoming dates, exact Central venue and fees are confirmed on enquiry.

對象年齡與起點Ages and prerequisites
對象為 10 歲以上、對電子硬件或遊戲程式設計有興趣的學生。具備積木編程或基礎程式概念有助加快節奏;完全零基礎的初學者同樣歡迎,有需要時可由家長同行協助。Designed for learners aged 10 and up who are curious about hardware and game programming. Block coding or basic coding helps, and complete beginners are welcome, with a parent's support if needed.
家長參與方式Parent participation
家長可選擇以學生身分一同報讀、親手組裝及編寫一部屬於自己的掌上遊戲機,亦可於開課時接送學生。Parents may enrol as students to build and program their own handheld console alongside their child, or drop off and pick up after each two-hour session.
授課語言與師生比例Language and class ratio
全程以英語授課,於 Arduino IDE 以 C++ 開發;師生比例維持 1 位導師對 6 位學生,確保每位學生獲得個別指導。Taught in English using C++ in Arduino IDE, at a 1 teacher to 6 students ratio so every learner receives direct technical guidance.
自備設備與軟件準備Required laptop and software
學生須自備一部 Windows(10 或以上)或 Mac 手提電腦及充電器;平板電腦、iPad 及 Chromebook 不支援所需開發環境。請先確認電腦未受學校或家長安裝權限限制,並強烈建議課前預先安裝免費的 Arduino IDE;AI 帳戶(Gemini、Copilot 等)純屬可選。Students bring a Windows (10 or later) or Mac laptop with its charger. Tablets, iPads and Chromebooks cannot run the development toolchain. Confirm the device permits software installation, as school- or parent-locked laptops may block it. Installing the free Arduino IDE before class is strongly recommended; an AI account is optional.

查詢最新開班檔期與收費,
以及課前電腦準備指引
Enquire for upcoming cohort dates, fees and pre-class setup guidance

歡迎透過 WhatsApp 或右方表格聯絡我們,查詢最新開班日期、學費、家長同行名額,或確認手提電腦是否符合軟件安裝要求。Reach us via WhatsApp or the enquiry form for upcoming cohort dates, fees, parent-enrolment options or laptop compatibility checks.

  • 回覆最新一期開班日期、時間、中環確實場地與學費。Upcoming cohort dates, times, exact Central venue and fees.
  • 提供免費 Arduino IDE 下載連結與課前電腦權限檢查提示。Free Arduino IDE download link and a pre-class laptop readiness check.
  • 如需了解家長同行名額或當期補堂安排,可一併註明。Note any questions on parent seats or cohort make-up arrangements.

截至 2026 年 11 月,Edcosys 已在香港 50+ 間中小學開課,完成 1,000+ 堂 AI 校園課程。As of November 2026, Edcosys has taught in 50+ Hong Kong schools and delivered 1,000+ AI campus lessons.

提交查詢不涉及即時付款;我們將於一個工作天內回覆最新檔期與報名安排。No payment is collected here. We reply within one working day with dates and enrolment steps.

已收到你的查詢,我們將於一個工作天內回覆最新開班日期、收費與課前準備指引。Your enquiry has been received. We will reply within one working day with upcoming dates, fees and setup notes.

常見問題FAQ

關於電腦軟件安裝、零基礎起點、外殼顏色、缺席調動或後續課程的常見確認事項,均整理於右側。Answers to the practical questions parents most often check before enrolment, from software setup to follow-up pathways.

瀏覽 Edcosys 其他學生課程Explore other Edcosys student courses →
課前是否必須預先安裝 Arduino IDE?應從哪裡下載?Should Arduino IDE be installed before class, and where can we download it?
強烈建議課前先於 arduino.cc/en/software 免費下載並安裝 Arduino IDE(支援 Windows 10 或以上及 Apple Silicon/Intel Mac)。課堂上亦可即場安裝,但會佔用部分實作時間;另外請預先確認電腦並無學校或家長安裝權限鎖定。Installing the free Arduino IDE ahead of class from arduino.cc/en/software (Windows 10+ or Mac) is strongly recommended. In-class installation is possible but reduces build time. Please also confirm that the laptop is not restricted by school or parental installation locks.
完全沒有編程經驗的學生,能否在四小時內跟上硬件與 C++ 教學?Can a complete beginner with no prior coding background follow the hardware and C++ curriculum?
可以。具備積木編程或基礎程式概念有助加快上手,而完全零基礎的學生亦歡迎報讀(有需要時家長可同行協助)。Edcosys 遊戲程式碼庫已封裝繁瑣的底層驅動設定,加上 1 比 6 小班指導,導師會逐步帶領每位學生完成硬件接線與兩個 C++ 遊戲。Yes. Block or basic coding helps, and complete beginners are welcome, with a parent's support if needed. The Edcosys game code base abstracts complex low-level setup, and a 1:6 teacher-to-student ratio allows guided step-by-step progress through both hardware wiring and C++ coding.
學生可否自選遊戲機外殼顏色?Can students choose the console enclosure colour?
可以,實際選擇視乎當期存貨與供應顏色而定。此外,每位學生均會於第一節以 CAD 設計專屬 3D 改裝配件,由導師印製並於第二節裝上,使每部主機各有特色。Yes, subject to colour availability for that cohort. Every student also models custom 3D-printed enclosure modifications on Day 1 to fit on Day 2, giving each console a personal finish.
若學生缺席第一節課堂,或需要改期,應如何處理?What happens if a student misses Day 1 or needs to reschedule?
第一節課堂涵蓋電路接駁驗證與 3D 改裝件設計,第二節會在該套硬件上裝配外殼並編寫程式,因此兩節出席均十分重要。每期的補堂或調動安排會於查詢及確認報名時一併說明。Because Day 2 builds directly on Day 1's verified hardware and CAD modification design, attending both sessions is important. Our team confirms the make-up or rescheduling policy for your cohort upon enquiry.
可否額外訂購一套主機元件與程式碼檔案?營隊後有哪些延伸學習?Can we order an additional hardware kit with the code files, and what pathways follow the camp?
可以。每套主機元件與 Edcosys 遊戲程式碼庫均由 Edcosys 人手預備,如需額外訂購,請最少提前兩星期聯絡我們查詢準備時間與詳情。完成營隊後,學生可繼續在家使用免費的 Arduino IDE 編寫新遊戲,亦可報讀延伸練習班或進階編程課程(包括 AI 協作開發),或瀏覽 Edcosys 其他學生課程。Yes. Every complete kit is hand-prepared and configured with the Edcosys game code base, so please enquire at least two weeks in advance for lead time and details. After the camp, students can continue coding new games at home with free Arduino IDE software, join extra classes or follow-up coding courses (including AI-assisted development), or explore other Edcosys student courses.