A DIY Zipline Robot With Arduino, 3D Printed, and Lego-compatible Parts

by Tart Robotics in Circuits > Robots

4130 Views, 41 Favorites, 0 Comments

A DIY Zipline Robot With Arduino, 3D Printed, and Lego-compatible Parts

Zipline blog logo.jpg

Introduction

Have you ever thought of robots that are involved in sports and recreation activities? Robots that could mimic the act of athletes like runners and, gymnasts. Such robots are extremely interesting for robotics enthusiasts, makers, and inventors. One of the sports and recreation activities that attract boys and girls, young and adults are ziplining. Ziplines are designed to transfer cargo or a person from the top to the bottom of the inclined cable. The cargo or the person is propelled by gravity and moves on the cable through a freely rotating pulley. The zipline robot that we are going to make looks like a monkey that moves on a cable by using its two arms. Making such a creature that uses its arms for locomotion on a cable is a challenging task. However, in this tutorial, we are going to make a fun and easy-to-build zipline robot with Lego Technic components, an Arduino board, and some off-the-shelf electromechanical components. The instructions are prepared in a way that you can build them at home.

General View of Biped Robot

IMG_1965.JPG

The zipline robot hangs itself from a cable and uses its two arms for locomotion across the cable. In its simplest setup, the zipline robot is made of Lego Technic components, an off-the-shelf DC gear motor, 3D printed parts, and an ON/OFF toggle switch.

Combination of Body Structure and Gear Motor

IMG_1932.JPG
IMG_1939.JPG

For more sophisticated applications, an Arduino NANO board is added to the zipline robot to significantly increase the expandability and programming elements of the project. As you know, various adds-on shields can be added to any Arduino board to expand the project’s capabilities.

Electrical Assembly

ard_nano.jpg
IMG_2191.JPG
IMG_2192.JPG

For instance, in the current project, a microphone from Adafruit is added to the zipline robot that enables a user to control the motions of the robot by clapping. This feature adds a lot of interactivity to the zipline robot. For example, you can control the speed of the robot by clapping, so that, the faster you clap, the faster it goes. Very fascinating.

Zipline Robot With Arduino Board and Microphone

IMG_2195.JPG

In this tutorial, we will make the zipline robot’s body structure out of Lego Technic pieces and then drive the arm’s mechanical mechanism using an off-the-shelf DC gear motor that is attached to the body structure through a 3D-printed housing. The gear motor’s torque is transferred through a pair of bevel and worm gears to both arm mechanisms.

Materials

ZipLiner Part List.jpg
ZipLiner Mechanical Part List.jpg

List of electronic parts

A) 1x 9v Battery Connector, Male DC Connector

B) 1x TT Gear Motor

C) 1x 3D Printed Gear Motor Housing

D) 1x 3D Printed Lego-Compatible Coupling

E) 2x Breadboard, Mini Size

F) 1x Arduino Nano

G) 1x M3 x 10 Machine Screw

H) 1x M3 x 30 Machine Screw

I) 1x L298N Mini Motor Driver

J) 1x MAX4466 Microphone Module

K) 1x Power Jack, Barrel Type

L) 1x Mini Switch, Toggle Type

M) Male to Male Jumper Wire

List of Lego Technic components

A) Frame, 5x7-module

B) Beam, 5-module

C) Beam, 3-module

D) Double bevel gear, 36-tooth

E) Gear, 24-tooth

F) Worm gear

G) Double cross block, 3-module

H) Connector peg with friction/axle, 2-module

I) Connector peg with friction, 3-module

J) Bevel gear, 12-tooth

K) Gear, 8-tooth

L) Angular block 2, 180

M) Axle, 2-module

N) Bushing/axle extender, 2-module

O) Bushing, 1-module

P) Angular block, 5(157.5 )

Q) Connector peg with axle, 2-module

R) Connector peg with friction, 2-module

S1) Axle, 8-module

S2) Axle, 7-module

S3) Axle, 5-module

S4) Axle, 3-module

T) T-beam, 3x3 module

U) Angular block, 6(90 )

V) Axle connector with axle hole

W) Angular block 1, 0

X) Connector peg, 2-module

