Following on from the program to log data on the micro:bit here, I have been exploring how to read that data from a laptop. Initially, I looked to see if I could access files on the micro:bit, through Windows Explorer. The micro:bit shows as a USB device, but clicking on it shows no files. This… Continue reading Reading micro:bit files from a laptop
Category: coding
micro:bit basic data logging 3
This program runs on a laptop and reads the files that have been stored on the micro:bit’s file system using the MicroFs system described in the previous blog post. This is the third in a series of programs about using the micro:bit’s file system.Program 1: Basic writing, and reading of text to a fileProgram 2:… Continue reading micro:bit basic data logging 3
micro:bit basic data logging 2
Second program to write text to a file and read the contents of the file, It has been written as I could not find an easy example of writing and reading to a file with the micro:bit. This is an extension to the first program about logging data. This program stores real time data (the… Continue reading micro:bit basic data logging 2
micro:bit basic data logging 1
This is a first program to write text to a file and read the contents of the file again There are three parts to writing data to file:– opening the file– writing data– closing the file afterwards Line 3: opening the file The ‘open’ commands says open a file with name “storm.txt”; the w indicates… Continue reading micro:bit basic data logging 1
Part 3 – Some Maths
Or should that be “Some Math”? But I am from the UK! As explained on the BBC Micro:bit MicroPython pages, overall acceleration can be calculated using Pythagoras’ rule here (under Advanced Functions). To recap, if you just had accelerations along two dimensions (the x and y axis say), the overall acceleration can be found using… Continue reading Part 3 – Some Maths