Satpuda STEM Lab · Curriculum Day 2 Dossier · Saturday, 21 November 2026

2WD Smart Robot Car Chassis Assembly & Wiring Guide

Complete step-by-step mechanical assembly, dual H-bridge motor driver wiring, common ground bridging, and live firmware calibration for the autonomous robot car platform.

Roadmap: 🚗 Day 1: Motors & Power 🛠️ Day 2: Chassis Assembly 🎮 Day 3: Serial & RC Driving 📡 Day 4: Autonomous Radar

1. 🎯 Session Overview & 4-Day Progressive Roadmap

Our 4-day progressive smart car robotics journey transforms raw components into an autonomous obstacle-navigating robotic vehicle:

2. 📦 Bill of Materials & Kit Components

Component Quantity Specification & Role
Acrylic Chassis Plate 1 Pc Laser-cut transparent base plate with pre-drilled mounting slots for motors, standoffs, Arduino, and battery holder.
TT Gearbox DC Motors 2 Pcs Dual-shaft 3–6V DC motors with pre-soldered flexible wires from Day 1.
Rubber Traction Wheels 2 Pcs 65mm diameter rubber wheels fitting motor D-shafts.
Omnidirectional Caster 1 Pc Metal ball caster for smooth front 360-degree pivoting and balance.
Acrylic T-Brackets 4 Pcs Mounting brackets for clamping TT motors securely onto chassis base.
Fastener Screws & Nuts 1 Set Long M3x30 screws (motor clamps), M3x10 screws, brass standoffs & nuts.
Arduino Uno R3 + Cable 1 Pc Brain controller loaded with calibration and navigation firmware.
L298N Motor Driver 1 Pc Dual H-Bridge driver with heavy-duty heat sink (controls 2 motors independently).
Battery Holder & Switch 1 Set 2x 18650 Li-ion holder (7.4V) with SPST toggle switch in series on Red wire.

3. 🛠️ Step-by-Step Mechanical Assembly Walkthrough

1 Protective Kraft Paper Peeling

Peel off the protective brown kraft paper from both sides of the transparent acrylic chassis plate. Inspect the chassis to ensure all pre-cut screw slots and the central rectangular switch hole are clean and free of burrs.

2 TT Gearbox Motor Mounting

Take two acrylic T-brackets for each motor. Insert the long M3x30 screws through the brackets, sandwiching the yellow TT gearbox motor firmly against the chassis plate. Secure the nuts from the bottom. Crucial: Ensure the motor drive shafts point outward away from the chassis.

3 Omnidirectional Front Caster Wheel Installation

Mount the metal ball caster wheel at the front of the chassis using the two brass/metal standoffs and M3x10 screws. The standoffs ensure the chassis remains completely level with the rear drive wheels.

4 Power Toggle Switch & Battery Box Mounting

Snap the small rectangular rocker/toggle switch into the pre-cut switch slot on the chassis. Connect the RED wire of the 18650 battery holder to one terminal of the switch, and run a wire from the other switch terminal to the L298N 12V screw terminal. Mount the battery holder securely using M3 screws or double-sided tape.

5 Wheels Installation & Clearance Verification

Press the rubber traction wheels onto the D-shaped motor shafts. Push them firmly until seated, but leave a 1mm gap between the wheel hub and the acrylic chassis to prevent friction.

4. 🔌 Wiring Architecture & Complete Pinout Table

The L298N Dual H-Bridge acts as the high-current interface between the low-voltage Arduino microcontroller and the inductive DC motors:

