HexaLoam hexagonal LiDAR and six-legged emblem Open hardware · Modular Robotics Platform

HexaLoam

Modular 3D-printable 18-DOF hexapod with LiDAR

An open-source, fully 3D-printable hexapod robot for agricultural scouting and plant-inspection projects, education and legged-robot research. Download the editable SOLIDWORKS CAD, PLA+ print files, MATLAB Simscape and URDF models, 15 wiring diagrams, Arduino/ESP32 firmware and a Raspberry Pi/ROS 2 controller (MIT license). Agricultural plant-inspection guide.

HexaLoam 3D-printable hexapod assembly with six legs and central RP-Lidar mount

Adapt the chassis

The chassis, three leg links and LiDAR cover make five printable shapes and 20 printed pieces. The base spans about 203.5 × 208.9 mm in plan. Its central bay gives you room to arrange the controller and battery of your choice. Check their fit and cable paths in CAD.

Mounting holes and recessed M3 nut pockets give you several places to attach brackets, payloads or a controller adapter.

For greenhouse scouting or indoor LOAM experiments, the assembly shows one way to mount an RP-Lidar. Add a camera for crop imagery, then check sensor sightlines, aisle clearance and foot placement for your environment. Field performance remains to be measured.

Print the individual STL parts or start with the six-plate Bambu Studio layout. Firmware, wiring diagrams, and Raspberry Pi control software are included in the repository; physical actuators (36× MG996R servos), fasteners, LiPo battery, and controller boards are sourced separately.

Inspect the complete multi-angle CAD gallery on GitHub

Top view of HexaLoam chassis displaying central electronics deck and leg servo mounts
Top view displaying central deck and leg actuator mounting geometry
Underside CAD view of the assembled HexaLoam chassis and its six leg mounts
Underside of the chassis and leg interfaces

Watch the walking gaits

Watch which feet lift and which stay planted. All three CAD animations use a 60 mm stride and 22 mm peak foot clearance. Each 10-second clip covers two cycles at 12 mm/s. The grid spacing is 50 mm. Compare all gaits in the video hub

Simulate the mechanism

MATLAB and Simscape Analysis

The assembly XML and seven STEP files import, compile and simulate in MATLAB R2025b with Simscape Multibody. The model has 18 revolute joint blocks and no 6-DOF joint blocks: three revolute joints in series per leg. The XML was repaired by adding weld constraints where SOLIDWORKS mates were missing; the SOLIDWORKS assembly itself is unchanged, so add those mates before exporting again. Verify each hinge axis and limit against hardware before using the model to estimate torque or walking speed.

Static loads and visualization

In the single-leg MATLAB example, a 5 N tip load at 0.25 m gives holding torques of 0, 1.10 and 0.60 N·m. For scene development, the project includes five static GLB meshes for Unity and Unreal Engine. Native editor import tests and physical walking tests are pending.

Consult the complete simulation guide and MATLAB setup

Agricultural plant inspection

HexaLoam fits a graduation project or research prototype that needs an open-source hexabot for crop or greenhouse scouting: editable SOLIDWORKS CAD, a fully 3D-printable PLA+ body, low-cost MG996R servos, an RP-Lidar mount already in the chassis, MATLAB Simscape and URDF files, and an MIT license. There is no camera mount in the CAD and no plant-vision code yet. The agricultural plant-inspection guide shows how to add a Raspberry Pi Camera Module 3 or USB camera on the chassis M3 holes, build a YOLO-style leaf-defect pipeline with severity by affected area, geotag detections with the 2D SLAM pose, and validate the route in a MATLAB/Simulink digital twin. Wave and ripple gaits stay within the 70% continuous torque limit and suit steady image capture.

Read the plant-inspection guide

Build workflow & FAQ

Step 01

Inspect & modify CAD

Open Full_Robot_Assembly.SLDASM in SOLIDWORKS to verify controller, battery, M3 nut pockets, and LiDAR sightlines.

Step 02

3D print 20 pieces

Slice Printables/Full_Robot.3mf (6 plates) or the 5 STLs in millimeters. Test-print one leg set before printing all six.

Step 03

Simulate 18-DOF XML

Run smimport('Full_Robot_Assembly.xml') in MATLAB R2025b Simscape Multibody and verify the 18 revolute blocks and no 6-DOF blocks.

Is HexaLoam open source?

Yes. Everything is released under the MIT License; third-party reference CAD (servo, LiDAR, battery) keeps its own source terms.

Which CAD does HexaLoam use?

Native, editable SOLIDWORKS parts and assemblies (Full_Robot_Assembly.SLDASM, LegMates.SLDASM, Designed/), plus STEP, STL, 3MF and GLB files.

