/v1/resistor
Solve resistor for target Vout
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/voltagedivider-api/v1/resistor" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/voltagedivider-api/v1/resistor", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/voltagedivider-api/v1/resistor");
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/voltagedivider-api/v1/resistor",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"note": "Resistive divider sizing: Vout = Vin·R2/(R1+R2) ⇒ R2 = R1·Vout/(Vin−Vout), R1 = R2·(Vin−Vout)/Vout.",
"inputs": {
"r1": 1000,
"vin": 12,
"vout": 5
},
"r2_ohm": 714.285714
},
"meta": {
"timestamp": "2026-06-05T19:50:29.626Z",
"request_id": "55819d8d-9210-4452-beba-38b3a19490a1"
},
"status": "ok",
"message": "Solve resistor for target Vout",
"success": true
}