STEP CLIMBING ROBOT

Photo of author

By Jackson Taylor

Home » DIY Tech Projects » STEP CLIMBING ROBOT

As an Amazon Associate we earn from qualifying purchases.

A step climbing robot is a small mobile robot that can drive up a stair or a raised edge instead of stopping in front of it. It is a popular DIY electronics project because it combines mechanical design, motor control and a little programming in one build. This page shows the demo videos, explains how these robots work, and gives a basic Arduino sketch for driving the motors.

Demo videos

The two videos below show the robot in action.

How a step climbing robot works

A normal two-wheel robot stops when a wheel meets a vertical edge. To get over it, the robot needs enough grip, enough motor torque, and a body shape that lets it shift its weight onto the step. Most DIY designs solve this in one of a few ways.

Hardware Hack

Stop Buying New Batteries for Your Tech

Electronics are expensive, but their power sources don't have to be. Discover the simple engineering trick to recondition dead batteries and bring your gadgets back to 100% capacity.

Watch the Free Video

Tracked (caterpillar) drive

Rubber or plastic tracks spread the contact area over a long surface. The front of the track catches the edge of the step and the rest of the track pulls the body up. Tracks are simple to understand and work well on stairs with a regular size.

Wheels with a lifting arm

Some robots add a front arm or flipper. The arm pushes down on the step to lift the front of the chassis, and the wheels then drive it forward. This lets the robot handle a step taller than its wheel radius.

Rocker or multi-wheel designs

Linked wheel sets, such as a rocker arrangement, let the wheels move independently so several of them keep contact while the front one climbs. These need more mechanical work but keep the body steadier.

What you need to build one

  • Microcontroller: an Arduino Uno or a similar board is enough for basic control.
  • Motor driver: a dual H-bridge driver module, since an Arduino pin cannot power a motor directly.
  • DC gear motors: geared motors give the torque needed to climb. Pick motors with good torque rather than high speed.
  • Chassis, wheels or tracks: a sturdy frame with high-grip wheels or tracks.
  • Battery: a pack that can supply the motor current, kept separate from or properly regulated for the logic side.
  • Optional extras: a Bluetooth module for remote control, and a buzzer or LED for status.
See also
Monitor and Control of Greenhouse Environment -simulation in proteus using arduino

How the Arduino controls the motors

The sketch below uses four digital pins, 9 to 12, to drive two DC motors through a motor driver. Pins 9 and 10 control one motor, and pins 11 and 12 control the other. Setting one pin of a pair HIGH and the other LOW spins that motor in one direction. Swapping them reverses it, and setting both LOW stops it.

The program defines five movement functions:

  • FRD(): both motors forward.
  • BACK(): both motors reverse.
  • RIGHT(): only the first motor runs, so the robot turns right.
  • LEFT(): only the second motor runs, so the robot turns left.
  • STOP(): all motor pins LOW.

At start-up, outputdeclare() sets pins 8 to 12 as outputs, outputtest() switches them all on for half a second as a quick check, and serial() opens the serial port at 9600 baud and prints a message. The loop() function is empty in this version, so the robot does not move on its own. You call the movement functions from it, or from serial commands, to make the robot drive.

Program

void setup()
{
  outputdeclare();
  outputtest();
  serial();
}
void loop()
{
}
void FRD(void)
{
digitalWrite(9,HIGH); digitalWrite(10,LOW); digitalWrite(11,HIGH); digitalWrite(12,LOW);
}
void BACK(void)
{
digitalWrite(9,LOW); digitalWrite(10,HIGH); digitalWrite(11,LOW); digitalWrite(12,HIGH);
}
void RIGHT(void)
{
digitalWrite(9,HIGH); digitalWrite(10,LOW); digitalWrite(11,LOW); digitalWrite(12,LOW);
}
void LEFT(void)
{
digitalWrite(9,LOW); digitalWrite(10,LOW); digitalWrite(11,HIGH); digitalWrite(12,LOW);
}
void STOP(void)
{
digitalWrite(9,LOW); digitalWrite(10,LOW); digitalWrite(11,LOW); digitalWrite(12,LOW);
}
void outputdeclare(void)
{
  pinMode(8, OUTPUT);
pinMode(9, OUTPUT); pinMode(10, OUTPUT); pinMode(11, OUTPUT); pinMode(12, OUTPUT);
}
void outputtest(void)
{ digitalWrite(8,HIGH);
 digitalWrite(9,HIGH); digitalWrite(10,HIGH); digitalWrite(11,HIGH); digitalWrite(12,HIGH);
 delay(500);
 digitalWrite(8,LOW);
 digitalWrite(9,LOW); digitalWrite(10,LOW); digitalWrite(11,LOW); digitalWrite(12,LOW);
 //delay(1000);
}
void serial(void)
{
 Serial.begin(9600);
 Serial.println("emerging technologies");
}
/*
-------------DIGITAL----------------------------------------------
 pinMode(2, OUTPUT);
  digitalWrite(2,LOW);
 digitalWrite(2,HIGH);
-------------TIME----------------------------------------
 delay(1000);
------------SERIAL COMMUNICATION-------------
 Serial.begin(9600);
 Serial.println("emerging technologies");
 Serial.print("emerging technologies");
 Serial.write(a);
 if(Serial.available() > 0)char a=Serial.read();
 */

Tips for getting over steps reliably

  • Test motors without load first. Use the output test at start-up to confirm every pin and direction before you fit the wheels.
  • Keep the weight low and centred. A high battery makes the robot tip backwards when the front lifts.
  • Prioritise grip. Smooth hard wheels slip on a stair edge. Rubber treads or tracks help a lot.
  • Power the motors properly. Weak batteries cause stalls on the step, which is when current demand is highest. If the Arduino resets while climbing, the supply is probably sagging.
  • Approach the step straight. A robot that meets the edge at an angle can twist and stall, so drive both motors together with FRD().
See also
FIRE FIGHTING ROBOT

Related robot projects

If you want a robot that does something useful once it gets upstairs, see our fire extinguisher step climbing robot project, which uses Arduino too. For a different terrain challenge, there is also a slope climbing robot build. If you later switch to stepper motors for more precise movement, learn how stepper drivers use step and direction control with an Arduino Nano.

Frequently asked questions

Can an Arduino drive the motors directly?

No. Arduino pins supply only a small current, which is far too low for DC motors. The pins send logic signals to a motor driver, and the driver switches the higher motor current from the battery.

Why does the robot not move when I upload the sketch?

The loop() function is empty, so the program only runs the start-up test and prints a message. Add calls such as FRD(), a delay, and STOP() inside loop(), or read commands from the serial port, to make it move.

Do I need tracks to climb steps?

Not necessarily. Tracks help, but wheels with good grip, strong gear motors and a lifting arm can also work. The step height compared with the wheel size matters most.

Sustainable Tech

Keep Toxic E-Waste Out of Landfills

Don't throw away your failing laptop, phone, or car batteries. Learn how to recondition them at home in just a few hours. It's better for the planet—and your wallet.

Learn How It Works

How can I control the robot remotely?

Add a Bluetooth or other wireless serial module, read characters with Serial.read(), and call FRD(), BACK(), LEFT(), RIGHT() or STOP() depending on the character received.

Revive Your Dead Electronics

Got a drawer full of dead gadgets or a failing car battery? Instead of paying a premium for replacements, use this simple trick to easily recondition them right from home.

See How It Works