Embedded SystemsBeginnerPRJ-149

Smart Posture Correction System Using Arduino

Beeps when you slouch so you sit up straight.

Built and tested by Drisya K S · Industrial Robotics Institute

Arduino Uno

Arduino IDE

LevelBeginner
Build time1–2 hours
BoardArduino Uno
Parts9 components

What is the Smart Posture Correction System?

A posture reminder for students and office workers. A flex sensor fixed to the back of a shirt or chair bends when you slouch; the Arduino reads it, and when the bend passes your set limit, a buzzer and LED warn you until you sit up straight.

How it works

  1. The flex sensor and 10kΩ resistor form a voltage divider on A0.
  2. Bending (slouching) changes the reading.
  3. Above the threshold (500), the buzzer and LED turn on.
  4. Sitting up straight brings the reading back down and the alert stops.

Parts list

ComponentQty
Arduino Uno1
Flex Sensor (or MPU6050)1
Resistor 10kΩ1
Buzzer1
LED1
Resistor 220Ω1
Jumper WiresAs needed
Breadboard1
Power Supply1

Software

  • Arduino IDE

Wiring and connections

FromConnect to
Flex sensor one end5V
Flex sensor other endA0
10kΩ resistorA0 to GND
Buzzer +D8
Buzzer −GND
LED + (via 220Ω)D9
LED −GND

How to build the Smart Posture Correction System

  1. Build the voltage divider: flex sensor from 5V to A0, and 10kΩ from A0 to GND.
  2. Connect the buzzer to D8 and the LED to D9.
  3. Upload the code and open the Serial Monitor at 9600 baud.
  4. Note the readings when sitting straight and when slouching, and set threshold between them.
  5. Tape the flex sensor along your upper back or the chair back.

Smart Posture Correction System code

Complete, tested Arduino C++ code for this project. Copy it into Arduino IDE and upload it to the Arduino Uno.

int sensorPin = A0;
int buzzer = 8;
int led = 9;

int threshold = 500;   // adjust for your posture

void setup() {
  Serial.begin(9600);
  pinMode(buzzer, OUTPUT);
  pinMode(led, OUTPUT);
}

void loop() {
  int sensorValue = analogRead(sensorPin);
  Serial.println(sensorValue);

  if (sensorValue > threshold) {     // slouching
    digitalWrite(buzzer, HIGH);
    digitalWrite(led, HIGH);
  } else {
    digitalWrite(buzzer, LOW);
    digitalWrite(led, LOW);
  }

  delay(200);
}

Real-world uses

  • Students at study desks
  • Office workers
  • Physiotherapy aids
  • Wearable health projects

Frequently asked questions

What is a Smart Posture Correction System?

A posture reminder for students and office workers. A flex sensor fixed to the back of a shirt or chair bends when you slouch; the Arduino reads it, and when the bend passes your set limit, a buzzer and LED warn you until you sit up straight.

What components are needed for the Smart Posture Correction System?

You need: Arduino Uno (1), Flex Sensor (or MPU6050) (1), Resistor 10kΩ (1), Buzzer (1), LED (1), Resistor 220Ω (1), Jumper Wires, Breadboard (1), Power Supply (1). Software: Arduino IDE.

Is the Smart Posture Correction System project good for beginners?

Yes. It is rated beginner and takes about 1–2 hours to build, using the Arduino Uno. The guide on this page explains every connection and step.

Where can I get the code for the Smart Posture Correction System?

The complete, tested Arduino C++ code is free on this page. Copy it into Arduino IDE and upload it to the board.

Can I buy a kit for the Smart Posture Correction System?

Yes. IRI sells a kit with the parts for this project (PRJ-149). Message IRI on WhatsApp at +91 86060 82634 for the kit price and delivery details.

Industrial Robotics Institute
Logo