Skip to content

Commit 12606db

Browse files
committed
advanced
1 parent 068cc64 commit 12606db

File tree

8 files changed

+54
-1
lines changed

8 files changed

+54
-1
lines changed
238 KB
Loading
35.7 KB
Loading
1.98 MB
Loading
261 KB
Loading
167 KB
Loading
1.79 MB
Loading

content/hardware/03.nano/boards/nano-matter/tutorials/08.ml-magic-wand/content.md

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ This tutorial describes how to build a gesture recognition system based on a mac
2929
The Arduino Nano Matter acts as a digital magic wand 🪄, where sensor data from its movements is processed by a model to classify and detect specific gestures. The inference results will tur
3030

3131
## Hardware and Software Requirements
32+
33+
![Hardware Required](assets/hardware.png)
34+
3235
### Hardware Requirements
3336

3437
- [Arduino Nano Matter](https://store.arduino.cc/products/nano-matter) (x1)
35-
- Nano Connector Carrier (x1)
3638
- Modulino Movement (x1)
3739
- Modulino Pixels (x1)
3840
- Qwiic cables (x2)
@@ -44,3 +46,54 @@ The Arduino Nano Matter acts as a digital magic wand 🪄, where sensor data fro
4446
- [Arduino IDE 2.0+](https://www.arduino.cc/en/software) or [Arduino Cloud Editor](https://create.arduino.cc/editor)
4547
- [Modulino library](https://github.com/arduino-libraries/Modulino). This library adds the support for the Modulinos, you can install it from the **Library Manager** in the Arduino IDE.
4648
- [Silicon Labs core](https://github.com/SiliconLabs/arduino). This enables the Silicon Labs hardware including the Arduino Nano Matter support. You can install it from the **Boards Manager** in the Arduino IDE.
49+
50+
51+
### Download the Project Code
52+
53+
[![ ](assets/download.png)](assets/magic_wand_modulino.zip)
54+
55+
Download the complete project code [here](assets/magic_wand_modulino.zip).
56+
57+
### Board Core and Libraries
58+
59+
The **Silicon Labs** core contains the libraries and examples you need to work with the board's components, such as its Matter, Bluetooth® Low Energy, and I/Os. To install the Nano Matter core, navigate to **Tools > Board > Boards Manager** or click the Boards Manager icon in the left tab of the IDE. In the Boards Manager tab, search for `Nano Matter` and install the latest `Silicon Labs` core version.
60+
61+
![Installing the Silicon Labs core in the Arduino IDE](assets/bsp-install.png)
62+
63+
***The core version for this tutorial must be 2.3.0 or greater for the support of the Silabs Tensorflow Lite library.***
64+
65+
## Project Setup
66+
67+
### Schematic Diagram
68+
69+
Use the following connection diagram for the project:
70+
71+
![Project Wiring Diagram](assets/wiring.png)
72+
73+
The Modulino are daisy-chained leveraging the Qwiic I2C connection with the Nano Matter. You can use the Nano Connector Carrier that includes a Qwiic connector, or you can directly solder the wires to the Nano Matter following the mapping below:
74+
75+
| **Qwiic Connection** | **Color** | **Arduino Pin** |
76+
| :------------------: | :-------: | :-------------: |
77+
| SCL | Yellow | A5 |
78+
| SDA | Blue | A4 |
79+
| VCC | Red | 3.3V |
80+
| GND | Black | GND |
81+
82+
### Programming
83+
84+
In the Arduino IDE upper menu, after selecting the **Nano Matter board** from the Silicon Labs core, navigate to **Tools > Protocol stack** and select **None**.
85+
86+
![Protocol stack configuration](assets/stack.png)
87+
88+
***The code will only compile if the Protocol Stack is set to None.***
89+
90+
You can download the complete project code from [here](assets/magic_wand_modulino.zip).
91+
92+
Let's go through some important code sections to make this application fully operational, starting with the required libraries:
93+
94+
Download the `Modulino.h` library from the Arduino IDE Library Manager. This will enable the support for the Modulino Pixels and the Modulino Movement.
95+
96+
![Modulino Library Installation](assets/modulino.png)
97+
98+
99+

0 commit comments

Comments
 (0)