Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Projects
  3. ›Quadruped spider robot

Robotics projects

Quadruped spider robot: centre the servos, then code a walking gait

Assemble an 8-servo spider, calibrate every joint with a servo tester, and drive the legs from a PCA9685 board.

By Geekobot Learning Team

Intermediate
Difficulty
1 day
Build time
₹25,399
Parts cost
14
Parts
Arduino
Platform
Add all parts · ₹25,399Start building
  • Robots & vehicles
  • Learning & classroom
Tap a part to see what it does
OverviewPartsWiringBuildCodeTroubleshootFAQIdeas

What you'll build

Legged robots look hard but follow a simple pattern: each leg lifts, swings forward and pushes back in turn. The most common reason a kit robot walks badly is servos mounted off-centre, so this build starts by centring every servo with a servo tester before assembly. A PCA9685 board gives 16 clean servo channels over I2C and takes the load off the Nano.

What you'll learn

  • Centring and trimming servos
  • Driving servos over I2C with a PCA9685
  • A basic creep gait for four legs
Safety

Lithium batteries need a proper charger and must never be left charging unattended.

Keep fingers clear of the joints when the servos are powered.

  1. ThinkNano runs the gait table
  2. DrivePCA9685 sends 8 servo signals
  3. ActLegs lift, swing and push

Parts list

Tick anything you already have and the total updates.

PartQtyPrice
  • Quadruped Spider Robot Kit (Arduino Nano)
    GB-ROBO-0144

    Quadruped spider robot kit

    × 1₹1,140₹1,140
  • PCA9685 16-Channel PWM / Servo Driver
    GB-MOTR-0104

    16-channel servo driver

    × 1₹1,669₹1,669
  • RC Servo Motor Tester (3-Channel)
    GB-MOTR-0024Guide

    Centres each servo before you fit the horns

    × 1₹99₹99
  • NANO
    Nano CH340 Development Board (Soldered)
    GB-SBCD-0339Guide

    Runs the gait if your kit does not include a controller

    × 1₹185₹185
  • TowerPro MG90S Metal Gear Micro Servo
    GB-MOTR-0030Guide

    MG90S metal gear micro servos, if your kit does not include them

    × 8₹1,032₹1,032
  • Quadruped Dog and 4-DOF Arm 2-in-1 Kit
    GB-ROBO-0035

    Quadruped dog and 4-DOF arm 2-in-1 kit

    × 1₹764₹764
  • Otto Pro Humanoid DIY Robot Kit
    GB-ROBO-0143

    Otto humanoid kit: a two-legged walker for the next step

    × 1₹4,350₹4,350
  • 8 DOF Humanoid Biped Robot Kit (Without Servos)
    GB-ROBO-0142

    8-DOF biped frame (servos sold separately)

    × 1₹5,900₹5,900
  • Waveshare Serial Bus Servo Driver Board
    GB-MOTR-0026Guide

    Serial bus servo driver for robots with smart servos

    × 1₹481₹481
  • Cytron 8-Channel Servo Shield for Arduino
    GB-MOTR-0074Guide

    8-channel servo shield that plugs onto an Arduino

    × 1₹2,047₹2,047
  • Servo Signal Reverser Module
    GB-MOTR-0112Guide

    Servo signal reverser for mirrored legs on RC models

    × 1₹157₹157
  • Hiwonder WonderCam AI Vision Camera Robot Vision Module
    GB-ROBO-0177

    AI vision camera to make the robot follow colours or tags

    × 1₹7,550₹7,550
  • Nylon Hex Standoff M3 (Single)
    GB-MECH-0072

    Nylon standoffs for mounting the boards

    × 1₹3₹3
  • Sensor and Cable Mounting Bracket
    GB-MECH-0077

    Small bracket for a sensor on the front

    × 1₹22₹22

Complete kit

14 of 14 parts in one tap

₹25,399

GST included

3% off these parts while the whole kit stays in your cart

Parts you still need

₹25,399

14 of 14 parts. Tick anything you already have.

About ₹7,61,970 before bulk pricing for 30 kits.

Request bulk quote

Tools you'll need

  • 24 in 1 Precision Screwdriver Set
  • Digital Multimeter

Learn the parts

  • Servo Testers and Servo Signal Reverser
  • ESP32 vs Arduino Uno
  • SG90 and MG90S Micro Servo
  • Waveshare Serial Bus Servo Driver Board
  • Cytron SC08A 8-Channel Serial Servo Controller and Servo Shield

Wiring

Follow the colours: red is power, dark grey is ground, blue is a signal.

Eight servos can draw 3 A or more together. Use a 2-cell battery with a 5-6 V BEC or a 5 V 3 A supply on the PCA9685 V+ terminal.

PartPinConnect toNote
PCA9685SDA / SCL / VCC / GNDA4 / A5 / 5V / GND
PCA9685V+ terminal5 to 6 V battery or BEC, 3 A or moreServos must not run from the Nano's 5 V
ServosLegs 1-4: hip and kneeChannels 0-7Hip on even channels, knee on odd channels
  • PCA9685SDA / SCL / VCC / GND → A4 / A5 / 5V / GND
  • PCA9685V+ terminal → 5 to 6 V battery or BEC, 3 A or moreServos must not run from the Nano's 5 V
  • ServosLegs 1-4: hip and knee → Channels 0-7Hip on even channels, knee on odd channels
