Project tutorial
Smart Healthy Chair

Smart Healthy Chair

Turning a normal chair into a smart chair that will continuously detect your sitting posture and sends an alarm for wrong postures.

  • 5,769 views
  • 2 comments
  • 13 respects

Components and supplies

Apps and online services

About this project

Many of us are spending lot of hours sitting next to a screen with many health issues emerging due to wrong sitting postures. The aim of this project is to minimize the health problems by alarming the person to fix his posture. The project is based on an ultrasonic sensor fixed at the back of the chair. The sensor will continuously measure the distance to the back of the sitting person. Any increase in the distance indicates bending of the back. This will trigger an alarm beeping sound. All the process is coordinated through an arduino board.

Code

The codeC/C++
//Dynamic Innovator
const int trigPin = 9;
const int echoPin = 10;
const int buzzer = 11;
const int ledPin = 13;

// defines variables
long duration;
int distance;
int safetyDistance;


void setup() {
pinMode(trigPin, OUTPUT); // Sets the trigPin as an Output
pinMode(echoPin, INPUT); // Sets the echoPin as an Input
pinMode(buzzer, OUTPUT);
pinMode(ledPin, OUTPUT);
Serial.begin(9600); // Starts the serial communication
}


void loop() {
// Clears the trigPin
digitalWrite(trigPin, LOW);
delayMicroseconds(2);

// Sets the trigPin on HIGH state for 10 micro seconds
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);

// Reads the echoPin, returns the sound wave travel time in microseconds
duration = pulseIn(echoPin, HIGH);

// Calculating the distance
distance= duration*0.034/2;

safetyDistance = distance;
if (safetyDistance >= 30
){ // Enter the Distance
  digitalWrite(buzzer, HIGH);
  digitalWrite(ledPin, HIGH);
}
else{
  digitalWrite(buzzer, LOW);
  digitalWrite(ledPin, LOW);
}

// Prints the distance on the Serial Monitor
Serial.print("Distance: ");
Serial.println(distance);
}

Custom parts and enclosures

20200727_223733_(1)_JXb1ZizcuK.jpg
20200727 223733 (1) jxb1zizcuk
20200728_225246_LbQgdMNgvQ.jpg
20200728 225246 lbqgdmngvq
20200727_223733_TrGmKeTxyv.jpg
20200727 223733 trgmketxyv

Schematics

Schematics
Schematics vvflji8rdd

Comments

Similar projects you might like

Smart Battery Charger Multiplexer with Smart Display

Project tutorial by leonzak

  • 11,232 views
  • 10 comments
  • 25 respects

Smart Wheelchair

Project tutorial by Team MakerBuddy

  • 10,251 views
  • 7 comments
  • 7 respects

DIY Smart Cane Using Arduino

Project tutorial by suhail jr

  • 19,930 views
  • 2 comments
  • 19 respects

Smart Door with Face Unlock

Project tutorial by Divins Mathew

  • 31,604 views
  • 8 comments
  • 40 respects

Smart Disinfection and Sanitation Tunnel

Project tutorial by Yash Nayak

  • 57,516 views
  • 72 comments
  • 110 respects

Social Distancing Reminder – Coronavirus

Project tutorial by arcaegecengiz

  • 17,907 views
  • 7 comments
  • 21 respects
Add projectSign up / Login