Hossam Abdelhamed
Published

4 Arm star-shaped robot from cardboard

An Arduino with servo motors was used to build a Bio-robotic model and replicate the movement of real-world animals.

IntermediateFull instructions provided2 hours512
4 Arm star-shaped robot from cardboard

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
SG90 Micro-servo motor
SG90 Micro-servo motor
×2
9V battery (generic)
9V battery (generic)
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Breadboard (generic)
Breadboard (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Circuit Diagram

Code

Graduation1_Biorobotic_V2.ino

Arduino
This code should be loaded on your Arduino Uno
#include <Servo.h>
int FRONT = 9;
int BACK = 10;

Servo frontLegs, backLegs;

void setup() {
  frontLegs.attach(FRONT); 
  backLegs.attach(BACK);
  frontLegs.write(90);  //Center the servo
  backLegs.write(90);   //Center the servo
  delay(500);          //Wait 5 sec (This gives us time to unplug the arduino
                        //  so we can affix the legs.
}


void loop() {
  frontLegs.write(0);        //move front leg a little
  delay(200);
  backLegs.write(180);         //move back leg a little
  digitalWrite(13,LOW);       //LED off
  delay(200);
  frontLegs.write(180);       //move front leg a little
  delay(200);
  backLegs.write(0);        //move back leg a little
}

Credits

Hossam Abdelhamed
1 project • 2 followers

Comments