
Quick answer: A sign language glove project puts five flex sensors on the fingers and a 6-axis IMU on the back of the hand. An ESP32-S3 reads how far each finger bends and how the hand moves and turns, 50 times a second. An on-chip TinyML model (Edge Impulse / TensorFlow Lite Micro) then matches each 1.5-second window to one of 20–40 trained Bangla Sign Language (BdSL) signs. The glove shows the word in Bangla on a small OLED and speaks it through an I2S amplifier and speaker.
🌐 এই লেখাটি বাংলায় পড়ুন: বাংলা সংস্করণ →
This reference design is for B.Sc. final-year and M.Sc. students in EEE, ETE, CSE and BME. It covers the physics, a verified circuit, a BOM in BDT, the full ML workflow and the key firmware, and it is honest about what a five-sensor glove cannot do. For more ideas, see our 15 Edge AI and TinyML project ideas.
Table of Contents
Why a sign language glove project matters in Bangladesh (2026)
Hearing loss is common in Bangladesh. A national survey by Tarafder et al. found disabling hearing loss in 9.6% of respondents (Journal of Laryngology & Otology, 2015). That is roughly 13–14 million people. Most are hard of hearing rather than signers, but the BdSL-using Deaf community is still large, and few hearing people around them can sign. Bangladesh observes Bangla Sign Language Day (Bangla Ishara Bhasha Dibosh) every 7 February (BSS).
A North South University team built “Eshara”, a flex-sensor and accelerometer glove that spoke 10 Bangla words, the Bangla digits and 10 English words through a speaker. A 2025 EICT paper on a sensor glove (flex, gyroscope, accelerometer) reported 92.59% accuracy on 22 BdSL classes. A widely cited Scientific Reports study used the same hardware recipe as this post: five 2.2″ flex sensors and an MPU-6050 on 40 ASL signs from 25 people. The topic is current, publishable and local.
An honest scope statement: BdSL uses two hands, facial expressions, body position and grammar; one glove sees one hand. Realistically it recognises a fixed vocabulary of about 20–40 carefully chosen signs, not free-flowing sentences. Present it as an assistive word-level translator, not a replacement for an interpreter.
How the sign language to speech glove works
1. Flex sensors: finger bend to voltage
A flex sensor is conductive carbon ink on a plastic film. Bending opens micro-cracks in the ink, so resistance rises. A typical 2.2″ sensor reads about 25 kΩ flat; Spectra Symbol rates its newer 55 mm SpectraFlex at 12 kΩ ±20%, rising at least 4× at a 180° bend. Clones vary, so measure yours.
Each sensor is the lower leg of a divider with a fixed 47 kΩ resistor: V = 3.3 × Rflex / (Rflex + 47k). That gives about 1.15 V flat (25 kΩ) and 2.25 V fully bent (~100 kΩ), well inside the ESP32-S3 ADC range at 11 dB attenuation (about 0.15–3.1 V). For best sensitivity, choose R ≈ √(Rflat × Rbent). A 100 nF capacitor at each ADC pin filters noise.
2. IMU: hand orientation and movement
Many signs share a handshape and differ only in palm direction or movement. The accelerometer senses gravity (hand tilt) and motion; the gyroscope senses wrist rotation. With five flex values, the model gets 11 numbers per sample, 50 samples per second.
3. Static and dynamic gestures: windows and features
A static sign is a held handshape (most letters and numbers); a dynamic sign adds movement (a twist, tap or wave). Both use a sliding 1.5 s window (75 × 11 values), classified every 250 ms. In Edge Impulse, a Flatten block turns the flex channels into statistics (mean, min, max, RMS, std) that capture handshape, and a Spectral Analysis block turns the IMU channels into frequency and power features that capture movement. A small dense neural network classifies the result. Two extra classes, rest and other (everyday hand movement), teach the model when not to speak.
4. From word ID to Bangla text and speech
An SSD1306 library cannot shape Bangla conjuncts (যুক্তাক্ষর), so each word is pre-rendered on a PC into a 1-bit bitmap stored in flash. For speech there are two options:
| Option | Pre-recorded WAV on the glove | Phone TTS over BLE |
|---|---|---|
| Voice | Natural human voice, recorded by you | Synthetic; Google lists “Bangla (Bangladesh)” among its TTS languages |
| Vocabulary | Fixed: one clip per word | Any text, so it can build sentences |
| Hardware on glove | MAX98357A + small speaker | None, but needs a phone app |
| Latency | Lowest | BLE + TTS engine add delay |
| Best for | Standalone demo, viva | Sentence building |
We do both: WAV clips (16 kHz, 16-bit mono, ~32 KB/s) play from LittleFS, and the word ID also goes over BLE to an optional app. Thirty one-second words need only about 1 MB of the 8 MB flash.
Block diagram of the ESP32 TinyML sign language translator

