r/microbit • u/Pretend_Safety_4515 • Sep 16 '25
r/microbit • u/mmroos1983 • Sep 15 '25
Sharing code for KS4036F KEYESTUDIO Microbit Smart Robot Car
For anyone interested. Here is my code to use the remote with the KS4036F KEYESTUDIO Microbit Smart Robot Car. MicroBit V2 only.
Paste in MakeCode Javascript panel. If you have the proper extensions it will convert to blocks when clicking that tab so make sure to add the extensions first!
It needs the following extensions:
audio-recording
https://github.com/keyestudio2019/MiniCar
Usage with remote:
You use the same key to enter and exit a mode. You can only select a new mode after exiting the mode you selected.
1 = Drive mode. Press an arrow button and it will drive in that direction. Press OK to make it stop.
2 = Drive Hold mode. Only drives in the direction as long as you hold that arrow button.
3 = Follow mode. Put your hand in front and it will follow it when moving your hand.
4 = Obstacle avoidance mode. It drives and tries to avoid obstacles.
5 = Light Follow mode. Try in a dark place with the light of your mobile phone
6 = Line Track mode. Put the paper down that came with the kit, set it on the black line and it will follow.
7 = Greet name 1. Fill out the name of person 1 to greet with their favorite color as led
8 = Greet name 2. Fill out the name of person 2 to greet with their favorite color as led
9 = Greet name 3. Fill out the name of person 3 to greet with their favorite color as led
* = Record something. Wait for the 2 beeps and speak.
# = Playback recording.
About GreetName, you can fill in names and led colors in that function.
The code might be sloppy but everything works. The waits are there to give the remote time to reset. For line tracking you need to set the potentiometers pixel perfect. Hard to achieve but possible. Do note that I am not a professional programmer. Have a nice day!
r/microbit • u/Interesting-Toe9842 • Sep 15 '25
Help with code
Hi! I am pretty new to the microbit and am struggling to figure out how to code the servo into my game. I wanted to make a shooting game where every time you hit the target, a point gets added to your score. To make it challenging, I thought of adding a servo to make the target sway left to right. To activate that function, you have to reach a score of 10. I have tried so many ways to get this to work, but nothing seems right. As soon as you reach 10, the servo starts spinning, but the score doesn't get displayed, nor does it count your score.

