Skip to the content
2 layers73 × 68.5 mmMicro mouse v2-pcb, the printed circuit board in 3D

Meshmerize MicroMouse Project

Size
73 × 68.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
26
Nets
38
Pads
118
Tracks, vias
223, 21
Pours
1
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
26 Mar 2025
Updated
25 Sep 2025

Overview

Micro mouse v2-pcb is an open-source printed circuit board by prashantbhandary, from the prashantbhandary/MicroMouse-LineMaze repository on GitHub. It is a 2-layer board of 73 × 68.5 mm with 26 parts on 38 nets, routed with 223 tracks and 21 vias.

It is built around the L293D, AMS1117-3.3 and FPC-05F-12PH20. Its parts include 7 connectors, 6 capacitors, 4 resistors, 3 ICs and 3 switches. It belongs with the ESP32 and AVR (ATmega, ATtiny) boards of this library.

Main components

3

README

README.md

🤖 Meshmerize MicroMouse Project

License: MIT Platform KiCad

A comprehensive autonomous line-following and maze-solving robot project featuring multiple hardware iterations, advanced algorithms, and professional PCB designs.

🏆 Competition Achievements

Our MicroMouse has proven its excellence in prestigious robotics competitions:

  • 🥇 1st Place - Locus, Pulchowk Campus
  • 🥈 2nd Place - Delta 5.0, Dharan IOE
  • 🏅 5th Place - Techfest, IIT Bombay 2024

IIT Bombay Certificate Certificate of Achievement from IIT Bombay Techfest 2024


📋 Table of Contents


🎯 Project Overview

The Meshmerize MicroMouse is an autonomous robot designed to navigate line-following courses and solve complex mazes. This project showcases the evolution of robotics engineering through multiple hardware iterations, from Arduino Nano-based prototypes to advanced ESP32-powered systems.

What Makes This Project Special?

  • Multiple Hardware Generations: Evolution from v1.0 to v3.1 with continuous improvements
  • Dual Platform Support: Both Arduino Nano and ESP32 implementations
  • Professional PCB Design: Custom-designed circuit boards using KiCad
  • Advanced Algorithms: LSRB maze-solving with optimized PID control
  • Competition-Tested: Proven performance in national and international competitions

✨ Key Features

🎯 Navigation Capabilities

  • Line Following: Precise black/white line detection and following
  • Maze Solving: Autonomous exploration and shortest path execution
  • Multi-Surface Support: Adaptable to different track conditions

⚡ Performance Optimization

  • PID Control System: Smooth and accurate movement control
  • Speed Management: Adaptive speed control for different track sections
  • Sensor Calibration: Advanced sensor tuning for reliable detection

🔧 Hardware Excellence

  • Custom PCB Design: Professional circuit board layouts
  • Modular Architecture: Easy maintenance and upgrades
  • Power Management: Efficient voltage regulation for all components

🔧 Hardware Versions

Arduino Nano Series

Version 1.0 - Prototype

  • Microcontroller: Arduino Nano
  • Motor Driver: L293D
  • Sensors: QTR-8A analog sensor array
  • Status: Initial prototype and testing phase

Version 2.0 - Enhanced Performance

  • Microcontroller: Arduino Nano (optimized)
  • Motor Driver: SparkFun TB6612FNG
  • Sensors: 8-channel QTR sensor array
  • Improvements: Better motor control, enhanced PID tuning
  • PCB: Custom-designed v2.0 PCB

Version 3.0/3.1 - Professional Grade

  • Microcontroller: Arduino Nano
  • Features: Professional PCB design with improved layout
  • Status: Competition-ready version
ESP32 Series

ESP32 Version 1.0

  • Microcontroller: ESP32 DevKit
  • Development: PlatformIO-based development
  • Features:
    • Wireless capabilities
    • Higher processing power
    • Advanced sensor integration
  • PCB: Custom ESP32-based PCB design

💻 Software Architecture

Programming Platforms

  • Arduino IDE: Traditional Arduino Nano development
  • PlatformIO: Advanced ESP32 development with better library management

Key Libraries

cpp
#include <SparkFun_TB6612.h>  // Motor control library
#include <QTRSensors.h>       // Sensor array library

Algorithm Implementation

  • LSRB Algorithm: Left-Straight-Right-Back priority maze solving
  • PID Control: Proportional-Integral-Derivative control for smooth movement
  • Path Optimization: Shortest path calculation and execution

🚀 Getting Started

Prerequisites

  • Arduino IDE or PlatformIO
  • USB cable for programming
  • Basic electronics knowledge
  • Robotics track or maze for testing

Quick Setup

  1. Clone the repository

    bash
    git clone https://github.com/prashantbhandary/Meshmerize-MicroMouse-.git
    cd Meshmerize-MicroMouse-
  2. Choose your platform

    • For Arduino Nano: Navigate to ArduinoNano/ folder
    • For ESP32: Navigate to Esp32/ folder
  3. Select the appropriate version

    • Pick the version that matches your hardware setup
    • Latest versions recommended for best performance

