{"id":20067799,"url":"https://github.com/dean9703111/microbit_dice_project","last_synced_at":"2026-05-09T16:08:31.414Z","repository":{"id":106083546,"uuid":"272904667","full_name":"dean9703111/microbit_dice_project","owner":"dean9703111","description":"使用microbit親手打造魔術道具店賣3600圓的心靈骰子","archived":false,"fork":false,"pushed_at":"2020-07-20T09:10:19.000Z","size":1401,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T11:18:24.004Z","etag":null,"topics":["c","magic","maker","microbit"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dean9703111.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-17T07:16:07.000Z","updated_at":"2020-07-20T09:10:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"ec57c6cc-1c32-4228-90b9-da5febe4a377","html_url":"https://github.com/dean9703111/microbit_dice_project","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":"0.16666666666666663","last_synced_commit":"2fb86e53a312890f4ff21c7ff30f6b9687f656e3"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dean9703111/microbit_dice_project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dean9703111%2Fmicrobit_dice_project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dean9703111%2Fmicrobit_dice_project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dean9703111%2Fmicrobit_dice_project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dean9703111%2Fmicrobit_dice_project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dean9703111","download_url":"https://codeload.github.com/dean9703111/microbit_dice_project/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dean9703111%2Fmicrobit_dice_project/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010257,"owners_count":26084718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","magic","maker","microbit"],"created_at":"2024-11-13T14:03:51.892Z","updated_at":"2025-10-12T04:20:24.477Z","avatar_url":"https://github.com/dean9703111.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 用Microbit打造魔術心靈骰子\n\n因為在生日的時候收到來自好朋友超鴿，一個充滿工程師風格的驚奇禮物  \nMicrobit是一個教育性質為主的開發版，上面有各式各樣的感測器，一切都靠你的個人想像力  \n因為有過去開發arduino UNO的經驗，所以我這次也是用Arduino做為開發框架  \n\n實作的目標就是利用Microbit本身加速度的感測器＋藍芽模組，結合官方手機App:Blynk  \n讓手機上面呈現由Microbit製作而成骰子的數字(可以做為心靈魔術使用XD)  \n\n### 如果你也想要自己做一個心靈骰子，您需要做以下的事前準備:\n\n[這篇文章](https://oranwind.org/-bbc-microbit-qi-shou-shi-arduino-ji-chu-jiao-xue/)詳細的說明arduino開發所需要的一切起手式  \n如果你想要對arduino的加速度功能有更深入的探討可以參考[這篇文章](https://sites.google.com/site/wenyumaker2/02micro-bit-yan-jiu/23-micro-bit-with-arduino)  \n你可以用一般電子材料行都能找得到的電池盒(3V)作為電源供應(EX:2節7號電池、鈕扣電池盒)，如果你想要穩定及輕量化可以考慮購買[BBC micro:bit -MI: power board 擴充板](http://ipoemaker.com/0110102)\n\n## 以下為Microbit燒入程式後的製作流程\n\n### SETP 1 先在電子材料行購買：\n1. 3V並連鈕扣電池盒\n2. 2.0 2P的公頭連接線\n3. 電火布\n4. 鈕扣電池 X 2\n\n### SETP 2 將電池放入鈕扣電池盒：\n這裡要特別注意，因為我們買的是並連的電池盒，以我的電池盒為例，這兩顆電池的正極是在下方的  \n![image](/img/鈕扣電池盒.jpeg)\n\n### SETP 3 將公頭連接線插入Microbit電源孔：\n我購買的規格是2.0 2p公頭連接線，建議購買時可以攜帶自己的arduino板子去店裡確認，因為每塊板子可能規格會有不同\n![image](/img/2.0_2p公頭連接線.jpeg)\n\n### SETP 4 確認正負極後看是否正常運行：\n這裡要特別注意，一般來說紅色線是正極、黑色線是負極\b；但是我購買的公頭連接線剛好是相反的(請你仔細看Microbit上面的正負極符號)，所以在跟電池盒連接的時候我是紅黑線各自纏繞  \n纏繞完成後打開電池盒電源，你會發現什麼事情都沒有發生，Microbit的板子也沒有亮燈(原本插上usb會亮燈)，請放心這是正常狀況，你要打開手機卻認他是否有正常上線就好了(本範例是使用Blynk的藍芽連線)\n![image](/img/正負極確認.jpeg)\n\n### SETP 5 用電火布纏繞：\n因為裸露的線材如果沒有風起來很有可能會造成短路，如果短路你的Microbit板子很可能就會報廢，所以請用電火布把這些外露的線材包起來  \n![image](/img/用電火布纏繞.jpeg)\n\n### SETP 6 將Microbit放入骰子盒子：\n骰子盒子我是用超級土炮的厚紙板製作，裡面塞滿氣泡布做為防震功能，如果追求完美你可以去尋找木製的外盒  \n![image](/img/內部.jpeg)\n\n### SETP 7 完成成品可以跟友人炫耀惹：\n![image](/img/骰子成品.jpeg)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdean9703111%2Fmicrobit_dice_project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdean9703111%2Fmicrobit_dice_project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdean9703111%2Fmicrobit_dice_project/lists"}