Tripod Locomotion
The left front, right middle and left rear lift together. The other three feet stay planted. Half a cycle later, the two groups exchange roles.
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.
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.
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
The left front, right middle and left rear lift together. The other three feet stay planted. Half a cycle later, the two groups exchange roles.
The next leg lifts before the previous swing ends. Two feet move at once and four stay in stance. Follow the staggered lift-offs on the footfall diagram.
Follow one moving foot at a time, from rear to front along the left side and then along the right. Five feet remain in stance.
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.
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.
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.
Open Full_Robot_Assembly.SLDASM in SOLIDWORKS to verify controller, battery, M3 nut pockets, and LiDAR sightlines.
Slice Printables/Full_Robot.3mf (6 plates) or the 5 STLs in millimeters. Test-print one leg set before printing all six.
Run smimport('Full_Robot_Assembly.xml') in MATLAB R2025b Simscape Multibody and verify the 18 revolute blocks and no 6-DOF blocks.
Yes. Everything is released under the MIT License; third-party reference CAD (servo, LiDAR, battery) keeps its own source terms.
Native, editable SOLIDWORKS parts and assemblies (Full_Robot_Assembly.SLDASM, LegMates.SLDASM, Designed/), plus STEP, STL, 3MF and GLB files.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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).
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).
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).
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).
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.STL | 1 | 324.22 | 149.55 | 174.67 | 174.67 |
L1.STL (Coxa) | 6 | 85.06 | 25.42 | 59.64 | 357.84 |
L2.STL (Femur) | 6 | 48.60 | 0.27 | 48.33 | 289.98 |
L3.STL (Tibia) | 6 | 97.87 | 24.36 | 73.51 | 441.06 |
LidarCover.STL | 1 | 55.41 | 12.73 | 42.68 | 42.68 |
| Total PLA+ Structure (20 pcs) + 36× MG996R Servos (2/joint) | — | — | — | 1,306.23 g + 1,980.00 g | 3.286 kg |
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).
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.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
Browse the complete CAD, firmware, wiring diagrams, and documentation in the HexaLoam GitHub repository, or download CITATION.cff for automatic citation tools.