Sign language glove circuit diagram (ESP32-S3) and wiring

Why the Seeed XIAO ESP32S3? It is thumb-sized for a wrist strap, with 8 MB flash, 8 MB PSRAM and a built-in Li-ion charger (battery pads underneath). The pin map is from the Seeed XIAO ESP32S3 wiki, which also notes two limits: no battery-voltage pin on the standard version, and a low-current charger, so use a 500–800 mAh cell charged overnight.
ADC1 only. On the ESP32-S3, ADC2 is also used by Wi-Fi (Espressif docs). The XIAO analog pins GPIO1–GPIO9 are all ADC1, so readings stay valid if you add Wi-Fi later. D2 (GPIO3) is a strapping pin only when the STRAP_JTAG_SEL eFuse is burned, so it is safe on a normal board.
Which IMU? TDK has discontinued the MPU-6050 for new designs, but GY-521 modules are still sold in Dhaka for about BDT 375.
| IMU | Status | Availability in Bangladesh (our Nov 2026 check) | Use it when |
|---|---|---|---|
| MPU-6050 (GY-521) | Discontinued / NRND, modules still made | In stock at local online shops | Student prototype on a budget (used in our circuit) |
| LSM6DS3TR-C | Active ST part | No local listing found; import (LCSC/AliExpress) | Custom PCB, low power |
| ICM-42688-P | Active TDK part, low noise | No local listing found; import | Custom PCB, best 6-axis performance |
| BNO055 | 9-axis with on-chip fusion (quaternions) | Not found locally; costly to import | You want absolute orientation without writing fusion code |
Pin-by-pin wiring table
| From | To XIAO ESP32S3 | Notes |
|---|---|---|
| FLEX1 (thumb) divider node | D0 / GPIO1 (ADC1_CH0) | 47k to 3V3, sensor to GND, 100 nF to GND |
| FLEX2 (index) node | D1 / GPIO2 (ADC1_CH1) | Same divider |
| FLEX3 (middle) node | D2 / GPIO3 (ADC1_CH2) | Strapping pin, safe by default |
| FLEX4 (ring) node | D3 / GPIO4 (ADC1_CH3) | Same divider |
| FLEX5 (little) node | D8 / GPIO7 (ADC1_CH6) | Same divider |
| GY-521 SDA, OLED SDA | D4 / GPIO5 (I2C SDA) | Shared bus; modules have pull-ups |
| GY-521 SCL, OLED SCL | D5 / GPIO6 (I2C SCL) | MPU-6050 at 0x68 (AD0 to GND), OLED at 0x3C |
| GY-521 VCC, OLED VCC | 3V3 | INT, XDA, XCL unconnected |
| MAX98357A BCLK | D9 / GPIO8 | I2S bit clock |
| MAX98357A LRC | D10 / GPIO9 | I2S word select |
| MAX98357A DIN | D6 / GPIO43 | I2S data (UART TX pin; Serial uses USB) |
| MAX98357A SD | 3V3 | >1.4 V = left channel, always on |
| MAX98357A GAIN | Not connected | 9 dB default |
| MAX98357A VIN / GND | VBAT_SW / GND | 2.5–5.5 V allowed; 100 µF + 100 nF at VIN |
| Push button SW2 | D7 / GPIO44 to GND | INPUT_PULLUP |
| Li-ion + (via SW1) | BAT+ pad (underside) | Protected cell; BAT− to GND pad |
Amplifier pin behaviour (SD thresholds, GAIN, 2.5–5.5 V, speaker ≥4 Ω) is from Adafruit’s MAX98357A guide. The output is bridge-tied, so never ground a speaker wire. The amp runs from the battery so speaker peaks do not sag the 3V3 rail.
Bill of materials (approx. BDT cost)
| Item | Qty | Approx. BDT (Nov 2026, local market) |
|---|---|---|
| Seeed XIAO ESP32S3 (non-Sense) | 1 | 1,800–2,200 |
| Flex sensor 2.2″ (Spectra Symbol type) | 5 | 6,000–6,600 (about 1,200–1,320 each) |
| GY-521 MPU-6050 module | 1 | 375–450 |
| 0.96″ SSD1306 I2C OLED | 1 | 300–400 |
| MAX98357A I2S amplifier | 1 | 350 |
| 8 Ω 1 W speaker, 28–40 mm | 1 | 80–150 |
| Li-ion/LiPo 3.7 V 500–800 mAh with PCM | 1 | 400–600 |
| Slide switch, tactile button | 1 each | 40 |
| 47 kΩ ×5, 100 nF ×6, 100 µF ×1 | – | 50 |
| Glove, Velcro, thread, silicone wire, JST, heat-shrink | – | 500 |
| Wrist enclosure (3D print) + perfboard | 1 | 400–600 |
| Total | about BDT 10,500–12,000 |
Flex sensors are over half the cost, so test each with a multimeter before sewing it in (see how to spot fake components).
Step-by-step build guide
Step 1: Choose the vocabulary with a Deaf signer
Pick 20–30 useful one-handed BdSL signs (water, food, help, doctor, toilet, yes, no, thank you, numbers 1–5…) that differ clearly in handshape, palm direction or movement. Verify each with a Deaf signer or a Deaf-school teacher, and drop signs that depend on the face or the second hand.
Step 2: Build and test the glove hardware
- Sew a fabric pocket along the back of each finger of a thin stretch glove so the strip can slide. Fix only the connector end and never let it bend; that is where flex sensors fail.
- Put the resistors and capacitors on perfboard in the wrist box; use thin silicone wire with a strain-relief loop.
- Fix the IMU flat on the back of the hand. If it shifts, the dataset is useless.
- In the Serial Plotter, check every finger moves smoothly from about 1.1 V to 2.3 V.
Step 3: Per-user calibration
A long button press starts calibration: hand flat for 3 s, then a tight fist for 3 s. The averaged millivolts per finger go to NVS, and every reading is normalised to 0 (straight) … 1 (fully bent); gyro bias is measured at rest. Training on normalised values is the biggest single step toward a model that works across people.
Step 4: Collect the dataset
In COLLECT mode the glove prints 11 comma-separated values per line at 115200 baud, and the Edge Impulse data forwarder detects the rate and axes and uploads labelled samples. Aim for 30–50 repetitions per sign per person, at least 5 people (include Deaf signers), over two or more sessions. Record plenty of rest and other data (typing, drinking, walking).
Step 5: Train the model in Edge Impulse
Use a 1500 ms window, 250 ms increase, 50 Hz; Flatten on the flex axes, Spectral Analysis on the IMU axes, a Keras classifier and optionally a K-means anomaly block, as in Edge Impulse’s continuous motion recognition tutorial. Keep one or two people out of training to measure cross-user accuracy. Export as an Arduino library (ZIP). Our ESP32 AI project guide compares this with hand-written TensorFlow Lite Micro.
Step 6: Record the Bangla audio and text bitmaps
Record each word in a quiet room, trim silence, normalise and export 16 kHz 16-bit mono WAV as /w/00.wav, /w/01.wav… in label order. Render each word to a 128 × 32 bitmap and upload all to LittleFS (pick a partition scheme with ≥1.5 MB file system).
Step 7: Deploy and test on the glove
Flash with “USB CDC On Boot” enabled so Serial uses USB and GPIO43/44 stay free. Test in different arm positions and log every prediction with its confidence.
Firmware architecture explained
Arduino-ESP32 (core 3.x) on FreeRTOS. Each job is a task linked by queues, so audio never delays sampling.
| Module / task | Timing | What it does |
|---|---|---|
sampleTask (priority high) | Every 20 ms (50 Hz) | Reads 5 flex (8× oversampled) + IMU, normalises, writes an 11-value frame to the ring buffer |
inferTask | Every 250 ms | Unrolls the last 1.5 s (825 floats), runs run_classifier(), then threshold, anomaly check, 3-window vote and lock-out until rest |
outputTask | On a word event | OLED bitmap, WAV to I2S, BLE notify |
uiTask | 10 ms poll | Button: short = repeat/mute, long = calibrate, double = COLLECT |
| Storage | Boot / on change | NVS: calibration; LittleFS: WAV clips and bitmaps |
State machine: BOOT → CALIBRATE (if NVS is empty) → RUN. Double press: RUN ↔ COLLECT. Two minutes at rest: IDLE (OLED off, slow sampling); finger movement wakes it. Missing IMU: ERROR shown on the OLED.
Key code (about 50% of the firmware)
Three core pieces (pin config, sensor driver, sampling and inference tasks) show about half of the firmware. APIs follow the Espressif Arduino docs, the Adafruit MPU6050 examples and Edge Impulse’s C++ SDK docs. Audio uses the core’s ESP_I2S class (setPins(), begin(I2S_MODE_STD, 16000, I2S_DATA_BIT_WIDTH_16BIT, I2S_SLOT_MODE_MONO), write()).
// config.h - XIAO ESP32S3 pin map (Seeed wiki: Dx -> GPIO)
#pragma once
#include <Arduino.h>
constexpr uint8_t FLEX_PIN[5] = {1, 2, 3, 4, 7}; // D0 D1 D2 D3 D8 = thumb..little, all ADC1
constexpr uint8_t PIN_SDA = 5; // D4 IMU + OLED
constexpr uint8_t PIN_SCL = 6; // D5
constexpr int8_t PIN_BCLK = 8; // D9 -> MAX98357A BCLK
constexpr int8_t PIN_LRC = 9; // D10 -> MAX98357A LRC
constexpr int8_t PIN_DIN = 43; // D6 -> MAX98357A DIN
constexpr uint8_t PIN_BTN = 44; // D7 -> button to GND
constexpr uint8_t N_AXES = 11; // 5 flex + 3 accel + 3 gyro
constexpr float CONF_MIN = 0.80f; // reject low-confidence windows
constexpr uint32_t AUDIO_RATE = 16000; // WAV clips: 16 kHz, 16-bit mono
// sensors.cpp - flex + IMU driver
#include <Wire.h>
#include <Adafruit_MPU6050.h>
#include "config.h"
Adafruit_MPU6050 mpu;
struct FlexCal { float flatMv[5]; float bentMv[5]; } cal; // loaded from NVS
bool sensorsBegin() {
analogReadResolution(12);
for (uint8_t i = 0; i < 5; i++) analogSetPinAttenuation(FLEX_PIN[i], ADC_11db);
Wire.begin(PIN_SDA, PIN_SCL, 400000);
if (!mpu.begin(0x68, &Wire)) return false;
mpu.setAccelerometerRange(MPU6050_RANGE_4_G);
mpu.setGyroRange(MPU6050_RANGE_500_DEG);
mpu.setFilterBandwidth(MPU6050_BAND_21_HZ);
return true;
}
// One frame: 5 normalised bends (0 = straight, 1 = full bend) + accel (m/s2) + gyro (rad/s)
void readFrame(float *f) {
for (uint8_t i = 0; i < 5; i++) {
uint32_t mv = 0;
for (uint8_t k = 0; k < 8; k++) mv += analogReadMilliVolts(FLEX_PIN[i]);
float span = cal.bentMv[i] - cal.flatMv[i];
if (fabsf(span) < 50.0f) span = 50.0f; // guard: bad calibration
f[i] = constrain((mv / 8.0f - cal.flatMv[i]) / span, -0.2f, 1.2f);
}
sensors_event_t a, g, t;
mpu.getEvent(&a, &g, &t);
f[5] = a.acceleration.x; f[6] = a.acceleration.y; f[7] = a.acceleration.z;
f[8] = g.gyro.x; f[9] = g.gyro.y; f[10] = g.gyro.z;
}
// tasks.cpp - 50 Hz sampling into a ring buffer, inference every 250 ms
#include <glove_bdsl_inferencing.h> // name comes from your Edge Impulse project
#include "config.h"
void readFrame(float *f); // from sensors.cpp
static_assert(EI_CLASSIFIER_RAW_SAMPLES_PER_FRAME == N_AXES, "impulse axes mismatch");
static float ring[EI_CLASSIFIER_DSP_INPUT_FRAME_SIZE], window[EI_CLASSIFIER_DSP_INPUT_FRAME_SIZE];
static size_t head = 0;
SemaphoreHandle_t ringMutex; // xSemaphoreCreateMutex() in setup()
QueueHandle_t wordQueue; // xQueueCreate(4, sizeof(size_t)) in setup()
void sampleTask(void *) {
TickType_t last = xTaskGetTickCount();
float frame[N_AXES];
for (;;) {
readFrame(frame);
xSemaphoreTake(ringMutex, portMAX_DELAY);
memcpy(&ring[head], frame, sizeof(frame));
head = (head + N_AXES) % EI_CLASSIFIER_DSP_INPUT_FRAME_SIZE;
xSemaphoreGive(ringMutex);
vTaskDelayUntil(&last, pdMS_TO_TICKS(EI_CLASSIFIER_INTERVAL_MS));
}
}
void inferTask(void *) {
for (;;) {
vTaskDelay(pdMS_TO_TICKS(250));
xSemaphoreTake(ringMutex, portMAX_DELAY); // unroll ring, oldest first
size_t n = EI_CLASSIFIER_DSP_INPUT_FRAME_SIZE - head;
memcpy(window, &ring[head], n * sizeof(float));
memcpy(&window[n], ring, head * sizeof(float));
xSemaphoreGive(ringMutex);
signal_t signal;
numpy::signal_from_buffer(window, EI_CLASSIFIER_DSP_INPUT_FRAME_SIZE, &signal);
ei_impulse_result_t result = { 0 };
if (run_classifier(&signal, &result, false) != EI_IMPULSE_OK) continue;
size_t best = 0;
for (size_t i = 1; i < EI_CLASSIFIER_LABEL_COUNT; i++)
if (result.classification[i].value > result.classification[best].value) best = i;
if (result.classification[best].value >= CONF_MIN &&
strcmp(result.classification[best].label, "rest") != 0)
xQueueSend(wordQueue, &best, 0); // voting, anomaly and lock-out not shown
}
}
Want the complete firmware? The snippets above are about 50% of the code. The complete production firmware adds the full post-processing (voting, anomaly gating, rest lock-out, rejection tuning), the I2S audio player, the guided per-user calibration routine with NVS storage and gyro-bias removal, COLLECT mode for the data forwarder, Bangla OLED UI, the BLE service with an Android app (Bangla TTS), low-power IDLE, prediction logging, and a ready-to-use Edge Impulse project template. Message us on WhatsApp to get the full source code, circuit files and help building it.
How accurate is a sign language glove? Testing and results to expect
Report two numbers:
- Same-user accuracy (same people, different repetitions): expect it to be high; above 90% for 20–30 well-separated signs is typical of similar glove studies.
- Cross-user accuracy (leave-one-subject-out): the honest number, always lower. The Scientific Reports dataglove study (five flex sensors + MPU-6050) reported F1 of 82.19% for static and 97.35% for dynamic gestures this way. Handshapes vary more between people than movements do. Calibration plus ~10 repetitions per sign from the new user usually closes much of the gap.
Add a confusion matrix (rows true, columns predicted). In our experience with similar sensor projects, errors cluster around thumb position, ring/little finger (they bend together) and wrist rotation. Also report per-class recall, macro-F1, the false-trigger rate (words per minute of ordinary hand use; target near zero) and sign-to-audio latency.
| Problem | Likely cause | Fix |
|---|---|---|
| A finger channel jumps or sticks | Cracked sensor base, bad joint | Strain relief, re-solder, replace |
| Readings drift during a session | Glove slips on the hand, sensor warms up | Tighter glove, pockets that guide the strip, recalibrate |
| Great in Edge Impulse, poor on the glove | Different sample rate or axis order on the device | Use EI_CLASSIFIER_INTERVAL_MS; same frame order as the forwarder |
| Words spoken while not signing | No rest/other data, threshold too low | Collect more negative data, raise CONF_MIN, add voting |
| ESP32 resets when audio plays | Amp on the 3V3 rail, weak battery | Feed VIN from the battery, add 100 µF at VIN |
| No sound | SD pin low, wrong pin order, WAV is not 16-bit PCM | SD to 3V3, check BCLK/LRC/DIN, re-export WAV |
Safety, ethics and limitations
- Battery: use a protected cell in a closed box; never charge it unattended inside the glove.
- Not a certified medical or interpreting device. In hospitals, courts or emergencies a qualified BdSL interpreter is still needed.
- Involve the Deaf community. Deaf advocates have long criticised sign gloves designed without them. Recruit Deaf co-designers, get consent before recording data and credit them.
- Language: write “Deaf” or “hard of hearing”, never “dumb”.
Upgrades and real-world uses
- Two gloves over BLE for two-handed signs: a strong M.Sc. extension.
- Sequence model (1D-CNN or small GRU) for short sign sequences, with a phone app that builds Bangla sentences.
- Custom PCB with an ICM-42688-P (see our KiCad to JLCPCB guide).
- Reply path: speech-to-text display for hearing people.
- Research angle: publish a sensor-glove BdSL dataset with a leave-one-subject-out benchmark. Most public BdSL datasets, such as BdSL47, are camera-based, so a sensor-glove dataset adds something new.
- Product potential: learning kits for Deaf schools and families. More in our biomedical engineering project ideas.
Frequently asked questions
Flex sensors measure finger bend and an IMU measures hand tilt and movement. A microcontroller feeds a short window of readings to a trained classifier, which picks the closest known sign; the glove then shows or speaks the word.
Usually five flex sensors (one per finger) and a 6-axis accelerometer + gyroscope. Some add finger contact sensors, a second IMU or forearm EMG. Five flex plus one IMU is the best cost-to-accuracy balance for students.
Realistically 20–40 well-chosen one-handed signs, which matches published glove studies. Beyond that, many signs look identical to five bend sensors and one IMU.
No. BdSL grammar uses both hands, the face and body position. A glove handles a fixed word list; full translation needs cameras or multi-sensor systems and is still open research.
For new designs, an LSM6DS3TR-C or ICM-42688-P; a BNO055 if you want on-chip fusion. For a prototype, a GY-521 MPU-6050 still works and is easy to find in Bangladesh.
Only a simple threshold version with 5–10 signs. The ML window, audio and BLE need far more RAM and flash than the Uno has; an ESP32-S3 does it all. Compare boards in our ESP32 AI hardware guide.
Conclusion
A sign language glove project combines sensors, analog design, RTOS firmware, machine learning and a real need in Bangladesh. Keep the scope honest (a fixed BdSL vocabulary, per-user calibration, a proper cross-user evaluation) and build it with Deaf signers, not just for them. The result is a final-year project, and a dataset, worth defending.
Want this sign language glove as your final-year or M.Sc. project, fully working with a trained BdSL model? We design custom PCBs, firmware and complete working prototypes for students and companies. Message us on WhatsApp or use the contact form. You can write in Bangla or English.