Friday, October 31, 2025

Sign Language Translator using Vocal Tone Replicating Sign Language (VTRSL 1.0)

 

How to make Sign Language Translator


Team Members:

-Pratish Purkuti
-Tenzing Moktan



Project: Sign Language Translator using Vocal Tone Replicating Sign Language

(VTRSL 1.0)


This is an in depth guide on how to make a sign language translator. Here we’ve used our own module where each sign represents a vocal tone instead of words or tone but you can make it to represent anything you want just by changing the voice clips.


Circuit Designs:


For flex sensor:



For audio module:



For speaker:


Using ~9 PWM pin to connect The speaker. You can also use TX and RX to connect a speaker with -ve and +ve point wires.

Parts You’ll need:

  1. Arduino Uno (Arduino in 100 Seconds)

  2. Flex sensor*5 (All About Flex Sensor in 8 Min | Basics | Working | Arduino | Interfacing | TinkerCAD Simulations)

  3. BreadBoard (Everything You Need to Know about Breadboards)

  4. Jumper wires

  5. SD card

  6. SD card reader (Audio/Music Player with Amplifier using Arduino)

  7. Speakers

  8. Gloves


These parts are not really compulsory. Every part enlisted can be replaced with another similar part. Flex sensor is exceptional but if you want a cheap replacement of flex sensor. I’d recommend you to watch the following video:Make a Flex Sensor for Robotic Hand and Arduino | DIY



Code:


#include "SD.h"

#define SD_ChipSelectPin 10

#include "TMRpcm.h"

#include "SPI.h"


const int flexPin1 = A0; // Assigning analog input pin A0 to variable flexPin1

const int flexPin2 = A1; // Assigning analog input pin A1 to variable flexPin2

const int flexPin3 = A2; // Assigning analog input pin A2 to variable flexPin3

const int flexPin4 = A3; // Assigning analog input pin A3 to variable flexPin4

const int flexPin5 = A4; // Assigning analog input pin A4 to variable flexPin5


const int threshold = 500; // Set the threshold for the flex sensors


TMRpcm tmrpcm;


void setup() {

  Serial.begin(9600); // Initialize serial communication at 9600 bits per second

  tmrpcm.speakerPin=9;

  Serial.begin(9600);

  if(!SD.begin(SD_ChipSelectPin))

  {

    Serial.println("SD fail!");

    return;

  }

tmrpcm.setVolume(5);

tmrpcm.play("1.wav");

}


