Skip to main content

Case 19: Tightrope Walking Robot

Case Introduction

Use Nezha Pro Sport Kit to build a tightrope walking robot. The motor drives the rubber band (simulating the steel wire) to rotate, and the friction force transmission drives the unicycle figure above to ride stably. The unicycle figure achieves balance through the center of gravity control structure design (such as low center of gravity base, counterweight block), without the assistance of sensors. Let learners understand the principle of friction force transmission, the relationship between center of gravity and balance, and the application of mechanical structure in motion simulation in practice.

Teaching Preparation

NameGraphic
Nezha Pro Sport Kit

Teaching objectives

Mechanical principles: Understand the working mechanism of friction transmission (rubber band rotates → drives the wheels of the little man to roll).

Center of gravity control: By adjusting the position of the counterweight, master the impact of "low center of gravity + symmetrical structure" on stability.

Motor control: Learn to set the motor speed and rotation direction through programming to achieve uniform/variable speed "tightrope walking".

Interdisciplinary integration: Combine physics (friction, center of gravity), mechanical engineering (structural design) and programming to solve practical motion simulation problems.

Course introduction

Question guidance:

Why can tightrope walkers maintain balance on thin wires?

How can a "little man" ride stably on a "wire" without holding on with his hands?

Scene introduction: "Today we are going to build a robot that can 'walk on a tightrope'! Use rubber bands to simulate the tightrope, the motor makes the 'wire' rotate, and the robot moves forward by the friction between the wheels and the rubber bands. But the most amazing thing is that the robot will not fall because we have designed a 'balance secret' for it! Come and make the robot a 'dancer on a tightrope' by building structures, adjusting the center of gravity, and programming!"

Learning and Exploration

Explore the relationship between the speed of the rubber band rotation and the robot's riding speed, analyze how the position of the counterweight block affects the robot's center of gravity, and study how "friction transmission + center of gravity control" can replace the traditional balance system to achieve stable movement.

Building steps

Hardware connection

Connect the smart servo to the M1 port of the Nezha Pro expansion board.

Code Programming

Go to "makecode.microbit.org" and click New Project.

Enter a project name in the pop-up window and click Create.

Click Extension in the code drawer.

In the pop-up interface, enter nezha pro and click the search icon. Click it when the nezha pro software library is displayed. Load the PlanetX software library in the same way.

Sample Program

Program link: https://makecode.microbit.org/_M6udwiHY1EiF

You can also download the program directly from the following webpage.

Download Program

Use a USB cable to connect PC and micro:bit V2.

After the connection is successful, a drive named MICROBIT will be recognized on the computer.

Click in the lower left corner and select Connect Device.

Click.

Click.

In the pop-up window, select BBC micro:bit CMSIS-DAP, and then select Connect. At this point, our micro:bit has been successfully connected.

Click Download the program

Case demonstration

Press button A to start the unicycle robot, and press button B to stop the unicycle robot.

Summary and sharing

Extended knowledge

Balance science of tightrope walking

The vertical line rule of the center of gravity: The vertical line of the center of gravity of a human body or object must fall within the support surface (the projection line of the wire) to maintain balance. In this case, the little man fixed the center of gravity directly below the wheel through the counterweight. Although the support surface is narrow, the center of gravity is stable.

Dynamic balance vs. static balance: Real tightrope walkers need to maintain dynamic balance through body fine-tuning, while this case simplifies the problem through static center of gravity design, which is suitable for beginners to understand the essence of balance.

Application scenarios of friction transmission

Advantages: No complex gear meshing is required, and flexible transmission is achieved through elastic materials (rubber bands), which is suitable for low-speed and light-load scenarios (such as toys and teaching models).

Limitations: Friction is affected by tension and contact surface roughness. It is easy to slip at high speeds, and it is necessary to adjust the tightness of the rubber band or optimize the wheel surface material.

Unicycle center of gravity control skills

Real riding: Unicycle riders adjust their center of gravity by twisting their waist and exerting force on their legs, while the "lazy balance method" in this case - directly fixing the center of gravity just above the support point, is a simplified simulation of human movement by mechanical structure.

Engineering inspiration: In robot design, low center of gravity + symmetrical structure is a common strategy to achieve stable movement (such as balance bikes, robot walkers).