Built it? Check your wiring before you power up.Pick the pin each wire went to and we'll point out swapped pins, power mistakes and pins that clash.

Step-by-step build

0 of 6 done

Code

spider_gait.inoVerify & upload in Electrolark
#include <Wire.h>
#include <Adafruit_PWMServoDriver.h>
Adafruit_PWMServoDriver pwm;

int TRIM[8] = {0, 0, 0, 0, 0, 0, 0, 0};     // degrees, set during trimming
const bool WALK = true;

void servo(int ch, int deg) {
  deg = constrain(deg + TRIM[ch], 0, 180);
  int us = map(deg, 0, 180, 500, 2500);
  pwm.writeMicroseconds(ch, us);
}

void leg(int n, int hip, int knee) { servo(n * 2, hip); servo(n * 2 + 1, knee); }

void stand() { for (int n = 0; n < 4; n++) leg(n, 90, 90); }

void step(int n) {                        // lift, swing forward, put down
  int dir = (n == 0 || n == 3) ? 1 : -1;  // mirrored sides
  leg(n, 90, 60);           delay(120);
  leg(n, 90 + 25 * dir, 60); delay(120);
  leg(n, 90 + 25 * dir, 90); delay(120);
}

void push() {                             // all hips back together moves the body forward
  for (int a = 0; a <= 25; a += 5) {
    for (int n = 0; n < 4; n++) {
      int dir = (n == 0 || n == 3) ? 1 : -1;
      servo(n * 2, 90 + (25 - a) * dir);
    }
    delay(30);
  }
}

void setup() {
  pwm.begin();
  pwm.setOscillatorFrequency(27000000);
  pwm.setPWMFreq(50);
  stand();
  delay(1000);
}

void loop() {
  if (!WALK) return;
  int order[4] = {0, 2, 1, 3};            // front-left, back-right, front-right, back-left
  for (int i = 0; i < 4; i++) step(order[i]);
  push();
}

Troubleshooting

Robot resets when it starts walking+

The servos pull the supply down. Power V+ from a separate battery or BEC that can give 3 A or more.

One leg moves the wrong way+

That servo is mirrored; flip its direction in the code or use a signal reverser.

Servos buzz while standing+

Normal under load; if they get hot, the leg is fighting the body, so check the TRIM values.

FAQ

Does the kit include servos?+

Check the product page of the kit. If not, eight MG90S servos are a strong choice.

Why the PCA9685 instead of Arduino pins?+

It makes all 16 servo signals in hardware, so the code stays simple and the timing is steady.

Can it walk on carpet?+

Short pile, yes. Add rubber feet for smooth floors.

What parts do I need to build the quadruped spider robot: centre the servos, then code a walking gait?+

14 parts: Quadruped Spider Robot Kit (Arduino Nano), PCA9685 16-Channel PWM / Servo Driver, RC Servo Motor Tester (3-Channel), Nano CH340 Development Board (Soldered), 8 × TowerPro MG90S Metal Gear Micro Servo, Quadruped Dog and 4-DOF Arm 2-in-1 Kit, Otto Pro Humanoid DIY Robot Kit, 8 DOF Humanoid Biped Robot Kit (Without Servos), Waveshare Serial Bus Servo Driver Board, Cytron 8-Channel Servo Shield for Arduino, plus 4 more. Tools: 24 in 1 Precision Screwdriver Set and Digital Multimeter. On this page you can tick the parts you already have and add only the rest to your cart.

How hard is it and how long does it take?+

It is a intermediate project and takes about 1 day. The build on this page has 6 steps.

Do I need to write the code myself?+

No. This page has the complete, tested code (spider_gait.ino).

How much does the quadruped spider robot: centre the servos, then code a walking gait cost to build?+

About ₹25,399 for the parts at the prices on this page, plus tools if you do not have them. Quantity price breaks lower the cost when you build several.

What will I learn from this project?+

Centring and trimming servos; Driving servos over I2C with a PCA9685; A basic creep gait for four legs.

Is it safe to build?+

Lithium batteries need a proper charger and must never be left charging unattended. Keep fingers clear of the joints when the servos are powered.

What can I build next with these parts?+

Ideas that reuse this build: Teensy USB MIDI knob controller. They are listed under Take it further on this page.

Take it further

  • Teensy USB MIDI knob controller

Related projects

  • UNO18650
    Robotics
    Intermediate· 3–4 hours

    Line follower robot with L298N and TCRT5000

    The classic robotics starter: a two-wheeled car that tracks a black line on its own.

    ₹1,170 · 10 partsArduino
  • UNO
    Robotics
    Intermediate· 3–4 hours

    Obstacle-avoiding robot

    A robot that looks left and right with its ultrasonic "head" and picks the clearest way.

    ₹1,308 · 11 partsArduino
  • UNO18650
    Robotics
    Intermediate· 3 hours

    Table-edge avoiding robot

    Roams a tabletop without ever driving off the edge.

    ₹1,170 · 10 partsArduino
  • UNO18650
    Robotics
    Intermediate· 3 hours

    Bluetooth phone-controlled 4WD car

    Drive a 4WD car from your Android phone over Bluetooth.

    ₹1,670 · 11 partsArduino

Learning project. Check every circuit and the datasheet of each part before you power it up.

Ask the Community

Ask a question Share your build