# micro:bit

**URL:** https://forum.makecode.com/c/microbit/11.md?page=5

[Latest](https://forum.makecode.com/latest.md) · [Categories](https://forum.makecode.com/categories.md) · [Tags](https://forum.makecode.com/tags.md)

**Page:** 6

---

## [Help Needed converting python code to Makecode](https://forum.makecode.com/t/help-needed-converting-python-code-to-makecode/32654)

<div class="topic-metadata">

**Author:** [@dsssssssss9](https://forum.makecode.com/u/dsssssssss9)\
**Replies:** 5\
**Last updated:** [December 28, 2024, 2:36pm UTC](https://forum.makecode.com/t/help-needed-converting-python-code-to-makecode/32654 "2024-12-28T14:36:30Z")

</div>

HI I have a device that is controlled via commands sent over serial, I am trying to convert the existing micro python code to makecode for Microbit but am getting stuck on converting the following code… uart.write(byt…

---

## [How to asynchronously (non-blocking) schedule a function to execute after a specific delay?](https://forum.makecode.com/t/how-to-asynchronously-non-blocking-schedule-a-function-to-execute-after-a-specific-delay/32673)

<div class="topic-metadata">

**Author:** [@muz](https://forum.makecode.com/u/muz)\
**Replies:** 1\
**Last updated:** [December 23, 2024, 3:51pm UTC](https://forum.makecode.com/t/how-to-asynchronously-non-blocking-schedule-a-function-to-execute-after-a-specific-delay/32673 "2024-12-23T15:51:26Z")

</div>

How to asynchronously (non-blocking) schedule a function to execute after a specific delay? Foe example, how to realize the functionality described in the following pseudo-code? input.onButtonPressed(Button.A, function…

---

## [Does anybody know why i have input delay when sending inputs via radio to my other microbit? its for a school project](https://forum.makecode.com/t/does-anybody-know-why-i-have-input-delay-when-sending-inputs-via-radio-to-my-other-microbit-its-for-a-school-project/32580)

<div class="topic-metadata">

**Author:** [@AUstin](https://forum.makecode.com/u/AUstin)\
**Replies:** 1\
**Last updated:** [December 18, 2024, 11:05pm UTC](https://forum.makecode.com/t/does-anybody-know-why-i-have-input-delay-when-sending-inputs-via-radio-to-my-other-microbit-its-for-a-school-project/32580 "2024-12-18T23:05:28Z")

</div>

heres the code def on\_received\_number(receivedNumber): if receivedNumber == 0: basic.show\_leds(“”" . . . . . . . . . . . . . . . . . . . . . . . . . “”“) elif receivedNumber == 1: basic.show\_leds(”“” . . # . …

---

## [How to edit pxt-micro:bit iframe block?](https://forum.makecode.com/t/how-to-edit-pxt-micro-bit-iframe-block/27947)

<div class="topic-metadata">

**Author:** [@huhhuh123](https://forum.makecode.com/u/huhhuh123)\
**Replies:** 1\
**Last updated:** [December 17, 2024, 6:30pm UTC](https://forum.makecode.com/t/how-to-edit-pxt-micro-bit-iframe-block/27947 "2024-12-17T18:30:51Z")

</div>

hello If you build pxt-microbit with the pxt staticpkg command and display the resulting index.html as an iframe, Blocks cannot be modified as shown in the attached image How can I solve this?

---

## [CreateAI launches today!](https://forum.makecode.com/t/createai-launches-today/31831)

<div class="topic-metadata">

**Author:** [@jacqueline.russell](https://forum.makecode.com/u/jacqueline.russell)\
**Replies:** 3\
**Last updated:** [December 5, 2024, 6:01pm UTC](https://forum.makecode.com/t/createai-launches-today/31831 "2024-12-05T18:01:12Z")

</div>

@frank\_schmidt has already posted a bunch of cool projects using CreateAI, but just wanted to let everyone know that the CreateAI platform/tools officially launch today! Blog post: https://microbit.org/news/2024-11-20/m…

---

## [Powering my makerspace window display with the Microbit](https://forum.makecode.com/t/powering-my-makerspace-window-display-with-the-microbit/32111)

<div class="topic-metadata">

**Author:** [@solitairemakes](https://forum.makecode.com/u/solitairemakes)\
**Replies:** 0\
**Last updated:** [December 2, 2024, 3:05am UTC](https://forum.makecode.com/t/powering-my-makerspace-window-display-with-the-microbit/32111 "2024-12-02T03:05:22Z")

</div>

I was thinking of creating a holiday light display for my makerspace and controlling it with the Microbit. I plan to have five 5mm red LEDs connected to Pin 0 and five 5mm yellow LEDs connected to Pin 1. I want to use …

---

## [Adding more pins via i²c (in Blocks)](https://forum.makecode.com/t/adding-more-pins-via-i-c-in-blocks/31715)

<div class="topic-metadata">

**Author:** [@Oli](https://forum.makecode.com/u/Oli)\
**Replies:** 3\
**Last updated:** [November 17, 2024, 8:43pm UTC](https://forum.makecode.com/t/adding-more-pins-via-i-c-in-blocks/31715 "2024-11-17T20:43:34Z")

</div>

We’ve had a couple of projects where pins are really tight. I’ve looked at multiplexing and using the LED pins and using an i2c screen but they are all less than perfect. I recently found that there are a couple of micr…

---

## [Video: Mobile Battery Micro:bit CreateAI](https://forum.makecode.com/t/video-mobile-battery-micro-bit-createai/31911)

<div class="topic-metadata">

**Author:** [@frank\_schmidt](https://forum.makecode.com/u/frank_schmidt)\
**Replies:** 0\
**Last updated:** [November 23, 2024, 9:31pm UTC](https://forum.makecode.com/t/video-mobile-battery-micro-bit-createai/31911 "2024-11-23T21:31:48Z")

</div>

Micro:bit is now more mobile than ever using CreateAI as a radio controller for LEGO car. But the 2 X -AAA battery pack is too heavy for wrist band Micro:bit. Video explains our alternative , rechargeable 3.7v LiPo with …

---

## [connecting the micro:bit to the expansion board and LED light](https://forum.makecode.com/t/connecting-the-micro-bit-to-the-expansion-board-and-led-light/31572)

<div class="topic-metadata">

**Author:** [@kathleenharris](https://forum.makecode.com/u/kathleenharris)\
**Replies:** 0\
**Last updated:** [November 7, 2024, 10:28pm UTC](https://forum.makecode.com/t/connecting-the-micro-bit-to-the-expansion-board-and-led-light/31572 "2024-11-07T22:28:19Z")

</div>

Hello! I connected a DF Robot Voice Recognition sensor to a micro:bit and expansion board. I am at the point where I need to know where to attach the wires from the digital LED module V2 to the expansion board. Once i…

---

## [Frequencies of musical notes and tempo are all wrong when played on a micro.bit](https://forum.makecode.com/t/frequencies-of-musical-notes-and-tempo-are-all-wrong-when-played-on-a-micro-bit/31535)

<div class="topic-metadata">

**Author:** [@Roo](https://forum.makecode.com/u/Roo)\
**Replies:** 1\
**Last updated:** [November 7, 2024, 5:01pm UTC](https://forum.makecode.com/t/frequencies-of-musical-notes-and-tempo-are-all-wrong-when-played-on-a-micro-bit/31535 "2024-11-07T17:01:37Z")

</div>

I received the latest V2 micro.bit yesterday and the simple tutorial exercises work well, except selecting notes like Middle C from “Music” followed by Middle G does not play as the notes and is not in harmony. Also the …

---

## [Video: CreateAI Micro:bit 3D printed Moon Rover Wheels for LEGO car RC](https://forum.makecode.com/t/video-createai-micro-bit-3d-printed-moon-rover-wheels-for-lego-car-rc/31515)

<div class="topic-metadata">

**Author:** [@frank\_schmidt](https://forum.makecode.com/u/frank_schmidt)\
**Replies:** 0\
**Last updated:** [November 4, 2024, 11:03pm UTC](https://forum.makecode.com/t/video-createai-micro-bit-3d-printed-moon-rover-wheels-for-lego-car-rc/31515 "2024-11-04T23:03:52Z")

</div>

https://www.youtube.com/watch?v=IjIfxS66FbE Student shows radio control of bot car with Micro:bit programmed with CreateAI to send radio signals based on ‘tilt’ actions.

---

## [Converting strings to buffer](https://forum.makecode.com/t/converting-strings-to-buffer/31427)

<div class="topic-metadata">

**Author:** [@Gus](https://forum.makecode.com/u/Gus)\
**Replies:** 3\
**Last updated:** [October 31, 2024, 3:26pm UTC](https://forum.makecode.com/t/converting-strings-to-buffer/31427 "2024-10-31T15:26:19Z")

</div>

How can I send a string to i2c? I found a send buffer https://makecode.microbit.org/reference/pins/i2c-write-buffer But how to convert a text string to a buffer?

---

## [CreatAI Micro:bit RC LEGO bot car : Video](https://forum.makecode.com/t/creatai-micro-bit-rc-lego-bot-car-video/31416)

<div class="topic-metadata">

**Author:** [@frank\_schmidt](https://forum.makecode.com/u/frank_schmidt)\
**Replies:** 0\
**Last updated:** [October 30, 2024, 5:51pm UTC](https://forum.makecode.com/t/creatai-micro-bit-rc-lego-bot-car-video/31416 "2024-10-30T17:51:04Z")

</div>

Using radio extension in MakeCode and the beta CreateAI Micro:bit we show a trained Micro:bit controlling a car made of LEGO Technic parts.

---

## [micro:bit hardware test / diagnostics](https://forum.makecode.com/t/micro-bit-hardware-test-diagnostics/31415)

<div class="topic-metadata">

**Author:** [@Vegz78](https://forum.makecode.com/u/Vegz78)\
**Replies:** 0\
**Last updated:** [October 30, 2024, 5:49pm UTC](https://forum.makecode.com/t/micro-bit-hardware-test-diagnostics/31415 "2024-10-30T17:49:57Z")

</div>

Probably other and better options out there, but since I could not find them in time for my recent grateful task of sorting through a school’s box of classroom-battered micro:bits, I am happy to share my own little hardw…

---

## [MakeCode micro:bit 2024 update](https://forum.makecode.com/t/makecode-micro-bit-2024-update/30461)

<div class="topic-metadata">

**Author:** [@jacqueline.russell](https://forum.makecode.com/u/jacqueline.russell)\
**Replies:** 2\
**Last updated:** [October 28, 2024, 3:52pm UTC](https://forum.makecode.com/t/makecode-micro-bit-2024-update/30461 "2024-10-28T15:52:31Z")

</div>

Hi everyone! Just wanted to let folks know that we have a new update for MakeCode for the micro:bit out now. Read more about the updates here: MakeCode for the micro:bit 2024 Update Thanks to everyone who helped by fi…

---

## [Foever Block vs Run In Background](https://forum.makecode.com/t/foever-block-vs-run-in-background/12419)

<div class="topic-metadata">

**Author:** [@dsssssssss9](https://forum.makecode.com/u/dsssssssss9)\
**Replies:** 9\
**Last updated:** [October 27, 2024, 7:56pm UTC](https://forum.makecode.com/t/foever-block-vs-run-in-background/12419 "2024-10-27T19:56:45Z")

</div>

HI I am starting to code a very simple invaders type game that uses a rotary encoder as a controller & an external Neopixel matrix as the display … I have code that constantly updates the position of the base / enemy …

---

## [Video: LEGO Bot Car Controlled with CreateAI Micro:bit](https://forum.makecode.com/t/video-lego-bot-car-controlled-with-createai-micro-bit/31350)

<div class="topic-metadata">

**Author:** [@frank\_schmidt](https://forum.makecode.com/u/frank_schmidt)\
**Replies:** 0\
**Last updated:** [October 25, 2024, 6:12pm UTC](https://forum.makecode.com/t/video-lego-bot-car-controlled-with-createai-micro-bit/31350 "2024-10-25T18:12:04Z")

</div>

Using ‘Radio’ extension and motor driver on LEGO car, one Microbit sends signals to another after machine learning training using CreateAI Micro:bit.

---

## [Video: Radio with CreateAI Micro:bit ](https://forum.makecode.com/t/video-radio-with-createai-micro-bit/31340)

<div class="topic-metadata">

**Author:** [@frank\_schmidt](https://forum.makecode.com/u/frank_schmidt)\
**Replies:** 0\
**Last updated:** [October 24, 2024, 9:29pm UTC](https://forum.makecode.com/t/video-radio-with-createai-micro-bit/31340 "2024-10-24T21:29:58Z")

</div>

Normally I find bluetooth and radio extensions conflict in MakeCode. Here we use Bluetooth for Machine Learning with CreateAI to train the Micro:bit V2 to remember and respond to various actions and then we have added “r…

---

## [Micro Polo](https://forum.makecode.com/t/micro-polo/31292)

<div class="topic-metadata">

**Author:** [@49dev](https://forum.makecode.com/u/49dev)\
**Replies:** 3\
**Last updated:** [October 24, 2024, 5:29pm UTC](https://forum.makecode.com/t/micro-polo/31292 "2024-10-24T17:29:57Z")

</div>

Hello there! I normally am over on the Arcade side of things, but I recently acquired a micro:bit. I want to detect how far a micro:bit is from another micro:bit whenever you press a button, and perform different actio…

---

## [Transmit audio recording](https://forum.makecode.com/t/transmit-audio-recording/30456)

<div class="topic-metadata">

**Author:** [@gblessed](https://forum.makecode.com/u/gblessed)\
**Replies:** 2\
**Last updated:** [October 21, 2024, 9:30pm UTC](https://forum.makecode.com/t/transmit-audio-recording/30456 "2024-10-21T21:30:46Z")

</div>

Hi I am able to record and play audio recordings using the record extension. def on\_button\_pressed\_a(): record.set\_sample\_rate(10000, record.AudioSampleRateScope.RECORDING) basic.show\_icon(IconNames.SMALL\_SQUARE…

---

## [Video: CreateAI Micro:bit 3D Printed Bracelet](https://forum.makecode.com/t/video-createai-micro-bit-3d-printed-bracelet/31293)

<div class="topic-metadata">

**Author:** [@frank\_schmidt](https://forum.makecode.com/u/frank_schmidt)\
**Replies:** 0\
**Last updated:** [October 21, 2024, 5:39pm UTC](https://forum.makecode.com/t/video-createai-micro-bit-3d-printed-bracelet/31293 "2024-10-21T17:39:04Z")

</div>

Video: 3D Printed bracelet for Micro:bit used with CreateAI Micro:bit.

---

## [CreateAI Micro:bit Explained by Anna : Video](https://forum.makecode.com/t/createai-micro-bit-explained-by-anna-video/31294)

<div class="topic-metadata">

**Author:** [@frank\_schmidt](https://forum.makecode.com/u/frank_schmidt)\
**Replies:** 0\
**Last updated:** [October 21, 2024, 5:41pm UTC](https://forum.makecode.com/t/createai-micro-bit-explained-by-anna-video/31294 "2024-10-21T17:41:50Z")

</div>

Video:

---

## [Micro:toys!](https://forum.makecode.com/t/micro-toys/22585)

<div class="topic-metadata">

**Author:** [@urassari](https://forum.makecode.com/u/urassari)\
**Replies:** 1\
**Last updated:** [October 21, 2024, 2:21am UTC](https://forum.makecode.com/t/micro-toys/22585 "2024-10-21T02:21:55Z")

</div>

I made some toys with the micro:bit (to reduce your boredom), and you don’t need any external stuff, just the V2 micro:bit will work! the more you shake it, the more noise it makes! this one was the easiest to make…

---

## [Help- How do you make it so that the buttons & pins on micro:bit don't clash?!?!](https://forum.makecode.com/t/help-how-do-you-make-it-so-that-the-buttons-pins-on-micro-bit-dont-clash/29678)

<div class="topic-metadata">

**Author:** [@Freedom55](https://forum.makecode.com/u/Freedom55)\
**Replies:** 2\
**Last updated:** [October 21, 2024, 2:21am UTC](https://forum.makecode.com/t/help-how-do-you-make-it-so-that-the-buttons-pins-on-micro-bit-dont-clash/29678 "2024-10-21T02:21:41Z")

</div>

So basically as the title says, I want to ask how to make it so that the buttons and pins do not clash on a micro:bit? For some context, I’m making a very simple memory game that uses the A & B buttons for input and usin…

---

## [micro:bit producing FAIL.TXT when attempting to copy file via zsh](https://forum.makecode.com/t/micro-bit-producing-fail-txt-when-attempting-to-copy-file-via-zsh/31279)

<div class="topic-metadata">

**Author:** [@Hellscaped](https://forum.makecode.com/u/Hellscaped)\
**Replies:** 0\
**Last updated:** [October 20, 2024, 4:56pm UTC](https://forum.makecode.com/t/micro-bit-producing-fail-txt-when-attempting-to-copy-file-via-zsh/31279 "2024-10-20T16:56:56Z")

</div>

So I’m attempting to make a site to let randoms upload code to a spare microbit, and when I move the firmware via cp firmware.hex /run/media/hellscaped/MICROBIT it fails, but when I drag it in with thunar it succeeds. e…

---

## [Micro:Bit won't pair WEBUSB](https://forum.makecode.com/t/micro-bit-wont-pair-webusb/31052)

<div class="topic-metadata">

**Author:** [@dsssssssss9](https://forum.makecode.com/u/dsssssssss9)\
**Replies:** 8\
**Last updated:** [October 16, 2024, 10:11pm UTC](https://forum.makecode.com/t/micro-bit-wont-pair-webusb/31052 "2024-10-16T22:11:41Z")

</div>

Recently had to install fresh copy of Ubuntu MATE 24.04 LTS on my PC In makecode editor ( all versions ) whenever i try to Connect decie so i can use 1-click downloads i get the following error… I can save hex file &…

---

## [help me with my micro:bit codes](https://forum.makecode.com/t/help-me-with-my-micro-bit-codes/31116)

<div class="topic-metadata">

**Author:** [@Mahsa12341](https://forum.makecode.com/u/Mahsa12341)\
**Replies:** 0\
**Last updated:** [October 10, 2024, 10:23pm UTC](https://forum.makecode.com/t/help-me-with-my-micro-bit-codes/31116 "2024-10-10T22:23:00Z")

</div>

I need to do these: Write one character, one signal at a time. Save the character using buttons A+B. This way, you can form a message, meaning several characters in a row. Having a system for spaces is optional. (You sh…

---

## [micro:bit-morsecode](https://forum.makecode.com/t/micro-bit-morsecode/31115)

<div class="topic-metadata">

**Author:** [@Mahsa12341](https://forum.makecode.com/u/Mahsa12341)\
**Replies:** 0\
**Last updated:** [October 10, 2024, 10:22pm UTC](https://forum.makecode.com/t/micro-bit-morsecode/31115 "2024-10-10T22:22:51Z")

</div>

Hello these are my codes: input.onButtonPressed(Button.A, function () { userinput = “” + userinput + “.” save\_morseCode(userinput) }) function save\_morseCode (text: string) { basic.clearScreen() y = 0 indexInt =…

---

## [How to WiFi on microbit?](https://forum.makecode.com/t/how-to-wifi-on-microbit/31030)

<div class="topic-metadata">

**Author:** [@maram66](https://forum.makecode.com/u/maram66)\
**Replies:** 0\
**Last updated:** [October 7, 2024, 2:31am UTC](https://forum.makecode.com/t/how-to-wifi-on-microbit/31030 "2024-10-07T02:31:28Z")

</div>

I’m hoping to provide my microbit with some basic internet functionality like to call URL requests and listen on specific port and reply to such requests (sensor data and actions). I’ve purchased this ESP8266 module, aw…

---

## [Sending/Recieving complex controller state](https://forum.makecode.com/t/sending-recieving-complex-controller-state/30898)

<div class="topic-metadata">

**Author:** [@Oli](https://forum.makecode.com/u/Oli)\
**Replies:** 1\
**Last updated:** [September 29, 2024, 4:17pm UTC](https://forum.makecode.com/t/sending-recieving-complex-controller-state/30898 "2024-09-29T16:17:54Z")

</div>

We have a joystick:bit and a pile of small robotics projects that we want to use it with. It has analogue joystick and 4 buttons. Streaming the state of the controller to a recieving microbit is giving me a headache. It…

[Previous page](https://forum.makecode.com/c/microbit/11.md?page=4)

[Next page](https://forum.makecode.com/c/microbit/11.md?page=6)
