1. Présentation & principe de fonctionnement
Industrial analog sensors output 0–10 V or bipolar ±10 V, whereas modern STM32/ESP32 microcontrollers accept only 0–3.3 V. A precision resistive attenuator (with optional 3-resistor level shift for ±10 V) paired with a BAT54S Schottky clamp maps the full industrial range cleanly into the ADC while surviving accidental +24 V field miswires.
Unipolar vs Bipolar 3-Resistor Shift: For 0–10 V, a 22 kΩ / 10 kΩ divider scales 10 V to 3.125 V (leaving 175 mV headroom under 3.3 V). For ±10 V, adding R3 = R1 tied to Vref shifts −10 V…+10 V symmetrically inside 0…Vref without needing a negative supply rail.
24 V Miswire Survival: When +24 V hits the input, BAT54S conducts into the 3.3 V rail at Vref + 0.3 V. R1 limits current to (24 − 3.6) / R1 (~0.93 mA for 22 kΩ) and dissipates ~19 mW — easily survived by a 1206 resistor without blowing the MCU ESD diode.

2. Step-by-step: Designing a 24 V-tolerant 0–10 V / ±10 V ADC input
1Choose 0.1% thin-film R1/R2 with 5% full-scale headroom
Scale 10.0 V to ~3.1 V (not 3.30 V) so sensor over-range (10.5 V) does not clip.
2Add R3 = R1 to Vref for bipolar ±10 V sensors
Use the exact same low-drift Vref as the ADC reference so rail drift cancels ratiometrically.
3Place BAT54S dual series Schottky directly before the ADC/buffer
Schottky Vf ≈ 0.3 V turns on well before the MCU internal 0.6 V ESD clamp.
4Verify R1 wattage and 3.3 V rail sink capacity under +24 V fault
Use 1206 resistors (250 mW) and ensure total board 3.3 V load exceeds worst-case clamp current so LDO rail cannot rise.
3. Dépannage terrain & mesures au multimètre
| Symptôme | Cause racine | Contrôle multimètre | Action corrective |
|---|---|---|---|
| ADC reads 4095 and 3.3 V rail rises to 4.1 V during 24 V miswire | LDO cannot sink reverse current injected through BAT54S when MCU is in sleep mode | Measure 3.3 V rail while applying 24 V to analog input | Add a 3.6 V Zener/TVS across 3.3 V rail or raise R1 to ≥ 22 kΩ |
4. Questions fréquentes (FAQ)
Can I read ±10 V without a negative −12 V op-amp supply?
Yes! A 3-resistor summing network (R1 from Vin, R3 from Vref, R2 to GND) shifts −10 V…+10 V cleanly into 0.1–3.2 V on a single 3.3 V supply.
Why does R1 need to be ≥ 10 kΩ for 24 V protection?
Because P = (24 − 3.6)² / R1. At 1 kΩ, R1 burns 416 mW and injects 20 mA into the 3.3 V rail; at 22 kΩ it drops to 19 mW and <1 mA.
5. Calculateurs associés, guides et autres circuits
- Calculateur de mise à l’échelle analogique API
- Calculateur de résolution d’un CAN
- Boucle de Courant 4–20 mA 2 Fils & Récepteur Protégé
- Transmetteur Analogique Actif 3 Fils vs 4 Fils (0–10 V)
- Convertisseur Tension vers 4–20 mA (AOP + Transistor)
- Sortie Capteur PNP 3 Fils (Source) — Schéma & Simulateur
- Sortie Capteur NPN 3 Fils (Sink / Collecteur Ouvert)
- Circuit NAMUR 2 Fils Sécurité Intrinsèque (IEC 60947-5-6)
- Sortie Push-Pull (HTL/TTL) & Drain Ouvert — Simulateur