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
0
votes
0 answers

How to reset time for data logging in micro:bit micropython

I would like to start data logging in a bbc micro:bit with the press of its button_a, in order to be able to synchronize the timestamps with an external clock. The idea is that, if I press the button at 12:10 o'clock, I would know that the first row…
Luis López
  • 159
  • 8
0
votes
0 answers

Micro:bit distance sensor not working with red led color

My students are building kind of game using the Micro:bit and Grove kit extension. Their setup is a ledstrip, 4 digit display and an ultra sonic sensor. They are using the code blocks from the makecode editor. They want the display to show the…
Roderik
  • 3
  • 2
0
votes
2 answers

Using serial ports over bluetooth with micro bit

I have correctly got a microbit working with serial communication via COM port USB. My aim is to use COM over bluetooth to do the same. Steps I have taken: (on windows 10) bluetooth settings -> more bluetooth settings -> COM ports -> add ->…
Joe Moore
  • 2,031
  • 2
  • 8
  • 29
0
votes
0 answers

Send data from one microbit to another each 10 minutes

please does someone have any suggestion how to send data from one microbit to another each 10 minutes? I wanted to use pause function, but in documentation I understood that max pause time is 10 seconds. Thanks for any reply :)
Matus Vrsansky
  • 83
  • 1
  • 10
0
votes
0 answers

micro:bit calculate yaw on maqueen

Basically, I need use micro:bit accelerometer to move straight forward avoiding curved movements. So far I have calculated roll and pitch using the code below X = Sensors.acceleration(Sensors.X) / divider; Z = Sensors.acceleration(Sensors.Y) /…
0
votes
0 answers

How can the BBC micro:bit's scrolling display be slowed down?

I am trying to give a BBC micro:bit to grandchildren and am learning how to use with the unit MicroPython, maybe also Javascript and MakeCode. I have a problem viewing error messages on the micro:bit's small 5x5 LED screen due to scroll speed. Is…
David
  • 101
  • 6
0
votes
0 answers

Line Following and object avoidance on a track

This is the first time I post here on Stack overflow. Bare with me if I am not clear at any point. I will work with with you and edit my questions to the best of my abilities. I'm having difficulties getting this DFrobot maqueen to function. I've…
Tempo
  • 1
  • 2
0
votes
1 answer

Python Micro:bit Bitio Error - microbit.repl.repl.REPLException: Timeout trying to receive

I have a micro:bit (v1.3 B) and am trying to use the Python bitio library on a MacBook (macOS Monterey). I've been following the getting started section and have gotten to the 'making a connection' section. I've already 'flashed' the bitio.hex file…
realhuman
  • 137
  • 1
  • 8
0
votes
0 answers

How to access the "control" library for microbit in the micropython editor?

Trying to use the "On event from" functionality to get finer control over input from button presses. When I convert this blocks code to python in the makecode editor, I get the following code: def on_microbit_id_button_a_evt_click(): …
lriley
  • 11
  • 3
0
votes
0 answers

How can I detect when error correction corrects something or turn off error correction in wireless communication

I'm working on a project in which I basically want to test how many errors happen in wireless communication. My first thought was to use ESP8266 chips, but then I came to the realization that wifi has ways of correcting errors before they reach the…
0
votes
2 answers

How to compile C/C++ code into a .hex file for the BBC micro:bit?

I tried setting up the toolchain on Ubuntu 22.04 host to run the examples from https://github.com/lancaster-university/microbit-samples/ but I'm just unable to setup Yotta, I keep getting different dependency issues. What are the exact steps needed?
Ciro Santilli OurBigBook.com
  • 347,512
  • 102
  • 1,199
  • 985
0
votes
0 answers

Resolve import for the :Move Motor for BBC micro:bit

How can I resolve the import statement for the :Move Motor for BBC micro:bit? According to this github repository it should be possible to write a python script for the Move Motor. But if I try to compile the script it says no module named…
Jarne
  • 13
  • 7
0
votes
1 answer

How to find a pre-defined constant's value?

I'm trying to find the values of several C++ constants which are useful for coding the V1 microbit's ADC, such as ADC_ENABLE_ENABLE_Enabled (in this article). I believe the #include "MicroBit.h" refers to this repo…
keble
  • 93
  • 1
  • 11
0
votes
0 answers

Microbit V1 servo motor's problem, it always does the entire return

the thing is that i'm working with Python in Micro Python for Microbit Editor. I'm trying to set the angle of a servomotor, but the thing is that it is giving the entire return. pin0.set_analog_period(20) while True: pin0.write_analog(50) …
Haytham
  • 15
  • 5
0
votes
0 answers

Can you make an assembly program to speak a sentence?

So far I can make an assembly program to play a song, by telling it what frequency and tempo (how long it should last) each music note should play. Theoretically, I can output any sound if I know its frequency and tempo. But how do I find out those…
Mzq
  • 1,796
  • 4
  • 30
  • 65