The design of my pratfall contraption was inspired by the swings outside of Donner and the structures minor swaying that occurs when a swinger pumps too hard! My design operates under two operating principles: articulated support structure and changing mass distribution. What makes the construction and operation of the machine interesting is the ability for the swing’s “chains” to move closer or further apart to each other, altering the distribution of mass even more than if it were fixed to the object’s main bar.

https://drive.google.com/open?id=1JNuaMo-CDqWTZQzKZd3i8RYOka1nTyIc

</code>
<code>
#include <Servo.h>
const int SERVO_PIN = 9;
Servo wiggling_servo;
void linear_move(int start, int end, float speed = 200.0);
 
void setup() {
Serial.begin(9600);
wiggling_servo.attach(SERVO_PIN);
}
 
void loop() {
for (int i=0; i<2; i=i+1) {
wiggling_servo.write(75);
delay(1000);
wiggling_servo.write(0);
delay(1000);
wiggling_servo.write(75);
delay(1000);
wiggling_servo.write(0);
delay(2000);
wiggling_servo.write(180);
delay(500);
wiggling_servo.write(0);
delay(2000);
}
}
</code>
<code>