📁 Repository Structure

text
📦 Meshmerize-MicroMouse-
├── 🔧 ArduinoNano/
│   ├── 🧪 arduno_nano_v1_TestingCode/
│   │   ├── arduino_sensor_test2.0/
│   │   ├── black_line_maze_2.0/
│   │   ├── motor-testing/
│   │   └── night_nano/
│   ├── 📋 micro_mouse_v1-files/
│   │   ├── codes/ (Line follower, maze solving, testing)
│   │   └── design/ (3D models, PCB files)
│   ├── 🚀 micro_mouse_v2-files/
│   │   ├── BlackLineMazeFinal_v2-Code/
│   │   ├── LineFollowerPid_v2-Code/
│   │   ├── WhiteLineMazeFinal_v2-Code/
│   │   └── micro_mouse_v2-pcb/
│   └── 🏆 micro_mouse_v3_files/
│       ├── micro_mouse_prashant/
│       ├── micro_mouse_v3.0-PCB/
│       └── micro_mouse_v3.1-PCB/
├── 📡 Esp32/
│   ├── LineFolloweEsp32_v1_code/
│   ├── micromouseEsp32_v1_PCB/
│   └── testing_esp32_v1_code/
├── 📸 IMG/

🛠️ Installation & Setup

For Arduino Nano Versions

  1. Install Required Libraries

    text
    - SparkFun TB6612 Motor Driver Library
    - QTRSensors Library
  2. Hardware Setup

    • Connect QTR sensors to analog pins A0-A7
    • Wire motor drivers according to pin definitions
    • Connect control switches and LED indicators
  3. Upload Code

    • Open the desired version in Arduino IDE
    • Select Arduino Nano board
    • Upload the code

For ESP32 Version

  1. PlatformIO Setup

    bash
    cd Esp32/LineFolloweEsp32_v1_code/Micromouse/
    pio run --target upload
  2. Hardware Configuration

    • Follow ESP32 pin definitions in the code
    • Ensure proper power supply (3.3V/5V compatibility)

🎮 Usage Instructions

Initial Setup

  1. Calibration Phase

    • Press switch 1 to start sensor calibration
    • Move the robot over the line during calibration
    • LED indicator confirms successful calibration
  2. Mode Selection

    • Switch 2: Left-hand rule (LHS) priority
    • Switch 3: Right-hand rule (RHS) priority
  3. Start Operation

    • Press switch 1 again to begin line following/maze solving
    • Robot will autonomously navigate the course

Operating Modes

Line Following Mode
  • Robot follows black line on white surface (or vice versa)
  • PID control ensures smooth tracking
  • Adaptive speed control for optimal performance
Maze Solving Mode
  • Exploration Phase: Robot maps the entire maze
  • Optimization Phase: Calculates shortest path
  • Execution Phase: Runs the optimized route

🧠 Algorithms & Control Systems

LSRB Algorithm (Left-Straight-Right-Back)

cpp
// Priority decision making
if (left_path_available) {
    turn_left();
} else if (straight_path_available) {
    move_forward();
} else if (right_path_available) {
    turn_right();
} else {
    turn_back(); // Dead end
}

PID Control System

cpp
// PID calculation for smooth movement
error = sensor_position - desired_position;
derivative = error - lastError;
correction = (kp * error) + (kd * derivative);
motor_speed_adjustment = base_speed ± correction;

Key Parameters

  • Base Speed: 130-255 (adjustable per version)
  • Kp (Proportional): 0.05-0.151 (tuned per hardware)
  • Kd (Derivative): 0.1-0.8 (optimized for stability)

📷 Project Gallery

🤖 Robot Images

Robot Side ViewRobot Front View
Side ProfileFront View

Competition Setup Competition Ready Configuration

🎥 Demo Videos

▶️ Watch MicroMouse in Action
Live demonstration from IIT Bombay competition

▶️ Advanced Maze Solving Demo
Complex maze navigation showcase


🤝 Contributing

We welcome contributions to improve the MicroMouse project! Here's how you can help:

Ways to Contribute

  • 🐛 Bug Reports: Found an issue? Let us know!
  • 💡 Feature Requests: Suggest new capabilities
  • 🔧 Code Improvements: Optimize algorithms or add new features
  • 📚 Documentation: Help improve guides and tutorials
  • 🔬 Testing: Try different hardware configurations

Development Setup

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/AmazingFeature)
  3. Make your changes
  4. Test thoroughly with hardware
  5. Commit your changes (git commit -m 'Add AmazingFeature')
  6. Push to the branch (git push origin feature/AmazingFeature)
  7. Open a Pull Request

📞 Contact & Support

Getting Help

  • 📋 Issues: Use GitHub Issues for bug reports
  • 💬 Discussions: Join repository discussions for general questions
  • 📖 Wiki: Check the wiki for detailed guides (coming soon)

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

What this means:

  • ✅ Use in personal and commercial projects
  • ✅ Modify and distribute freely
  • ✅ Include in other projects
  • 📋 Attribution required

