From 1a8108b184666d9ad39ba940bffa0a96a6449f33 Mon Sep 17 00:00:00 2001 From: Carla Date: Thu, 23 May 2024 15:17:34 +0800 Subject: [PATCH] Fix:Some duplicate steps were removed --- .../Actuator/Grove-mp3-v4.md | 108 +++++++----------- 1 file changed, 43 insertions(+), 65 deletions(-) diff --git a/docs/Sensor/Grove/Grove_Accessories/Actuator/Grove-mp3-v4.md b/docs/Sensor/Grove/Grove_Accessories/Actuator/Grove-mp3-v4.md index bc1172f90916..5e02607e7a01 100644 --- a/docs/Sensor/Grove/Grove_Accessories/Actuator/Grove-mp3-v4.md +++ b/docs/Sensor/Grove/Grove_Accessories/Actuator/Grove-mp3-v4.md @@ -54,14 +54,40 @@ If you are using the Grove MP3 module for the first time, then you may first nee
+### Software Preparation -## Arduino Library Overview +**Step 1.** Launch the Arduino application. + +
+ +
+ Download Arduino IDE + +
+ +**Step 2.** Select your development board model and add it to the Arduino IDE. + +- If you want to use **Seeed Studio XIAO SAMD21** for the later routines, please refer to **[this tutorial](https://wiki.seeedstudio.com/Seeeduino-XIAO/#software)** to finish adding. + +- If you want to use **Seeed Studio XIAO RP2040** for the later routines, please refer to **[this tutorial](https://wiki.seeedstudio.com/XIAO-RP2040-with-Arduino/#software-setup)** to finish adding. + +- If you want to use **Seeed Studio XIAO nRF52840** for the later routines, please refer to **[this tutorial](https://wiki.seeedstudio.com/XIAO_BLE/#software-setup)** to finish adding. + +- If you want to use **Seeed Studio XIAO ESP32C3** for the later routines, please refer to **[this tutorial](https://wiki.seeedstudio.com/XIAO_ESP32C3_Getting_Started#software-setup)** to finish adding. + +- If you want to use **Seeed Studio XIAO ESP32S3** for the later routines, please refer to **[this tutorial](http://wiki.seeedstudio.com/xiao_esp32s3_getting_started#software-preparation)** to finish adding. + +- If you want to use **Seeeduino V4.3** for the later routines, please refer to **[this tutorial](https://wiki.seeedstudio.com/Seeeduino_v4.2/)** to finish adding. + +- If you want to use **Arduino UNO R4 WiFi** for the later routines, please click **Tools-> Board-> Boards Manager...**, print keyword "UNO R4 WiFi" in the searching blank and install the latest version (or the version you want to use). + +
+ + +### Arduino Library Overview -:::tip -If this is your first time using Arduino, we highly recommend you to refer to [Getting Started with Arduino](https://wiki.seeedstudio.com/Getting_Started_with_Arduino/). -::: -### 1. Seeed Serial MP3 Player Library +#### 1. Seeed Serial MP3 Player Library
@@ -71,7 +97,7 @@ If this is your first time using Arduino, we highly recommend you to refer to [G

-#### Function +##### Function Before we get started developing a sketch, let's look at the available functions of the library. @@ -165,7 +191,7 @@ Before we get started developing a sketch, let's look at the available functions - **Output Parameters**: Returns 0 for successful execution and -1 for unsuccessful execution. -#### Default Variables +##### Default Variables ```cpp #define AT_HEADER "AT+" @@ -216,7 +242,7 @@ typedef enum { } STORAGE; ``` -#### Installation +##### Installation
@@ -228,7 +254,7 @@ Since you have downloaded the zip Library, open your Arduino IDE, click on **Ske
-### 2. Grove Gesture Library +#### 2. Grove Gesture Library
-#### Function +##### Function Before we get started developing a sketch, let's look at the available functions of the library. @@ -249,7 +275,7 @@ Before we get started developing a sketch, let's look at the available functions 2. `bool getResult(paj7620_gesture_t& res)` —— The function serves to obtain the result of the sensor's recognition of the gesture. -#### Installation +##### Installation Since you have downloaded the zip Library, open your Arduino IDE, click on **Sketch > Include Library > Add .ZIP Library**. Choose the zip file you just downloaded,and if the library install correct, you will see **Library added to your libraries** in the notice window. Which means the library is installed successfully. @@ -263,30 +289,7 @@ if the library install correct, you will see **Library added to your libraries** Now that we have our library installed and we understand the basic functions, let's run some examples for our Seeeduino V4.3 to see how it behaves. -**Step 1.** Launch the Arduino application. - -
- - - -**Step 2.** Select your development board model and add it to the Arduino IDE. - -- If you want to use **Seeed Studio XIAO SAMD21** for the later routines, please refer to **[this tutorial](https://wiki.seeedstudio.com/Seeeduino-XIAO/#software)** to finish adding. - -- If you want to use **Seeed Studio XIAO RP2040** for the later routines, please refer to **[this tutorial](https://wiki.seeedstudio.com/XIAO-RP2040-with-Arduino/#software-setup)** to finish adding. - -- If you want to use **Seeed Studio XIAO nRF52840** for the later routines, please refer to **[this tutorial](https://wiki.seeedstudio.com/XIAO_BLE/#software-setup)** to finish adding. - -- If you want to use **Seeed Studio XIAO ESP32C3** for the later routines, please refer to **[this tutorial](https://wiki.seeedstudio.com/XIAO_ESP32C3_Getting_Started#software-setup)** to finish adding. - -- If you want to use **Seeed Studio XIAO ESP32S3** for the later routines, please refer to **[this tutorial](http://wiki.seeedstudio.com/xiao_esp32s3_getting_started#software-preparation)** to finish adding. - -- If you want to use **Seeeduino V4.3** for the later routines, please refer to **[this tutorial](https://wiki.seeedstudio.com/Seeeduino_v4.2/)** to finish adding. - -**Step 3.** Materials required +**Step 1.** Materials required This tutorial will take Seeeduino V4.3 as an example to explain the use of Grove MP3 module. Then you may need to prepare the following materials. @@ -316,14 +319,14 @@ This tutorial will take Seeeduino V4.3 as an example to explain the use of Grove
-**Step 4.** Hardware Connection +**Step 2.** Hardware Connection Connect the Grove - MP3 V4.0 to the **UART** port of the Seeeduino V4.3. Then, Connect the Seeeduino to PC via a USB cable.

-- **Step 5.** Open **WT2605C_Terminal_player** example via the path: **File** → **Examples** → **Seeed_Serial_MP3_Player** → **WT2605C_Terminal_player**. You can play `.mp3` format music file using this moudle, and use 3.5mm Audio Jack, Speaker via JST2.0 speaker port or even output both in the same time. +**Step 3.** Open **WT2605C_Terminal_player** example via the path: **File** → **Examples** → **Seeed_Serial_MP3_Player** → **WT2605C_Terminal_player**. You can play `.mp3` format music file using this moudle, and use 3.5mm Audio Jack, Speaker via JST2.0 speaker port or even output both in the same time. The `WT2605C_Terminal_player` Example code is as follow: @@ -441,7 +444,7 @@ void loop() { } ``` -- **Step 6.** Upload the Demo. If you do not know how to upload the code, please check [How to upload code](https://wiki.seeedstudio.com/Upload_Code/). Open the **Serial Monitor** of Arduino IDE by click **Tool-> Serial Monitor**. Set the baud rate to **115200**. The result should look like below. +**Step 4.** Upload the Demo. If you do not know how to upload the code, please check [How to upload code](https://wiki.seeedstudio.com/Upload_Code/). Open the **Serial Monitor** of Arduino IDE by click **Tool-> Serial Monitor**. Set the baud rate to **115200**. The result should look like below.

@@ -518,32 +521,7 @@ Connect the Grove - MP3 V4.0 to the **UART** port of the Arduino UNO R4 WiFi, co {{width:500, height:'auto'}}/> -**Step 4.** Launch the Arduino application. - -
- -
- Download Arduino IDE - -
- -**Step 5.** Select your development board model and add it to the Arduino IDE. - -Click **Tools-> Board-> Boards Manager...**, print keyword "UNO R4 WiFi" in the searching blank and install the latest version (or the version you want to use). - -
- - -**Step 6.** Download the **Gesture_Control_Music.zip** and unzip it. Open Gesture_Control_Music example by Arduibo IDE via the path: **File → Gesture-Control-Music-main → examples → Gesture_Control_Music → Gesture_Control_Music.ino**. - - -
- - Download the Library - -

- -The `Gesture_Control_Music` example code is as follow: +**Step 4.** Open Arduibo IDE, The `Gesture_Control_Music` example code is as follow: ```cpp #include "WT2605C_Player.h" @@ -659,7 +637,7 @@ int printResultCombinedMode(const pag7660_gesture_t& result) { } ``` -**Step 7.** Upload the Demo. If you do not know how to upload the code, please check [How to upload code](https://wiki.seeedstudio.com/Upload_Code/). Open the **Serial Monitor** of Arduino IDE by click **Tool-> Serial Monitor**. Effective gestures you can refer to [here](https://wiki.seeedstudio.com/grove_gesture_paj7660/#hardware-overview), the result should look like below. +**Step 5.** Upload the Demo. If you do not know how to upload the code, please check [How to upload code](https://wiki.seeedstudio.com/Upload_Code/). Open the **Serial Monitor** of Arduino IDE by click **Tool-> Serial Monitor**. Effective gestures you can refer to [here](https://wiki.seeedstudio.com/grove_gesture_paj7660/#hardware-overview), the result should look like below.