/v1/belt
Steps per mm for a belt axis
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/steppermotor-api/v1/belt" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/steppermotor-api/v1/belt", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/steppermotor-api/v1/belt");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/steppermotor-api/v1/belt",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"note": "For a belt drive the travel per motor revolution = pulley teeth × belt pitch (GT2 belt = 2 mm), so steps per mm = (motor steps × microstepping) ÷ that. A 1.8° motor at 16 microsteps on a 20-tooth GT2 pulley gives 80 steps/mm — the classic 3D-printer X/Y value. A bigger pulley moves faster but coarsens resolution; that is the speed-versus-precision trade every belt axis makes.",
"inputs": {
"pulley_teeth": 20,
"belt_pitch_mm": 2,
"microstepping": 16,
"motor_steps_per_rev": 200
},
"steps_per_mm": 80,
"resolution_um": 12.5,
"travel_per_rev_mm": 40
},
"meta": {
"timestamp": "2026-06-06T23:53:52.398Z",
"request_id": "ef841f3b-68c9-4d5e-a765-68914610f140"
},
"status": "ok",
"message": "Belt steps/mm",
"success": true
}