1. บทนำ
The DFRobot Gravity Offline Language Self Learning Voice Recognition Sensor (DF2301QG) is an efficient solution designed for human-computer interaction, machine learning, voice assistants, and smart home voice control projects. This module offers ease of use and broad compatibility with popular development platforms such as Arduino, micro:bit, and ESP32.
คุณสมบัติที่สำคัญ ได้แก่:
- ง่ายต่อการใช้: Plug-and-play functionality via I2C and UART communication.
- 121 Built-in Command Words: Pre-programmed commands for common educational and smart home scenarios (e.g., "Play music," "Open the door," "Turn on the light").
- Self-Learning Function: Supports adding up to 17 customized command words in any language or sound.
- การทำงานแบบออฟไลน์: Functions without an internet connection, ensuring privacy and reliability in various environments.
- การบูรณาการสูง: Features an onboard speaker and microphone, reducing wiring complexity and saving space.
- Real-Time Voice Feedback: Provides immediate recognition results for an improved user experience.


2. คุณสมบัติ
- เป็นมิตรกับผู้ใช้: Plug and play, compatible with Arduino UNO, micro:bit, and ESP32.
- 121 Pre-Programmed Commands: Ready for immediate use without any setup.
- Self-Learning Capability: Supports the addition of 17 customized command words.
- Offline Operation, Enhanced Privacy: No network required, ensuring data privacy.
- การบูรณาการสูง: Includes an onboard speaker and microphone.
- Instant Voice Feedback: Provides real-time recognition results.
3. การสมัคร
- Voice recognition interaction
- Voice-controlled terminal devices
- Educational and competitive project development
4. ข้อมูลจำเพาะ
| พารามิเตอร์ | ค่า |
|---|---|
| ปฏิบัติการฉบับที่tage | 3.3 - 5 โวลต์ |
| ค่าสูงสุดในการใช้งาน | ≤370 mA (at 5V) |
| อินเทอร์เฟซการสื่อสาร | I2C/UART |
| ที่อยู่ I2C | ขนาด 0x64 |
| Fixed Commands | 121 |
| Fixed Wake-up Command | 1 |
| Custom Commands | 17 |
| Learning Activation Command | 1 |
| Onboard Microphone Sensitivity | -28เดซิเบล |
| ขนาดโมดูล | 49 × 32 mm / 1.93 × 1.26 inches |
| อุณหภูมิในการทำงาน | 0-70℃ |


5. การตั้งค่า
This section provides general guidance for connecting the Voice Recognition Module to various development boards. For detailed, platform-specific instructions, refer to the official DFRobot product wiki.
5.1 การเชื่อมต่อทางกายภาพ
- Identify Communication Mode: The module supports both I2C and UART communication. Locate the communication mode selection switch on the module (labeled I2C & UART).
- เลือกโหมด: Set the switch to the desired communication mode (I2C or UART) based on your project requirements and microcontroller capabilities.
- เชื่อมต่อพลังงานและข้อมูล: Use the provided Gravity-4P I2C/UART Sensor Connector to connect the module to your microcontroller. Ensure correct pin connections for VCC, GND, and data lines (D/T, C/R for I2C/UART).

5.2 แผนผังการเดินสายไฟ
5.2.1 Arduino Uno (I2C Communication)
Connect the module to an Arduino Uno using the I2C interface. Ensure the communication mode switch on the module is set to I2C.

5.2.2 Arduino Uno (UART Communication)
Connect the module to an Arduino Uno using the UART interface. Ensure the communication mode switch on the module is set to UART.

5.2.3 micro:bit (I2C Communication)
Properly connect the micro:bit motherboard and an IO expansion board. Set the communication mode selection switch of the voice recognition module to I2C, then connect it to the expansion board.

6. คู่มือการใช้งาน
6.1 Using Built-in Commands
The module comes with 121 pre-programmed command words for common tasks. Once the module is powered and correctly configured with your microcontroller, you can use these commands directly. Refer to the product wiki for the full list of built-in commands.

6.2 Self-Learning Function for Custom Commands
The module allows you to add up to 17 customized command words. This feature enables you to train the module to recognize any language or sound.
- เปิดใช้งานโหมดการเรียนรู้: Use the designated wake-up word (refer to the product wiki for the specific wake-up word).
- Initiate Command Learning: After the wake-up word, say "Learning command word."
- Record Custom Command: Repeat your desired custom command three times clearly. The module will provide real-time feedback during this process.
- การยืนยัน: The module will confirm when the new command has been successfully learned.

