DIY crane using servo motors for port

DIY Robotic Port Crane for Kids | Build a Working Cargo Crane with Arduino
BEGINNER ROBOTICS · AGES 8–14

Build Your Own Port Crane Robot
That Really Lifts Cargo!

Ever watched a giant crane lift containers off a ship? Today you'll build a mini version with a servo motor, a few wires, and a cardboard "ship deck" — no soldering needed!

How Does a Real Port Crane Work? SCIENCE BIT

Quick science before we build — it'll make your project make a lot more sense!

At a real shipping port, giant gantry cranes use a motor to wind a steel cable around a drum. The cable runs over pulleys to a hook, which grabs a shipping container. The same motor that lifts the load also controls how fast and how far it travels — just at a much, much bigger scale.

Our robot crane uses the exact same idea, just shrunk down: a servo motor acts as the winch, a thread acts as the cable, and a paperclip becomes the hook. One motor, one job, real physics!

💡
Did you know? The biggest port cranes in the world can lift over 100 tons — that's about the weight of 15 elephants — using the same lever-and-pulley tricks you'll use today.

Parts & Tools You'll Need SHOPPING LIST

Most of these cost under $1 each, and you can swap cardboard/sticks for what you have at home.

x1

SG90 Micro Servo Motor

The "muscle" that winds the lifting thread.

x1

Arduino Uno (or Nano)

The "brain" that tells the servo when to lift and lower.

x1

Breadboard + jumper wires

For quick, solder-free connections.

x1

Potentiometer (10kΩ)

A twist knob to control the crane by hand.

x1

USB cable

Powers the Arduino from a laptop or power bank.

2–3

Wooden craft sticks / skewers

Builds the crane's jib (the long arm).

1

Small cardboard box

The crane's base & tower.

1

Sewing thread + paperclip

Your "steel cable" and hook.

x1

Hot glue gun (adult help)

To fix the tower and arm together.

Circuit Diagram WIRING

Only 3 wires go to the servo, and 3 go to the knob. That's it!

ARDUINO UNO 5V GND PIN 9 (PWM) A0 (ANALOG) SG90 SERVO orange → signal red → power brown → ground 10KΩ KNOB pin 1 → 5V middle → A0 pin 3 → GND
Power (5V) Ground (GND) Signal (Pin 9) Knob signal (A0)
🔌
No Arduino at home? You can skip the potentiometer and code entirely, and move the servo arm by hand using a small lever — it still teaches the same crane mechanics!

Step-by-Step Build LET'S MAKE IT

1

Build the Crane Tower

Stand your cardboard box upright — this is the crane's tower. Glue 2–3 craft sticks vertically up one side for extra strength, just like the steel beams on a real crane tower.

Why: a taller, sturdier tower means your hook can lift cargo higher.
2

Attach the Jib (the long arm)

Glue two skewers together in a long "V" or straight beam shape, then attach it to the top of the tower so it sticks out sideways over your "ship."

Why: the jib lets the crane reach over the ship without the tower moving.
3

Mount the Servo Motor

Glue the SG90 servo near the base of the tower, with its spinning arm (the "horn") facing up. This will act as your winch drum.

Why: placing the motor low keeps the crane balanced, just like real crane counterweights.
4

Add the Cable & Hook

Tie one end of your thread to the servo horn. Run the thread up and over the tip of the jib (a small loop of wire or a bead works as a pulley), then tie a bent paperclip to the other end as your hook.

Why: this is the exact same setup real cranes use — drum, cable, pulley, hook.
5

Wire Up the Circuit

Following the diagram above, connect the servo's signal wire to Pin 9, power to 5V, and ground to GND. Then wire the potentiometer to A0, 5V, and GND.

Why: the potentiometer lets you control lift speed and direction like a real crane operator's joystick.
6

Upload the Code & Test

Plug the Arduino into your computer, upload the code from the next section, and twist the knob. Watch your hook wind up and lower down!

Why: testing in small steps helps you catch wiring mistakes early — just like engineers do.
7

Build a Cargo Container

Make a tiny container from a folded paper box or LEGO bricks, light enough for your hook to lift. Try moving it from your "ship" to the "dock."

Why: this is the fun part — testing your crane in a real job, just like at a port!

