# micro:bit

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

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

**Page:** 10

---

## [How can I create code for a sumo robot with Micro:bit?](https://forum.makecode.com/t/how-can-i-create-code-for-a-sumo-robot-with-micro-bit/24534)

<div class="topic-metadata">

**Author:** [@David\_2698780](https://forum.makecode.com/u/David_2698780)\
**Replies:** 0\
**Last updated:** [November 25, 2023, 3:27am UTC](https://forum.makecode.com/t/how-can-i-create-code-for-a-sumo-robot-with-micro-bit/24534 "2023-11-25T03:27:04Z")

</div>

I need to create a code for a sumo robot using an ultrasonic sensor, an H-bridge, and 2 Pololu motors.

---

## [How can I create code for a sumo robot with Micro:bit?](https://forum.makecode.com/t/how-can-i-create-code-for-a-sumo-robot-with-micro-bit/24533)

<div class="topic-metadata">

**Author:** [@David\_2698780](https://forum.makecode.com/u/David_2698780)\
**Replies:** 0\
**Last updated:** [November 25, 2023, 3:26am UTC](https://forum.makecode.com/t/how-can-i-create-code-for-a-sumo-robot-with-micro-bit/24533 "2023-11-25T03:26:59Z")

</div>

I need to create a code for a sumo robot using an ultrasonic sensor, an H-bridge, and 2 Pololu motors.

---

## [CCS811 CO2 Sensor and Micro:Bit](https://forum.makecode.com/t/ccs811-co2-sensor-and-micro-bit/24350)

<div class="topic-metadata">

**Author:** [@danny](https://forum.makecode.com/u/danny)\
**Replies:** 2\
**Last updated:** [November 20, 2023, 9:23pm UTC](https://forum.makecode.com/t/ccs811-co2-sensor-and-micro-bit/24350 "2023-11-20T21:23:51Z")

</div>

Hello! For educational purposes I am trying to connect the CCS811 digital gas sensor to a Micro:Bit(V2). I understand it uses I2C protocol and I (think) I know how to connect the hardware to eachother (Using pins SDA, S…

---

## [Developing Array.map and Array.filter Functions with MakeCode Blocks](https://forum.makecode.com/t/developing-array-map-and-array-filter-functions-with-makecode-blocks/24410)

<div class="topic-metadata">

**Author:** [@romanrguez192](https://forum.makecode.com/u/romanrguez192)\
**Replies:** 0\
**Last updated:** [November 20, 2023, 6:34pm UTC](https://forum.makecode.com/t/developing-array-map-and-array-filter-functions-with-makecode-blocks/24410 "2023-11-20T18:34:45Z")

</div>

Hello MakeCode Community, I am working on a project where I want to implement functionality similar to JavaScript’s Array.map and Array.filter methods using MakeCode blocks. I have some experience with MakeCode but am f…

---

## [Breakout 2.0](https://forum.makecode.com/t/breakout-2-0/10583)

<div class="topic-metadata">

**Author:** [@Rubiks](https://forum.makecode.com/u/Rubiks)\
**Replies:** 2\
**Last updated:** [November 17, 2023, 6:19pm UTC](https://forum.makecode.com/t/breakout-2-0/10583 "2023-11-17T18:19:37Z")

</div>

---

## [digitalWrite on P3](https://forum.makecode.com/t/digitalwrite-on-p3/23609)

<div class="topic-metadata">

**Author:** [@BionicNaren](https://forum.makecode.com/u/BionicNaren)\
**Replies:** 1\
**Last updated:** [November 8, 2023, 5:52pm UTC](https://forum.makecode.com/t/digitalwrite-on-p3/23609 "2023-11-08T17:52:10Z")

</div>

I tried my best to do digitalWrite on P3 pin but not working at all. I am using Kittenbot iobit extension board. However, analogWrite is working fine on P3. I just need to write 1023 in my code to make it work. Can any…

---

## [OLED extension with 7-segment and paint feature](https://forum.makecode.com/t/oled-extension-with-7-segment-and-paint-feature/8038)

<div class="topic-metadata">

**Author:** [@MKleinSB](https://forum.makecode.com/u/MKleinSB)\
**Replies:** 18\
**Last updated:** [November 7, 2023, 5:19pm UTC](https://forum.makecode.com/t/oled-extension-with-7-segment-and-paint-feature/8038 "2023-11-07T17:19:25Z")

</div>

Extended the Kitronik View extension to easily paint pictures and to have an easy 7-segment display!

---

## [Micro:Bit light sensor help needed](https://forum.makecode.com/t/micro-bit-light-sensor-help-needed/23699)

<div class="topic-metadata">

**Author:** [@efty404](https://forum.makecode.com/u/efty404)\
**Replies:** 5\
**Last updated:** [November 6, 2023, 7:59pm UTC](https://forum.makecode.com/t/micro-bit-light-sensor-help-needed/23699 "2023-11-06T19:59:31Z")

</div>

very simple code not working properly. when in light it just flashes and doesn’t stay on. i just want it to stay on when in darkness and off when not.

---

## [Time & Date Blocks](https://forum.makecode.com/t/time-date-blocks/3191)

<div class="topic-metadata">

**Author:** [@bsiever](https://forum.makecode.com/u/bsiever)\
**Replies:** 2\
**Last updated:** [October 30, 2023, 10:06pm UTC](https://forum.makecode.com/t/time-date-blocks/3191 "2023-10-30T22:06:58Z")

</div>

I shared this on other forums, but not here. A few months ago I made a set of Time & Date blocks, which are now an approved extension. I’d appreciate any feedback. They can be used for: Time in 12-hour or 24-hour for…

---

## [Advanced micro:bit traffic light, is it possible?](https://forum.makecode.com/t/advanced-micro-bit-traffic-light-is-it-possible/3878)

<div class="topic-metadata">

**Author:** [@mike](https://forum.makecode.com/u/mike)\
**Replies:** 6\
**Last updated:** [October 17, 2023, 8:54pm UTC](https://forum.makecode.com/t/advanced-micro-bit-traffic-light-is-it-possible/3878 "2023-10-17T20:54:47Z")

</div>

I have seen and done the micro:bit project to make a simple traffic light. What I would like to do with my students is take it up notch. I am trying to figure out how to setup 4 micro:bit traffic lights that can talk t…

---

## [Digital read pin does not work](https://forum.makecode.com/t/digital-read-pin-does-not-work/22947)

<div class="topic-metadata">

**Author:** [@kmll](https://forum.makecode.com/u/kmll)\
**Replies:** 3\
**Last updated:** [October 10, 2023, 8:22pm UTC](https://forum.makecode.com/t/digital-read-pin-does-not-work/22947 "2023-10-10T20:22:14Z")

</div>

I am trying to create a simple program to read pin0, but it does not work. Any suggestions? The pseudocode is like this: forever if digital pin0 = 1 show some leds

---

## [Simplest way to input text without serial](https://forum.makecode.com/t/simplest-way-to-input-text-without-serial/22630)

<div class="topic-metadata">

**Author:** [@urassari](https://forum.makecode.com/u/urassari)\
**Replies:** 7\
**Last updated:** [October 10, 2023, 7:07pm UTC](https://forum.makecode.com/t/simplest-way-to-input-text-without-serial/22630 "2023-10-10T19:07:00Z")

</div>

I need a simple and fast way to input text without using the serial.

---

## [What is micro:bit?](https://forum.makecode.com/t/what-is-micro-bit/23165)

<div class="topic-metadata">

**Author:** [@Blobbey](https://forum.makecode.com/u/Blobbey)\
**Replies:** 2\
**Last updated:** [October 10, 2023, 6:36pm UTC](https://forum.makecode.com/t/what-is-micro-bit/23165 "2023-10-10T18:36:51Z")

</div>

Just wondering what micro:bit is like, and what you can do with it.

---

## [More pin inputs](https://forum.makecode.com/t/more-pin-inputs/22483)

<div class="topic-metadata">

**Author:** [@urassari](https://forum.makecode.com/u/urassari)\
**Replies:** 5\
**Last updated:** [October 5, 2023, 7:51pm UTC](https://forum.makecode.com/t/more-pin-inputs/22483 "2023-10-05T19:51:33Z")

</div>

i am using the pins and some aluminum foil to make a little controller for the micro:bit and i seem to have run out of pins to make a down and A button. (i also plugged in an oled screen for the micro:bit: ) and if yo…

---

## [Best microbit accesories?](https://forum.makecode.com/t/best-microbit-accesories/22842)

<div class="topic-metadata">

**Author:** [@technonux](https://forum.makecode.com/u/technonux)\
**Replies:** 2\
**Last updated:** [September 28, 2023, 9:10pm UTC](https://forum.makecode.com/t/best-microbit-accesories/22842 "2023-09-28T21:10:38Z")

</div>

what are the best microbit accesories, i have 3 microbit but they are doing nothing rn.

---

## [Micro:bit out of context](https://forum.makecode.com/t/micro-bit-out-of-context/22651)

<div class="topic-metadata">

**Author:** [@urassari](https://forum.makecode.com/u/urassari)\
**Replies:** 2\
**Last updated:** [September 21, 2023, 8:29pm UTC](https://forum.makecode.com/t/micro-bit-out-of-context/22651 "2023-09-21T20:29:56Z")

</div>

images can be described differently to get funny results. here is an example: now, here is some of my out of context memes with images from https://makecode.microbit.org/# wow, there is alot of bees in here. ALL…

---

## [I need to make my microbit vibrate after 30 seconds](https://forum.makecode.com/t/i-need-to-make-my-microbit-vibrate-after-30-seconds/22628)

<div class="topic-metadata">

**Author:** [@maijin658](https://forum.makecode.com/u/maijin658)\
**Replies:** 3\
**Last updated:** [September 21, 2023, 5:57pm UTC](https://forum.makecode.com/t/i-need-to-make-my-microbit-vibrate-after-30-seconds/22628 "2023-09-21T17:57:33Z")

</div>

So I have got some of the code ot wait the 30 seconds I just need help to make it vibrate this is for a school competition. Any help would be INCREDIBLE!

---

## [Rotation, Roll sensor, that is adjustable. A buzzer that will let you know when the RC truck is about to roll over](https://forum.makecode.com/t/rotation-roll-sensor-that-is-adjustable-a-buzzer-that-will-let-you-know-when-the-rc-truck-is-about-to-roll-over/22486)

<div class="topic-metadata">

**Author:** [@Benchmade](https://forum.makecode.com/u/Benchmade)\
**Replies:** 0\
**Last updated:** [September 15, 2023, 7:09pm UTC](https://forum.makecode.com/t/rotation-roll-sensor-that-is-adjustable-a-buzzer-that-will-let-you-know-when-the-rc-truck-is-about-to-roll-over/22486 "2023-09-15T19:09:48Z")

</div>

I would like to know the steps on how to capture the role of an RC vehicle, before it is about to roll on its side. The micro:bit can be placed on the RC vehicle on the roll axis. Micro:bit will be placed on the RC tr…

---

## [Any way to code in Java for the Micro:Bit](https://forum.makecode.com/t/any-way-to-code-in-java-for-the-micro-bit/22471)

<div class="topic-metadata">

**Author:** [@Abelkrijgtalles](https://forum.makecode.com/u/Abelkrijgtalles)\
**Replies:** 1\
**Last updated:** [September 15, 2023, 3:17pm UTC](https://forum.makecode.com/t/any-way-to-code-in-java-for-the-micro-bit/22471 "2023-09-15T15:17:44Z")

</div>

I would like to make an OS for the Micro:Bit (I know it’s a hard project but idc), which is (for me) unpratical to do in Javascript and Python (and I also just love Java). Is there anyway to code in Java for the Micro:Bi…

---

## [Any text to speech extension for V1.5 micro:bits?](https://forum.makecode.com/t/any-text-to-speech-extension-for-v1-5-micro-bits/20509)

<div class="topic-metadata">

**Author:** [@urassari](https://forum.makecode.com/u/urassari)\
**Replies:** 5\
**Last updated:** [September 13, 2023, 4:32pm UTC](https://forum.makecode.com/t/any-text-to-speech-extension-for-v1-5-micro-bits/20509 "2023-09-13T16:32:46Z")

</div>

i really need it one.

---

## [micro:fish deadfish for the micro:bit](https://forum.makecode.com/t/micro-fish-deadfish-for-the-micro-bit/22405)

<div class="topic-metadata">

**Author:** [@robotosaurus](https://forum.makecode.com/u/robotosaurus)\
**Replies:** 0\
**Last updated:** [September 11, 2023, 5:46pm UTC](https://forum.makecode.com/t/micro-fish-deadfish-for-the-micro-bit/22405 "2023-09-11T17:46:55Z")

</div>

I made a program for the micro:bit v2 that’s allows you to code in deadfish a Esoteric programming language to use it press the logo to cycle the commands press a to go to the pev command press b to go to the next comman…

---

## [Micro morse](https://forum.makecode.com/t/micro-morse/22160)

<div class="topic-metadata">

**Author:** [@technonux](https://forum.makecode.com/u/technonux)\
**Replies:** 2\
**Last updated:** [September 5, 2023, 3:03pm UTC](https://forum.makecode.com/t/micro-morse/22160 "2023-09-05T15:03:11Z")

</div>

sounds a bit weird in editor, replace “morse” string with a message

---

## [Can I send icons using radio function?](https://forum.makecode.com/t/can-i-send-icons-using-radio-function/18434)

<div class="topic-metadata">

**Author:** [@Shauna](https://forum.makecode.com/u/Shauna)\
**Replies:** 4\
**Last updated:** [August 29, 2023, 4:30pm UTC](https://forum.makecode.com/t/can-i-send-icons-using-radio-function/18434 "2023-08-29T16:30:51Z")

</div>

Hi, I want to press a button (eg. A to send a smile and press B to send a frown) using the radio function. I know how to carry this out using strings but I want to use icons. Is this possible as I don’t see an option fo…

---

## [Micro:bit analog read is agonizingly slow?](https://forum.makecode.com/t/micro-bit-analog-read-is-agonizingly-slow/22028)

<div class="topic-metadata">

**Author:** [@MCbubba77](https://forum.makecode.com/u/MCbubba77)\
**Replies:** 10\
**Last updated:** [August 29, 2023, 4:29pm UTC](https://forum.makecode.com/t/micro-bit-analog-read-is-agonizingly-slow/22028 "2023-08-29T16:29:56Z")

</div>

Is it just me, or does it seem like the Analog Read function on micro:bit is staggeringly slow, maybe with a 10Hz update speed?

---

## [DEVS: Add the ability to adjust "fiber\_sleep(20);" delay in the main loop!](https://forum.makecode.com/t/devs-add-the-ability-to-adjust-fiber-sleep-20-delay-in-the-main-loop/22111)

<div class="topic-metadata">

**Author:** [@MCbubba77](https://forum.makecode.com/u/MCbubba77)\
**Replies:** 4\
**Last updated:** [August 28, 2023, 9:02pm UTC](https://forum.makecode.com/t/devs-add-the-ability-to-adjust-fiber-sleep-20-delay-in-the-main-loop/22111 "2023-08-28T21:02:30Z")

</div>

A very helpful member pointed out that there is an intentional 20ms delay in the execution of every iteration of the Forever loop in MakeCode micro:bit. (fiber\_sleep(20); in: pxt-microbit/libs/core/codal.cpp) This opera…

---

## [Code works in simulator but not on actual Micro:bit](https://forum.makecode.com/t/code-works-in-simulator-but-not-on-actual-micro-bit/21994)

<div class="topic-metadata">

**Author:** [@cmmorgan](https://forum.makecode.com/u/cmmorgan)\
**Replies:** 1\
**Last updated:** [August 22, 2023, 4:30pm UTC](https://forum.makecode.com/t/code-works-in-simulator-but-not-on-actual-micro-bit/21994 "2023-08-22T16:30:29Z")

</div>

I have a bit of code that increments a variable each time pin 0 is touched. After incrementing, it scrolls the new value of the variable across the LEDs. Funny thing is, it works great on the simulator, but doesn’t wor…

---

## [How to directly connect to RS232 comport?](https://forum.makecode.com/t/how-to-directly-connect-to-rs232-comport/21888)

<div class="topic-metadata">

**Author:** [@randangminang](https://forum.makecode.com/u/randangminang)\
**Replies:** 4\
**Last updated:** [August 21, 2023, 4:39pm UTC](https://forum.makecode.com/t/how-to-directly-connect-to-rs232-comport/21888 "2023-08-21T16:39:35Z")

</div>

Dear Expert, I know the serial data can be transmitted to PC using the USB. But I want to read the microbit data using RS232 (this is an experimental project). this is because the transmission line will be quite long …

---

## [About additional features of Makecode in the near future](https://forum.makecode.com/t/about-additional-features-of-makecode-in-the-near-future/21775)

<div class="topic-metadata">

**Author:** [@HidetoYasuda](https://forum.makecode.com/u/HidetoYasuda)\
**Replies:** 1\
**Last updated:** [August 11, 2023, 9:30pm UTC](https://forum.makecode.com/t/about-additional-features-of-makecode-in-the-near-future/21775 "2023-08-11T21:30:14Z")

</div>

Currently, Makecode cannot do the following, but do you have any plans to add functions in the near future? In the Makecode tool, if multiple micro:bits are connected to the computer at the same time, for example, 6, di…

---

## [Code doesn't run on micro:bit sometimes when copying hex file from Windows 10/11](https://forum.makecode.com/t/code-doesnt-run-on-micro-bit-sometimes-when-copying-hex-file-from-windows-10-11/21744)

<div class="topic-metadata">

**Author:** [@kjw](https://forum.makecode.com/u/kjw)\
**Replies:** 0\
**Last updated:** [August 8, 2023, 4:49pm UTC](https://forum.makecode.com/t/code-doesnt-run-on-micro-bit-sometimes-when-copying-hex-file-from-windows-10-11/21744 "2023-08-08T16:49:43Z")

</div>

I came across this last week. I was copying files to a BBC micro:bit V1 and it then stopped working. I found a FAIL.TXT file on the micro:bit drive with content of error: The hex file cannot be decoded. Checksum calcul…

---

## [I am having consistent connection issues](https://forum.makecode.com/t/i-am-having-consistent-connection-issues/21329)

<div class="topic-metadata">

**Author:** [@PAV](https://forum.makecode.com/u/PAV)\
**Replies:** 1\
**Last updated:** [August 4, 2023, 4:51pm UTC](https://forum.makecode.com/t/i-am-having-consistent-connection-issues/21329 "2023-08-04T16:51:59Z")

</div>

Some of my microbits wont work using the wire, and only work with bluetooth. Often, it will just say ‘connected’, and then the ‘download’ wont finish, and it’ll say ‘Download file again?’ Then sometimes it wont even be…

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

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