+-------------------------------------------------------------------------------+ | CONNECT ROBO 2WD SMART CAR WIRING & CHASSIS ARCHITECTURE | +-------------------------------------------------------------------------------+ +-------------------+ +-------------------+ | LEFT TT MOTOR | | RIGHT TT MOTOR | | (Wheel Left) | | (Wheel Right) | +--------+----------+ +---------+---------+ | | OUT1/2 | OUT3/4 | v v +-----------------------------------------------------+ | L298N DUAL H-BRIDGE | | | | [OUT1 OUT2] [OUT3 OUT4] | | | | ENA IN1 IN2 IN3 IN4 ENB +12V GND +5V | +---+-----+-----+-----+-----+-----+-----+---+----+----+ | | | | | | | | | | | | | | | | | +---> (5V Logic) | | | | | | | | | | | | | | | +----------+ | | | | | | | | (Common GND) | | | | | | +-------+ | | | | | | | | | | | | | | | +----+---+ | | | | | | | | SWITCH | | | | | | | | +----+---+ | | | | | | | | | | | | | | | | (+) | (-) | | | | | | +----+-------+-----+ | | | | | | | 2x 18650 LI-ION | | | | | | | | PACK (7.4V) | | | | | | | +------------------+ | | | | | | | | | | | | v v v v v v +-----------------------------------+ | Pin5 Pin6 Pin7 Pin8 Pin9 Pin10| | | | ARDUINO UNO R3 | | | | GND | +----------------+------------------+ | +-------------------------------------+
L298N Terminal Arduino Pin ESP32-S3 Pin Function & Pinout Description
ENA (Speed A) Pin 5 (PWM) GPIO 4 Controls Left Motor speed via analogWrite(ENA, speed); remove jumper cap
IN1 (Direction A1) Pin 6 GPIO 5 Left Motor Direction control line 1
IN2 (Direction A2) Pin 7 GPIO 6 Left Motor Direction control line 2
IN3 (Direction B1) Pin 8 GPIO 7 Right Motor Direction control line 1
IN4 (Direction B2) Pin 9 GPIO 8 Right Motor Direction control line 2
ENB (Speed B) Pin 10 (PWM) GPIO 9 Controls Right Motor speed via analogWrite(ENB, speed); remove jumper cap
OUT1 / OUT2 Left TT Motor Left TT Motor Connected to the 2 soldered leads of Left Wheel Motor
OUT3 / OUT4 Right TT Motor Right TT Motor Connected to the 2 soldered leads of Right Wheel Motor
12V Terminal Battery Switch (+) Battery Switch (+) High-current motor power input from 7.4V Li-ion pack via switch
GND Terminal Arduino GND ESP32 GND MANDATORY: Connect Battery (-) AND Arduino GND together!

5. 🌟 The 5 Golden Rules of 2WD Robotics Assembly

⚡ Golden Rule 1: Mandatory Common Ground Reference

Always bridge the negative wire (−) of your 7.4V battery pack to both the L298N GND screw terminal and the Arduino GND header pin. Without this shared reference point, digital signals from Arduino Pins 5–10 will float unpredictably, causing the motors to stutter or fail completely.

🔌 Golden Rule 2: ENA / ENB Jumper Caps vs. PWM Wires

By default, L298N modules ship with black plastic jumper caps installed on ENA and ENB (locking them permanently to 100% full speed). You must pull off these two black jumper caps before connecting jumper wires from Pin 5 and Pin 10. This enables smooth PWM speed control (analogWrite).

🔄 Golden Rule 3: Instant Motor Direction Fixing (Hardware over Code)

If you upload the forward code and notice one wheel spinning forward while the other spins backward, do not rewrite your code! Simply turn off the power switch, loosen the two screw terminals for that motor (OUT1/OUT2 or OUT3/OUT4), swap the two wires, and tighten them. The motor direction will instantly invert.

⚖️ Golden Rule 4: Ball Caster Height & Leveling

Always use the supplied brass standoffs when screwing down the front caster wheel. If the caster is mounted flat against the chassis without standoffs, the robot car will tilt down in front, lifting the rear drive wheels slightly off the ground and losing traction.

🛡️ Golden Rule 5: Switch OFF Before Plugging in USB

When connecting the Arduino Uno to your laptop or PC via USB cable to upload new sketches, keep the robot car power switch in the OFF position. This protects your computer's USB port from unexpected motor inrush current spikes.

6. 📋 10-Point Student Verification & Safety Checklist