🌟 Star this project if you found it helpful!

Made with ❤️ by the Robotics Team, WRC

"Engineering the future, one algorithm at a time."

GitHub stars GitHub forks

Achievements:

  1. Winner at Locus 2025, Pulchowk IOE.
  2. 1st Runner-up at Delta 5.0 ERC, Dharan IOE.
  3. Top 5 finish at Techfest, IIT Bombay 2024 amidst tough competition.

This project was a huge learning experience, teaching us valuable lessons in algorithm optimization, hardware design, and problem-solving.

Special Thanks:

  • Teammates and Mentors: Aabiskar Regmi, Sanjog Sapkota, Siddartha Gupta

Can’t wait to tackle even bigger challenges next! 🚀

Parts

26
QtyValueFootprintReferences
310KResistor_SMD:R_0603_1608MetricR2, R3, R4
3SW_Pusheasyeda2kicad:SW-SMD_L6.0-W3.3-LS8.0SW1, SW2, SW3
2100nFCapacitor_SMD:C_0805_2012MetricC1, C5
210uFCapacitor_SMD:C_0805_2012MetricC3, C4
233pFCapacitor_SMD:C_0805_2012MetricC2, C6
2B2B-XH-A (LF)(SN)easyeda2kicad:CONN-TH_B2B-XH-A-LF-SNCN1, CN2
2Conn_01x01_PinConnector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_VerticalJ2, J3
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U2
1Arduino_Nano_v3.xModule:Arduino_NanoA1
1Conn_01x11_PinConnector_PinHeader_2.54mm:PinHeader_1x11_P2.54mm_VerticalJ1
1FPC-05F-12PH20easyeda2kicad:FPC-SMD_12P-P0.50_FPC-05F-12PH20FPC1
1L293DPackage_DIP:DIP-16_W7.62mmU1
1LEDeasyeda2kicad:LED0603-RDD1
1LM7805_TO220Package_TO_SOT_THT:TO-220-3_VerticalU3
1RResistor_SMD:R_0603_1608MetricR1
1~Connector_PinSocket_2.54mm:PinSocket_1x02_P2.54mm_Verticalcn3
1~symbols_footprint:buck_boost converterP1

More from prashantbhandary/MicroMouse-LineMaze

4
  • 2 layers95.8 × 73 mmMicro mouse prashant, the printed circuit board in 3D

    Micro mouse prashant

    prashantbhandary/MicroMouse-LineMaze

    Meshmerize MicroMouse Project

    28 parts4
  • 2 layers72.5 × 73.9 mmMicromouse3.0, the printed circuit board in 3D

    Micromouse3.0

    prashantbhandary/MicroMouse-LineMaze

    Meshmerize MicroMouse Project

    25 parts4
  • 2 layers57 × 49.4 mmMicro mouse1, the printed circuit board in 3D

    Micro mouse1

    prashantbhandary/MicroMouse-LineMaze

    Meshmerize MicroMouse Project

    22 parts4
  • 2 layers74 × 60.3 mmMicro mouse v3.0-PCB, the printed circuit board in 3D

    Micro mouse v3.0-PCB

    prashantbhandary/MicroMouse-LineMaze

    Meshmerize MicroMouse Project

    18 parts4

Similar boards

  • 2 layers105.7 × 107.5 mmNomobotSK, the printed circuit board in 3D

    NomobotSK

    edantoni96/NomobotSK

    NomobotSK is a educational robot for kids to learn programming and robotics.

    74 parts
  • 2 layersNEWPCB, the printed circuit board in 3D

    NEWPCB

    jerry1000-cmyk/shounakacharyapictrobotics

    7 parts
  • 2 layers70 × 50 mmRobotika, the printed circuit board in 3D

    Robotika

    MewnianSquire/Robotika

    UAS Pemrograman Robotika

    29 partsMIT
  • 2 layers85 × 105 mmRestroBOT, the printed circuit board in 3D

    RestroBOT

    PrashilLamichhane/RestroBOT_PCB

    24 parts
  • 2 layers42.2 × 81.9 mmAtmega328p, the printed circuit board in 3D

    Atmega328p

    Sujay-1010/Rover-PCB--KiCAD

    Following pcb contains a rover pcb design, its schematics, its bom(bill of materials), and the working paramters of all the components used.

    39 parts

Questions

How big is the Micro mouse v2-pcb PCB?

It measures 73 × 68.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Micro mouse v2-pcb use?

26 parts, built around the L293D, AMS1117-3.3 and FPC-05F-12PH20. 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 Micro mouse v2-pcb KiCad files?

From the prashantbhandary/MicroMouse-LineMaze repository on GitHub, at the commit this page was made from: the board is ArduinoNano/micro_mouse_v2-files/micro_mouse_v2-pcb/micro_mouse_v2-pcb.kicad_pcb and its schematic ArduinoNano/micro_mouse_v1-files/design/Ckt_PCB_files/Micro_mouse1.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Micro mouse v2-pcb design in my own project?

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