Skip to the content
2 layers94 × 99.7 mmBattlebot, the printed circuit board in 3D

const int enA1Pin = 13; const int in11Pin = 12; const int in21Pin = 16; const int enB1Pin = 10; const int in31Pin = 17; const int in41Pin = 9;

Size
94 × 99.7 mm
Copper layers
2
Thickness
1.6 mm
Parts
35
Nets
65
Pads
227
Tracks, vias
461, 20
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
20 Jun 2024
Updated
26 Jun 2024

Overview

Battlebot is an open-source printed circuit board by momin3121, from the momin3121/battlebot-MNH-V01 repository on GitHub. It is a 2-layer board of 94 × 99.7 mm with 35 parts on 65 nets, routed with 461 tracks and 20 vias.

It is built around the ESP32-PICO-D4, CH340E and L298HN, with the AMS1117-3.3 among its other parts. Its parts include 5 connectors, 3 ICs and 1 switch. It belongs with the ESP32 and RISC-V boards of this library.

Main components

4

README

README.md

battlebot-MNH-V01

Table of Contents

  1. Introduction
  2. Design Overview
  3. Weight and Dimensions
  4. Frame Construction
  5. tool System
  6. Electrical Components
  7. PCB Design
  8. References

Introduction

The "battlebot-MNH-V01" is a custom-built battle bot designed for high performance in competitive environments. This bot combines precision engineering and robust construction to achieve high mobility and effective combat capabilities.

Battle Bot

Design Overview

Frame Construction

  • Material: Aluminum
  • Construction: The frame serves as the skeleton, providing a sturdy yet lightweight base. It includes reinforcements at critical stress points to prevent deformation during combat.
  • Benefits: The use of aluminum and 3D-printed components allows for rapid prototyping and customization, ensuring flexibility and cost-effectiveness.

Frame Construction

Frame Construction

Weight and Dimensions

  • Total Weight: 3 kg
  • Overall Dimensions: 21 cm x 20 cm

Tool System

Integration

  • Primary Weapon: A centrally mounted spinning blade made from hardened steel.
  • Motor: High-torque electric motor.
  • Specifications:
    • Spin Rate: Up to 5000 RPM
    • Impact Resistance: Designed for high durability and easy field repairs.

Frame Construction

Electrical Components

Key Components

  • DC Motor: High Speed Electric Brush Motor (12V, 100W, 5000RPM)
  • Transmitter: GoolRC Flysky FS-i6X Transmitter with FS-iA6B Receiver
  • Battery: CNHL 2200mAh 3S Lipo Battery (30C, 11.1V)
  • Wheels: Premium 97mm Mecanum Wheels
  • Controller: ESP32-PICO-D4 microcontroller for managing motor and sensor inputs.

Motor Drivers

  • Wheel Motors: Dual L298HN Motor Drivers
  • Weapon Motor: VNH2SP30 Motor Driver

PCB Design

Overview

The PCB (Printed Circuit Board) for the battle bot is designed to control all major functions, including motor control and sensor integration. The design focuses on robustness, efficiency, and ease of maintenance, ensuring optimal performance during competitions.

Size and Layers

  • Dimensions: 10 cm x 9.5 cm
  • Layers: 2-layer design for efficient routing of power and signal traces.

Frame Construction

Trace Widths

  • Motor Traces: 0.8 mm (for currents up to 2A)
  • Tool Motor Traces: 2.5 mm (for currents up to 10A)
  • Design Standards: Trace widths are calculated based on IPC-2221 standards to handle the expected current loads with an allowable temperature rise of 10°C to 20°C.

