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
3
votes
2 answers

write_analog in microPython on BBC micro:bit does not do anything

I have a simple one line of micro:bit javascript that works, but the same line in microPython does not. I have a potentiometer wired to the micro:bit and the readings from the potentiometer are sent to a pin attached to an LED in order to control…
user2302244
  • 843
  • 2
  • 11
  • 27
3
votes
1 answer

Converting Decimal to Binary on the Microbit

I thought it would be a fun idea to turn my BBC Microbit into a digital clock - specifically, a binary digital clock. I knocked up a bit of code in Python to do just that: from microbit import * def makeBinary(intValue,padding): number =…
headbanger
  • 1,038
  • 1
  • 11
  • 32
2
votes
1 answer

Why is my microbit (in the ide and in real life) only playing 2 beats on the startMelody function

Currently I'm in the midst of trying to play a song (you may recognize) on my micro-bit, but instead of playing the song it'll play 3 beats of the same tone (2 if I have it at the default bpm). Here's my code let amongUs = ['c3:0.5', 'd#3:0.5',…
Ametrine
  • 73
  • 6
2
votes
1 answer

Transmit Audio Via Micro:bit Radio In MicroBlocks

I am using a BBC Micro:bit version 2 and have a program set up on an editor called Micro:blocks. The code is supposed to take input from the first micro:bit's microphone and play it out of the other one's speaker. But when I try it, all I get is an…
2
votes
2 answers

Ada on the microbit: scrolling text example not working, no libusb library found

I followed the adacore tutorial on displaying scrolling text (https://blog.adacore.com/ada-for-microbit-part-1-getting-started) but can't get it working on my microbit. Maybe my microbit is a more recent version that is not yet supported? The reason…
toella
  • 55
  • 4
2
votes
2 answers

Defining 2D array Javascript

Hi I am attempting to define a 2D array in JS but I seem to get two errors preventing me and I am not sure where I am going wrong. i is simply from a for loop - it has been defined. Even if I replace i with 0 same error occurs. My code: let…
2
votes
1 answer

bbc-microbit does not go into pairing mode

Just received a BBC-microbit via eBay and am trying to got it to work so I can help a grandchild learn coding via Scratch. I dragged scratch-microbit-1.1.0.hex to the BBC. After reset "vavov" keeps scrolling on the BBC screen. Then tried putting it…
David
  • 101
  • 6
2
votes
1 answer

Is it possible to attach a micro: bit board to a rock, and make it count numbers of times it has been thrown up into the air?

See the headline I can easily get gestures to work. But what if I were to attach the board on a rock, and make it register how many times the rock has been thrown up into the air - and caught again? I am wondering if it is possible to utilize the…
Mikkel
  • 33
  • 2
2
votes
0 answers

How to control a Sphero Original, e.g. using Micropython?

I recently got a used Sphero robot (as far as I can tell a "Sphero Original" since it doesn't have any other version information), and intended to experiment with it with my children. Unfortunately, as far as I could find out, all the official…
Christoph
  • 5,480
  • 6
  • 36
  • 61
2
votes
2 answers

How do i declare my class so i can access like this

In micropython there is a module neopixel to interact with ws2812 addressable LEDs an example code is from microbit import * import neopixel pixel = neopixel.NeoPixel(pin0, 64) pixel[0] = (255, 0, 0) pixel.show() This declares 64 leds controlled…
phil
  • 561
  • 3
  • 10
2
votes
1 answer

Microbit can turn on a LED but not on motor

I use a Flame sensor (connect to pin0) to detect the fire and turn the pin1 to 1 when the sensor is nearby a candle, pin1 is connected to a LED, when sensor nearby a candle, the voltage from pin1 is 3.298V and the LED light up. I replace the LED…
Kelvin
  • 577
  • 7
  • 25
2
votes
1 answer

Using config.json file with BBC Micro:bit Mbed online compiler

Has anybody gotten the online Mbed C/C++ compiler to use config.json files with the BBC Micro:bit? If so, where in the file system did you place the config.json file? When I use the Mbed online C/C++ compiler to build the example radio programs…
Oppy
  • 2,662
  • 16
  • 22
2
votes
2 answers

NameError on Line 8? (if button_a.is_pressed)

There is a name error, but I can't figure it out. It's on line 8, at where the buttonpress is. This is for an attendance marking program that I am doing. Any help and improvements would be greatly appreciated. start = 0 ind = 0 ind1 = 5 c = {'1':…
2
votes
1 answer

BBC micro:bit - Radio string transfer random carriage returns

I have two BBC Micro Bit and using Radio function to transfer data from one slave to the master Micro Bit. When the data is transferred I am getting random carriage returns, I am not sure what is the problem, I have tried to strip any random CR etc,…
Brendon
  • 123
  • 9
2
votes
2 answers

Writing to text file in javascript with micro:bit

Not sure if this is possible but I need to write data from a sensor into a text file using Javascript. This data will then be displayed in an app hence why I need it from the sensor. I'm using a BBC micro:bit as my microcontroller and this only…
rosie_hyde
  • 133
  • 1
  • 4
  • 12
1
2
3
11 12