> For the complete documentation index, see [llms.txt](https://resources.digitalmoment.org/artificial-intelligence-micro-bit-and-hardware/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://resources.digitalmoment.org/artificial-intelligence-micro-bit-and-hardware/introduction.md).

# Introduction

{% hint style="info" %}
Vous cherchez la version française de ce guide ?

[Intelligence Artificielle - micro:bit](https://resources.digitalmoment.org/explorer-les-micro-bits-et-lia/)
{% endhint %}

This intermediate workshop will connect an artificial intelligence model with the micro:bit to expand what the micro:bit can sense. Some experience with micro:bits is recommended. The artificial intelligence model will be provided by Teachable Machine, and then connected to the micro:bit using a "bridge" developed by SteamLabs. Watch the video below to see some cool examples of what you can do when AI and micro:bits are combined!&#x20;

{% embed url="<https://www.youtube.com/watch?t=145s&v=Lx0l5U-vVk4>" %}

### Completed Project:

[Complete code for the micro:bit](https://makecode.microbit.org/70383-67017-87509-66742)

### What are we learning? <a href="#h.786smgj10fym" id="h.786smgj10fym"></a>

* How to use the micro:bit's **sensors** to trigger an action
* How **artificial intelligence models** can expand what computers can recognize
* How to **control the micro:bit using AI**

## Tools <a href="#h.786smgj10fym" id="h.786smgj10fym"></a>

* Computer with bluetooth for micro:bit pairing
* Browser (Chrome, Firefox, Safari, Edge)
* [micro:bit website (MakeCode)](https://makecode.microbit.org/)
* [Teachable machine model](https://teachablemachine.withgoogle.com/models/ipNV0uizr/) (or you can train your own using [teachable machine](https://teachablemachine.withgoogle.com/))
* [micro:bit to AI bridge website](https://microbitai.inventor.city/) (created by SteamLabs)
* a micro:bit (the simulator will not work when we are using AI)
* Optional - micro:bit accessories
  * alligator clips
  * headphones/speakers
  * servo motors
  * etc!

<details>

<summary><span data-gb-custom-inline data-tag="emoji" data-code="1f34e">🍎</span> Teacher's Corner</summary>

This workshop will demonstrate how to connect AI to the micro:bit using an AI model and  micro:bit code. Once this works, your students can train their own models and create their own code to make all sorts of cool projects! It might be useful to review the[ Introductory micro:bit workshop](https://resources.kidscodejeunesse.org/micro-bit-introduction-and-exploring-sensors/).&#x20;

</details>

Let's start with **Coding the micro:bit**!
