The scenario of this project is that a person falls to the ground. In addition, he doesn’t want others to know that he fell so he started to do exercise on the ground.

The servo is connected to one of the legs. When the servo starts moving, the leg will hit another leg so the person will lose balance and fall. And the same movement can also show that the person is trying to do exercise.

 

Arduino Code:

 

/*importing library*/
#include "Servo.h";
/*SERVO_PIN is the output pin from the board*/
const int SERVO_PIN = 9;
/*Servo is called Demo1*/
Servo leg;
void setup() {
  Serial.begin(115200);

  leg.attach(SERVO_PIN); 

}

void loop() {
   leg.write(90); 
   delay(1000); 
   leg.write(180); 
   delay(1000); 
  
}

 

Video: