MicroBlocks Test/Demo App

I made an App that I can use to demo and test micro-controllers. I can send commands, test displays, use a controller to control robots or cars and receive data from the micro-controller.

The micro-controller has to be programmed with MicroBlocks.




This is version 2.
Blocks are more basic, so for beginning App Inventor users. A lot of when button click blocks. Total 626 blocks
MicroBlocksRemoteControl2.aia (559.2 KB)

This is version 3.
More advanced routines. Total 496 blocks.
MicroBlocksRemoteControl3.aia (555.8 KB)

Both versions work the same.

4 Likes

This works for instance with ESP32, Calliope Mini 3, micro:bit v2, M5Stack Core, Raspberry Pi Pico W, Citilab ED1, Adafruit CLUE, etc. All micro controllers supported by MicroBlocks that have BLE.

The code for, in this case, the Calliope mini 3, to broadcast values to the App Inventor app looks like this. You can see, really simple.

image

1 Like

I made a simple Google Slides document with example code for App Inventor <-> MicroBlocks. For every screen in the app so you can see how to send or receive data. MicroBlocks Remote Control - Google Slides

A new extension is coming. It is not ready yet.

Makes using microcontrollers so much easier. @Ghica @DavidKim

Using MicroBlocks and a Calliope Mini 3 to control a bird in an app that is made using App Inventor. I really love this.

Did my first test with the extension. This is all you need to get a connection with a MicroBlocks programmed micro controller and get info back. How easy can it be.

This was the code on the micro controller
image

Doing some real time graphing with code from @Kevinkun
Here I show the Tilt Y of the micro controller.

We had a great meeting with David Kim from the App Inventor team today. During the meeting the question came up if you could connect multiple micro-controllers using the MicroBlocks extension.

I started a little test and connected 6 micro-controllers using BLE at the same time that are sending values in real time to the app. I could probably connect more micro-controllers but this was a great proof of concept.

These are all the blocks I used.

1 Like