This pratfall device was designed to be a comedy piece inspired by medieval warfare. It is structured like a trebuchet (catapult-like device) but instead of the motor attaching to the long arm, it is instead attached to the base of the unit. With weakened legs on one side, the motor actuates and the trebuchet falls over hilariously instead of actuating like normal.

 


#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(180);
delay(500);
wiggling_servo.write(0);
delay(2000);
}
}

SolidWorks files can be found here: Slightly Confused Trebuchet SolidWorks files