Skip to main content

Case 4: Vibration Robot

Case Introduction

Build a vibration robot, and achieve the robot's movement through vibration.

Teaching Preparation

NameIllustration
Nezha Pro AI Mechanical Power Kit

Teaching Objectives

  1. Complete the assembly of the vibration robot, master the assembly method of the motor and eccentric components (e.g., eccentric wheels), understand the principle of vibration generation, and realize the robot's movement function.
  2. Recognize the physical phenomenon of "eccentric motion generates vibration", and understand the relationship between motor speed, vibration intensity, and the robot's movement speed.
  3. During the process of adjusting the position of eccentric components and motor speed, cultivate observation ability and experimental exploration ability, and learn to analyze the impact of vibration intensity on the movement stability of the robot.
  4. Experience the creativity of "unconventional movement methods", stimulate interest in the combination of physical phenomena and mechanical design, and establish a "problem-oriented" design thinking (e.g., using vibration for movement on soft ground).

Story Introduction

After repairing Wangcai and watching it drive the mechanical sheep back into the pen, everyone followed Aji to the sandy area on the edge of the village. Tiaotiao, the vibration robot in charge of patrolling the border, was lying on the sand trembling slightly, but couldn't move at all. "The sand is too soft; ordinary walking methods won't work here," Aji kicked the sand under his feet. "Tiaotiao's secret weapon is the gear acceleration structure and cam in its body—large gears drive small gears to rotate at high speed, making the cam spin wildly like an eccentric small wheel. The vibration generated allows it to jump forward on the sand surface." He opened Tiaotiao's shell and pointed at the stuck gear set: "Look, the acceleration gears here are jammed. The cam is rotating slower than a snail, so it can't generate enough vibration. We need to make the gears mesh again and let the small gears rotate at high speed with the large gears." Suddenly, sand dust rolled up in the distance, and Aji's sensor issued a sharp alarm: "The gear beasts are approaching the border! We must get Tiaotiao back to patrolling!"

Learning Exploration

  1. How is the "vibration" of the vibration robot generated? If the eccentric components (e.g., eccentric wheels) on the motor are removed, can the robot still move? Why?
  2. When adjusting the weight or installation position of the eccentric components (e.g., close to one end of the motor shaft, far from one end), how will the vibration intensity and movement direction of the robot change?
  3. When the motor speed is increased or decreased, what are the differences in the robot's movement speed and stability? Try testing on different surfaces (e.g., desktop, carpet) and observe the differences in movement effects.
  4. Compare the movement methods of the vibration robot with quadruped/bipedal robots. In which scenarios (e.g., narrow gaps, soft sand) is vibration-based movement suitable?

Assembly Steps

Hardware Connection

Connect the smart motor to the M2 interface of the Nezha Pro Expansion Board.

Code Programming

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

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

Click Extensions in the code drawer.

In the pop-up interface, enter nezha pro and click the search icon. After the nezha pro software library appears, click it. Load the PlanetX software library in the same way.

Sample Program

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

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

Program Download

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

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

Click the icon at the bottom left and select Connect Device.

Click .

Click .

In the pop-up window, select BBC micro:bit CMSIS-DAP, then select Connect. Now, the micro:bit has been successfully connected.

Click Download Program

Case Demonstration

After turning on the power, press button A to make the vibration robot move forward, and press button B to make the vibration robot stop moving.

Extended Knowledge

  1. Daily applications of eccentric motion: Mobile phone vibration, electric massagers, and balance control of washing machine spin tubs all use the principle of "vibration generated by the rotation of eccentric components". The only difference is that different designs are used to control the intensity and direction of vibration.
  2. Practical value of vibration robots: In the industrial field, micro vibration robots can be used for pipe inspection (moving inside pipes through vibration); in the scientific research field, they can simulate the "jumping" movement of insects to explore movement solutions in complex environments.
  3. Vibration and balance: The movement direction of vibration robots is difficult to control accurately due to the randomness of vibration. In reality, engineers will add sensors (e.g., gyroscopes) and control algorithms to enable vibration robots to achieve directional movement.