Controlling a relay with the Micro:bit, using MicroPython.
Micro:bit MicroPython: Getting the status of the buttons
Obtaining the status of the Micro:Bit buttons (A and B) using MicroPython.
Micro:bit MicroPython: Controlling a DC motor
In this tutorial we will check how to control a DC motor using the micro:bit board and MicroPython. Introduction In this tutorial we will check how to control a DC motor using the micro:bit board and MicroPython. Since we can't use the micro:bit to directly power the DC motor, we will use a ULN2803A integrated …
Continue reading "Micro:bit MicroPython: Controlling a DC motor"
Micro:bit MicroPython: Software reset
Performing a software reset on the micro:bit, using uPython
Micro:bit MicroPython: Generating random numbers
Generating an random integer nuber with the Micro:bit and uPython.
Micro:bit MicroPython: Getting the device running time
In this tutorial we will check how to get the running time of the micro:bit, since the board was turned on or restarted. Introduction In this tutorial we will check how to get the running time of the micro:bit, since the board was turned on or restarted. In order to get this value, we will …
Continue reading "Micro:bit MicroPython: Getting the device running time"
Micro:bit MicroPython file system: Getting a file size
In this tutorial we will check how to get the size of a file on the micro:bit file system, using MicroPython. Introduction In this tutorial we will check how to get the size of a file on the micro:bit file system, using MicroPython. The code The first thing we will do is importing the os …
Continue reading "Micro:bit MicroPython file system: Getting a file size"
Micro:bit MicroPython: Deleting a file from the file system
In this tutorial we will check how to delete a file from the micro:bit file system, using MicroPython. Introduction In this tutorial we will check how to delete a file from the micro:bit file system, using MicroPython. For an introductory tutorial on how to write a file to the file system, please check here. The …
Continue reading "Micro:bit MicroPython: Deleting a file from the file system"
Micro:bit MicroPython: reading a file from the file system
In this tutorial we will check how to read the content of a file from the micro:bit file system, using MicroPython. Introduction In this tutorial we will check how to read the content of a file from the micro:bit file system, using MicroPython. For an introduction on how to create and write content to a …
Continue reading "Micro:bit MicroPython: reading a file from the file system"
Micro:bit MicroPython: creating a file in the filesystem
In this tutorial we will learn how to create a file on the micro:bit file system. We will also write some content to it. Introduction In this tutorial we will learn how to create a file on the micro:bit file system. We will also write some content to it. Data written on the micro:bit file …
Continue reading "Micro:bit MicroPython: creating a file in the filesystem"