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

About: We are an incorporated company located in Toronto Canada. Our team includes professional experts in mechatronics, science, mathematics, art, and business marketing to develop world-class STEAM-based educationa…

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.

Step 1: General View of Biped Robot

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.

Step 2: Combination of Body Structure and Gear Motor

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.

Step 3: Electrical Assembly

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.

Step 4: Zipline Robot With Arduino Board and Microphone

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.

Step 5: Materials

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

Step 6: Assembly of Mechanical Parts

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.

Step 7: 3D Printed Parts

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.

Step 8: Electronics and Wiring

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.

Step 9: Programming

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>

Step 10: Run Your Zipline

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

Robots Contest

Runner Up in the
Robots Contest