/v1/leadscrew
Steps per mm for a lead-screw axis
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/steppermotor-api/v1/leadscrew" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/steppermotor-api/v1/leadscrew", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/steppermotor-api/v1/leadscrew");
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/leadscrew",
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": "Steps per mm = (motor steps per rev × microstepping) ÷ the screw lead (travel per turn). A 1.8° motor (200 steps) at 16 microsteps on an 8 mm-lead screw gives 400 steps/mm and 2.5 µm of resolution. Microstepping smooths motion and raises the count but does not add real accuracy — torque per microstep drops, so the true positioning still rests on the motor, screw and mechanics. Beware confusing lead with pitch on a multi-start screw.",
"inputs": {
"lead_mm": 8,
"microstepping": 16,
"motor_steps_per_rev": 200
},
"steps_per_mm": 400,
"resolution_um": 2.5,
"full_steps_per_mm": 25
},
"meta": {
"timestamp": "2026-06-06T23:53:52.499Z",
"request_id": "ed8868f8-1d95-4be7-a229-1c6bf8c505d5"
},
"status": "ok",
"message": "Leadscrew steps/mm",
"success": true
}