Questions tagged [bbc-microbit]

The BBC micro:bit is a small but yet powerful learning computer for kids and grown ups.

The BBC micro:bit is a small but yet powerful learning computer for kids and grown ups.

https://microbit.org

170 questions
2
votes
3 answers

How to get files written by the micro:bit to the PC?

I am new to BBC micro:bit, so I have the following Problem: I want to read movements and write it to a file on the m:b and after all I want to download it from there to the pc to work on it. I wrote the file like that: from microbit import * with…
am2
  • 380
  • 5
  • 21
2
votes
1 answer

BBC Micro Bit Hanging on code

I'm trying to read a file containing instructions for a turtle robot in micropython on the BBC micro bit but when I flash my code and add the correct files it just hangs and doesn't seem to do anything. It runs fine in python on my machine. Is…
CapnMarcy
  • 31
  • 2
1
vote
0 answers

HOw can I decode an IR remote control button press on the Elektofreaks cutebot robot?

I bought an Elecfreaks cutebot robot for grandchildren. The BBC:microbit board is its brain. The company sells an IR Remote Control, but so far I don't know if all the button presses can be decoded. The sample Javascript program shows decoding only…
David
  • 101
  • 6
1
vote
0 answers

microbit is unable to flash board with a Windows ARM64 laptop

When using a Windows 11 ARM64 laptop, I encounter difficulties flashing my microbit program to the board. Could you please advise if there are any plans to support the Windows ARM64 platform in microbit or WebUSB? Coding completed a microbit…
Gary Hu
  • 11
  • 1
1
vote
1 answer

How Do You Use Lists?

I am making a morse code translator for the micro;bit. I have button A as the dot, button B for the dash and both together for enter. The problem is I don't know how lists work so I'm not sure what to do. Alist = ["ButtonA", "ButtonB",…
1
vote
0 answers

How to use two microbits (3-axis magnetometers) to track an articulated arm?

I'm trying to use two microbits to track the motion of a human arm. Each microbit has one 3d-axis magnetometer and one 3d-axis accelerometer. I'm trying to use only the magnetometers to track the motion of the arm. The first microbit will be…
sbb
  • 144
  • 8
1
vote
0 answers

How do I load official modules with uFlash into the BBC micro:bit?

I've been coding the BBC micro:bit with the micro:bit Python Editor with no problems. Now I'm working with a more modest computer, and would like to code with emacs+uflash. My problem is that when I upload the firmware with uflash, and try to import…
Luis López
  • 159
  • 8
1
vote
1 answer

Microbit doesn't run flashed program when seated in Max:bot

My son bought a Max:bot DIY Programmable Robot Kit, which uses a BBC Microbit. You can see above where the Microbit slots in. What works ... To set the scene of our problem, we'll set aside the Max:bot for a moment and just consider the Microbit in…
Greg Kopff
  • 15,945
  • 12
  • 55
  • 78
1
vote
3 answers

micro:bit python - random library only generates one number

I am making a hangman game on my microbit and am having trouble with the random library. I need to choose a random number between 1 and 7, and every single time I run the program it always yields the number '5'.The strangest part is when I copy the…
mrt
  • 65
  • 2
  • 11
1
vote
1 answer

Can you use v2 features of the micro:bit when in Scratch Link mode, to create a 'game controller'?

My daughter is excited about owning the v2 micro:bit as it has better features than the v1, but we cannot find a way to use these features when directly connected to Scratch. The situation I am referring to is when connected by USB to her laptop,…
Magnus Smith
  • 5,895
  • 7
  • 43
  • 64
1
vote
1 answer

rust-embedded Discovery `05-led-roulette` fails to build

Background I am following this guide to build the projects in the corresponding repo. I successfully compiled, ran and verified project 03. Problem However, following the instructions to build project 05 produces "error[E0463]: can't find crate for…
CrepeGoat
  • 2,315
  • 20
  • 24
1
vote
3 answers

Is it possible to wait for either button A or button B?

This is code that waits for an event coming from button A. control.waitForEvent(Button.A, EventBusValue.MICROBIT_EVT_ANY) I want to wait for either button A OR button B to be pressed. Is this possible? EDIT I know that in Scratch this is possible…
amer
  • 1,528
  • 1
  • 14
  • 22
1
vote
0 answers

Microbit Python: Pausing inside of an accuracy measure function not consistent

I'm coding a microbit game for a school assignment and decided to ripoff Friday Night Funkin, which is a game where you have to play a song as accurately as possible. I've tried to code in this accuracy in my ripoff by getting more points the more…
1
vote
1 answer

Why do my leds start flicking on and off, even though it doesn't do it at the start? Micro:bit JavaScript

yesterday I got into coding micro:bit, the problem I am having, is that when I lose the "snake" game, the "jim face" starts blinking, even though it doesn't do that when I first start the program, here is my program ( I do not want tips on how to…
CapLack
  • 11
  • 1
1
vote
1 answer

How to set Pin touch mode to capacitive on micro:bit v2 in MicroPython

If I use the makecode editor to create the code, it generates: pins.touch_set_mode(TouchTarget.P0, TouchTargetMode.CAPACITIVE) However, if I try and run this, it can't find 'pins'. Note: I then investigated further and found out how to do this…
AndyS
  • 725
  • 7
  • 17
1 2
3
11 12