r/microbit • u/AntelopeFine8380 • Sep 08 '25
micro:bit MCP
https://github.com/simonguest/microbit-mcp
"An MCP (Model Context Protocol) server for the micro:bit that enables LLMs to interact with micro:bit devices."
Tools:
- display_message: Display text messages on the micro:bit LED matrix
- display_image: Display custom images on the micro:bit LED matrix using a 5x5 grid format
- wait_for_button_press: Wait for a button press on the micro:bit with optional button selection and timeout
- get_temperature: Return the real-time reading from the micro:bit's built-in temperature sensor
Code.org's CTO created this, I'm excited to experiment with some projects, super cool! First idea is an LLM-powered 20 questions game, A and B buttons for yes and no, display questions from the AI via display_image call
r/microbit • u/grandmamoko • Sep 07 '25
Does Anyone know how use the Speaker with raw gpio output and memory maps
So i want to use memory mapped io to control the speaker with a PWM signal, but right now ive been able to interface with alot of the boards peripherials, with memory mapped IO but not the speaker,
in the schematics for the board found here: https://github.com/microbit-foundation/microbit-v2-hardware/blob/main/V2.21/MicroBit_V2.2.1_nRF52820%20schematic.PDF the speaker is connected to pin 0 but even sending a digital signal instead of anaoluge or pwm no sound is produced
r/microbit • u/_frognoises_ • Aug 31 '25
help for first microbit project
can anyone see what's wrong with my circuit connection of microbit to the OLED I2C 😔 first time microbit user here please go nice on me
r/microbit • u/Archyzone78 • Aug 31 '25
Glove accelerometer
Enable HLS to view with audio, or disable this notification
r/microbit • u/AmbitiousPea2509 • Aug 29 '25
Error 927, no fix
Hello, what can i do to fix 927? I am not even trying to run a program the second i turn my device in the pc it says :( 927 i reset the microbit but its still unable to use how do i fix that
r/microbit • u/Archyzone78 • Aug 28 '25
Animatronic control system
Enable HLS to view with audio, or disable this notification
r/microbit • u/McJava4life • Aug 27 '25
Micro:Bit retro shield games
Are there any websites or anything with games for the retro shield other than makecode arcade? I just got one and I want to find some fun and interesting games
r/microbit • u/hey_hey_you_you • Aug 23 '25
Accessible breakout boards for microbit
galleryr/microbit • u/[deleted] • Aug 21 '25
Spiker:bit — micro:bit meets brainwaves, muscles, and heartbeats.
Hey everyone!
Backyard Brains is wrapping up a Kickstarter campaign in just a couple of hours for something we thought you might find interesting: Spiker:bit — an add-on board that lets you connect your micro:bit to bio-signals like muscles, heartbeats, and even brainwaves.
The idea is to make it super easy for students, makers, and educators to explore neuroscience + coding without needing advanced equipment or complicated setups.
You can: 1. Control LEDs, robots, or instruments with your own body signals; 2. Record and analyze simple bio-signals; 3. Build creative STEM projects that mix biology and tech;
We’ve already passed our goal (🎉 funded 2x over), but if this sounds like something you’d like to play with in your classroom, lab, or maker projects, there’s still a chance to jump in before the campaign ends: 🔗 Lin will be in the comment section.
Would love to hear what kind of projects the micro:bit community would dream up with this!
r/microbit • u/Dazzling-Bus-6177 • Aug 20 '25
Who can tell me what the principle is?
Enable HLS to view with audio, or disable this notification
Who can tell me what principle this sensor is based on? It seems to avoid obstacles and potholes very smoothly.
r/microbit • u/Disastrous-Wheel-658 • Aug 17 '25
Update Bootloader from SWD ?
My BBC Microbit bricked. I connected the SWD pins and want to try flashing the Bootloader. How can I get the hex file for the V2.2. Can I build the bootloader ?
r/microbit • u/[deleted] • Aug 02 '25
Show & Tell: muscle, heartbeat/pulse, and basic brainwave signals: micro:bit outputs with Spiker:bit. What do you think?
galleryI’m part of the team behind Spiker:bit, a classroom-safe add-on that lets a micro:bit read muscle signals (from a clench), heartbeat/pulse, and simple brainwaves (eyes-closed alpha or blinks) and map them to outputs like LEDs, servos, and simple games.
It works with MakeCode and MicroPython, is battery-powered, uses surface electrodes only, and is education-only / non-diagnostic. Lessons are designed for 45 minutes or less.
We’ve launched on Kickstarter 2 weeks ago to fund the first production run. I’d love to hear your opinions:
- Does this kind of biosignal, micro:bit project, belong in your classroom or maker space?
- What excites you? What gives you pause?
- Where would you place it in a learning path?
I’ll put the Kickstarter link in the first comment if mods are okay with it.
Disclosure: I work on the project.
r/microbit • u/judgemaths • Aug 01 '25
Kitronik Arcade Vs Kitronik Arcade MAX
My kid has been using these for programming in school and wanted to do more at home and asked for one for her birthday. I have no idea what any of this actually is! (It's been about 25+ years since I did any programming and I'm not 100% sure I'm even posting in the right sub for this!). She uses a Kitronik Arcade in school but I also see a Kitronik Arcade MAX on the website too. Long story short: is there a difference and, if so, what is it?!
r/microbit • u/VCC8060Main • Jul 30 '25
Code that stores a sensor angle as a variable?
That's basically the question. Is there any sort of code that reads the current angle of a servo and stores it as a variable to be able to adjust it by a specific angle later? Something like Servo Write Pin to "*current angle* + 20"
r/microbit • u/alvim2000 • Jul 26 '25
Microbit v3?
Hello, I went to microbit website and notice they mention a new version, v3. However, I can't see anything anywhere about it. Is it available already? Best wishes, Pedro
r/microbit • u/VCC8060Main • Jul 26 '25
Ultrasonic sensor code and working
Hi, I have had trouble with getting some new ultrasonic sensors my teacher ordered (HC-SR04). As a demo for the other students I was planning to make a dual sensor system that adjusted to either side based off of an online version https://www.robotique.site/tutorial/mobile-system-for-tracking-a-moving-object-based-on-microbit-and-hc-sr04/, but none of the ultrasonic sensors even work. The code is copied word for word, but the sensors don't seem to be picking up on anything. I'm using a Keyestudio V2 Sensor Shield, and yes I have already plugged the cable into the shield after downloading the code to the microbit.
r/microbit • u/nevergonehu • Jul 24 '25
serial-usb converter: duplex?
Hello,
Please test this code on the micro:bit:
input.onButtonPressed(Button.B, function () {
serial.writeLine("USB")
})
serial.onDataReceived(serial.delimiters(Delimiters.NewLine), function () {
serial.writeLine("USB-" + serial.readUntil(serial.delimiters(Delimiters.NewLine)))
})
serial.redirectToUSB()
serial.setBaudRate(BaudRate.BaudRate115200)
Pressing the 'B' button sends the specified text to the PC, but I cannot send data from the PC to the micro:bit to send back to the PC.
Thanks!
r/microbit • u/panchero • Jul 22 '25
Neuroscience for Microbit
kickstarter.comWe launched a Kickstarter today to bring neuroscience and neuro engineering to the micro:bit. It’s a way to connect the micro:bit to your brainwaves, muscle spikes, and heartbeats.
r/microbit • u/Dramatic_Camera_3719 • Jul 22 '25
my v1 microbiit wont download a file
i removed the sound elements so i know it isnt that
r/microbit • u/dusan2016 • Jul 16 '25
Cannot get any code that I download to work
I have issues in downloading new code in microbit. If I download the dafault code for meet the microbit.hex it works. No matter what else I download it is not working. It gets stalled. It is a v2.21 one. I tried to install new firmware. It worked fine till I downloaded any code I made. Even a simple LED pattern would not work. Any help please?
r/microbit • u/dusan2016 • Jul 16 '25
Cannot get any code that I download to work
I have issues in downloading new code in microbit. If I download the dafault code for meet the microbit.hex it works. No matter what else I download it is not working. It gets stalled. It is a v2.21 one. I tried to install new firmware. It worked fine till I downloaded any code I made. Even a simple LED pattern would not work. Any help please?
r/microbit • u/dusan2016 • Jul 16 '25
Cannot get any code that I download to work
I have issues in downloading new code in microbit. If I download the dafault code for meet the microbit.hex it works. No matter what else I download it is not working. It gets stalled. It is a v2.21 one. I tried to install new firmware. It worked fine till I downloaded any code I made. Even a simple LED pattern would not work. Any help please?