The Arduino Code PROGRAMMING

Copy this into the Arduino IDE. It reads the knob position and turns the servo to match — turn it one way to lift, the other way to lower.

// DIY Port Crane — Servo Control
// Twist the knob (potentiometer) to lift and lower the hook

#include <Servo.h>

Servo craneWinch;          // our crane's winch motor
int knobPin = A0;         // potentiometer signal pin
int knobValue = 0;
int craneAngle = 0;

void setup() {
  craneWinch.attach(9);    // servo signal wire on Pin 9
  Serial.begin(9600);
}

void loop() {
  knobValue = analogRead(knobPin);          // reads 0-1023
  craneAngle = map(knobValue, 0, 1023, 0, 180); // converts to servo angle
  craneWinch.write(craneAngle);             // moves the winch

  Serial.print("Hook angle: ");
  Serial.println(craneAngle);

  delay(15);  // small pause so the servo moves smoothly
}
🧠
Try this challenge: Can you change the code so the crane automatically lifts to 90°, pauses for 2 seconds, then lowers back to 0° — without using the knob at all? Hint: look up the delay() function!

Safety Tips for Young Engineers IMPORTANT

⚠️ Read before you build

  • Ask an adult to help with the hot glue gun — it gets very hot.
  • Keep small parts like the potentiometer and paperclip away from younger siblings.
  • Only plug the Arduino into a computer or USB power bank, never a wall outlet directly.
  • Don't try to lift anything heavier than a few coins — the SG90 servo is small and can overheat if pushed too hard.
  • Always unplug the USB cable before changing any wiring.

Frequently Asked Questions FAQ

Do I need to know how to code to build this?

No! You can skip the Arduino and potentiometer and move the servo arm by hand, or even build a fully manual crane using just a hand-cranked spool instead of a motor.

What age group is this robotics project best for?

This project works well for kids around 8–14, especially with an adult helping with the glue gun and circuit wiring. Older kids can try writing their own code challenges.

How much weight can the DIY crane actually lift?

The SG90 micro servo can comfortably lift very light loads — think paper, a few coins, or small LEGO bricks. It's built for learning the mechanics, not heavy lifting.

Can this project be used for a school science fair?

Yes! It's a great choice because it combines mechanical engineering (pulleys, levers) with basic electronics and coding, and the build itself is very visual for judges.

What's the difference between this and a real port crane?

The basic idea — motor, cable, pulley, hook — is identical. Real port cranes use much bigger motors, steel cables, and computer systems to safely lift containers weighing many tons.

🏗️ PROJECT COMPLETE

Built your crane? Try adding a second servo to make the jib rotate left and right, just like a real port crane!

Comments

Product Cards
Buddy Bot eBook
⭐ New 2026 Release
Build Your
Own Robot!
3D design, wiring &
Arduino coding.
Young inventors love it!
🖨️
3D Print
All parts
Wire it
Circuit guide
💻
Code it
Arduino IDE
🤖
Watch it
Walk & react
📋 Your Details
Enter your name
Valid 10-digit no.
Enter a valid email
Special Website Offer
₹499 300
🌍 International: $5 USD
One-time · Instant digital delivery
🔒 Secured by Razorpay · Your data is safe
📄 Download Free Sample Copy
🔒 Secured by Razorpay · Your data is safe
🍓
Raspberry Pi Pico Mastery
21 Projects
⚡ Launch Price — 80% OFF
Learn Pico
Build 21 Projects!
MicroPython · Wokwi
IoT · Certificate
Perfect for beginners!
🖥️
Wokwi
No hardware
🐍
MicroPy
From zero
🔨
21 Projects
IoT + sensors
📄
Certificate
Verified cert
📋 Your Details
Enter your name
Valid 10-digit no.
Enter a valid email
Special Launch Offer
₹999 200 80% OFF
🌍 International: $5 USD
One-time · Lifetime access · No subscription
🔒 Secured by Razorpay · UPI · Cards · NetBanking
🎉

You're in!

Payment successful! Your Buddy Bot eBook is ready. Time to build!

📖 Access Your eBook Now
🎉

Enrolled!

Payment successful! Lifetime access to all 21 Pico Projects is yours!

🍓 Go to My Course