6.3 วิดีโอสาธิต
7. การบำรุงรักษา
To ensure the longevity and optimal performance of your DFRobot Gravity Voice Recognition Sensor, follow these maintenance guidelines:
- ให้แห้ง: ควรหลีกเลี่ยงการนำโมดูลไปสัมผัสกับความชื้นหรือของเหลว เนื่องจากอาจทำให้ชิ้นส่วนอิเล็กทรอนิกส์เสียหายได้
- ทำความสะอาดอย่างอ่อนโยน: หากจำเป็นต้องทำความสะอาด ให้ใช้ผ้าแห้งนุ่มๆ เช็ด อย่าใช้สารเคมีรุนแรงหรือวัสดุที่มีฤทธิ์กัดกร่อน
- หลีกเลี่ยงอุณหภูมิที่สูงหรือต่ำเกินไป: Operate and store the module within the specified operating temperature range (0-70℃) to prevent damage.
- จัดการด้วยความระมัดระวัง: Electronic components are delicate. Avoid dropping the module or subjecting it to physical shock.
8 การแก้ไขปัญหา
If you encounter issues with your Voice Recognition Sensor, refer to the following common problems and solutions:
- โมดูลไม่ตอบสนอง:
- Check all wiring connections to ensure they are secure and correctly aligned (VCC, GND, data lines).
- Verify that the module is receiving adequate power (3.3V-5V).
- Confirm the communication mode selection switch (I2C/UART) is set correctly for your microcontroller and code.
- Ensure your microcontroller's code is properly initialized for the selected communication protocol and module address (I2C address: 0x64).
- Poor Voice Recognition Accuracy:
- Speak clearly and at a consistent volume.
- Minimize background noise in the environment during command input.
- Ensure the onboard microphone is not obstructed.
- If using custom commands, try re-training them in a quiet environment, repeating the command three times as instructed.
- Language Recognition Issues:
- The module's built-in commands are primarily in English. If you require commands in a different language, utilize the self-learning function to train custom commands. The self-learning feature supports any language or sound.
- ปัญหาความเข้ากันได้:
- Ensure your development board (Arduino, micro:bit, ESP32) is officially supported.
- Verify that you are using the correct libraries and example code provided by DFRobot for your specific platform and communication mode.
- For Python-based projects (e.g., Raspberry Pi), ensure the necessary Python libraries are installed and configured correctly.
9. เคล็ดลับผู้ใช้
- Leverage Self-Learning: Don't limit yourself to the built-in commands. The self-learning feature is powerful for creating personalized voice controls in any language or for unique sounds.
- Consult the Wiki: The official DFRobot product wiki (link provided in Documents section) is an invaluable resource for detailed tutorials, command lists, and example code for various platforms.
- Optimize Environment: For best recognition results, especially during custom command training, ensure a quiet environment with minimal background noise.
- Check Communication Mode: Always double-check the I2C/UART switch setting on the module matches your software configuration to avoid communication errors.
10. รายการจัดส่ง
แพ็คเกจผลิตภัณฑ์ประกอบด้วยรายการต่อไปนี้:
- Gravity: Voice Recognition Module - I2C & UART x1
- Gravity-4P I2C/UART Sensor Connector x1
11. Documents & Support
For further information, detailed tutorials, and technical support, please refer to the official DFRobot resources:
- Product Wiki: https://wiki.dfrobot.com/SKU_SEN0539-EN_Gravity_Voice_Recognition_Module_I2C_UART
- Command Words List: https://wiki.dfrobot.com/SKU_SEN0539-EN_Gravity_Voice_Recognition_Module_I2C_UART#target_9
- ไดอะแกรมอินเทอร์เฟซ: https://wiki.dfrobot.com/SKU_SEN0539-EN_Gravity_Voice_Recognition_Module_I2C_UART#target_3
- Arduino Tutorial: https://wiki.dfrobot.com/SKU_SEN0539-EN_Gravity_Voice_Recognition_Module_I2C_UART#target_6
- MakeCode Tutorial: https://wiki.dfrobot.com/SKU_SEN0539-EN_Gravity_Voice_Recognition_Module_I2C_UART#target_7
For additional assistance, please contact DFRobot customer support through their official webเว็บไซต์.





