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
1 answer

Smooth dot on 5x5 display, how to avoid staircase effect?

I recently got BBC-Micro:bit, and it has a small 5x5 led "display". I want to make code that draws smooth moving dots without staircase effect, but I'm struggling to make it vertically and horizontally smooth when moving. This is what I have, it…
Algirdas Butkus
  • 98
  • 1
  • 10
0
votes
0 answers

Running a Motor Driver Board L298N on 12v power supply with the BBC Micro:bit

sorry if my query sounds odd. I am trying to determine whether my micro:bit will be affected badly if I did the following: I have the GND wire of it's battery pack and the GND wire of the 9v battery running through the POWER GND pin of the driver.…
Pokiscot
  • 1
  • 1
0
votes
1 answer

How to point a sprite in a specified direction in micro:bit?

I'm working on a basic game for micro:bit just as a way to learn the technology, and I was hoping that one of the sprites would move in the direction of the compass. Is there a way to do this?
Ryan
  • 123
  • 1
  • 12
0
votes
0 answers

ValueError when converting string received from Micro:bit radio into integer in Python

I am writing a program for a client that receives a string of an average from a server through the built in radio of averages which the client records. I get a ValueError saying "invalid syntax for integer with base 10" in a line where I attempt to…
bk122474
  • 13
  • 1
  • 4
0
votes
1 answer

NoneType in MU5 on BBC Microbit

I have some code for a simple rev counter on the Microbit. When returning the variable rev_per_second, sometimes it is a NoneType (for reasons unknown). I try to trap this within the function, but it doesn't seem to work. Where am I going wrong…
Bobh46320
  • 9
  • 2
0
votes
0 answers

Speed of "play tone" block

While playing around with the bbc microbit and the Microsoft Block Editor, I noticed a strange behavior with the "play tone" block. If I use the block in the web based editor, the speed is reasonable. But as soon as I send it to my device, it is way…
rdmueller
  • 10,742
  • 10
  • 69
  • 126
0
votes
2 answers

Microbit python Invalid syntax

I'm trying out the BBC microbit educational computer for my kids. I thought I'd do something simple, like traverse an array, using buttons A & B to increment left and right (looping at the ends). I can't work out what's wrong with my code (reports…
Greg
  • 195
  • 1
  • 13
-1
votes
0 answers

What is wrong in my Code in MakeCode for microbit

I try to programm a decimal to binary converter in MakeCode for bbc:microbit. The logic of my code is this function for python and it works: def dezimal_zu_binaer(dezimalzahl): if dezimalzahl == 0: return '0' if dezimalzahl < 0: …
Mario W.
  • 1
  • 1
-1
votes
1 answer

Can I have two independent LEDs?

Using a V1 micro:bit, is it possible to have two independent LEDs? I want one to act as a heartbeat (flash once a second), the other to indicate, for example, go/nogo. Whatever pairings I’ve tried, other LEDs come on when both of my chosen LEDs are…
Simon Wright
  • 25,108
  • 2
  • 35
  • 62
-1
votes
2 answers

Why am I getting a TypeError: 'int' object not callable in a micro:bit MicroPython program?

I was trying to make some kind of Boxel Rebound game for the micro:bit, and I was coding at the online web editor. It all worked fine, until I tried to implement the jumping. When I start the program, it works fine, and I get my debugging messages…
LuisAFK
  • 846
  • 4
  • 22
-1
votes
1 answer

Reading Serial Data Sent From Microbit in Windows

I am trying to send data from my microbit to my windows PC over serial communication. I followed the example here from the microbit website but can't seem to get my Tera Term window to display anything. The microbit is plugged into one of the USB…
cookies
  • 347
  • 1
  • 6
  • 18
-1
votes
2 answers

Is there a radio function for microbit micropython?

I can't figure out what it is. from microbit import* # what is the words that trigger it?
-1
votes
2 answers

What is wrong with my code in python?

In my code, its supposed to be a magic 8 ball that is rigged. Pressing A should show "Yes!", pressing B should show "No." But every time, it shows "Yes!" without any buttons being pressed. from microbit import * import random frameq =…
-1
votes
1 answer

Micro:Bit read bluetooth message

I want to send messages from my Micro:Bit to a linked device over bluetooth. I have the following code for Micro:Bit: #include "MicroBit.h" #include "MicroBitUARTService.h" MicroBitUARTService *uart; MicroBit uBit; uint8_t connected = 0; void…
Lechucico
  • 1,914
  • 7
  • 27
  • 60
-1
votes
1 answer

Micro:Bit Serial read

I have the following code for Micro:Bit: void onButtonA(MicroBitEvent e) { int x = uBit.accelerometer.getX(); int y = uBit.accelerometer.getY(); int z = uBit.accelerometer.getZ(); uBit.display.print("A"); …
Lechucico
  • 1,914
  • 7
  • 27
  • 60
1 2 3
11
12