Skip to content

feat: added Odrive S1 BLDC motor control support via can bus#1065

Open
arthurtumanyan wants to merge 1 commit into
Arksine:masterfrom
arthurtumanyan:odrive_bldc_motor_control
Open

feat: added Odrive S1 BLDC motor control support via can bus#1065
arthurtumanyan wants to merge 1 commit into
Arksine:masterfrom
arthurtumanyan:odrive_bldc_motor_control

Conversation

@arthurtumanyan

Copy link
Copy Markdown

Added support to control Odrive S1 motor controller via REST API . Motor controller should be connected to Klipper supported device via CAN bus.

Successfully tested on manta-m8p device.
Example of request:
curl -X POST http://<moonraker_ip>:7125/machine/odrive/command -H "Content-Type: application/json" -d '{"action": "H0", "distance": 0}'
curl -X POST http://moonraker_ip:7125/machine/odrive/command -H "Content-Type: application/json" -d '{"action": "G0", "distance": 100}'
curl -X POST http://moonraker_ip:7125/machine/odrive/command -H "Content-Type: application/json" -d '{"action": "RESET"}'

@Arksine

Arksine commented Mar 25, 2026

Copy link
Copy Markdown
Owner

Thanks. One of the design principles of Moonraker is that direct robot control is strictly in Klipper's domain and Moonraker should not encroach on it. This would apply to steppers, servos, heaters, and various sensors. From Klipper it is possible to register endpoints that are proxied via Moonraker that expose direct control if necessary, although it would likely be more efficient to simply register GCode Commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants