ESP32 Oscilloscope and Power Supply


Your latest note confirms the ripple correction and identifies minimum ON-time and gate-drive timing as key low-voltage checks; it introduces no new requirements beyond the existing specification. In Agent mode, I’ll validate the proposed components and calculate electrical and thermal margins across 1–30 V at 2 A, including adapter tolerances, fault currents, and 40°C ambient operation.
Continue in Agent Mode
I’ll validate the proposed power-stage ratings and timing, calculate full-range electrical and thermal margins, and record a practical sizing recommendation without changing the schematic.
I found a significant timing concern with the proposed gate driver at the 1 V endpoint, and verified a controller alternative with substantially shorter minimum pulses. The MOSFET datasheet lookup has not completed, so I’ll explicitly separate confirmed controller limits from provisional loss and cooling estimates.
Created a project doc

Power stage verification

View Document

Power stage verification Verdict and scope
The external-DC, STM32-acquisition plus ESP32-display architecture remains appropriate. The proposed IR2104/IRFZ44N power stage is NOT validated for the required continuously adjustable 1–30 V, 2 A output. In particular, the gate-driver timing is a serious low-output-voltage risk. Recommend a dedicated synchronous buck controller rather than MCU-generated PWM as the sole regulation/protection mechanism. No schematic or layout changes were made. Numerical sizing below is analytical screening, not simulation or measured performance.
Verified gate-driver evidence
IR2104 recommended VCC is 10–20 V and its floating gate supply must be 10–20 V above VS; it cannot be powered from the 5 V or 3.3 V logic rails.
I recorded datasheet-backed controller findings and preliminary electrical/thermal sizing in the project files: Power stage verification; the proposed gate driver has a significant timing risk at the 1 V endpoint. I recommend a dedicated buck controller and provisionally a 36 V, 3 A adapter, but MOSFET evidence remains pending and continuous-load cooling is not yet validated; no schematic changes were made.
Shall I proceed with exact component selection and constant-voltage/constant-current control design using the dedicated-controller approach?
No schematic yet

Talk to Flux to get started.

Power stage verification
Verdict and scope
The external-DC, STM32-acquisition plus ESP32-display architecture remains appropriate. The proposed IR2104/IRFZ44N power stage is NOT validated for the required continuously adjustable 1–30 V, 2 A output. In particular, the gate-driver timing is a serious low-output-voltage risk. Recommend a dedicated synchronous buck controller rather than MCU-generated PWM as the sole regulation/protection mechanism. No schematic or layout changes were made. Numerical sizing below is analytical screening, not simulation or measured performance.
Verified gate-driver evidence
IR2104 recommended VCC is 10–20 V and its floating gate supply must be 10–20 V above VS; it cannot be powered from the 5 V or 3.3 V logic rails.
Its dynamic-characteristic test conditions are 15 V bias, 1000 pF load and 25°C. Turn-on delay is 680 ns typical/820 ns maximum, turn-off delay 150 ns typical/220 ns maximum, and deadtime 400/520/650 ns minimum/typical/maximum.
Output source short-circuit pulsed current is 130 mA minimum/210 mA typical at VO=0 V, pulse width ≤10 µs; sink current is 270 mA minimum/360 mA typical at VO=15 V, pulse width ≤10 µs. These are not constant gate currents throughout a Miller transition, and driver rise/fall times measured with a capacitive load are not the actual MOSFET drain switching times.
At 100 kHz and 1 V output from a 36 V input, ideal high-side ON-time is 278 ns; with an assumed +5% input tolerance it is 265 ns. Both are shorter than the typical delay asymmetry (680−150=530 ns). This flags severe pulse distortion/suppression risk. Datasheet delays are not a guaranteed minimum input-pulse specification, so this is a rejection of an unverified design assumption, not proof of an exact achievable minimum output voltage. Do not assume compensation of PWM duty alone fixes it. Bootstrap refresh, deadtime, real gate charge, pulse response and light-load reverse current require attention.
Verified controller alternatives
LM5146 is a candidate, not a fully selected/compensated design. Its recommended input range is 5.5–100 V and operating junction range −40 to 150°C. Its output setting range is 0.8–60 V or slightly below VIN, subject to switching frequency/load. Its free-running frequency range is 100 kHz–1 MHz.
Minimum controllable ON-time is 40 ns typical/60 ns maximum and minimum OFF-time is 140 ns typical/200 ns maximum under the specified 7 V bootstrap conditions. These limits offer substantially better screening margin than the proposed driver at 100 kHz. At the assumed 34.2 V minimum input, 30 V output requires ideal duty 87.72% and approximately 1.23 µs OFF-time, before loss correction. This is comfortably above the cited controller OFF-time limit, but adapter droop and conduction losses must still be bounded.
LM5146 internal gate/control bias is 7.5 V. Select MOSFETs with guaranteed low on-resistance at the actual minimum gate voltage; do not transfer a resistance specified at 10 V to 7.5 V. Its ILIM function provides valley current limiting using low-side RDS(on) or shunt sensing. This is NOT a precision adjustable constant-current bench-supply loop. A separate DAC-set current regulation loop, verified CV/CC handoff, hardware overvoltage shutdown and fault protection are still needed. The voltage-control compensation must be valid across the full 30:1 output range, not copied from one fixed-output example.
For auxiliary power, LM5164 is a candidate for a fixed 5 V rail: recommended VIN is 6–100 V. It is described as delivering up to 1 A; do not size sustained rail consumption using the 1.25 A entry alone. Its feedback reference is 1.2 V. It is not the main 2 A converter. Auxiliary support parts and thermal behavior remain unselected.
Analytical sizing assumptions
Screening assumptions, NOT verified adapter/part specifications: 36 V nominal ±5% (34.2–37.8 V), 100 kHz nominal with −10% frequency allowance, 150 µH nominal with −20% inductance allowance, 2 A load, continuous conduction. The actual chosen controller's frequency tolerance and inductance at operating current/temperature replace these allowances. Light-load discontinuous conduction and pulse skipping are outside this ideal calculation.
D=Vout/Vin,ΔIL=VinD(1−D)fL,Ipk=Iout+ΔIL2D=V_{out}/V_{in},\quad \Delta I_L=\frac{V_{in}D(1-D)}{fL},\quad I_{pk}=I_{out}+\frac{\Delta I_L}{2}
IL,rms=Iout2+ΔIL212,ICout,rms=ΔIL12I_{L,rms}=\sqrt{I_{out}^{2}+\frac{\Delta I_L^{2}}{12}},\quad I_{Cout,rms}=\frac{\Delta I_L}{\sqrt{12}}

