Posture Sensor Reminds you to Sit Up Straight!

Hey you! Are you slouching? Probably. It might not seem like such a bad thing to do, but if you plan on sitting comfortably at that desk for the next 5-10 years or so, you’ve really gotta watch your posture. This is a problem [Max] has been trying to solve for a while now — and now he’s attempting to do it with a posture sensor.

His first take on this project utilized an ultrasound range finder, mounted to the back of a chair. Once calibrated, you would have to maintain a certain distance from the back of your head to the sensor, thus, keeping your back straight. It worked, but it wasn’t the greatest.

Next up, he tried utilizing a webcam and facial recognition software to determine if he was slouching forwards, backwards, or (however unlikely), maintaining good posture. It was better than the first prototype, but still needed some refinement. Now he’s onto his third iteration — this time, a wearable posture sensor!

Continue reading “Posture Sensor Reminds you to Sit Up Straight!”

A Webcam Based Posture Sensor

Webcam based posture sensor

Even for hobby projects, iteration is very important. It allows us to improve upon and fine-tune our existing designs making them even better. [Max] wrote in to tell us about his latest posture sensor, this time, built around a webcam.

We covered [Max’s] first posture sensor back in February, which utilized an ultrasonic distance sensor to determine if you had correct posture (or not). Having spent time with this sensor and having received lots of feedback, he decided to scrap the idea of using an ultrasonic distance sensor altogether. It simply had too many issues: issues with mounting the sensor on different chairs, constantly hearing the clicking of the sensor, and more.  After being inspired by a very similar blog post to his original that mounted the sensor on a computer monitor, [Max] was back to work. This time, rather than using an ultrasonic distance sensor, he decided to use a webcam. Armed with Processing and OpenCV, he greatly improved upon the first version of his posture sensor. All of his code is provided on his website, be sure to check it out and give it a whirl!

Iteration leads to many improvements and it is an integral part of both hacking and engineering. What projects have you redesigned or rebuild? Let us know!

A Simple Posture Sensor


If you are on the computer for a large part of the day, posture becomes a serious issue that can negatively impact your health. [Wingman] saw this problem, and created a hack to help solve it. His simple posture sensor will monitor the position of your head relative to the chair, and reminds you to sit up straight.

The posture sensor is built around the HC-SR04 ultrasonic distance sensor, an Attiny85, and a piezo speaker. We’ve seen this distance sensor used in the past for a few projects. Rather than going down the wearable route, which has its own drawbacks, [Wingman] decided to attach his sensor on the back of his chair. The best part is that the sensor is not mounted directly on the chair, but rather on a piece of fabric allowing it to be easily moved when needed.

Given how low-cost and small the sensor is, the project can be easily expanded by adding multiple sensors in different locations. This would allow the angle of the back and possibly the neck to be determined, giving a more accurate indicator of poor posture. There are very few hacks out there that address bad posture. Do you have a project that helps address bad posture? Have you used video processing or a wearable device to monitor your posture? Let us know in the comments an don’t forget to send post links about them to our tips line.