|
| 1 | +# LLM Module Arduino Quick Start |
| 2 | + |
| 3 | +## Overview |
| 4 | + |
| 5 | +The `LLM Module` can be used with various M5 controllers. This tutorial demonstrates how to control the LLM Module using the `M5Core` series in the `Arduino IDE` with the LLM Module driver library. |
| 6 | + |
| 7 | +<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/static/assets/img/guide/llm/llm/llm_module_device_01.jpg" width="70%" /> |
| 8 | + |
| 9 | +## Environment Setup |
| 10 | + |
| 11 | +- 1.Arduino IDE Installation: Refer to the [Arduino IDE Installation Guide](/en/arduino/arduino_ide) to complete the IDE installation. |
| 12 | + |
| 13 | +- 2.Board Manager Installation: Refer to the [Basic Environment Setup Guide](/en/arduino/arduino_board) to complete the M5Stack board manager installation and select the `M5Core` development board. |
| 14 | + |
| 15 | +<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/static/assets/img/arduino/m5core/quickstart_arduino_core_selectboard.png" width="70%" /> |
| 16 | + |
| 17 | +- 3.Library Installation: Refer to the [Library Management Guide](/en/arduino/arduino_library) to install the `LLM Module` driver library. (Follow prompts to install the dependency library `M5Unified`) |
| 18 | + |
| 19 | +<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/static/assets/img/guide/llm/llm/llm_arduino_lib_01.jpg" width="70%" /> |
| 20 | +<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/static/assets/img/guide/llm/llm/llm_arduino_lib_02.jpg" width="70%" /> |
| 21 | + |
| 22 | +## Program Compilation & Upload |
| 23 | + |
| 24 | +Open the example program "kws_asr" in the driver library, click the upload button, and the program will automatically compile and upload.The wake-up word used in the example program is "HELLO". After waiting for the device to be initialized, it will be woken up using the keyword. |
| 25 | + |
| 26 | +<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/static/assets/img/guide/llm/llm/llm_arduino_example_01.jpg" width="70%" /> |
| 27 | +<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/static/assets/img/guide/llm/llm/llm_arduino_example_02.jpg" width="70%" /> |
| 28 | +<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/static/assets/img/guide/llm/llm/llm_arduino_example_03.jpg" width="70%" /> |
| 29 | +<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/static/assets/img/guide/llm/llm/llm_arduino_example_04.jpg" width="70%" /> |
| 30 | + |
| 31 | +- Examples: |
| 32 | + - `kws_asr`: Uses KWS to wake up and triggers ASR for speech-to-text conversion. (KWS+ASR) |
| 33 | + - `text_assistant`: Inputs text into the LLM model, performs inference, and outputs the result in text form. (LLM) |
| 34 | + - `tts`: Uses the TTS unit to convert text to speech for playback. (TTS) |
| 35 | + - `voice_assistant`: Uses KWS to wake up, triggers ASR for speech-to-text conversion, inputs the converted text into the LLM for inference, and outputs the inference result through TTS as speech. (KWS+ASR+LLM+TTS) |
| 36 | + |
| 37 | +## Related Links |
| 38 | + |
| 39 | +- [LLM Module Arduino Lib](https://github.com/m5stack/M5Module-LLM) |
| 40 | +- [LLM Module Arduino Lib API](/en/guide/llm/llm/arduino_api) |
| 41 | + |
0 commit comments