This scramble machine moves with a pattern of falling and getting up. The front legs of the machine are connected to two servo motors that are controlled by an Arduino. Servo motors have the same motion that causes the robot to fall down and get up.

The chassis of this robot is cut by a laser cutter and 6mm plywood. The top piece is connected to the bod using press-fit. The back piece is connected using the captive screw method.  The legs of the robot are connected to servos using self-tapping screws.

Solidworks files are here.

Code:

#include <Servo.h>

const int LEFT_SERVO_PIN = 9;
const int RIGHT_SERVO_PIN = 8;

Servo left_servo;
Servo right_servo;

void setup() {
// put your setup code here, to run once:
left_servo.attach(LEFT_SERVO_PIN);
right_servo.attach(RIGHT_SERVO_PIN);
left_servo.write(80);
right_servo.write(100);
}

void loop() {
// put your main code here, to run repeatedly:
delay(1000);
left_servo.write(0);
right_servo.write(180);
delay(1000);
left_servo.write(80);
right_servo.write(100);
}