Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe

How to build a sign-to-speech converter

By Nikhil Agnihotri January 21, 2024

Sign language is a system of communication using visual gestures. However, not everyone understands sign language. So, in this project, we’ll build a device that converts hand gestures into speech.

What’s required: flex sensors, a DF Mini Player, and a microcontroller that has an analog input and supports serial communication via a universal asynchronous receiver/transmitter (UART) — we use ESP32. 

ESP32 offers multiple analog input channels, which nicely accommodate enough flex sensors to interface with a person’s hands and fingers (to relay the sign-language gestures). However, for this project, we’ll use a single flex sensor, which is enough to gesture for food, water, or medicine. 

Adding more flex sensors to your device is possible, including enough to fully convert American sign language into audible speech. 

Components required

  1. ESP32 x1
  2. DF Mini Player x1
  3. MicroSD card x1
  4. Speaker x1
  5. Flex sensor x1
  6. 330Ω resistor x1
  7. Connecting wires 
  8. Breadboard or Perfboard

Circuit connections
DOIT ESP32 DevKit Version 1 is used for this project. The pin diagram of this ESP board is below. 

The DF Mini Player is used to play the audible sentences converted from sign language. It’s a small playback music system that plays audio files from a microSD card. The supported file formats include MP3, WAV, and WMA. The module has a microSD card slot and built-in amplifier and a 3.5mm audio jack for interfacing speakers or headphones. It features UART and USB interfaces to communicate with a microcontroller.

Here’s the DF Mini Player’s pin diagram:

The module has the following pin configurations:

The connections:

  • To connect the DF Mini Player with ESP32, connect the Mini Player’s VCC and GND pins with ESP32’s 3V3 and ground pins, respectively.
  • Next, connect the DF Mini Player’s RX and TX pins with ESP32’s GPIO26 and GPIO27 pins.
  • Then, connect a speaker (<3W) with the DF Mini Player’s SPK1 and SPK2 pins.

To play the DF Mini Player, audio files must be loaded to a MicroSD card. We’ll play three audio instructions from the device. These instructions can be converted from text to speech and downloaded as MP3 files from ttsmp3.com.

The audio instructions are attached as MP3 files below.

  • The MP3 file for the “Please give me water” instruction as a 1.MP3: https://www.engineersgarage.com/wp-content/uploads/2024/01/1.mp3
  • The MP3 file for the “Please give me food” instruction as a 2.MP3:https://www.engineersgarage.com/wp-content/uploads/2024/01/2.mp3
  • The MP3 file for the “Please give me medicine” instruction as a 3.MP3:https://www.engineersgarage.com/wp-content/uploads/2024/01/3.mp3

Upload these files to a MicroSD card and insert the card in the DF Mini Player’s slot.

A flex sensor is used to detect hand gestures (sign language). This sensor is connected to a voltage divider circuit with analog input at the GPIO36 pin.

The circuit diagram for the device:

The flex sensor can be secured to a glove or attached to a person’s fingers with a tape, so it bends with one’s finger as they use gestures to communicate with sign language.

Libraries required
To build this project, you’ll need to install two libraries in Arduino IDE – espSoftwareSerial and DFRobotDFMiniPlayer. The espSoftwareSerial is required for using the software serial on ESP32. The DFRobotDFMiniPlayer is used to work with the DF Mini Player.

Arduino sketch

How it works
The flex sensor detects one’s hand gestures as they communicate via sign language. When the sensor is bent, its resistance changes, so the voltage output by the voltage divider circuit also changes. 

The flex sensor’s analog output is detected by ESP32 and used to determine the instruction/command. The DF Mini Player plays the MP3 files from the MicroSD card based on the instructions communicated via ESP32 over the UART.

The code
The sketch begins by importing SoftwareSerial.h and DFRobotDFPlayerMini.h. The variables are declared for the DF Mini Player’s RX and TX pin connections, and an object of the software serial is instantiated. 

Next, an object of the DF Mini Player is instantiated, and the variables from the analog input’s connection to the flex sensor are declared. A variable to store the analog value is defined and initialized at zero. 

In the setup() function, the baud rate for both the serial and software serial communication is set to 9600 bps. The DF Mini Player is initialized, and its volume is set to 20. 

In the loop() function, ESP32 reads the analog input from the flex sensor. According to the value of the analog input, the MP3 file for the detected gesture is played by calling the player.play() method.

Results

https://www.engineersgarage.com/wp-content/uploads/2024/01/P47-DV.mp4

 

 

 

You may also like:


  • What is Matter? An all-new smart home standard

  • How to get started with MIT App Inventor

  • How to manage data on ESP32 for IoT projects

  • What is IFTTT and how does it work?

  • How to design an audio player for toys

  • Is Sanskrit an ideal language for knowledge representation in AI?

Filed Under: Electronic Projects, ESP8266, Video
Tagged With: dfminiplayer, electronicproject, ESP32, microcontroller, signlanguage
 

Next Article

← Previous Article
Next Article →

Questions related to this article?
👉Ask and discuss on Electro-Tech-Online.com and EDAboard.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

EE TECH TOOLBOX

“ee
Tech Toolbox: Internet of Things
Explore practical strategies for minimizing attack surfaces, managing memory efficiently, and securing firmware. Download now to ensure your IoT implementations remain secure, efficient, and future-ready.

EE Learning Center

EE Learning Center
“engineers
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


RSS EDABOARD.com Discussions

  • Reducing "shoot-through" in offline Full Bridge SMPS?
  • High Side current sensing
  • How to simulate power electronics converter in PSpice?
  • Voltage mode pushpull is a nonsense SMPS?
  • Layout IRN reduction in Comparator

RSS Electro-Tech-Online.com Discussions

  • Back to the old BASIC days
  • Parts required for a personal project
  • PIC KIT 3 not able to program dsPIC
  • Failure of polypropylene motor-run capacitors
  • Siemens large industrial PLC parts

Featured – RPi Python Programming (27 Part)

  • RPi Python Programming 21: The SIM900A AT commands
  • RPi Python Programming 22: Calls & SMS using a SIM900A GSM-GPRS modem
  • RPi Python Programming 23: Interfacing a NEO-6MV2 GPS module with Raspberry Pi
  • RPi Python Programming 24: I2C explained
  • RPi Python Programming 25 – Synchronous serial communication in Raspberry Pi using I2C protocol
  • RPi Python Programming 26 – Interfacing ADXL345 accelerometer sensor with Raspberry Pi

Recent Articles

  • What is AWS IoT Core and when should you use it?
  • AC-DC power supply extends voltage range to 800 V DC
  • Infineon’s inductive sensor integrates coil system driver, signal conditioning circuits and DSP
  • Arm Cortex-M23 MCU delivers 87.5 µA/MHz active mode
  • STMicroelectronics releases automotive amplifiers with in-play open-load detection

EE ENGINEERING TRAINING DAYS

engineering

Submit a Guest Post

submit a guest post
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • Subscribe to our newsletter
  • About Us
  • Contact Us
  • Advertise

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy

Search Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe