# Video Micro:bit V2 with Mbit Bluetooth app. for bot car Robotbit

**URL:** https://forum.makecode.com/t/video-micro-bit-v2-with-mbit-bluetooth-app-for-bot-car-robotbit/8934
**Category:** Show & Tell
**Created:** [June 27, 2021, 6:30am UTC](https://forum.makecode.com/t/video-micro-bit-v2-with-mbit-bluetooth-app-for-bot-car-robotbit/8934 "2021-06-27T06:30:19Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![frank\_schmidt](https://avatars.discourse-cdn.com/v4/letter/f/7993a0/32.png) [@frank\_schmidt](https://forum.makecode.com/u/frank_schmidt)
#### Post date: [June 27, 2021, 6:30am UTC](https://forum.makecode.com/t/video-micro-bit-v2-with-mbit-bluetooth-app-for-bot-car-robotbit/8934/1 "2021-06-27T06:30:19Z")

</div>

Video with MakeCode in Description. I do not see programs for using Mbit cell phone app. with Kittenbot Robotbit to drive motors. This program is good for both iPhone and Android when installed in the new Microbit V2. Many more functions to be developed:

[![](https://img.youtube.com/vi/wB6d_5fznps/hqdefault.jpg "Microbit V2 for Bluetooth app. control of Kittenbot Robotbit bot-car .MBit app.Basic MakeCode.") ](https://www.youtube.com/watch?v=wB6d_5fznps)

---

<div class="post-metadata">

### Author: ![frank\_schmidt](https://avatars.discourse-cdn.com/v4/letter/f/7993a0/32.png) [@frank\_schmidt](https://forum.makecode.com/u/frank_schmidt)
#### Post date: [July 2, 2021, 8:14pm UTC](https://forum.makecode.com/t/video-micro-bit-v2-with-mbit-bluetooth-app-for-bot-car-robotbit/8934/2 "2021-07-02T20:14:29Z")

</div>

Video: Thanks to @bsiever we are able to use the Mbit app by Yahboom to communicate with one program in a new Micro:bit V2 which has 2 extensions, one for Maqueen bot car (2 wheel) and one extension for the Robotbit motor driver with 4 DC motors. This works with both iOS and Android Bluetooth. Unlike Micro:bit V1.5 we do NOT need to re-program the V2 for each cell phone platform. Thanks Bill ! MakeCode is in the description of the video:

[![](https://img.youtube.com/vi/4WkQcYJ0KQc/maxresdefault.jpg "MakeCode Mbit App,2 Bot cars, One program on Micro:bit V2, Maqueen and Robot:bit 4X Motor Bot Car") ](https://www.youtube.com/watch?v=4WkQcYJ0KQc)

---

<div class="post-metadata">

### Author: ![Werner\_G](https://avatars.discourse-cdn.com/v4/letter/w/7bcc69/32.png) [@Werner\_G](https://forum.makecode.com/u/Werner_G)
#### Post date: [July 12, 2021, 3:15pm UTC](https://forum.makecode.com/t/video-micro-bit-v2-with-mbit-bluetooth-app-for-bot-car-robotbit/8934/3 "2021-07-12T15:15:52Z")

</div>

Hi Frank, very nice project. By chance I saw this video and it’s funny: I used to build a Wall-E-robot also with the Robotbit-board, same Geekservo-motors and the Mbit-app. Works fine! Since I added two more motors for using Macanum wheels I was not able to compile the code again, and I have no idea what is wrong. Any chance to share our Software?

---

<div class="post-metadata">

### Author: ![frank\_schmidt](https://avatars.discourse-cdn.com/v4/letter/f/7993a0/32.png) [@frank\_schmidt](https://forum.makecode.com/u/frank_schmidt)
#### Post date: [July 12, 2021, 8:23pm UTC](https://forum.makecode.com/t/video-micro-bit-v2-with-mbit-bluetooth-app-for-bot-car-robotbit/8934/4 "2021-07-12T20:23:41Z")

</div>

Yes, @Werner_G , this is the program used I try to include programs in the description of each video: [https://makecode.microbit.org/23873-14806-82298-65556](https://makecode.microbit.org/23873-14806-82298-65556)  
Here is a better program for mecanum wheels which we are developing for cell phone control, works with Microbit V2, iOS and Android. We can add motor control by pressing a piano key in the Mbit app. that is by Yahboom. [https://makecode.microbit.org/\_KyKRJa1kUAbC](https://makecode.microbit.org/_KyKRJa1kUAbC) , I find that if I try to add music, more than just a single tone, it does not compile. That is my only suggestion. Otherwise it always compiles for me.

---

<div class="post-metadata">

### Author: ![frank\_schmidt](https://avatars.discourse-cdn.com/v4/letter/f/7993a0/32.png) [@frank\_schmidt](https://forum.makecode.com/u/frank_schmidt)
#### Post date: [July 12, 2021, 9:04pm UTC](https://forum.makecode.com/t/video-micro-bit-v2-with-mbit-bluetooth-app-for-bot-car-robotbit/8934/5 "2021-07-12T21:04:55Z")

</div>

Video showing the 4X Mecanum wheel transporter with Microbit V2 and Robotbit. The code in the video description includes the extension for DF Robot micro maqueen also. [https://youtu.be/MqcxpH5tRrA](https://youtu.be/MqcxpH5tRrA) . we use the Yahboom Mbit app. on both iOS and Android phones.

---

<div class="post-metadata">

### Author: ![bsiever](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bsiever/32/1032_2.png) [@bsiever](https://forum.makecode.com/u/bsiever)
#### Post date: [July 13, 2021, 1:24am UTC](https://forum.makecode.com/t/video-micro-bit-v2-with-mbit-bluetooth-app-for-bot-car-robotbit/8934/6 "2021-07-13T01:24:13Z")

</div>

Not compiling may be due to being out of memory on the micro:bit. It’s possible that if you’re on a V1 moving to a V2 will help. I think Frank’s example of compilation breaking after adding in just one more feature is likely due to this.

Extensions can use a lot of memory and, in some cases, can be “trimmed” a bit. For example, in response to an earlier thread of conversation about the MBit app, I made a simplified MaQueen library that omits some features. (Here’s the discussion: [Android app/Discord - #13 by bsiever](https://forum.makecode.com/t/android-app-discord/7696/13) ; Here’s the URL for the condensed MaQueen extension — it can be pasted in when searching for an extension: [https://github.com/bsiever/pxt-maqueen](https://github.com/bsiever/pxt-maqueen))

Bill

---

<div class="post-metadata">

### Author: ![Werner\_G](https://avatars.discourse-cdn.com/v4/letter/w/7bcc69/32.png) [@Werner\_G](https://forum.makecode.com/u/Werner_G)
#### Post date: [July 13, 2021, 4:28pm UTC](https://forum.makecode.com/t/video-micro-bit-v2-with-mbit-bluetooth-app-for-bot-car-robotbit/8934/7 "2021-07-13T16:28:26Z")

</div>

Thanks Frank. Your code is running Ok here, I will adapt it to my needs and share it to you.

---

<div class="post-metadata">

### Author: ![frank\_schmidt](https://avatars.discourse-cdn.com/v4/letter/f/7993a0/32.png) [@frank\_schmidt](https://forum.makecode.com/u/frank_schmidt)
#### Post date: [July 13, 2021, 6:32pm UTC](https://forum.makecode.com/t/video-micro-bit-v2-with-mbit-bluetooth-app-for-bot-car-robotbit/8934/8 "2021-07-13T18:32:53Z")

</div>

Maybe you have a YouTube channel, Werner ? If so, it would be great if you could make a video showing your code working. This helps other kids and tutors/parents/teachers to understand what is possible. It does not have to be a professional video . Thanks

---

<div class="post-metadata">

### Author: ![frank\_schmidt](https://avatars.discourse-cdn.com/v4/letter/f/7993a0/32.png) [@frank\_schmidt](https://forum.makecode.com/u/frank_schmidt)
#### Post date: [July 13, 2021, 6:34pm UTC](https://forum.makecode.com/t/video-micro-bit-v2-with-mbit-bluetooth-app-for-bot-car-robotbit/8934/9 "2021-07-13T18:34:56Z")

</div>

Speaking of difficulties with extensions, Bill; I wonder why there is this conflict between Bluetooth and the 51 bit Colorbit extension. I would like to add the 5X5 neopixel Colorbit to our bot car and use the Mbit app also. [https://github.com/51bit/ColorBit](https://github.com/51bit/ColorBit), Thanks,

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/a/a6f6de287f89641307ddc22cedbb4b074398abd0.png)

---

<div class="post-metadata">

### Author: ![Werner\_G](https://avatars.discourse-cdn.com/v4/letter/w/7bcc69/32.png) [@Werner\_G](https://forum.makecode.com/u/Werner_G)
#### Post date: [July 13, 2021, 6:40pm UTC](https://forum.makecode.com/t/video-micro-bit-v2-with-mbit-bluetooth-app-for-bot-car-robotbit/8934/10 "2021-07-13T18:40:10Z")

</div>

So, here we are: [https://makecode.microbit.org/\_5uWf8jWjjfeR](https://makecode.microbit.org/_5uWf8jWjjfeR)  
Avoid mode is not working properly. Any idea?  
Normally, I am using M5Stack-parts, but still there is no BT-control possible

---

<div class="post-metadata">

### Author: ![bsiever](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bsiever/32/1032_2.png) [@bsiever](https://forum.makecode.com/u/bsiever)
#### Post date: [July 13, 2021, 10:36pm UTC](https://forum.makecode.com/t/video-micro-bit-v2-with-mbit-bluetooth-app-for-bot-car-robotbit/8934/11 "2021-07-13T22:36:21Z")

</div>

Hi @frank_schmidt, I think I already answered here: [Extension Conflict?](https://forum.makecode.com/t/extension-conflict/8923), but the basic summary: Both Bluetooth and NeoPixels require really precise timing and both are at the limit of what the v1 could do. It couldn’t reliably do both at the same time. The ColorBit extension uses Microsoft’s ws2812b (NeoPixel) Extension…Microsoft was aware that you couldn’t reliably use both Bluetooth and NeoPixels, so they made their ws2812b extension mutually exclusive with Bluetooth…which means that the ColorBit also ends up disablinging Bluetooth.

About the only alternative is to use some other external module that eliminates the timing problem or use multiple micro:bits. For example, two micro:bits could communicate over a wired (serial) connection. One micro:bit would be able to handle bluetooth and the other neopixels. Of course, this introduces others sources of complexity 🙂

---

<div class="post-metadata">

### Author: ![Werner\_G](https://avatars.discourse-cdn.com/v4/letter/w/7bcc69/32.png) [@Werner\_G](https://forum.makecode.com/u/Werner_G)
#### Post date: [July 14, 2021, 4:31pm UTC](https://forum.makecode.com/t/video-micro-bit-v2-with-mbit-bluetooth-app-for-bot-car-robotbit/8934/12 "2021-07-14T16:31:34Z")

</div>

Hi @frank: your videos are really great, I cannot make it better. And my English is not as good to explain something. But you can please explain the wiring of your 4X Mecanum Wheel transporter - is it:  
FrontL = M1A, FrontR = M1B, BackL = M2A, BackR = M2B ?  
@ Bill: my experience is to use functions for drive-definitions to reduce Code size, and I checked that the MaQueen-lib causes conflicts with the US-sensor. Would be great to use VL53LXX instead.

---

<div class="post-metadata">

### Author: ![frank\_schmidt](https://avatars.discourse-cdn.com/v4/letter/f/7993a0/32.png) [@frank\_schmidt](https://forum.makecode.com/u/frank_schmidt)
#### Post date: [July 14, 2021, 6:43pm UTC](https://forum.makecode.com/t/video-micro-bit-v2-with-mbit-bluetooth-app-for-bot-car-robotbit/8934/13 "2021-07-14T18:43:09Z")

</div>

My left front is M2B, FrontR is M1A,BackL is M2A and Back R is M1B., This is the way Phillip wired it on Monday and then he worked out the code to match. You program has our car going right when left arrow is pressed etc. No problem, we are just working out the early details. We will expand many motors using piano keys as controls; it the Microbit can handle the extra processing. l have not tried ultrasonic at all. I was stationed in Germany in the US Air Force in the early 1970’s; it was near Bitburg and called “West Germany” at the time.

---

<div class="post-metadata">

### Author: ![frank\_schmidt](https://avatars.discourse-cdn.com/v4/letter/f/7993a0/32.png) [@frank\_schmidt](https://forum.makecode.com/u/frank_schmidt)
#### Post date: [July 14, 2021, 6:51pm UTC](https://forum.makecode.com/t/video-micro-bit-v2-with-mbit-bluetooth-app-for-bot-car-robotbit/8934/14 "2021-07-14T18:51:41Z")

</div>

Video, I demonstrate the use of Mbit app and Neopixel. This is with Android and Robotbit using @Werner_G program and I added Neopixel blocks to the piano key controls. I avoid timing issues altogether and have not tested these displays beyond simple on/off/color. I did include the share code in the video description and I did turn off the LED display on the Microbit in code. With Neopixel activated and displaying color, it does not seem to interrupt the Bluetooth controls so I think the kids will find this useful displaying their own simple colors and patterns for each motor action or musical notes. I would think a Neopixel strip should work just as well. We have made a Barbie wedding ring with a single Neopixel in the past so we will try that also here. Thanks @bsiever for getting us started on this bluetooth project. I think your Minimal Maqueen can be included without corrupting the compiler so kids can switch back and forth between different bots with a simple base program.

---

<div class="post-metadata">

### Author: ![frank\_schmidt](https://avatars.discourse-cdn.com/v4/letter/f/7993a0/32.png) [@frank\_schmidt](https://forum.makecode.com/u/frank_schmidt)
#### Post date: [July 15, 2021, 4:10pm UTC](https://forum.makecode.com/t/video-micro-bit-v2-with-mbit-bluetooth-app-for-bot-car-robotbit/8934/15 "2021-07-15T16:10:51Z")

</div>

[![](https://img.youtube.com/vi/nLm9J63oI94/maxresdefault.jpg "Mbit app. with Neopixel, Bluetooth and Robotbit , Microbit V2") ](https://www.youtube.com/watch?v=nLm9J63oI94)

---

<div class="post-metadata">

### Author: ![bsiever](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bsiever/32/1032_2.png) [@bsiever](https://forum.makecode.com/u/bsiever)
#### Post date: [July 15, 2021, 4:10pm UTC](https://forum.makecode.com/t/video-micro-bit-v2-with-mbit-bluetooth-app-for-bot-car-robotbit/8934/16 "2021-07-15T16:10:59Z")

</div>

@Werner_G Can you provide a little more detail about the conflict? Are you getting a specific error message or is the compilation just failing?

---

<div class="post-metadata">

### Author: ![Werner\_G](https://avatars.discourse-cdn.com/v4/letter/w/7bcc69/32.png) [@Werner\_G](https://forum.makecode.com/u/Werner_G)
#### Post date: [July 15, 2021, 5:54pm UTC](https://forum.makecode.com/t/video-micro-bit-v2-with-mbit-bluetooth-app-for-bot-car-robotbit/8934/17 "2021-07-15T17:54:00Z")

</div>

Yes, defining right and left is of course also depending of how you locate the Micro:bit. My actual code is here:

> **[Microbit\_Robotbit\_Sonar\_4M\_BLE](https://makecode.microbit.org/37848-88079-36659-54845)**
>
> Erstellt mit ❤️ in Microsoft MakeCode for micro:bit.

I am wondering why you use ‘150’ for rotating left or right. Maybe you can explain, because I still cannot go direct 90° or 270°. Reason might be my motors, which are not calibrated and not running with same speed. And: my ‘avoid obstacle’-mode is now working. A new video from you is coming?

So, we are in same age doing something for our grandchildren?! I am living in Dortmund, not too far away from Bitburg.

---

<div class="post-metadata">

### Author: ![Werner\_G](https://avatars.discourse-cdn.com/v4/letter/w/7bcc69/32.png) [@Werner\_G](https://forum.makecode.com/u/Werner_G)
#### Post date: [July 15, 2021, 8:13pm UTC](https://forum.makecode.com/t/video-micro-bit-v2-with-mbit-bluetooth-app-for-bot-car-robotbit/8934/18 "2021-07-15T20:13:24Z")

</div>

I’m new in this forum. Therefore, my answers are being published after approval, mainly after some hours.

@bsiever: the Maqueen minimum setup can be compiled, no prob. As soon as you want to include the Sonar, you cannot compile. No specific error-message. As soon as you delete all Maqueen elements, compilation works.

---

<div class="post-metadata">

### Author: ![bsiever](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bsiever/32/1032_2.png) [@bsiever](https://forum.makecode.com/u/bsiever)
#### Post date: [July 16, 2021, 6:09pm UTC](https://forum.makecode.com/t/video-micro-bit-v2-with-mbit-bluetooth-app-for-bot-car-robotbit/8934/19 "2021-07-16T18:09:26Z")

</div>

Welcome to the forum @Werner_G! (By the way, I think posts are always delayed for everyone to ensure appropriate content)

I just tried your example and it did give me a .hex file. That is, it appears to have compiled fine. Here’s a shared version, but I haven’t changed anything at all: [https://makecode.microbit.org/\_MjhLh18wg5Ao](https://makecode.microbit.org/_MjhLh18wg5Ao)

The first few times I tried to download it, I wasn’t given a hex file, as if the compilation failed…but now it seems to work.

Bill

---

<div class="post-metadata">

### Author: ![Werner\_G](https://avatars.discourse-cdn.com/v4/letter/w/7bcc69/32.png) [@Werner\_G](https://forum.makecode.com/u/Werner_G)
#### Post date: [July 20, 2021, 5:14pm UTC](https://forum.makecode.com/t/video-micro-bit-v2-with-mbit-bluetooth-app-for-bot-car-robotbit/8934/21 "2021-07-20T17:14:48Z")

</div>

Rather complicated, this makecode-forum. I was asking how to send a PN, but even this violates the [code of conduct](https://forum.makecode.com/t/makecode-forum-code-of-conduct/1729). Dortmunder Hansa Bier is not so delicious than other beers from here, but the ColorBit looks very fine. CU, Werner

[Next page](https://forum.makecode.com/t/video-micro-bit-v2-with-mbit-bluetooth-app-for-bot-car-robotbit/8934.md?page=2)
