
In this tutorial, we will create a system allowing LEDs to be turned on and off (by bluetooth) using the Micro:bit card and a smartphone.
We create two programs: a mobile application with App Inventor for the smartphone and a makecode program for the Micro:bit card.
Test plate
Connecting wires
For mounting the Micro:bit card with LEDs you can see the following article: https://www.robotique.tech/robotics/traffic-light-with-microbit/
Voici le programme makecode qui permet de connecter la carte Micro:bit au smartphone et de recevoir un message contenant l’ordre d’allumer ou éteindre les LEDs.
We are going to create a mobile application named ‘allumer_leds’ with App Inventor which lights up LEDs.
We propose to create the design of the application, with the following visual:
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: