You love the dancing penguin emoji? Great!
Then build your own dancing penguin! All the motion is driven by one cheap stepper motor and an arduino! No need for servos.
Here is what you will need:
Prints were tested with PLA, ASA and PETG.
Layerheight: 0,2mm
Infill: 15% with 2 Perimeters
Important: Print the gear that attaches to the motor shaft with 100% infill.
Known limitations:
Video with assembly instructions
https://vimeo.com/880571363?share=copy
Arduino Code
#include <Stepper.h>
const int stepsPerRevolution = 2048; // change this to fit the number of steps per revolution
// ULN2003 Motor Driver Pins
#define IN1 4
#define IN2 5
#define IN3 6
#define IN4 7
//internal LED
#define LED 13
// initialize the stepper library
Stepper myStepper(stepsPerRevolution, IN1, IN3, IN2, IN4);
void setup() {
pinMode(LED, OUTPUT);
digitalWrite(LED, HIGH);
// initialize serial port
Serial.begin(9600);
Serial.println("\nPenguin!");
// initialize stepper motor
myStepper.setSpeed(20); //Range @5V: 1-15 rpm
digitalWrite(LED, LOW);
}
void loop() {
if (true)
{
myStepper.step(stepsPerRevolution);
}
else
{
digitalWrite(IN1, LOW);
digitalWrite(IN2, LOW);
digitalWrite(IN3, LOW);
digitalWrite(IN4, LOW);
}
}
The author marked this model as their own original creation.