{"id":21070735,"url":"https://github.com/microbit-foundation/makecode-data-collector","last_synced_at":"2026-04-21T21:35:33.393Z","repository":{"id":200543991,"uuid":"705764361","full_name":"microbit-foundation/makecode-data-collector","owner":"microbit-foundation","description":"A MakeCode project to collect accelerometer data","archived":false,"fork":false,"pushed_at":"2023-10-18T15:01:28.000Z","size":46,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-20T21:56:46.894Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/microbit-foundation.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":"2023-10-16T16:40:39.000Z","updated_at":"2023-10-22T16:30:27.000Z","dependencies_parsed_at":"2023-10-17T07:24:05.761Z","dependency_job_id":"735dbb3f-b449-498c-843d-31668dbb2ee3","html_url":"https://github.com/microbit-foundation/makecode-data-collector","commit_stats":null,"previous_names":["microbit-carlos/makecode-data-collector","microbit-foundation/makecode-data-collector"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microbit-foundation%2Fmakecode-data-collector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microbit-foundation%2Fmakecode-data-collector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microbit-foundation%2Fmakecode-data-collector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microbit-foundation%2Fmakecode-data-collector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microbit-foundation","download_url":"https://codeload.github.com/microbit-foundation/makecode-data-collector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243513797,"owners_count":20303010,"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","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":[],"created_at":"2024-11-19T18:48:09.062Z","updated_at":"2025-12-29T21:41:50.448Z","avatar_url":"https://github.com/microbit-foundation.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MakeCode project to collect accelerometer data\n\nThis project records the accelerometer data into the data logging storage.\n\nAn \"activity number\" from 1 to 7 can be selected, which will be identifiable in the data log.\nActivities 1 to 4 record 30 seconds of accelerometer data, and activities 5 to 7 record 80 seconds.\nUp to four 30 seconds activities, or two 80 second activities can be recorded.\n\n\n## Instructions\n\n- Press button A to change the \"activity type\", values from 1 to 7\n    - Each button press increases the activity number by one, and loops over from 7 to 1\n- Press buttons A+B to start logging the accelerometer data\n    - A countdown will start with beeps and a display animation\n    - At the 4th beep the logging will start\n    - Activities 1 to 4 (both inclusive) will record data for 30 seconds, activities 5 to 7 for 80 seconds\n    - During data recording the display will blink\n    - When the data recording is done a Sound Expression will be played and the display will stop blinking\n- When the data log is full a skull will appear on the display and nothing else can be done until erased\n\nDuring the data recording, the data is initial stored in RAM, and when the recording time is finished it moves that data from RAM to the data logging storage.\nThe top right LED in the display will be ON while this data transfer occurs.\nSo, the total time before the activity looks \"done\" on the micro:bit (the display stops blinking and a Sound Expression is played) will be larger, usually about 50% longer, but it can vary.\n\nAs moving the data from RAM to data log storage is only done at the end, if the micro:bit is reset or the battery disconnected during data recording, the data for that activity will be lost.\n\nWhile data collection is not taking place, it is safe to reset the micro:bit or completely remove power.\nAny data logged so far will is saved and more data can be logged after reset (within the total limits previously mentioned).\n\n### Erase the data\n\nTo erase the data logging data follow this sequence:\n- Press down button B and keep it pressed\n- Press and release the reset button\n- A heart will appear on the display as the programme starts, release button B and press down button A\n- A skull will appear on the display for 500 ms, maintain button A pressed down\n- A chessboard will appear on the display, the data logging data will now be erased\n- Button A can be released\n- After the log deletion the programme will continue as normal\n\n\n## Edit this project\n\nTo edit this repository in MakeCode.\n\n* open [https://makecode.microbit.org/](https://makecode.microbit.org/)\n* click on **Import** then click on **Import URL**\n* paste **https://github.com/microbit-foundation/makecode-data-collector** and click import\n\n\n## Running locally\n\n```\ngit clone https://github.com/microbit-foundation/makecode-data-collector\ncd makecode-data-collector\nnpm install pxt\nnpx pxt target microbit\nnpx pxt install\nPXT_FORCE_LOCAL=1 PXT_NODOCKER=1 PXT_COMPILE_SWITCHES=csv---mbcodal npx pxt\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrobit-foundation%2Fmakecode-data-collector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrobit-foundation%2Fmakecode-data-collector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrobit-foundation%2Fmakecode-data-collector/lists"}