Which servos does HexaLoam use, and how many?

36 MG996R servos: 18 joints (3 per leg: coxa, femur, tibia), two back-to-back per joint with mirrored angles (MA2 = 3000 - MA1 microseconds). Two give 2.157 N·m stall torque per joint at 6.0 V.

Is the HexaLoam body fully 3D printable?

The structure is. Five watertight STL designs make 20 PLA+ pieces for one robot (Robot_Base 1, L1 6, L2 6, L3 6, LidarCover 1), 1.306 kg as sliced in Bambu Studio with supports excluded, also arranged in the six-plate Printables/Full_Robot.3mf. Servos, fasteners, electronics and battery are bought parts. The longest exported dimension is L3 at 246.2 mm.

Can MATLAB simulate HexaLoam?

Yes. The repository includes a Simscape Multibody XML export with seven STEP files, a single-leg static study, a gait-trajectory replay and a URDF for importrobot. The Simscape import compiles and simulates in MATLAB R2025b with 18 revolute joints and no 6-DOF joints; joint axes, limits and dynamics are not yet validated against hardware.

How is the LiDAR mounted?

The chassis CAD includes an RP-Lidar (2D) model and an editable cover (LidarCover). A 2D lidar supports 2D SLAM, for example slam_toolbox. LOAM in the project name is not a claim of 3D LOAM odometry.

Can I add a camera to HexaLoam for plant disease detection?

Not out of the box: there is no camera mount in the CAD and no plant-vision code yet. The agricultural plant-inspection guide covers camera placement on the chassis M3 holes, a YOLO-style detection pipeline, severity by affected area, SLAM geotagging, and a MATLAB digital-twin path.

Which controller configuration should I choose?

Four configurations are compared: A Arduino Mega, B ESP32 with two PCA9685, C Raspberry Pi with one ESP32, D Raspberry Pi with two ESP32. Use C or D when you need an on-board computer, for example for a camera.

Is HexaLoam validated?

By simulation and analysis only. The robot was tested in four controller configurations (A-D) through simulation parameters and an analysis of mass versus required motor torque: wave and ripple gaits stay within 70% of continuous torque and tripod needs 81-86%. These are analytical estimates from slicer-reported masses; physical bench and field tests are pending.

How do the M3 nut pockets and controller/battery bay work?

The 203.5 × 208.9 mm base is controller-agnostic, offering an open central equipment area along with mounting holes and recessed M3 nut pockets for adapter plates, brackets, batteries, and payloads. Check your actual hardware envelopes, screw lengths, and cable paths in CAD before printing.

Can I import HexaLoam into Unity, Unreal Engine, or Blender?

Yes. simulation/meshes/ provides five static, meter-scaled GLB meshes. All five passed Blender 4.2.16 LTS geometry checks, and Unity glTFast and Unreal Engine 5.3 workflows are documented, with native editor tests pending.

Control architectures, wiring & torque analysis

HexaLoam is engineered around one shared 18-joint mapping (LF_COXA..RR_TIBIA), CAD-derived 3R kinematics (L1 = 86.53 mm, L2 = 121.06 mm, L3 = 202.50 mm), and back-to-back mirrored dual-motor joints (MA1 & MA2). The robot was tested in four controller configurations (A-D) through simulation parameters and an analysis of the mass of each configuration's controllers and top-mounted parts against the torque each set of motors needs. These are analytical and simulation results only; no hardware has been tested, and physical commissioning is structured into 11 progressive checklists.

1.306 kg PLA+ printed structure (20 pcs, slicer-reported weights, no support)
3.79–4.02 kg Total robot mass with 36 servos, 3S 5000 mAh LiPo & electronics
2.157 N·m Dual-motor stall torque per joint (2× MG996R @ 6.0 V)
+1.88–2.11 kg Extra top payload headroom in Wave gait (70% continuous limit)

Configuration A — Standalone Arduino Mega 2560

Built for classrooms, low-cost prototyping, and direct hardware testing. Drives all 18 joint channels on pins D22..D39 with an external 6.0 V servo supply, hardware E-stop on D2, and 14 step-by-step Arduino sketches. Electronics + 3S 5000 mAh LiPo add 0.507 kg (total robot: 3.793 kg).

Configuration B — Standalone ESP32 + Dual PCA9685

Compact single-microcontroller wireless platform driving two PCA9685 boards over 3.3 V I2C (GPIO21 SDA, GPIO22 SCL, addresses 0x40 & 0x41) at 50 Hz, with persistent NVS calibration and optional IMU/foot-contact inputs. Electronics + 3S 5000 mAh LiPo add 0.519 kg (total robot: 3.805 kg).