Key Components

  • Microcontroller (U3): ESP32-PICO-D4
    • Function: Central processing unit that handles control logic, motor commands, and sensor inputs.
    • Power Supply: 3.3V provided by AMS1117-3.3 voltage regulator.
  • Motor Drivers:
    • L298HN (U1, U5): Controls the four wheel motors, allowing precise movement and speed adjustments.
    • VNH2SP30 (U2): Manages the high-current weapon motor, providing necessary torque and speed.
  • Voltage Regulator (U6): AMS1117-3.3
    • Function: Provides stable 3.3V output for low-power devices.
    • Current Handling: Up to 1A, supporting the microcontroller and sensors.
  • USB to Serial Converter (U4): CH340E
    • Function: Enables programming and communication between the microcontroller and a computer.
  • Capacitors (C1, C10-C16): Stabilize voltage and filter noise in the power supply.
  • Resistors (R1, R2, R3, R4, R6): Employed for pulling up/down inputs and limiting current to protect other components.
  • Connectors (J1, J2, J3, J4, J5, J6): Provide interfaces for external connections to motors, power sources, and other peripherals.
  • Switch (SW1): Used to enable the microcontroller, typically controlling the power state or activation of the system.

Frame Construction

Power Management

  • AMS1117-3.3 Voltage Regulator (U6):
    • Function: Provides a stable 3.3V output for low-power devices.
    • Current Handling: Up to 1A.
    • Integration: Positioned near power inputs with filtering capacitors to ensure smooth operation.
  • VNH2SP30 Motor Driver:
    • Function: Drives the weapon motor.
    • Current Handling: 30A continuous.
    • Integration: Includes extensive heat sinking to manage high current loads.
  • Dual L298HN Motor Drivers:
    • Function: Independently controls four wheel motors.
    • Current Handling: 2A per channel.
    • Integration: Equipped with dedicated capacitors for voltage stabilization and noise filtering.

Layout and Design Considerations

  • Trace Width: Motor traces are designed to handle high currents without excessive heat buildup or voltage drop.
  • Via Optimization: Used to connect traces between the top and bottom layers, enhancing electrical performance.
  • Accessibility: All connectors and critical components are easily accessible for maintenance and troubleshooting.

Frame Construction

Code Example

cpp
#include <ESP32Servo.h>
#include <FlySkyIBus.h>

const int enA1Pin = 13; 
const int in1_1Pin = 12;
const int in2_1Pin = 16;
const int enB1Pin = 10; 
const int in3_1Pin = 17;
const int in4_1Pin = 9;

const int enA2Pin = 33; 
const int in1_2Pin = 32;
const int in2_2Pin = 25;
const int enB2Pin = 27; 
const int in3_2Pin = 26;
const int in4_2Pin = 14;

const int enBPin = 35; 
const int inBPin = 5;
const int inAPin = 22;
const int pwmPin = 23;  

const int gunMotorPin = 19; 

References

  1. High Power DC Motor
  2. GoolRC Flysky FS-i6X Transmitter
  3. CNHL 2200mAh 3S Lipo Battery
  4. Zeberoxyz GT2 Synchronous Wheel Set
  5. Premium Mecanum Wheels
  6. VNH2SP30 Motor Driver
  7. L298N Motor Driver
  8. ESP32-PICO-D4 MCU

Parts

