Overview
When you use the data logging feature on the micro:bit V2, an HTML file is created on the MICROBIT drive called MY_DATA that lets you interact with the logged data.
Who has access to MY_DATA?
The data stays on your micro:bit and on your computer, should you choose to copy or download it. It does not get uploaded to the internet or shared with anyone, unless you choose to.
Viewing MY_DATA in the browser
In the following example, we are using the MakeCode editor to log two columns of light level and temperature data every two seconds to generate our MY_DATA file.
https://makecode.microbit.org/_Xt25jyMXePd3
Double click on the generated MY_DATA file to open it in your default browser. The page displays a set of buttons to interact with the data and a table containing the data that has been logged so far. You may need to disconnect and reconnect the micro:bit to view the data on the page.
Buttons menu
Download
Download the current data as a file in Comma Separated Values (CSV) format which you can import into a spreadsheet. The data is in a fixed format, using a period (.) as a number seperator. If you want to change this, you can do so in a spreadsheet application.
Copy
Copies the current data to your clipboard so you can paste it into another document such as a spreadsheet.
Update data...
To update the data in the table, it is necessary to disconnect and reconnect the USB cable. The new rows will be added to the bottom of the table, so you may need to scroll to the bottom of the page to view them.
Clear log...
To clear the log it is necessary to flash a new program to the micro:bit. Read more about how to clear the log and delete the log completely.
Visual Preview
The visual preview tab shows plots your logged data as a graph and lets you interact with it. In this accelerometer example, the values are plotted on the x axis of the graph and the time in seconds is plotted on the y axis.
You can use the buttons at the top of the visual preview tool to interact with the data, for example zooming in and out on sections. You can also show or hide data columns.
Working Offline
The MY_DATA.HTM page fetches additional information from the microbit.org website when it is loaded. This is JavaScript to enable functionality on the page. If you are working offline, this functionality will not be loaded. Read more about the difference between online and offline data logging.