1. Introduction
This manual provides detailed instructions for the DFROBOT Gravity Offline Voice Recognition Sensor (Model SEN0539-EN). This module is designed for easy integration into various microcontroller projects, offering robust offline voice command capabilities without requiring a network connection. It supports compatibility with popular platforms such as micro:bit, Arduino, and ESP32, utilizing both I2C and UART communication protocols.
Key features of the SEN0539-EN module include:
- Offline Voice Recognition: Operates independently without internet access, ensuring privacy and fast response times.
- Extensive Built-in Commands: Features 121 predefined command words for immediate use.
- Customizable Commands: Supports self-learning for up to 17 custom command words, allowing for unique voice or sound triggers.
- Integrated Audio: Includes a built-in microphone and speaker for real-time voice feedback.
- Broad Compatibility: Seamlessly integrates with micro:bit, Arduino Uno, and ESP32 development boards.
- Flexible Communication: Offers both I2C and UART interfaces via a Gravity connector.
2. Product Overview
The DFROBOT Gravity Offline Voice Recognition Sensor is a compact and highly integrated module. Below are images illustrating its physical characteristics and key components.

The module features two integrated microphones for voice input, a main processing unit, and various connectors for power and communication. It also includes switches for selecting communication modes (I2C/UART) and speaker outputs.

The compact size of the module makes it suitable for embedding into various projects where space is limited.

The Gravity interface simplifies connections to compatible development boards, while the switches allow for easy configuration of the communication protocol.
3. Setup
This section details the steps for setting up your DFROBOT Gravity Offline Voice Recognition Sensor with a compatible microcontroller.
3.1. Compatibility
The module is compatible with the following development platforms:
- micro:bit
- Arduino Uno
- ESP32

3.2. Connection
The module supports both I2C and UART communication. Select the desired protocol using the onboard switches.
- Power Connection: Connect the VCC pin to 3.3V or 5V (depending on your microcontroller's logic level) and GND to ground.
- Communication Protocol Selection: Use the onboard switches to select either I2C or UART mode. Refer to the module's silkscreen for switch positions.
- Data Connection (I2C): If I2C is selected, connect the SDA pin to your microcontroller's SDA pin and SCL to your microcontroller's SCL pin.
- Data Connection (UART): If UART is selected, connect the D/T (TX) pin to your microcontroller's RX pin and C/R (RX) pin to your microcontroller's TX pin.
- External Speaker (Optional): For enhanced audio output, connect an external speaker to the SPK1 or SPK2 connectors.

3.3. Initial Power-Up
Once connected, apply power to your microcontroller. The module should initialize. Consult the specific programming guide for your chosen platform (Arduino, micro:bit, ESP32) for library installation and example code to begin interaction.
4. Operating Instructions
The SEN0539-EN module offers both fixed command words and a self-learning function for custom commands.
4.1. Fixed Command Words
The module comes pre-loaded with 121 fixed command words. These commands are immediately available for use without any prior training. Examples include common phrases for controlling devices or triggering actions. Refer to the product's official documentation or SDK for a complete list of these commands.
4.2. Self-Learning Function for Custom Commands
The module supports the addition of up to 17 custom command words. This feature allows you to train the module to recognize specific sounds or phrases unique to your application.
- Enter Learning Mode: Follow the programming instructions for your microcontroller to put the module into custom command learning mode.
- Record Custom Command: Speak the desired command word or make the specific sound (e.g., whistle, cat meow) clearly into the module's microphone. The module will provide audio feedback indicating successful learning.
- Repeat for Accuracy: For optimal recognition, it is recommended to record each custom command multiple times from different angles and distances.
- Exit Learning Mode: Once all custom commands are recorded, exit the learning mode as per your programming guide.

4.3. Voice Feedback
The module includes a built-in speaker for real-time voice feedback of recognition results. This allows for immediate confirmation of recognized commands. External speakers can also be connected for louder or more specialized audio output.
4.4. Offline Operation
A significant advantage of this module is its ability to operate completely offline. This means no internet connection is required for voice recognition, ensuring enhanced privacy and security as conversations are not recorded or uploaded to cloud services. This also contributes to faster response times for command execution.
5. Applications
The DFROBOT Gravity Offline Voice Recognition Sensor is versatile and can be integrated into a wide range of interactive projects.
- Smart Home Automation: Control lights, fans, or other appliances with voice commands. For example, an intelligent window system can automatically close upon recognizing "close the window" during rain or thunder.
- Interactive Robotics: Enable robots to respond to spoken commands or specific sounds. A robotic pet feeder could dispense food when it recognizes a cat's meow.
- Educational Projects: Ideal for teaching basic electronics, programming, and AI concepts through hands-on voice-controlled projects.
- Accessibility Solutions: Develop voice-activated interfaces for individuals with mobility challenges.

5.1. Official Product Videos
The following videos demonstrate the capabilities and applications of voice recognition modules, including those from DFROBOT and related brands.
6. Specifications
Below are the technical specifications for the DFROBOT Gravity Offline Voice Recognition Sensor (Model SEN0539-EN).
| Feature | Specification |
|---|---|
| Model Number | SEN0539-EN |
| Dimensions (LxWxH) | 1.93 x 1.26 x 1.26 inches (49 x 32 x 32 mm) |
| Item Weight | 0.704 ounces |
| Communication Interfaces | I2C, UART (Gravity interface) |
| Built-in Command Words | 121 |
| Custom Command Words | Up to 17 (self-learning function) |
| Microphone | Integrated |
| Speaker | Integrated, with external speaker interface |
| Network Requirement | None (offline operation) |
| Processor Brand | Multiple |
| Number of Processors | 1 |
7. Maintenance
Proper maintenance ensures the longevity and optimal performance of your voice recognition sensor.
- Cleaning: Use a soft, dry cloth to gently clean the module. Avoid using liquids or abrasive cleaners.
- Storage: Store the module in a cool, dry environment, away from direct sunlight, extreme temperatures, and high humidity.
- Handling: Handle the module by its edges to avoid touching sensitive electronic components. Static electricity can damage the device.
- Firmware Updates: Periodically check the DFROBOT official website for any available firmware updates that may improve performance or add new features.
8. Troubleshooting
This section addresses common issues you might encounter with the voice recognition sensor.
- Module Not Responding:
- Verify all power and communication connections are secure and correct.
- Ensure the correct communication protocol (I2C/UART) is selected via the onboard switches.
- Check your microcontroller's code for proper initialization and command sending.
- Some users have reported that the module may stop responding to wake commands after extended periods. A power cycle (turning off and on) of the module or the entire system often resolves this. Consider implementing periodic system reboots in your application if this issue persists.
- Poor Voice Recognition:
- Ensure the environment is quiet and free from excessive background noise during command input.
- Speak clearly and consistently when issuing commands, especially for custom-trained words.
- If using custom commands, retrain them in a quiet environment, speaking distinctly.
- Check the distance to the microphone; optimal distance is typically within a few feet.
- No Audio Feedback:
- Ensure the built-in speaker is not obstructed.
- If using an external speaker, verify its connection and functionality.
- Check your code to ensure audio feedback is enabled and configured correctly.
9. Warranty and Support
For warranty information, technical support, and further resources, please refer to the official DFROBOT website or contact their customer service directly. Product documentation, SDKs, and community forums are often available to assist with project development and troubleshooting.
DFROBOT Official Website: www.dfrobot.com


