Overview
This page guides you through assembling your Mecanum robot, from 3D printing parts to final integration of all subsystems.Pre-Assembly Checklist
Before you start assembly, ensure you have:- All 3D printed parts (cleaned and tested)
- All purchased components (motors, wheels, electronics)
- Complete fastener set (M3 screws, nuts, standoffs)
- Tools (hex keys, screwdrivers, pliers, wire strippers)
- Wiring diagram handy
- Multimeter for electrical testing
3D Printing Tips
Pre-Print Verification
-
Check Models:
- All STL files error-free
- Holes correct size (3.2mm for M3 tapping)
- No impossible overhangs
-
Slicer Settings:
-
Print Orientation:
- Strongest along layer lines
- Minimize supports
- Flat surfaces on bed
Post-Printing
- Remove supports carefully
- Clean holes with 3mm drill bit
- Tap M3 threads or use heat-set inserts
- Test fit before final assembly
Assembly Sequence
1
Step 1: Prepare Base Plate
- Clean 3D print or cut material
- Install standoffs for electronics
- Mark motor positions
2
Step 2: Mount Motor Brackets
- Attach 4× motor mounting brackets
- Use M3×10mm screws + nuts
- Ensure brackets perpendicular to base
- Check alignment with level
3
Step 3: Install Motors
- Mount motors to brackets (4× M3 screws each)
- Route encoder wires through chassis
- Verify shafts parallel and level
- Critical: Check shaft alignment!
4
Step 4: Attach Wheels
- Install set-screw hubs or couplers
- Slide wheels onto shafts
- Tighten set screws
- Verify wheels rotate freely
- Check: Left/right rollers correct orientation
5
Step 5: Mount Electronics - ESP32
- Install on standoffs (M2.5 or M3)
- USB port accessible for programming
- Secure with screws
6
Step 6: Mount Motor Drivers
- Install 4× IBT-2 drivers
- Allow airflow (don’t seal)
- Position for short motor wires
- Secure with screws or adhesive
7
Step 7: Mount Raspberry Pi
- Standard mounting (4× M2.5 screws)
- All ports accessible
- microSD card reachable
- Add heatsink if available
8
Step 8: Mount IMU
- Center of robot (best for measurement)
- Rigid mount (no flex)
- Flat and level
- Note orientation (X-forward, Z-up)
9
Step 9: LiDAR Mount
- Top-mounted, elevated
- 360° clear view
- Stable (no wobble)
- Height: 100-150mm above ground
10
Step 10: Power Distribution
- Install terminal blocks or bus
- Mount buck converter
- Add fuse holders
- Battery mounting area prepared
11
Step 11: Wiring - Power
Follow wiring diagram exactly!
- Battery → main switch → fuse
- 12V to motor drivers
- Buck converter 12V→5V
- 5V to ESP32, RPi, sensors
12
Step 12: Wiring - Motors
- Motor power to drivers (thick wire)
- PWM signals ESP32→drivers
- Keep wires neat with zip ties
13
Step 13: Wiring - Encoders
- Connect encoder A/B to ESP32
- +5V and GND for encoder power
- Secure wires (prevent snagging)
14
Step 14: Wiring - Sensors
- IMU I2C to ESP32 (SDA, SCL)
- LiDAR USB to Raspberry Pi
- Camera ribbon cable (if used)
15
Step 15: Cable Management
- Zip ties for wire bundles
- Keep cables away from wheels
- Label wires (masking tape + marker)
- Strain relief at connectors
16
Step 16: Battery Installation
- Secure with velcro straps
- Easy access for removal
- Low position (stability)
- LiPo safety bag recommended
17
Step 17: Pre-Power Checks
Critical before powering on!
- Visual inspection: No loose wires
- Multimeter: Check voltages, no shorts
- Verify all connections to diagram
18
Step 18: Initial Power-On
- Connect battery (main switch OFF)
- Turn on switch
- Check voltages: 12V and 5V rails
- Listen for unusual sounds
- Feel for hot components
19
Step 19: Software Upload
- ESP32: Upload test code via USB
- Raspberry Pi: Boot and configure
- Test GPIO outputs (blink LED)
20
Step 20: Motor Test
- Test one motor at a time
- Low speed first (20% PWM)
- Check rotation direction
- Verify encoder readings
- Stop immediately if problems
Critical Alignment: Mecanum Wheels
Correct Wheel Configuration
Tools Required
Hand Tools
- Hex key set (M2, M2.5, M3)
- Screwdriver set (Phillips, flathead)
- Pliers (needle-nose, regular)
- Wire strippers
- Wire cutters
- Drill with bits (if tapping holes)
- Tap set (M2, M2.5, M3) - optional
- Soldering iron + solder
- Hot glue gun (optional, wire management)
Measurement Tools
- Digital calipers
- Ruler/tape measure
- Multimeter (essential!)
- Level (smartphone app works)
Safety Equipment
- Safety glasses (drilling, cutting)
- Anti-static wrist strap (electronics)
- Heat-resistant mat (soldering)
Common Assembly Issues
Wheel wobble or misalignment
Wheel wobble or misalignment
Causes:
- Motor shaft not perpendicular
- Loose set screws
- Bent shaft or wheel
- Re-mount motor bracket (check with level)
- Tighten set screws firmly
- Replace damaged parts
Wheels don't rotate freely
Wheels don't rotate freely
Causes:
- Rubbing on chassis
- Over-tightened wheel hub
- Debris in rollers
- Increase clearance (sand chassis edge)
- Loosen hub slightly
- Clean rollers
Short circuit on power-up
Short circuit on power-up
Causes:
- Wrong polarity
- Bare wire touching metal
- Damaged component
- STOP! Disconnect power immediately
- Use multimeter to find short
- Insulate all connections
- Double-check wiring diagram
No power to component
No power to component
Causes:
- Loose connection
- Blown fuse
- Incorrect wiring
- Check continuity with multimeter
- Test fuses
- Trace connections to source
Testing Checklist
After assembly, systematically test:- Power rails: 12V and 5V present
- ESP32 powers on (LED indicator)
- Raspberry Pi boots
- Each motor spins (test individually)
- Encoder signals read correctly
- IMU communicates (I2C scan)
- LiDAR spins and publishes data
- No excessive heat from components
- All wheels rotate freely by hand
- No loose wires or parts
Weight Distribution
For best performance:- Battery Low: Improves stability, lowers center of gravity
- Heavy Components Centered: Balance prevents tipping
- Symmetric: Even weight distribution left/right, front/back
- Target Weight: 2-4 kg total (lighter = less motor load)
Troubleshooting Guide
| Symptom | Likely Cause | Solution |
|---|---|---|
| Robot drifts in one direction | Wheel misalignment, uneven motor speeds | Check wheel orientation, calibrate PID |
| Motors stutter | Low voltage, loose encoder wires | Check battery charge, secure connections |
| One motor not working | Wiring error, bad driver | Test motor directly, check driver connections |
| ESP32 won’t program | USB driver, wrong COM port | Install drivers, check Device Manager |
| IMU not responding | I2C wiring, address conflict | Check SDA/SCL, scan I2C bus |
| LiDAR no data | USB power, driver issue | Check USB cable, install rplidar_ros |
Maintenance Tips
Weekly:- Check all screws (vibration loosens them)
- Inspect wires for wear
- Clean wheel rollers
- Verify battery voltage
- Re-tighten set screws
- Check motor brush wear
- Update firmware if needed
Documentation
Take photos during assembly:- Before/after each major step
- Close-ups of connections
- Label everything clearly
- Create assembly video (useful for presentation!)