complete2nd Place Podium Finish

Combat Robotics Platform & Motor Controller

Dual H-bridge motor driver schematics, 3D CAD chassis, ultrasonic sonar ranging, and bare-metal Embedded C firmware for Microchip PIC microcontrollers. 2nd Place in the University Robot Wars tournament.

  • Robotics
  • Embedded C
  • Proteus
  • PIC Microcontroller
  • Hardware Design
Combat Robotics Platform & Motor Controller

Project Overview

Hardware schematics, power distribution, and bare-metal Embedded C firmware for a Combat Robotics Platform built for the University of Brighton Engineering Design Robot Wars tournament.

The platform achieved a 2nd Place Finish in the university tournament and earned a First Class 82% (A+) for mechanical reliability, motor drive integration, and electrical system design.


Physical Robot Anatomy & 3D CAD

The chassis was designed to survive arena impacts while maintaining a low centre of gravity for traction and differential turning. Before machining and 3D printing brackets, the assembly was modelled in SolidWorks CAD to balance mass distribution, gear ratios, and battery placement:

Robot 3D CAD Assembly Render Figure 1: 3D CAD mechanical render showing structural chassis plates, motor gearboxes, and bumper mounting geometry.


System Specifications & Results

Parameter Specification / Outcome
Tournament Placement 2nd Place Overall
Academic Grade First Class 82% (A+)
Microcontroller Microchip PIC16F873 (Bare-metal Embedded C, MPLAB XC8)
Motor Drive Topology Dual H-Bridge High-Current MOSFET Motor Drives
Obstacle / Target Sensing HC-SR04 Ultrasonic Sonar (ultrasonic_driver.c)
Steering Control Differential Drive (forward, backward, turnLeft, turnRight, pivotLeft, pivotRight)
Auxiliary Actuator 4-Phase Stepper Actuator (newmain.c) + Diagnostic LCD

Physical Hardware Construction

The physical build integrated custom chassis layers, separated battery rails for logic isolation, and heavy-duty wiring harnesses:

Combat Robot Front View

Front view: HC-SR04 ultrasonic sonar sensors and front ramming wedge.

Combat Robot Top View

Top view: Dual PIC microcontroller boards, logic rails, and stepper driver.

Combat Robot Side View

Side profile: Low-slung drive wheels, high-traction tyres, and battery bay.


Circuit Schematics & Electrical Architecture

To prevent motor inductive spikes from resetting the microcontroller during rapid direction changes, the motor power stage used flyback protection, decoupling capacitors, and separated power/logic rails:

Full Circuit Wiring & Microcontroller Schematic Figure 2: Circuit wiring schematic showing PIC microcontroller GPIO routing, motor driver interfaces, sonar echo capture, and LCD connections.


Embedded C Firmware Excerpt

The drive and actuator firmware was written in bare-metal Embedded C using Microchip MPLAB XC8 (MovementCode.c, ultrasonic_driver.c, newmain.c). Excerpt from firmware_xc8/drive_controller/MovementCode.c showing differential steering manoeuvres and diagnostic status output:

void pivotLeft(int steps) {
    LCD_Clear();
    LCD_Set_Cursor(1, 1);
    LCD_Write_String("pivotLeft");
    motorControl(steps, Static, CW);
}

void pivotRight(int steps) {
    LCD_Clear();
    LCD_Set_Cursor(1, 1);
    LCD_Write_String("pivotRight");
    motorControl(steps, CCW, Static);
}

void turnLeft(int steps) {
    LCD_Clear();
    LCD_Set_Cursor(1, 1);
    LCD_Write_String("turnLeft");
    motorControl(steps, CW, CW);
}

void turnRight(int steps) {
    LCD_Clear();
    LCD_Set_Cursor(1, 1);
    LCD_Write_String("turnRight");
    motorControl(steps, CCW, CCW);
}

Source Code & Academic Attribution

  • GitHub Repository: HarryRogers073/robot-wars
  • Author & Individual Role: Harry Rogers (Systems & Firmware, University of Brighton team project)
  • EDA & Simulation: Labcenter Proteus 8 Professional, SolidWorks CAD
  • Firmware Toolchain: Microchip MPLAB X IDE, XC8 Compiler
  • Attribution & Provenance:
    • Individual Contributions: Harry Rogers developed the high-current MOSFET H-bridge motor driver schematics in Proteus (schematics_proteus/), drive routines (MovementCode.c), stepper actuator sequencing (newmain.c), and HC-SR04 sonar driver (ultrasonic_driver.c).
    • External Reference Code: The character LCD driver (lcd.c) was adapted from a tutorial by Khaled Magdy (DeepBlueEmbedded).
    • Microchip device registers and peripheral headers are copyright Microchip Technology Inc. EDA schematic library components are copyright Labcenter Electronics.