+21622886281
App Inventor Micro:bit

Display the temperature of the internal sensor of the Micro: bit in the smartphone

Purpose of this tutorial:

In this tutorial we will see how to send the temperature value of the sensor from the Micro: bit card to the smarthpone via bluetooth.

This is why we are going to create two programs: a mobile application with App Inventor for the smartphone and a makecode program for the Micro: bit card.

Necessary Components

  • Micro:bit
  • Smartphone

Makecode program

Here is the makecode program which allows you to connect the Micro: bit card to the smartphone and send a message containing the temperature value by bluetooth.

Creation of the application with App Inventor:

We are going to create a mobile application named ‘receive_temperature’ with App Inventor which allows you to receive a message from the Micro:bit card.

We propose to create the design of the application, with the following visual:

Programming with App Inventor

To program the application, App Inventor offers us to use the Blocks space, which allows you to create a program in the form of a block diagram. Very easy to use but requiring a little programming logic.

Here is the program of the application created in the Blocks area of ​​the Inventor App:




0 commentaire


Leave a comment

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Scroll to Top