DFROBOT SEN0539-EN

DFROBOT Gravity Offline Voice Recognition Sensor (Model SEN0539-EN) User Manual

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.

DFROBOT Gravity Offline Voice Recognition Sensor module
Figure 2.1: Top view of the DFROBOT Gravity Offline Voice Recognition Sensor module, showing the main chip, microphones, and connectors.

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.

DFROBOT Gravity Offline Voice Recognition Sensor with ruler for dimensions
Figure 2.2: The voice recognition module displayed with a ruler, indicating its compact dimensions of approximately 49x32 mm.

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

Close-up of the Gravity connector and I2C/UART switches on the DFROBOT voice recognition module
Figure 2.3: A close-up view highlighting the Gravity interface, I2C and UART communication selection switches, and speaker output pins.

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
Diagram showing compatibility of the voice recognition module with ESP32, Arduino Uno, and micro:bit boards
Figure 3.1: The voice recognition module is compatible with ESP32, Arduino Uno, and micro:bit development boards.

3.2. Connection

The module supports both I2C and UART communication. Select the desired protocol using the onboard switches.

  1. Power Connection: Connect the VCC pin to 3.3V or 5V (depending on your microcontroller's logic level) and GND to ground.
  2. Communication Protocol Selection: Use the onboard switches to select either I2C or UART mode. Refer to the module's silkscreen for switch positions.
  3. 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.
  4. 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.
  5. External Speaker (Optional): For enhanced audio output, connect an external speaker to the SPK1 or SPK2 connectors.
DFROBOT Gravity Offline Voice Recognition Sensor with a 4-pin Gravity cable connected
Figure 3.2: The module connected via a Gravity cable, illustrating a typical wiring setup.

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.

  1. Enter Learning Mode: Follow the programming instructions for your microcontroller to put the module into custom command learning mode.
  2. 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.
  3. Repeat for Accuracy: For optimal recognition, it is recommended to record each custom command multiple times from different angles and distances.
  4. Exit Learning Mode: Once all custom commands are recorded, exit the learning mode as per your programming guide.
Diagram illustrating custom voice command learning with examples like 'Meow' and 'Snap'
Figure 4.1: The module's self-learning function allows training for custom sounds or words, such as a cat's meow or a finger snap.

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.
Examples of smart home applications controlled by voice, such as turning on lights, playing music, and controlling a fan
Figure 5.1: Voice commands can be used to control various smart home devices like lights, music players, and fans.

5.1. Official Product Videos

The following videos demonstrate the capabilities and applications of voice recognition modules, including those from DFROBOT and related brands.

Video 5.1: Demonstration of an AI Voice Recognition & Broadcasting Sensor Module with custom wake words for robot control and offline speak functionality. This video highlights the potential for personalized voice interaction in robotics.
Video 5.2: An AI Voice Interaction Module in action, showcasing its ability to recognize and respond to commands for various applications. This video illustrates the ease of integrating voice control into projects.
Video 5.3: An AI voice interaction robot dog demonstrating programming learning, broadcasting, voice control, and offline speak capabilities. This video provides a practical example of the module's use in advanced robotic systems.

6. Specifications

Below are the technical specifications for the DFROBOT Gravity Offline Voice Recognition Sensor (Model SEN0539-EN).

FeatureSpecification
Model NumberSEN0539-EN
Dimensions (LxWxH)1.93 x 1.26 x 1.26 inches (49 x 32 x 32 mm)
Item Weight0.704 ounces
Communication InterfacesI2C, UART (Gravity interface)
Built-in Command Words121
Custom Command WordsUp to 17 (self-learning function)
MicrophoneIntegrated
SpeakerIntegrated, with external speaker interface
Network RequirementNone (offline operation)
Processor BrandMultiple
Number of Processors1

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

Ask a question about this manual

Ask about setup, troubleshooting, compatibility, parts, safety, or missing instructions. Manuals+ will review the question and use this page’s manual context to help answer it.

After a successful submission, we securely hash the supplied account or form email before sending it to Microsoft Advertising for conversion attribution. Privacy details.