Beeps when you slouch so you sit up straight.
Built and tested by Drisya K S · Industrial Robotics Institute
Arduino IDE
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.
| Component | Qty |
|---|---|
| Arduino Uno | 1 |
| Flex Sensor (or MPU6050) | 1 |
| Resistor 10kΩ | 1 |
| Buzzer | 1 |
| LED | 1 |
| Resistor 220Ω | 1 |
| Jumper Wires | As needed |
| Breadboard | 1 |
| Power Supply | 1 |
| From | Connect to |
|---|---|
| Flex sensor one end | 5V |
| Flex sensor other end | A0 |
| 10kΩ resistor | A0 to GND |
| Buzzer + | D8 |
| Buzzer − | GND |
| LED + (via 220Ω) | D9 |
| LED − | GND |
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);
}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.
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.
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.
The complete, tested Arduino C++ code is free on this page. Copy it into Arduino IDE and upload it to the board.
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.