Table


QuantityCalculated screening result
Input window under assumed ±5% tolerance34.2–37.8 V
Maximum ideal ripple at 37.8 V, 100 kHz, 150 µH0.630 A peak-to-peak
Maximum ripple at 37.8 V, 90 kHz, 120 µH0.875 A peak-to-peak
Peak inductor current at 2 A, worst allowance2.438 A
Inductor RMS current, worst allowance2.016 A
Output capacitor RMS ripple current0.253 A
Leading input-capacitor RMS estimate at D=0.51.00 A, excluding ripple correction
220 µF ideal capacitive output ripple, worst allowance5.52 mV peak-to-peak
Additional ripple with 50 mΩ ESR43.75 mV peak-to-peak
Nominal 36 V at 100 kHz/150 µH, ideal CCM: at 1 V, ripple is 0.0648 A; at 18 V it is 0.600 A; at 30 V it is 0.333 A. Ripple does not peak at low output voltage. High-side/low-side conduction duty dependence differs; switching loss needs actual transition, recovery and capacitance data.
Preliminary procurement targets, not verified MPNs
  • Adapter: isolated regulated 36 V, preferably 3 A (108 W class), with its actual output tolerance and 40°C continuous rating checked. Using 90% main-converter efficiency and a provisional 5 W auxiliary input budget, total input is 71.7 W; adding 25% margin gives 89.6 W. Neither efficiency nor the auxiliary budget is measured. Do not use a 60 W adapter for 60 W output plus losses.
  • Power MOSFETs: shortlist 80–100 V devices with guaranteed resistance at the chosen gate voltage and low gate/recovery losses. The exact choice and transient clamping budget remain open; voltage rating alone does not prove safe switching.
  • Inductor: 150 µH remains a candidate only. Target hot RMS capability ≥3 A and preferably hot saturation current ≥4 A pending the actual hardware current-limit tolerance/overshoot. Set cycle-by-cycle protection below the verified saturation knee. At a 3 A starting fault current, 37.8 V across 120 µH can add roughly 0.315 A per µs; a protection delay is significant. Target hot DCR ≤100 mΩ gives approximately 0.41 W copper loss at the calculated RMS current, but core loss is additional and needs manufacturer curves. A 2.5 A saturation rating leaves essentially no practical margin above the calculated 2.438 A peak.
  • Input capacitance: preliminary 63 V rating and ≥1.3 A combined ripple-current capability at the relevant frequency/temperature, with local high-frequency ceramics and connector-side bulk as required. Transient clamping and DC-bias derating still govern exact selections.
  • Output capacitance: preliminary 50 V rating, 220 µF effective starting value and ≥0.5 A ripple-current capability. Target ESR based on required ripple, not merely 'low ESR'. This is not approved for loop stability: compensation, startup, stored energy and step-down discharge must be designed. At 30 V, 220 µF stores 0.099 J, so output disable and current limit cannot remove its energy instantly.
