SensorCatalog
IEC 61131-22-wire Voltage → Divider + Clamp

Mise à l’échelle Analogique ±10 V / 0–10 V & Protection 24 V

0–10 V / ±10 V Scaled Analog · 3.3 V / 5.0 V Single-Supply ADC

Adaptez 0–10 V vers un ADC 3,3 V avec 22 kΩ / 10 kΩ, ou ajoutez R3 = R1 vers Vref pour ±10 V en alimentation simple ; une diode BAT54S protège le MCU contre +24 V.

ADC SAFE — V_ADC = 1.56 V (1939 / 4095)

Input 5.0 V scales cleanly into 1.56 V with 32.0 kΩ input impedance and 0.5 mW in R1.

Courant normalAlerte / ÉcrêtageDéfaut / SurintensitéVitesse ∝ |I|
Analog Sensor+5.0 V0–10 V / ±10 VP(R1) = 1 mW22 kΩR1 (1206)10.0 kΩ0 V (AGND)⚠ R2 OPEN! NO ATTENUATION!+Vref (Bipolar Shift)22 kΩ+3.3 VBAT54S⚠ +24V MISWIRE CLAMPED0.00 mAMCU 12-bit ADC1.56 VSafe Input: 0…+3.3 VI_clamp: 0.00 mA

ADC Pin Voltage

1.56 V

Schottky Clamp Current

0.00 mA

R1 Power Dissipation

0.5 mW

Input Impedance

32.0 kΩ

Scaling Topology2-Res Unipolar
BAT54S ClampStandby (OFF)
12-bit ADC Code1939 / 4095
V

0 to +10 V in unipolar mode, or −10 to +10 V in bipolar mode.

kΩ

Sets input impedance and limits clamp current on +24 V miswire.

kΩ

22 kΩ / 10 kΩ maps 0–10 V to 0–3.125 V (safe margin under 3.3 V).

V

3.3 V for STM32/ESP32, or 5.0 V for 5 V industrial MCUs.

Préréglages :

Formules pas à pas en direct

Unipolar Divider Voltage

V_adc = Vin × R2 / (R1 + R2) = 5.0 × 10.0 / (22 + 10.0)

⇒ 1.563 V

24 V Miswire Clamp Survival Power

P(R1) = (Vin − V_clamp)² / R1 = (5.0 − 1.56)² / 22 kΩ

⇒ 0.5 mW

Nomenclature dynamique (BOM)

Réf.ComposantCalibrage calculéÉtat
R1 / R20.1% Thin-Film 1206 Resistors22 kΩ / 10.0 kΩ · ≥250 mWOK
D1BAT54S Dual Series SchottkyVf ≈ 0.3 V @ 1 mA, clamps to Vref & GNDOK

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.

Mise à l’échelle Analogique ±10 V / 0–10 V & Protection 24 V — SensorCatalog
Échelle ±10 V / 0–10 VPNG 1200×630

2. Step-by-step: Designing a 24 V-tolerant 0–10 V / ±10 V ADC input

  1. 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.

  2. 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.

  3. 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.

  4. 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ômeCause racineContrôle multimètreAction corrective
ADC reads 4095 and 3.3 V rail rises to 4.1 V during 24 V miswireLDO cannot sink reverse current injected through BAT54S when MCU is in sleep modeMeasure 3.3 V rail while applying 24 V to analog inputAdd 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

↑ ↓ choisir · Entrée ouvrir · Échap fermer