Students must physically verify each item with their lab partner before flipping the power switch ON:

Checklist Completion: 0 / 10 (0%)
1. Chassis Plate: Protective kraft paper completely peeled and chassis clear of burrs.
2. Motor Clamps: TT motors firmly clamped with T-brackets; zero wobble or looseness.
3. Wheel Gap: 1mm clearance maintained between rubber wheels and chassis plate to prevent friction.
4. Caster Mobility: Front ball caster rotates smoothly 360° without binding.
5. Jumper Caps: Black jumper caps removed from ENA and ENB on the L298N board.
6. Pin Mapping: ENA→5, IN1→6, IN2→7, IN3→8, IN4→9, ENB→10 verified one-by-one.
7. Common Ground: Arduino GND and Battery (−) firmly tightened together inside L298N GND terminal.
8. Battery Polarity: 18650 Li-ion cells installed in matching (+ / −) directions into the battery holder.
9. Switch Test: Power switch is in OFF position before plugging into computer USB.
10. Elevated Test: Place the robot car on top of a small box or tape roll so wheels spin freely in the air during initial testing.
🚀 100% PRE-FLIGHT CLEARANCE VERIFIED! All hardware connections confirmed. Flip Battery Switch ON!

7. 💻 Calibration & Chassis Integration Sketches

Sketch 1: CHASSIS_CALIBRATION_TEST.ino (Direction & Alignment Sweep)
/*
 * Connect Robo - Satpuda STEM Lab (21 Nov 2026)
 * Sketch 1: Robot Chassis Direction & Calibration Test
 * Tests: Forward (2s), Stop (1s), Reverse (2s), Pivot Left (1s), Pivot Right (1s)
 */

const int ENA = 5;
const int IN1 = 6;
const int IN2 = 7;
const int IN3 = 8;
const int IN4 = 9;
const int ENB = 10;

void setup() {
  pinMode(ENA, OUTPUT);
  pinMode(IN1, OUTPUT);
  pinMode(IN2, OUTPUT);
  pinMode(IN3, OUTPUT);
  pinMode(IN4, OUTPUT);
  pinMode(ENB, OUTPUT);

  analogWrite(ENA, 180); // 70% Speed
  analogWrite(ENB, 180);
}

void loop() {
  // 1. Move Forward (2 Seconds)
  digitalWrite(IN1, HIGH); digitalWrite(IN2, LOW);
  digitalWrite(IN3, HIGH); digitalWrite(IN4, LOW);
  delay(2000);

  // 2. Stop (1 Second)
  digitalWrite(IN1, LOW); digitalWrite(IN2, LOW);
  digitalWrite(IN3, LOW); digitalWrite(IN4, LOW);
  delay(1000);

  // 3. Move Reverse (2 Seconds)
  digitalWrite(IN1, LOW); digitalWrite(IN2, HIGH);
  digitalWrite(IN3, LOW); digitalWrite(IN4, HIGH);
  delay(2000);

  // 4. Stop (1 Second)
  digitalWrite(IN1, LOW); digitalWrite(IN2, LOW);
  digitalWrite(IN3, LOW); digitalWrite(IN4, LOW);
  delay(1000);

  // 5. Pivot Left (1 Second)
  digitalWrite(IN1, LOW); digitalWrite(IN2, HIGH);
  digitalWrite(IN3, HIGH); digitalWrite(IN4, LOW);
  delay(1000);

  // 6. Pivot Right (1 Second)
  digitalWrite(IN1, HIGH); digitalWrite(IN2, LOW);
  digitalWrite(IN3, LOW); digitalWrite(IN4, HIGH);
  delay(1000);
}
Sketch 2: PC_KEYBOARD_SERIAL_CAR.ino (PC / Serial Keyboard Navigation)
/*
 * Connect Robo - Satpuda STEM Lab (21 Nov 2026)
 * Sketch 2: PC Serial Keyboard Controlled Robot Car
 * Commands: 'F' = Forward, 'B' = Backward, 'L' = Left, 'R' = Right, 'S' = Stop
 * Speed keys: '1' (Slow) to '5' (Fast)
 */

