Germán Piñeres All projects

Project · Tracked robot

Tracked robot

A 3D-printed tracked robot that you drive from your phone. Two yellow gear motors turn the rear sprockets, and each track is 36 printed links that snap together. An Arduino Nano reads the commands from an HC-06 Bluetooth module and drives the motors through an L298N, so the robot can go forward, reverse and spin on the spot. Three 18650 cells give it 11.1 V, and a red 12 V LED strip behind the front wall glows through the plastic, switched by a MOSFET from one of the Arduino's 5 V pins.

Size
214 × 184 × 63 mm
Battery
3S Li-ion, 11.1 V
Motors
2× TT gear motor
Control
Bluetooth, HC-06
Brain
Arduino Nano
Lights
Red 12 V LED strip

What's inside

Hover over a part or its number to see it on its own. The robot is upside down, the way you open it.

  1. 1
    BodyPrinted in white PLA, one piece

    Flat top, rounded front and back, open bottom. Everything inside is taped to the inside of the top. About 194 × 132 × 46 mm.

  2. 2
    Side lids ×2Printed, glued to the body

    Each carries a front axle pin and has a hole for the motor shaft.

  3. 3
    Sprockets ×4Printed, 12 teeth

    44.8 mm across, 12.2 mm wide. The rear ones sit on the motor shafts, and the front ones turn freely on the axle pins.

  4. 4
    Track links ×72Printed, 36 per track

    12.7 mm pitch, 21.6 mm wide. They snap together on their own pins and are a little loose, so the tracks don't bind.

  5. 5
    Gear motors ×2Yellow TT gear motors, 3–6 V, 1:48

    Taped to the side lids, one per track.

  6. 6
    Motor driverL298N dual H-bridge

    Sets the direction and PWM speed of each track. Its 5 V regulator also powers the Arduino.

  7. 7
    Arduino NanoATmega328P

    Reads the Bluetooth commands and drives everything. It replaces the original Arduino Mega: same code, a fraction of the size.

  8. 8
    Bluetooth moduleHC-06

    9600 baud. Pairs with the phone.

  9. 9
    Battery3× 18650 Li-ion in series, in a holder

    11.1 V nominal, 12.6 V full.

  10. 10
    Battery plug5.5 × 2.1 mm DC plug and socket

    Unplug it to switch the robot off.

  11. 11
    LED stripRed, 12 V, 6 LEDs (two 5 cm segments)

    Stuck inside the front wall, so it glows through the plastic.

  12. 12
    LED switchIRLZ44N logic-level N-MOSFET

    With a 220 Ω gate resistor and a 10 kΩ pull-down. It lets a 5 V pin switch the 12 V strip.

  13. 13
    Double-sided tapeFoam pads

    Hold every board, the battery holder and the motors.

Exploded view of the robot upside down: the body in the middle with the battery, Arduino Nano, Bluetooth module, motor driver, motors, MOSFET board and LED strip lifted out of it, and the side lids, sprockets and tracks pulled out to each side 1 2 3 4 5 6 7 8 9 10 11 12 13

Inside, from above

The robot upside down with its bottom open, seen straight from above: where every part sits.

The assembled robot upside down, seen straight from above: the two yellow gear motors in the top corners, the L298N motor driver between them, the battery holder with three blue 18650 cells on the right, the Arduino Nano and the HC-06 Bluetooth module on the left, the MOSFET board below them, and the two tracks along the sides

How it works

How the parts are connected The phone sends commands over Bluetooth to the HC-06, which passes them to the Arduino Nano. The Nano drives the L298N, which powers the two motors, and switches the MOSFET, which turns the LED strip on and off. The 11.1 V battery goes through the DC plug to the L298N, whose 5 V output powers the Nano. IN YOUR HAND ON THE ROBOT Phoneapp, one letter per button BluetoothHC-06, 9600 baud Arduino Nanoreads, decides MOSFETIRLZ44N Motor driverL298N LED stripred, 12 V, 6 LEDs 2 gear motorsTT, one per track Battery3× 18650, 11.1 V DC plugon/off Bluetooth D12 on / off D5–D10 5 V 11.1 V

Control. The phone app sends one letter per button over Bluetooth to the HC-06, which passes it to the Nano at 9600 baud.

Driving. Each track has its own motor, so the robot steers like a tank. When both tracks turn forward it goes straight. When they turn in opposite directions it spins on the spot. The L298N switches each motor's direction, and PWM sets its speed. The TT motors are 6 V motors on an 11.1 V pack, so the PWM is kept moderate.

Lights. An Arduino pin gives only 5 V and a few milliamps, and the strip needs 12 V. A MOSFET does the switching: the pin drives its gate, and the MOSFET connects the strip's negative side to ground. The 12 V side never touches the Arduino.

Power. The 11.1 V pack goes through the DC plug to the L298N. Its built-in 5 V regulator feeds the Nano and the HC-06. Unplug the DC plug to switch the robot off.

Wiring

  • Motor driver: D5 → ENA, D6 → IN1, D7 → IN2, D8 → IN3, D9 → IN4, D10 → ENB
  • Bluetooth: HC-06 TXD → D2, RXD ← D3 through a 1k/2k divider
  • Lights: D12 → MOSFET gate through 220 Ω, with 10 kΩ to GND. LED+ to 12 V, LED− to the drain, source to GND.
  • Power: L298N 5 V → Nano 5 V, common GND
Example sketch (Arduino)
// Tracked robot: HC-06 Bluetooth + L298N + MOSFET-switched 12 V LED strip (Arduino Nano)
#include <SoftwareSerial.h>
SoftwareSerial bt(2, 3);          // RX from HC-06 TXD, TX to HC-06 RXD (through a 1k/2k divider)
const byte ENA = 5, IN1 = 6, IN2 = 7, IN3 = 8, IN4 = 9, ENB = 10, LEDS = 12;
byte speed = 180;                 // PWM 0-255; the 6 V motors run from 11.1 V, so keep it moderate

void drive(int left, int right) { // -1 back, 0 stop, 1 forward
  digitalWrite(IN1, left > 0);  digitalWrite(IN2, left < 0);
  digitalWrite(IN3, right > 0); digitalWrite(IN4, right < 0);
  analogWrite(ENA, left ? speed : 0); analogWrite(ENB, right ? speed : 0);
}

void setup() {
  for (byte p : {ENA, IN1, IN2, IN3, IN4, ENB, LEDS}) pinMode(p, OUTPUT);
  bt.begin(9600);                 // HC-06 default speed
  drive(0, 0);
}

void loop() {
  if (!bt.available()) return;
  char c = bt.read();
  switch (c) {
    case 'F': drive( 1,  1); break;          // forward
    case 'B': drive(-1, -1); break;          // back
    case 'L': drive(-1,  1); break;          // spin left
    case 'R': drive( 1, -1); break;          // spin right
    case 'S': drive( 0,  0); break;          // stop
    case 'W': digitalWrite(LEDS, HIGH); break; // lights on
    case 'w': digitalWrite(LEDS, LOW);  break; // lights off
    default:
      if (c >= '0' && c <= '9') speed = map(c - '0', 0, 9, 90, 230);
  }
}

The real life one vs 3D model

Real
3D model

Driving: the tracks turning, the front lights on, steered from the phone.

Full build guide coming soon

Printing the tracks, wiring and the phone app, step by step.