Auxiliary rails and internal heat
Provisional load allocations: 3.3 V rail 0.6 A total for both MCUs and low-voltage logic, 5 V direct loads 0.4 A for display/other peripherals. These are allocations, not sourced MCU/display consumption. With a 90% efficient 5→3.3 V buck, its 5 V input is 0.44 A, bringing total 5 V load to 0.84 A. A 1 A auxiliary converter is plausible under these assumptions but has limited expansion margin; select a higher-current converter if actual peak loads exceed the allocation. A 5→3.3 V linear regulator at 0.6 A would dissipate 1.02 W. Avoid direct high-input linear conversion. Provide analog filtering and, if justified, a low-dropout postregulator on the sensitive analog branch. Op-amp supply requirements are not yet resolved.
At 60 W output and assumed 90% efficiency, the main converter alone loses 6.67 W. Even at 95% it loses 3.16 W, before internal display/MCU consumption and auxiliary conversion losses. Electronics consumption inside the enclosure mostly becomes heat, not just regulator inefficiency. Thus the earlier 'under 3.5 W total internal heat' cannot be guaranteed. Include gate-drive energy, inductor core/copper, shunt and output-disconnect losses. No component-level MOSFET loss number is certified by this report.
Thermal sizing and acceptance
Use 40°C room ambient. Treat 5°C enclosure rise as a proposed target, not a known value. At 45°C internal air and a 60°C heatsink design target, available sink rise is 15°C.
For individual sinks: Ths=Tair+PdeviceRθSA,Tj=Ths+Pdevice(RθJC+RθCS)T_{hs}=T_{air}+P_{device}R_{\theta SA},\quad T_j=T_{hs}+P_{device}(R_{\theta JC}+R_{\theta CS})
For a shared sink use combined heat for sink rise, then each device's loss for its own junction delta. If total sink heat is 2 W, required installed sink-to-air resistance is ≤7.5°C/W; if it is 3 W, ≤5°C/W. A 20°C/W individual sink supports only 0.75 W at the 60°C target; a 10°C/W sink supports 1.5 W. These are conditional envelopes, not selected heatsink ratings. Interface values and junction resistances remain to be confirmed from exact parts and mounting system. Never short electrically live transistor tabs together on an uninsulated shared sink; confirm package tab potentials and insulation ratings before mounting.
To restrict enclosure air rise to 5°C, an illustrative 5 W heat budget requires effective air-to-room resistance ≤1°C/W; 10 W would require ≤0.5°C/W. Vent dimensions and enclosure material alone do not establish those resistances. A fan or larger/conductive enclosure remains an option if passive tests fail. Keep sensor-fault handling and independent fast electrical protection; heatsink sensor lag cannot protect against a rapid junction excursion.
Normal continuous operation must remain below the 70°C throttle threshold with sensor accuracy margin; 85°C is the specified heatsink shutdown threshold, not a junction limit. Test at 1 V/2 A, approximately half-input voltage/2 A, 30 V/2 A and light load, over actual adapter extremes, at 40°C until thermal equilibrium. Inspect switch-node overshoot, gate waveforms, fault peak current, CV/CC stability, load steps, downward setpoint transients and acquisition noise with the supply operating.
Explicit open items and lookup status
  • IRFZ44N datasheet indexing remained pending after two immediate lookups and one five-minute wait. Voltage/temperature ratings, hot RDS(on), Qg/Qgd, recovery and tab/pinout were not citation-verified in this session. Earlier pasted numbers remain unverified; this is not evidence the datasheet omits them.
  • No exact inductor, capacitor, heatsink/interface or adapter MPN was supplied. Ratings and thermal performance therefore remain procurement/validation criteria, not validated parts.
  • No actual rail loads, efficiency measurement, enclosure thermal resistance or MOSFET switching waveform is available. Those block a definitive loss/temperature margin, not the sizing calculations above.
  • Controller alternative needs component selection, CV/CC architecture, digital setpoint circuitry, compensation and sourced reference design verification before schematic capture. MCU acquisition/front-end ratings are outside this power-stage pass.
Approve the dedicated-controller direction, then select exact parts and complete CV/CC/control-loop calculations before building the supply schematic. Keep external-DC input and the dual-MCU architecture unchanged. Do not declare 60 W continuous thermal capability validated until the enclosed prototype passes the specified tests.
  • Verdict and scope

  • Verified gate-driver evidence

  • Verified controller alternatives

  • Analytical sizing assumptions

  • Preliminary procurement targets, not verified MPNs

  • Auxiliary rails and internal heat

  • Thermal sizing and acceptance

  • Explicit open items and lookup status

  • Recommended next phase