Aller au contenu
GET /v1/belt

Steps per mm for a belt axis

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/steppermotor-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "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
}