After several dismissive attempts (3) -- we have haphazardly weaved together an Arduino Uno with cardboard, ultrasonic sensor, servo(s) and stepper(s) to remind, pester and intolerant your posture.
This project was hobbled together as a slight against the current incarnation of the maker community that at one time had been invested in improving humanity -- now succumbed to vanity and novelty. This project demonstrates that even with little to nothing applied, useless can harbor solution. Plaguing social venues with the antithesis breeds a consequence of evolutionary latency.
Notations 1. 28BYJ-48 are cheap bcz they are in fact, rubbish -- do not be fooled by reviews documenting "high torque" and "power" bcz they fail to mention they only used these stepper motors to propel insignificantly sized wheeled robots a few paces before over heating and seizing. 2. Per my review above (Notation 1) may I suggest the alternative of either the purchase of or the modification of a servo to operate at 360 degree rotation. 3. A modified version of this code applied distance reference to alter the position of the shoulder servo relative to the actual distance of the sloucher -- due to impatience, disinterest and coherence of my typical distance, the code is commented but easily accessible.
// IF Slouching || > 5cm // But Not NOT In Chair || < 40cm if (distance > 5 && distance < 40) { if (state == 0) { tap(); // Change State state = 1; } else if (state == 1) { grab(); state = 2; } else if (state == 2) { assault(); // Reset state = 0; } } delay(5000);
// Serial For Testing // if (Serial.available() > 0) { // incom = Serial.read(); // if (incom == '1') { // tap(); // } // else if (incom == '2') { // grab(); // } // else if (incom == '3') { // assault(); // } // }