const int ENA = 5;
const int IN1 = 6;
const int IN2 = 7;
const int IN3 = 8;
const int IN4 = 9;
const int ENB = 10;

int currentSpeed = 180;

void setup() {
  Serial.begin(9600);
  pinMode(ENA, OUTPUT);
  pinMode(IN1, OUTPUT);
  pinMode(IN2, OUTPUT);
  pinMode(IN3, OUTPUT);
  pinMode(IN4, OUTPUT);
  pinMode(ENB, OUTPUT);

  analogWrite(ENA, currentSpeed);
  analogWrite(ENB, currentSpeed);

  Serial.println("==========================================");
  Serial.println("Connect Robo: PC Keyboard Car Control Ready!");
  Serial.println("Commands: F (Forward), B (Back), L (Left), R (Right), S (Stop)");
  Serial.println("Speed Tiers: Press '1' to '5'");
  Serial.println("==========================================");
}

void loop() {
  if (Serial.available() > 0) {
    char cmd = Serial.read();

    if (cmd >= '1' && cmd <= '5') {
      currentSpeed = map(cmd - '0', 1, 5, 110, 255);
      analogWrite(ENA, currentSpeed);
      analogWrite(ENB, currentSpeed);
      Serial.print("Speed updated: ");
      Serial.println(currentSpeed);
      return;
    }

    switch (cmd) {
      case 'F': case 'f':
        digitalWrite(IN1, HIGH); digitalWrite(IN2, LOW);
        digitalWrite(IN3, HIGH); digitalWrite(IN4, LOW);
        Serial.println(">> MOVING FORWARD [F]");
        break;

      case 'B': case 'b':
        digitalWrite(IN1, LOW); digitalWrite(IN2, HIGH);
        digitalWrite(IN3, LOW); digitalWrite(IN4, HIGH);
        Serial.println(">> MOVING BACKWARD [B]");
        break;

      case 'L': case 'l':
        digitalWrite(IN1, LOW); digitalWrite(IN2, HIGH);
        digitalWrite(IN3, HIGH); digitalWrite(IN4, LOW);
        Serial.println(">> TURNING LEFT [L]");
        break;

      case 'R': case 'r':
        digitalWrite(IN1, HIGH); digitalWrite(IN2, LOW);
        digitalWrite(IN3, LOW); digitalWrite(IN4, HIGH);
        Serial.println(">> TURNING RIGHT [R]");
        break;

      case 'S': case 's':
        digitalWrite(IN1, LOW); digitalWrite(IN2, LOW);
        digitalWrite(IN3, LOW); digitalWrite(IN4, LOW);
        Serial.println(">> STOPPED [S]");
        break;

      default:
        break;
    }
  }
}

8. 🩺 Classroom Troubleshooting Matrix

Quick Filters:
Issue Observed Underlying Cause Instant Classroom Remedy
One wheel spins backward when 'F' is commanded DC motor terminal polarity is inverted. Swap the two motor wires connected to the L298N OUT screw terminals for that wheel.
Car drifts to one side instead of driving straight Slight mechanical friction or small motor manufacturing variance. Trim the PWM speed in code: e.g. analogWrite(ENA, 185); analogWrite(ENB, 175);
Arduino reboots or resets when motors start Voltage sag caused by heavy motor inrush current. Do not power motors from Arduino 5V! Ensure L298N 12V terminal is powered directly by 7.4V battery pack.
Motors whine with high pitch but do not spin PWM speed duty cycle is below stall torque threshold. Increase PWM value to at least 110–130 so the gearbox has sufficient starting torque.
Motors jitter or twitch erratically Floating ground reference between Arduino and L298N. Ensure Arduino GND and Battery (−) are both firmly clamped in the L298N GND terminal.
Code does not upload over USB Port locked by serial monitor or baud rate mismatch. Close Serial Monitor before clicking Upload in IDE, and ensure correct COM port is chosen.