Y) Axle with ball, 2-module

Assembly of Mechanical Parts

DIY Zipline Robot with Lego, Arduino and 3D Printed Part - Part 1
IMG_2194.jpg

Let's start assembling the zipline body-structure. It is a structure that holds a crank-rocker 4-bar linkage mechanism that creates the required arm’s motions for ziplining. The motor’s torque is transferred to the arm mechanisms through a pair of bevel gears and a worm drive. Prepare the Lego Technic pieces according to the material figure and follow the step-by-step video tutorial below.

3D Printed Parts

IMG_2763.JPG
IMG_2760.JPG

Lego Technic components only match with LEGO gear motors. In order to transmit power from the shafts of the off-the-shelf gear motors to Lego gears or axles, we need to print a housing for the gear motor as well as a coupling. The housing serves as an interface or an adaptor between the gear motor and the Lego Technic beams. The coupling connects the gear motor shaft with the Lego Technic axle. These 3D printed parts are called Lego compatible housing and shafts. Please download the 3D files and print the motor housing, Lego-compatible coupling with your 3D printer, or use the ones in a maker space nearby. Please download the 3D files and print the motor housing and Lego-compatible coupling with your 3D printer or use the ones in a maker space nearby.

Electronics and Wiring

ZipLiner_Circuit Final.jpg

Prepare your screwdriver and soldering iron and carefully follow the video instructions below. Make sure you properly implement the schematic circuit diagram shown in the Schematic diagram of the circuit, so you don't end up toasting your Arduino board and motor driver.

Programming

DIY Zipline Robot with Lego, Arduino and 3D Printed Part - Part 2

You can pick up LEGO pieces and let your imagination go limitless. Of course, coding is also the part that you can have lots of fun and be the most creative. You can go to Arduino IDE and write your own code to tell the zipline robot what to do. But for now, let's start with this code.

/*
  Zipline robot's speed control with clapping
    The idea:
    In this code, we want to control the speed of our zipline robot with clapping
    so that the faster you clap the faster it goes. To do so, we added a microphone
    to the project. By measuring the loudness of the environment's sound, we determine
    whether the robot must stop or go.
    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 Tart Robotics blog for more information:
    https://www.tartrobotics.com/blog
*/

#define micPin A6
#define motorPinA 9
#define motorPinB 10
#define motorPinPWM 11

void setup() {
  // Initialize Arduino pins to outputs
  pinMode(motorPinA, OUTPUT);
  pinMode(motorPinB, OUTPUT);
  pinMode(motorPinPWM, OUTPUT);
}

unsigned int sample, clapTime = 0;

void loop() {
  unsigned long samplingBeginning = millis();
  unsigned int loudness = 0;

  unsigned int signalMax = 0;
  unsigned int signalMin = 1024;

  // Sample microphone data
  while (millis() - samplingBeginning < 100) {
    sample = analogRead(micPin);

    // Measure min and max value of the signal
    if (sample > signalMax)
      signalMax = sample;
    else if (sample < signalMin)
      signalMin = sample;
  }
  loudness = signalMax - signalMin;

  // Referesh the clapTime if a clap is detected
  if (peakToPeak > 300)
    clapTime = millis();

  // Run the motor if a clap is detected recently
  if (millis() - clapTime < 200)runTheMotor();
  else stopTheMotor();
}

// Motor driver pin configuration to run
void runTheMotor() {
  digitalWrite(motorPinA, HIGH);
  digitalWrite(motorPinB, LOW);
  analogWrite(motorPinPWM, 255);
}

// Motor driver pin configuration to stop
void stopTheMotor() {
  digitalWrite(motorPinA, HIGH);
  digitalWrite(motorPinB, HIGH);
  analogWrite(motorPinPWM, 0);
}<br>

Run Your Zipline

Zipline Robot with Lego, Arduino and 3D Printed Part
IMG_2219.JPG

Please let us know what you think about this tutorial by commenting below. Your feedback will help us to improve our future work.

Please visit Tart Robotics for more DIY creative projects and STEAM-related educational content.

Our Socials:

Tart Robotics website,

YouTube, Instagram, Facebook, Twitter, Pinterest, LinkedIn