/v1/resistor
Solve resistor for target Vout
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
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_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"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
}