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!
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.
SG90 Micro Servo Motor
The "muscle" that winds the lifting thread.
Arduino Uno (or Nano)
The "brain" that tells the servo when to lift and lower.
Breadboard + jumper wires
For quick, solder-free connections.
Potentiometer (10kΩ)
A twist knob to control the crane by hand.
USB cable
Powers the Arduino from a laptop or power bank.
Wooden craft sticks / skewers
Builds the crane's jib (the long arm).
Small cardboard box
The crane's base & tower.
Sewing thread + paperclip
Your "steel cable" and hook.
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!
Step-by-Step Build LET'S MAKE IT
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.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.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.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.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.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.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
}
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.

Comments
Post a Comment