A lightweight library for controlling stepper motors for 3D planar tilting applications.
This library was developed to control a 3D planar tilting mechanism that interfaces with a 3D viewer. By sending simple serial commands, the system allows precise control of the tilting platform's orientation, creating an immersive physical representation of 3D models being viewed in software.
- 🎮 Control multiple NEMA 17 stepper motors via serial commands
- 🔄 Simple command interface for external software integration
- 📊 Set motor speeds and accelerations
- 🔌 Designed for Arduino Mega 2560 with RAMPS 1.4 shield and A4988 drivers
The system uses:
- Arduino Mega 2560
- RAMPS 1.4 shield
- 4x NEMA 17 stepper motors
- 4x A4988 stepper motor drivers
stepper_control/
├── include/ # Header files
├── src/ # Implementation files
├── examples/ # Example sketches
└── stepper_control.ino # Main sketch
| Command | Description |
|---|---|
status |
Show motor status |
move <motor> <steps> |
Move motor by steps |
speed <motor> <speed> |
Set maximum speed |
stop <motor> |
Stop specific motor |
stop_all |
Stop all motors |
emergency_stop |
Emergency stop all motors |
Type help for a complete list of commands.
The library is designed to be controlled via serial commands from a 3D viewer application, allowing physical movement to be synchronized with on-screen models.
This project is MIT licensed.