Tart Robotics
Published © GPL3+

Quadruped Robot

Make your own quadruped robot with Arduino, 3D-printed, and Lego-compatible parts.

IntermediateFull instructions provided2 hours13,793

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
Ultrasonic Sensor - HC-SR04 (Generic)
Ultrasonic Sensor - HC-SR04 (Generic)
×1
Bipolar - RF Power Transistor, 250 MHz
Bipolar - RF Power Transistor, 250 MHz
×1
Maker Essentials - Mini Breadboards & Jumper Jerky
Pimoroni Maker Essentials - Mini Breadboards & Jumper Jerky
×1
DC POWER JACK 2.1MM BARREL-TYPE PCB MOUNT
TaydaElectronics DC POWER JACK 2.1MM BARREL-TYPE PCB MOUNT
×1
TT DC 1:120 gear-motor
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

3D Printer (generic)
3D Printer (generic)
Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Schematics

Quadruped Robot Circuit Schematic

Code

Quadruped Robot quick start

C/C++
/*
  Quadruped robot
    The idea:
    In this project, we will show you how to make a  quadruped robot out of Lego-compatible pieces,
    Arduino boards, off-the-shelf DC motor, and ultrasonic sensor.
    The current project uses an Arduino Nano boards as the main controller of the
    robot.
    The circuit:
    - In this circuit, an Arduino Nano is used. Any other types of Arduino
    can be used of course but do not forget to change the pin configurations
    if you want to change the circuit on your preference.
    Visit the Tart Robotics blog for more information:
    https://www.tartrobotics.com/blog
*/

#define VCC 4            // This pin define as Vcc
#define TRIG 5           // Ultrasonic sensor Trig pin
#define ECHO 6         // Ultrasonic sensor Echo pin
#define GND 7           // This pin define as GND
#define MOTOR 3      // Motor pin

const int dist = 15;     // Desired distance in cm

float duration, distance;

void setup() {
  pinMode(TRIG, OUTPUT);
  pinMode(ECHO, INPUT);

  pinMode(VCC, OUTPUT);
  pinMode(GND, OUTPUT);

  digitalWrite(VCC, HIGH);
  digitalWrite(GND, LOW);
  delay(5000);
}

void loop() {
//  This section is related to Ultrasonics sensor
/*
 digitalWrite(TRIG, LOW);
 delayMicroseconds(2);
 digitalWrite(TRIG, HIGH);
 delayMicroseconds(10);
 digitalWrite(TRIG, LOW);
 duration = pulseIn(ECHO, HIGH);
 distance = (duration * .0343) / 2;
  if (distance < dist)
    analogWrite(MOTOR, 200);
  else
    analogWrite(MOTOR, 0);
  delay(50);
*/

  analogWrite(MOTOR, 200);
}

Credits

Tart Robotics

Tart Robotics

15 projects • 51 followers
Our mission is to provide children with novel robotic tools, to inspire them to become future innovators.

Comments