35
QtyValueFootprintReferences
510kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal10k, 10k, R2, R3, R4
5Conn_01x02_SocketConnector_Phoenix_MSTB:PhoenixContact_MSTBA_2,5_2-G-5,08_1x02_P5.08mm_HorizontalJ4, J5, J6, motor 2A, motor 10A
40.1µFCapacitor_THT:CP_Radial_Tantal_D5.0mm_P5.00mm0.1µF , 0.1µF , 0.1µF , 0.1µF
40.1µF Capacitor_THT:CP_Radial_Tantal_D5.0mm_P5.00mm0.1µF , 0.1µF , 0.1µF , 0.1µF
4100uFCapacitor_THT:CP_Axial_L10.0mm_D4.5mm_P15.00mm_Horizontal100uF, 100uF, 100uF, 100uF
210µF Capacitor_THT:CP_Axial_L10.0mm_D4.5mm_P15.00mm_Horizontal100uF, 100uF
2Battery_CellConnector_Phoenix_MSTB:PhoenixContact_MSTBA_2,5_2-G-5,08_1x02_P5.08mm_HorizontalBT1, Lipo Battery
2L298HNPackage_TO_SOT_THT:TO-220-15_P2.54x2.54mm_StaggerOdd_Lead5.84mm_TabDownU1, U5
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2AMS1117-3.3
1CH340EPackage_SO:MSOP-10_3x3mm_P0.5mmCH340E
1Conn_01x05_PinConnector_Phoenix_GMSTB:PhoenixContact_GMSTBA_2,5_5-G_1x05_P7.50mm_HorizontalCH1
1ESP32-PICO-D4Package_DFN_QFN:QFN-48-1EP_7x7mm_P0.5mm_EP5.3x5.3mmU3
1SW_PushButton_Switch_Keyboard:SW_Cherry_MX_1.00u_PCBSW1
1USB_C_Plug_USB2.0Connector_USB:USB_C_Plug_Molex_105444USB-C
1VNH2SP30VNH2SP30:MULTIPOWER30VNH2SP30

Similar boards

  • 4 layers38 × 215.8 mmMoirePCB, the printed circuit board in 3D

    MoirePCB

    moire-cs/fcat-sensor-kicad

    Kicad files and production gerbers for Moiré sensors

    57 parts1
  • 4 layers65.3 × 49.7 mmMobile robot, the printed circuit board in 3D

    Mobile robot

    zachlambert/pcb-mobile-robot

    PCBs for a mobile robot

    78 parts
  • 4 layers20.1 × 39.6 mmEsp32 vtx, the printed circuit board in 3D

    Esp32 vtx

    Ncerzzk/esp-vtx-hardware

    46 parts8
  • 4 layers95.6 × 59.9 mmFlight computer rocketry, the printed circuit board in 3D

    Flight computer rocketry

    Himanshukohale22/Flight_control_controller_V1.2

    Hardware files for universal flight controller for small UAV's.

    145 parts1MIT
  • 2 layers29.4 × 37 mmServo pcb, the printed circuit board in 3D

    Servo pcb

    ERC-BPGC/project-vulcan

    Project VULCAN is an open humanoid robotics platform focused on expressive human-robot interaction through modular mechanical, electronic, and AI-driven subsystems.

    32 parts8
  • 2 layers65.4 × 133.6 mmBSidesTLV2025GloveBadge, the printed circuit board in 3D

    BSidesTLV2025GloveBadge

    bsidestlv/bsidestlv-2025-badge

    To solve the challenge you will need to discover a series of flags, hidden inside the badge. Each one will help you unlock the next step in the challenge, to finally reveal the ultimate secret the badge holds.

    35 parts13MIT
  • 2 layers68.6 × 53.3 mmINK-128DA28, the printed circuit board in 3D

    INK-128DA28

    TheEccentricGenius/INK4u_Board

    An UNO form factor board with a AVR128DA28 processor.

    59 parts5CERN-OHL-W-2.0
  • 2 layers56 × 78 mmK1921VG015 board, the printed circuit board in 3D

    K1921VG015 board

    LeikoDmitry/k1921vg015

    Отладочная плата микроконтроллера K1921VG015

    64 parts1MIT

Questions

How big is the Battlebot PCB?

It measures 94 × 99.7 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Battlebot use?

35 parts, built around the ESP32-PICO-D4, CH340E, L298HN and AMS1117-3.3. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Battlebot KiCad files?

From the momin3121/battlebot-MNH-V01 repository on GitHub, at the commit this page was made from: the board is PCB design/battlebot.kicad_pcb and its schematic PCB design/battlebot.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Battlebot design in my own project?

Its repository states no licence, so its author keeps all rights: ask momin3121 before reusing the design.