void loop() {

   int thumb = analogRead(flexPin1); // Reading the analog value from flex sensor 1

  int first_finger = analogRead(flexPin2); // Reading the analog value from flex sensor 2

  int second_finger = analogRead(flexPin3); // Reading the analog value from flex sensor 3

  int third_finger = analogRead(flexPin4); // Reading the analog value from flex sensor 4

  int fourth_finger = analogRead(flexPin5); // Reading the analog value from flex sensor 5

 

  // Check if all the flex sensors are bent beyond the threshold

  if (thumb > threshold && first_finger > threshold && second_finger > threshold && third_finger > threshold && fourth_finger > threshold) {

    // Perform some action here when all the flex sensors are bent beyond the threshold

    Serial.println("All flex sensors are bent beyond the threshold");

  }

 

if(thumb> threshold && first_finger< threshold && second_finger< threshold && third_finger< threshold && fourth_finger< threshold)

{

  tmrpcm.play("1.wav");

}

else if(thumb< threshold && first_finger> threshold && second_finger< threshold && third_finger< threshold && fourth_finger< threshold)

{

  tmrpcm.play("2.wav");

}

else if(thumb< threshold && first_finger< threshold && second_finger> threshold && third_finger< threshold && fourth_finger< threshold)

{

  tmrpcm.play("3.wav");

}

else if(thumb< threshold && first_finger< threshold && second_finger< threshold && third_finger> threshold && fourth_finger< threshold)

{

  tmrpcm.play("4.wav");

}

else if(thumb< threshold && first_finger< threshold && second_finger< threshold && third_finger< threshold && fourth_finger> threshold)

{

  tmrpcm.play("5.wav");

}

else if(thumb> threshold && first_finger> threshold && second_finger< threshold && third_finger< threshold && fourth_finger< threshold)

{

  tmrpcm.play("6.wav");

}

else if(thumb< threshold && first_finger> threshold && second_finger> threshold && third_finger< threshold && fourth_finger< threshold)

{

  tmrpcm.play("7.wav");

}

else if(thumb< threshold && first_finger< threshold && second_finger> threshold && third_finger> threshold && fourth_finger< threshold)

{

  tmrpcm.play("8.wav");

}

else if(thumb< threshold && first_finger< threshold && second_finger< threshold && third_finger> threshold && fourth_finger> threshold)

{

  tmrpcm.play("9.wav");

}

else if(thumb> threshold && first_finger< threshold && second_finger> threshold && third_finger< threshold && fourth_finger< threshold)

{

  tmrpcm.play("10.wav");

}

else if(thumb> threshold && first_finger< threshold && second_finger< threshold && third_finger> threshold && fourth_finger< threshold)

{

  tmrpcm.play("11.wav");

}

else if(thumb> threshold && first_finger< threshold && second_finger< threshold && third_finger< threshold && fourth_finger> threshold)

{

  tmrpcm.play("12.wav");

}

else if(thumb< threshold && first_finger> threshold && second_finger< threshold && third_finger> threshold && fourth_finger< threshold)

{

  tmrpcm.play("13.wav");

}

else if(thumb< threshold && first_finger> threshold && second_finger< threshold && third_finger< threshold && fourth_finger> threshold)

{

  tmrpcm.play("14.wav");

}

else if(thumb< threshold && first_finger< threshold && second_finger> threshold && third_finger< threshold && fourth_finger> threshold)

{

  tmrpcm.play("15.wav");

}

else if(thumb< threshold && first_finger> threshold && second_finger> threshold && third_finger> threshold && fourth_finger> threshold)

{

  tmrpcm.play("16.wav");

}

else if(thumb> threshold && first_finger< threshold && second_finger> threshold && third_finger> threshold && fourth_finger> threshold)

{

  tmrpcm.play("17.wav");

}

else if(thumb> threshold && first_finger> threshold && second_finger< threshold && third_finger> threshold && fourth_finger> threshold)

{

  tmrpcm.play("18.wav");

}

else if(thumb> threshold && first_finger> threshold && second_finger> threshold && third_finger< threshold && fourth_finger> threshold)

{

  tmrpcm.play("19.wav");

}

else if(thumb> threshold && first_finger> threshold && second_finger> threshold && third_finger> threshold && fourth_finger< threshold)

{

  tmrpcm.play("20.wav");

}

else if(thumb< threshold && first_finger> threshold && second_finger> threshold && third_finger> threshold && fourth_finger< threshold)

{

  tmrpcm.play("21.wav");

}

else if(thumb> threshold && first_finger> threshold && second_finger> threshold && third_finger> threshold && fourth_finger> threshold)

{

  tmrpcm.play("22.wav");

  delay(9000);

}

else if(thumb> threshold && first_finger< threshold && second_finger> threshold && third_finger< threshold && fourth_finger> threshold)

{

  tmrpcm.play("23.wav");

}

else if(thumb< threshold && first_finger< threshold && second_finger> threshold && third_finger> threshold && fourth_finger> threshold)

{

  tmrpcm.play("24.wav");

}

else if(thumb< threshold && first_finger> threshold && second_finger< threshold && third_finger> threshold && fourth_finger> threshold)

{

  tmrpcm.play("25.wav");

}

else if(thumb< threshold && first_finger> threshold && second_finger> threshold && third_finger< threshold && fourth_finger> threshold)

{

  tmrpcm.play("26.wav");

}

else if(thumb> threshold && first_finger< threshold && second_finger< threshold && third_finger> threshold && fourth_finger> threshold)

{

  tmrpcm.play("27.wav");

}

else if(thumb> threshold && first_finger< threshold && second_finger> threshold && third_finger> threshold && fourth_finger< threshold)

{

  tmrpcm.play("28.wav");

}

else if(thumb> threshold && first_finger> threshold && second_finger< threshold && third_finger< threshold && fourth_finger> threshold)

{

  tmrpcm.play("29.wav");

}

else if(thumb> threshold && first_finger> threshold && second_finger< threshold && third_finger> threshold && fourth_finger< threshold)

{

  tmrpcm.play("30.wav");

}

else if(thumb> threshold && first_finger> threshold && second_finger> threshold && third_finger< threshold && fourth_finger< threshold)

{

  tmrpcm.play("31.wav");

}

}




Working methodology:


So whenever a flex sensor is bent a signal is given to the Arduino board. For this project we’ve used 5 flex sensors with the help of all the flex sensors we can have 31 possible combinations. The Arduino recognizes the sequence and plays the assigned audio to that following sequence through the audio module. All the audio is present in the SD card reader.

It is recommended to just put audio in the SD card without any files and name the audio files as in numbers.