Configuration C — Raspberry Pi + Single ESP32 Slave (Recommended)

Recommended for autonomous agricultural scouting and LiDAR/LOAM research. A Raspberry Pi 4 or 5 runs Python inverse kinematics, Tripod/Ripple/Wave gaits, RP-Lidar SLAM, and ROS2, streaming CRC-16 binary packets at 460800 baud to one ESP32 actuator slave. Electronics + RP-Lidar + 3S 5000 mAh LiPo add 0.703 kg (total robot: 3.989 kg).

Configuration D — Raspberry Pi + Dual ESP32 Slaves (Left/Right)

Distributed architecture assigning one ESP32 + PCA9685 (0x40) to each side of the robot (Left J0..J8, Right J9..J17), with synchronized execution timestamps and coordinated dual-side emergency stop. Electronics + RP-Lidar + 3S 5000 mAh LiPo add 0.733 kg (total robot: 4.019 kg).

PLA+ Slicer Part Weights (Support Negated)

Slicer-reported weights from the Bambu Studio single-part plates (G-code not included in the repository) (PLA+, 0.4 mm nozzle, 2 walls, 15% gyroid infill), excluding support and brim filament:

Part Qty Total Sliced (g) Support + Brim (g) Part Only (g) Subtotal (g)
Robot_Base.STL1324.22149.55174.67174.67
L1.STL (Coxa)685.0625.4259.64357.84
L2.STL (Femur)648.600.2748.33289.98
L3.STL (Tibia)697.8724.3673.51441.06
LidarCover.STL155.4112.7342.6842.68
Total PLA+ Structure (20 pcs) + 36× MG996R Servos (2/joint)———1,306.23 g + 1,980.00 g3.286 kg

Weight, 3S 5000 mAh LiPo & Dual-Motor Torque Comparison

Analytical 3R leg Jacobian comparison (H = 185 mm, R_foot = 290 mm) for the slicer-weight PLA+ robot + 36 servos (3.286 kg) plus controllers, RP-Lidar (2D planar SLAM; 3D LOAM requires a 3D LiDAR upgrade), and a 3S 5000 mAh LiPo (0.360 kg) against 2× MG996R per joint (2.157 N·m stall @ 6.0 V; analytical 70% continuous target = 1.510 N·m, pending bench thermal validation). Each 18-channel controller drives MA1 directly and opposing MA2 via an inline PWM signal reverser. A software-mirrored 36-channel mode is not available on two PCA9685 boards (32 channels):

Configuration Top + LiPo (kg) Total Mass (kg) Wave 5-Leg (N·m) Ripple 4-Leg (N·m) Tripod 3-Leg (N·m) Max Extra Top Payload (70% Safe)
A — Arduino Mega 2560 0.507 3.793 0.971 (45.0%) 1.266 (58.7%) 1.759 (81.5%) +2.11 kg (Wave) · +0.73 kg (Ripple)
B — ESP32 + Dual PCA9685 0.519 3.805 0.974 (45.1%) 1.270 (58.9%) 1.764 (81.8%) +2.10 kg (Wave) · +0.72 kg (Ripple)
C — RPi + Single ESP32 + LiDAR 0.703 3.989 1.021 (47.3%) 1.332 (61.7%) 1.850 (85.7%) +1.91 kg (Wave) · +0.53 kg (Ripple)
D — RPi + Dual ESP32 + LiDAR 0.733 4.019 1.029 (47.7%) 1.342 (62.2%) 1.864 (86.4%) +1.88 kg (Wave) · +0.50 kg (Ripple)

Tripod caution: 3-leg support needs 81.5%–86.4% of stall torque, above the 70% continuous limit. Ripple and Wave are the loaded-walking gaits; use Tripod only for short, unloaded runs (the Raspberry Pi controller defaults to Tripod).

Mirrored back-to-back MA1 and MA2 motor torque profiles for Joints A (Coxa), B (Femur), and C (Tibia) across Wave, Ripple, and Tripod gaits
Mirrored back-to-back motor torque profiles (MA1 = +τ/2 solid, MA2 = -τ/2 dashed) for Joint A (Coxa), Joint B (Femur), and Joint C (Tibia) in Configuration C (3.989 kg) across Wave, Ripple, and Tripod gaits.

Cite HexaLoam

If you use HexaLoam in a research paper, university course, or custom robot build, please credit the project using the reference below or import the citation file directly into BibTeX or Zotero.

HexaLoam contributors. (2026). HexaLoam: Modular 3D-Printable 18-DOF Hexapod Robot Platform with LiDAR. GitHub: https://github.com/equesai/HexaLoam