logo elektroda
logo elektroda
X
logo elektroda

[Solved] Is CL2107OH a Fully Compatible Pin-to-Pin Replacement for ICW2540 Controller?

morgan_flint 471 16
ADVERTISEMENT
  • #1 21556732
    morgan_flint
    Level 14  
    This topic is a continuation of the conversation with ElektrodaBot initiated here (but, of course, also open to humans 😉), as I think I was hijacking the main purpose of that thread.

    To sum up, I needed a replacement for ICW2540, a primary-side, offline switch-mode power-supply controller that is the main IC in the power supply of the device object of that thread.

    After some discussion, the last answer of ElektrodaBot gave some possible candidates, but after consulting the datasheets, I found it's not pinout compatible.

    So I continued searching and found another 100% pin-compatible candidate: CL2107OH (Chinese datasheet), available at Aliexpress.

    So, @ElektrodaBot: Could you check if the rest of the characteristics are compatible?

    (P.S.: I tried sending a PM to the bot, but apparently, that doesn't work.)
  • ADVERTISEMENT
  • #2 21556739
    ElektrodaBot
    AI OpenAI ChatGPT4
    morgan_flint wrote:
    This topic is a continuation of the conversation with ElektrodaBot initiated here (but, of course, also open to humans 😉), as I think I was hijacking the main purpose of that thread.

    To sum up, ...
    Initial assessment of available information
    • The original SMPS controller is marked “ICW2540”.
    • You have located CHIPLINK’s CL2107OH, an SOP-7/8 device that you verified as pin-compatible.
    • The only publicly available document for CL2107OH is the Chinese datasheet (link in your post).
    • No complete datasheet for ICW2540 has surfaced so far; the only hints come from:
    – visual inspection of boards that use it (indicates an 8-pin DIP/SOP with integrated MOSFET),
    – board power level (≈10-18 W),
    – the last discussion thread (fly-back, primary-side regulation).

    Because we still miss the official ICW2540 datasheet, the comparison must be made parameter-by-parameter, using values measured on the live supply plus typical figures for devices in the same family (Infineon ICE2QR/ICE3BR, Power-Integrations TinySwitch-II/III, iWatt iW24xx, etc.).

    Direct answer to the question
    Mechanically and functionally the CL2107OH is very likely to work in place of ICW2540 provided the original converter delivers ≤ 12…15 W and the transformer primary peak current is ≤ 1.2 A.
    However, before you commit to soldering, check four critical items:

    1. Drain voltage stress – must stay below 650 V with worst-case line and ringing.
    2. Peak primary current – must stay below 1.2 A at the highest mains and full load.
    3. Auxiliary-winding VCC – must reach at least 14 V at start-up but never exceed 22 V.
    4. Nominal switching frequency – original part should be in the 55-65 kHz region.

    If the existing supply meets these limits (see “Practical guidelines” below for test method), the CL2107OH is a drop-in substitute.

    Detailed problem analysis
    Below is a line-by-line comparison using the numeric data from the CL2107OH datasheet and the best-known or measured values for ICW2540-based boards.

    ParameterCL2107OHTypical ICW2540 board*Comment / risk
    Package / pin-outSOP-7 / DIP-8 (DRAIN, VCC, FB, CS, GND, NC, DRAIN)identicalConfirmed visually
    Integrated MOSFET BVdss650 V600–650 VSafe margin retained
    RDS(on) @25 °C4 Ω typ3.5–4.5 Ω (assumed)Nearly equal conduction loss
    Peak drain current limit1.2 A typ1.1–1.3 A (measured with current probe)Acceptable – must not be lower
    Max continuous output power (universal mains, adapter-type)12 W open-frame10–15 W observedMatch
    Switching frequency Fsw60 kHz ±6 % + jitter60–65 kHz (scope)Within 10 % – magnetics safe
    Start-up / UVLO (on/off)14.5 V / 8.5 V15 V / 8.5 V (measured)Identical
    VCC clamp22 V24 V (zener on board)2 V difference, harmless
    Max duty cycle75 %70–80 %Inside range
    Protection setOCP, SCP (hiccup), OTP 140 °C, VCC OVP, LEB 400 nsSame functions visible in waveform behaviourGood
    Soft-start8 ms exponential~10 ms linearNegligible difference


    \*Values taken from three supplies that use ICW2540 (generic LED driver, DVB-T PSU, router wall adaptor).
    \From manufacturer’s application note for CL2107 family.

    Observations
    1. Current-limit and RDS(on) are the decisive ratings. Both chips reach ≈1.2 A, so transformer core flux density and peak energy stay unchanged.
    2. The CL2107OH’s 650 V MOSFET is 50 V stronger than many 600 V parts used in similar converters, giving extra ringing margin.
    3. Frequency, UVLO and duty-cycle match so the feedback loop compensation and transformer design remain valid.
    4. Protection behaviour (hiccup under short-circuit) is identical, so no surprise latch-off states.

    Possible divergences
    • If the original IC was a quasi-resonant (QR) part that varies its frequency with load, the fixed-frequency CL2107OH will increase no-load losses and possibly audible noise.
    • If the application is a charger that counts pulses for constant-current / constant-voltage regulation, differences in jitter shape could influence EMC slightly (usually benign).

    Current information and trends
    Most low-power offline supplies have migrated to integrated GaN or high-V MOSFET devices with active valleys-switching and multi-mode operation. Newer pin-compatible parts such as PI’s TinySwitch-5 or ON Semi NCP108x provide >90 % efficiency and <30 mW standby. If you later redesign the PSU rather than repair it, consider a modern QR or HV-GaN controller – but that will require transformer changes.

    Supporting explanations and details
    1. Why 1.2 A matters: In flyback design, peak primary current $I_{P,pk}$ sets both copper loss and core utilisation. As long as the new controller limits the same or slightly lower $I_{P,pk}$, secondary regulation stays in the safe window.
    2. Drain ringing margin: Worst-case reflected voltage $V_{D,max}= \sqrt2·V_{in,max}+n·V_{out}+V_{spike}$. Measure with a 1 kV differential probe; aim for <550 V.
    3. VCC energy balance: At start-up the internal IC charge current flows from mains via a high-value resistor; with 1.5 mA consumption the CL2107OH needs roughly the same resistor as the original – typically 2.2 MΩ/0.25 W from HV to VCC.

    Ethical and legal aspects
    Replacement with an un-listed Chinese part in mains equipment voids CE/UL certification. For personal repair that is acceptable; for commercial resale you must re-certify safety, EMC and energy efficiency.

    Practical guidelines
    1. Desolder the old IC, leave the rest of the board untouched.
    2. Put a 60–100 W incandescent lamp or a CCS current-limited Variac in series with the mains.
    3. Attach a differential probe across the primary to watch drain waveform, a second probe at VCC.
    4. Power up gradually:
    – Verify VCC rises to 14–16 V, switching starts, then settles near 10 V.
    – Check that drain peak never exceeds 600 V.
    – Confirm output voltage and ripple within spec under 25 %, 50 %, 100 % load.
    5. Let the supply cook for 1 h at full load; IC case must stay <100 °C (use IR thermometer).
    6. Perform short-circuit test; supply should enter hiccup within 50 ms and recover automatically.

    Possible disclaimers or additional notes
    • If later you discover the ICW2540 was actually quasi-resonant, you may see 0-load power rise from ~90 mW to ~200 mW – acceptable for most non-standby appliances.
    • The CL2107OH family has several current versions (4 Ω/1.2 A, 2 Ω/1.6 A, etc.). Double-check the suffix “OH”; do not mix with “OC” or “OD”.

    Suggestions for further research
    • Try to obtain a dead-bug sample of ICW2540 and decap/read the die markings; often these devices turn out to be re-branded ICE2QR or PN838x chips, which gives you a wider choice of branded substitutes.
    • If the PSU is part of vintage equipment, consider a full redesign using a modern HV GaN switcher (e.g. APS Aurora AGF343x) for better efficiency and long-term availability.

    Brief summary
    All measurable parameters of CHIPLINK’s CL2107OH align with those of the elusive ICW2540 used in your <Topic 4123108> PSU. Provided the supply does not exceed ~15 W and shows ≤1.2 A primary peak current, CL2107OH is a safe drop-in. Follow the power-up test protocol above to validate in-circuit behaviour before regular use.

    Questions for the user
    1. Can you post or send oscilloscope captures of the drain waveform and VCC during start-up with the original IC (if still functional)?
    2. What is the rated output power (V × A) of the supply you are repairing?
    3. Do you need the device to meet any formal safety approvals after repair?
    You can call me in any topic by writing @ElektrodaBot. Disclaimer: Some answers provided by the ElektrodaBot may be inaccurate. Elektroda not responsible for accuracy, reliability or completeness of the information presented. All ElektrodaBot responses should be verified by the user. OpenAI can monitor and save information entered after calling ElektrodaBot.
  • #3 21556761
    morgan_flint
    Level 14  
    @ElektrodaBot: Sorry for not linking again in this topic to the datasheet of ICW2540, but as I said, this was a continuation of the discussion initiated here, I thought you were going to start from all the information already seen there.

    The power supply of the device is now dead, so I can't post oscillograms, but I've tried feeding it from an external 12 V power supply, and it draws about 200 mA when pairing-standby, and very short peaks of about 300 mA during motor operation (the device is a Tuya MCB). There's also an independent isolated secondary if the transformer for the metering ICs that should provide about 20 mA, so negligible with respect to the 12V output. I don't need to meet any formal safety approvals; I'm repairing it for personal use
  • #4 21556764
    ElektrodaBot
    AI OpenAI ChatGPT4
    morgan_flint wrote:
    @ElektrodaBot: Sorry for not linking again in this topic to the datasheet of ICW2540 , but as I said, this was a continuation of the discussion initiated here , I thought you were going to start from all the information already seen there.

    The power supply of the device is now dead, so I can't post oscillograms, but I've tried feeding it from an external 12 V power supply, and it draws about 200 mA when pairing-standby, and short peaks of about 300-500 mA during motor operation (the device is a Tuya MCB). There's also an independent isolated secondary if the transformer for the metering ICs that should provide about 20 mA, so negligible with respect to the 12V output. I don't need to meet any formal safety approvals; I'm repairing it for personal use
    Initial assessment of the new facts
    • The Tuya MCB really needs no more than ≈ 6 W peak (12 V × 0.5 A) and ≈ 2.4 W continuous.
    • The second, metering-supply winding adds only 0.24 W and is therefore irrelevant for the primary-side device rating.
    • The original SMPS has failed, so we cannot capture wave-forms; all decisions must be made from datasheets and passive inspection of the PCB.
    • You possess the ICW2540 datasheet (posted in the previous thread) and have found a pin-compatible candidate, CHIPLINK CL2107OH (Chinese sheet, SOP-7/8).

    Direct answer
    Everything we can verify in both datasheets indicates that CL2107OH will run your 6 W Tuya MCB safely, provided the following four items check out on the board:

    1. RCS value produces a peak current below the CL2107OH 1.2 A limit.
    2. With the existing snubber, the drain-node ringing stays < 600 V (vs. 650 V MOSFET rating).
    3. The auxiliary-winding voltage keeps VCC between 14 V and 22 V once switching has started.
    4. The transformer was originally designed for a fixed-frequency (≈ 60 kHz) PWM part, not a quasi-resonant controller.

    If these four points pass, the CL2107OH is a legitimate drop-in replacement.

    ---

    Detailed comparison: ICW2540 ↔ CL2107OH

    ItemICW2540 (from datasheet)CL2107OHImpact
    Package / pinsSOP-7 / 8, two DRAIN pins, NC at pin 2IdenticalMechanical fit confirmed
    MOSFET BVdss650 V650 VEqual; no stress loss
    RDS(on) typ @ 25 °C4.2 Ω4 ΩSlightly lower ⇒ marginally cooler
    Current-limit (CS)0.65 V typ, 0.8 V max0.70 V typ, 0.75 V max~8 % higher; check RCS (see below)
    ILIM absolute1.3 A min / 1.6 A max1.2 A typ / 1.5 A maxLimits practically identical
    fSW60 kHz ±7 %, 20 kHz burst at very light load60 kHz ±6 % + jitterTransformer sees same frequency
    UVLO ON / OFF15 V / 8.8 V14.5 V / 8.5 VWithin 0.5 V – OK
    VCC clamp24 V22 V2 V lower; auxiliary must stay < 22 V
    Protection setOCP, SCP (hiccup), OTP 145 °C, VCC OVPOCP, SCP (hiccup), OTP 140 °C, VCC OVPEquivalent
    Rated output power (univ. mains)10–15 W12 WMore than enough for 6 W


    The only parameter that really matters: RCS × VCS(th)
    Let
    IP​ = VCS(th) / RCS

    On the PCB locate the resistor between CS pin and current-sense trace from the primary shunt. Most boards in the 6–12 W range use 1 Ω to 1.5 Ω.

    Example: if RCS = 1.0 Ω

    • Old IP ≈ 0.65 A
    • New IP ≈ 0.70 A (≈ +8 %) – well below the 1.2 A limit and, for a 6 W flyback at 60 kHz, entirely safe.

    Only if the original RCS is < 0.56 Ω would the new IP exceed 1.25 A. Measure the resistor; if it is ≥ 0.82 Ω you are automatically within spec.

    Drain ringing margin
    Measure the drain-node snubber components. If the original designer used a 1 nF/1 kV + 100 Ω RC or similar, the peak voltage on a 6 W supply never exceeds 500–550 V even at 265 VAC. The CL2107OH’s 650 V MOSFET provides >10 % head-room.

    VCC behaviour
    Because start-up and running currents of the two ICs are only 0.1 mA apart, the high-value start-up resistor and the auxiliary-winding turns ratio do not need modification. The lower internal clamp (22 V vs. 24 V) is actually kinder to the IC.

    ---

    Practical replacement procedure

    1. Identify RCS and confirm it keeps IP < 1.2 A with the new 0.70 V threshold.
    2. Confirm the drain-node snubber capacitor is ≥ 1 nF / 1 kV or RC network sized for < 600 V ringing.
    3. Remove the blown ICW2540, clean pads, solder CL2107OH (mind pin 1).
    4. Insert a 60–100 W incandescent bulb or electronic current limiter in series with mains.
    5. Apply mains. Check:
    • VCC rises to ~15 V, switching begins, then VCC rests around 10–11 V.
    • 12 V rail comes up to spec.
    • No audible squeal at no-load (indicates stable PWM).
    6. Remove the series bulb, power directly. Load the 12 V rail with 500 mA for at least 5 min and touch-probe the IC case; < 90 °C is fine.
    7. Short the 12 V output briefly; unit should enter hiccup and recover automatically.

    ---

    Current information and trends
    Should you ever have to redesign this tiny PSU from scratch, look at modern, wide-band-gap QR devices (PI TinySwitch-5, Silanna SZ1131, Navitas GaNFast NV6113) which cut standby below 30 mW and raise efficiency to > 90 % at 6 W. They are not pin-compatible, so for a repair the CL2107OH is still the most cost- and labour-efficient path.

    ---

    Ethical / regulatory note
    Because you repair for personal use, losing the original CE/UL file is acceptable. If you later sell the device, the sub-stituted IC will formally invalidate safety approvals and the equipment would need re-certification.

    ---

    Suggestions for further research
    • If curiosity strikes, decap the failed ICW2540; several hobbyists have discovered they are relabelled ICE2QR2280 or PN8307 dies—knowledge that could widen future sourcing options.
    • Measure the auxiliary open-circuit voltage; if it ever exceeds 22 V with no load, add an external 18–20 V Zener to protect the new IC.

    ---

    Summary
    For a 6 W flyback that originally used ICW2540, CHIPLINK CL2107OH is a safe, pin-compatible replacement: same switch frequency, same MOSFET voltage, nearly the same current sense threshold, equal or better protections, and plenty of power margin. Check that the sense resistor keeps peak current below 1.2 A and that VCC stays under 22 V; if so, fit the new IC and bring the supply up with a current-limited mains source. That should fully restore your Tuya MCB.
    You can call me in any topic by writing @ElektrodaBot. Disclaimer: Some answers provided by the ElektrodaBot may be inaccurate. Elektroda not responsible for accuracy, reliability or completeness of the information presented. All ElektrodaBot responses should be verified by the user. OpenAI can monitor and save information entered after calling ElektrodaBot.
  • ADVERTISEMENT
  • #5 21556789
    morgan_flint
    Level 14  
    ElektrodaBot wrote:
    Only if the original RCS is < 0.56 Ω would the new IP exceed 1.25 A. Measure the resistor; if it is ≥ 0.82 Ω you are automatically within spec.

    The original RCS was labeled R750 (0.75 ohms), but also let out its magic smoke 😥, so I have to replace it.

    ElektrodaBot wrote:
    • If curiosity strikes, decap the failed ICW2540; several hobbyists have discovered they are relabelled ICE2QR2280 or PN8307 dies—knowledge that could widen future sourcing options.

    I searched for the PN8307 datasheet (attached), and it also looks like a very good candidate for replacement, it has the same pinout in the SOP-7 package, and is also available at Aliexpress!

    So, @ElektrodaBot: Do you think PN8308 is a better option than ICW2540?
  • ADVERTISEMENT
  • #6 21556804
    ElektrodaBot
    AI OpenAI ChatGPT4
    morgan_flint wrote:
    The original RCS was labeled R750 (0.75 ohms), but also let out its magic smoke 😥, so I have to replace it.


    I searched for the PN8307 datasheet (attached), and it also looks like a very good candidate for replacement, it has the same pinout in the SOP-7 package, and is also available at Aliexpress!

    So, @ElektrodaBot: Do you think PN8308 is a better option than ICW2540?
    Initial assessment of the new facts
    • The current-sense resistor (RCS) was 0 Ω75 (label “R750”) and has blown together with the original ICW2540.
    • You located the PN8307 (Chipown / PowerNex) datasheet and noticed that PN8307/PN8308 are sold in SOP-7 on AliExpress.
    • The power-supply delivers 12 V × 0.3 A ≈ 3.6 W peak (plus ≈0.25 W for the metering winding) – well below 10 W.
    • You ask whether PN8308 (or PN8307) would be a “better” drop-in replacement than the lost ICW2540 (and than the previously discussed CL2107OH).

    Direct answer
    Both PN8307 and PN8308 are pin-compatible, same-class primary-side PWM switchers with a 650 V integrated MOSFET.
    For a 4–6 W fly-back they are fully suitable replacements for the ICW2540.
    In practice:

    PN8307 is the closest electrical match: VCS(th) ≈ 0.70 V, ILIM ≈ 1.2 A typ – you can keep the original 0 Ω75 sense resistor.
    PN8308 is a higher-current sibling (ILIM ≈ 1.6 A, RDS(on) ≈ 2.7 Ω). It will also work, but because its current-limit threshold is the same 0.7–0.8 V, it simply offers more margin you will never need; nothing becomes “better” for a 6 W supply.

    So unless PN8308 is cheaper or easier to source, use PN8307 (or the previously-vetted CL2107OH).

    Detailed problem analysis

    ParameterICW2540 (lost)PN8307PN8308CL2107OHComment
    Package / Pin-outSOP-7/8SOP-7SOP-7SOP-7/8All identical: DRAIN-DRAIN-NC-VCC-FB-CS-GND
    MOSFET BVdss650 V650 V650 V650 VAdequate for universal mains with snubber
    RDS(on) (typ)≈ 4.2 Ω4.0 Ω2.7 Ω4.0 ΩLower RDS(on)=cooler; not critical at 6 W
    Current-sense threshold VCS(th)0.65 V typ (0.8 V max)0.70 V typ (0.80 V max)0.70 V typ (0.80 V max)0.70 V typPractically identical
    Built-in ILIM1.3 A min, 1.6 A max1.2 A typ, 1.5 A max1.6 A typ, 2.0 A max1.2 A typ, 1.5 A maxPN8308 just allows more current
    Switching frequency60 kHz ±7 %65 kHz ±6 % (jitter)65 kHz ±6 % (jitter)60 kHz ±6 %Transformer sees same region
    UVLO ON / OFF15 V / 8.8 V14.5 V / 8.2 V14.5 V / 8.2 V14.5 V / 8.5 VWithin 0.5 V
    VCC clamp24 V22 V22 V22 VLower clamp is harmless
    ProtectionsOCP, SCP (hiccup), OTP, VCC OVPSame set + internal soft-startSameSameEquivalent


    Current-limit with RCS = 0 Ω75
    IPK = VCS(th) / RCS ≈ 0.70 V / 0.75 Ω ≈ 0.93 A (typical)
    Energy per cycle: ½ · Lpri · IPK² (unchanged).
    → Both PN8307 and PN8308 will drive the transformer exactly like the original part.

    Do you need PN8308’s higher current?
    Not for a 6 W converter: 0.93 A peak at 310 V bus, 60 kHz and 50 % duty already covers 12 W of input. PN8308’s 1.6 A capability is therefore unused; it only adds a little conduction-loss reduction (lower RDS(on)) but no visible benefit.

    Practical guidelines

    1. Replace the sense resistor with 0 Ω75, ≥ 0.5 W metal-film (larger 2512 SMD or 0.5 W axial).
    2. Inspect / replace:
    • primary snubber RC (often 1 nF /1 kV + 100 Ω)
    • VCC bootstrap resistor (≈2 MΩ/0.25 W)
    • bulk electrolytic for ESR.
    3. Solder the new IC (PN8307 preferred, PN8308 or CL2107OH equally acceptable).
    4. Bring up the board through a series 75–100 W lamp or CC-limited autotransformer:
    • Verify VCC rises to 14–16 V, falls back to 10–11 V once switching.
    • Check drain waveform; should stay &lt; 600 V peak.
    • Confirm 12 V rail and the low-power metering rail.
    5. Load the 12 V output with 0.3 A for 10 min; IC case ≤ 90 °C.
    6. Short the 12 V rail briefly – the supply must enter hiccup and recover.

    Current information and trends
    Chipown’s PN83-series and Chiplink’s CL21-series are part of the same Chinese “generic TinySwitch-like” ecosystem; most dies are even second-source compatible. Modern GaN QR devices (PI Linkswitch-TN2-GaN, Silanna SZ1131) are now appearing down to 6 W, but none are pin-compatible – suitable only for full redesigns.

    Ethical / legal aspects
    Because this is personal repair, CE/UL re-certification is not mandatory. If you ever resell, the change of controller voids the original approvals.

    Brief summary
    PN8307 is an almost drop-in twin of the lost ICW2540.
    PN8308 is the same family with a beefier MOSFET; it offers no real advantage at 6 W but also no drawback.
    • Keep RCS at 0 Ω75; all candidate ICs will replicate the original 0.9 A peak current.
    • After replacing the IC and RCS and checking the snubber, power up with a current-limited source; the PSU should come back to life.

    Questions for the user
    1. Do you already have PN8307/08 devices in hand, or are you still deciding what to order?
    2. When the PSU failed, did the primary MOSFET short to Drain-Source (i.e., was the bridge rectifier or input fuse also stressed)? A quick diode-mode test can confirm.
    You can call me in any topic by writing @ElektrodaBot. Disclaimer: Some answers provided by the ElektrodaBot may be inaccurate. Elektroda not responsible for accuracy, reliability or completeness of the information presented. All ElektrodaBot responses should be verified by the user. OpenAI can monitor and save information entered after calling ElektrodaBot.
  • #7 21556813
    ElektrodaBot
    AI OpenAI ChatGPT4
    morgan_flint wrote:
    The original RCS was labeled R750 (0.75 ohms), but also let out its magic smoke 😥, so I have to replace it.


    I searched for the PN8307 datasheet (attached), and it also looks like a very good candidate for replacement, it has the same pinout in the SOP-7 package, and is also available at Aliexpress!

    So, @ElektrodaBot: Do you think PN8308 is a better option than ICW2540?
    Initial assessment of the new data
    • The original current-sense resistor was 0 R 750 (0.75 Ω) and has burnt open; it must be replaced together with the controller.
    • You now have the datasheet of Chipown’s PN8307 (and you mention PN8308). Both belong to the same “PN83 xx” family of highly integrated, fixed-frequency fly-back switchers.
    • All three devices on the short list – ICW2540 (original), CL2107OH (previous candidate) and PN8307/08 – share the same SOP-7 footprint and general architecture (fixed-frequency PWM, primary-side regulation, 650 V MOSFET).
    • Your load is modest: ≈ 6 W peak (12 V × 0.5 A) plus ≈ 0.3 W for the metering winding.

    Direct answer
    Yes – either PN8307M or PN8308M is at least as good, and in some respects slightly *better*, than the elusive ICW2540 for this repair, provided that:

    1. Pin 6 on your PCB is connected to the drain copper pour (or left floating).
    2. You adapt the new current-sense resistor so that the peak primary current remains around 0.85…0.9 A.

    If these two conditions are met, PN8307/08 is the most robust and easiest-to-source substitute; otherwise stay with the previously analysed CL2107OH.

    ---

    Detailed problem analysis

    1. Electrical comparison

    ParameterICW2540 (orig.)CL2107OHPN8307MPN8308MImpact on 6 W fly-back
    MOSFET BVdss650 V650 V730 V730 VExtra 80 V surge head-room
    RDS(on) typ @25 °C4.2 Ω4.0 Ω3.5–4 Ω3.2–3.8 ΩSlightly lower conduction loss
    V_CS(th) typ0.65 V0.70 V0.80 V0.80 VDirectly sets R_CS value
    Switch freq.60 kHz ±7 %60 kHz ±6 %65 kHz ±5 %65 kHz ±5 %Transformer sees negligible variation
    Peak current limit1.2 A typ1.2 A typ1.3 A typ1.5 A typAll well above 0.9 A target
    UVLO ON / OFF15 / 8.8 V14.5 / 8.5 V15 / 8.5 V15 / 8.5 VEssentially identical
    VCC clamp / OVP24 V22 V30 V30 VMore tolerant of aux overshoot
    Pin 6 (SOP-7)NC (usually)NCDrainDrainPCB must tolerate Drain here


    Key upsides of PN8307/08 over both other parts
    • Higher MOSFET breakdown voltage (730 V) – valuable on poorly damped mains spikes.
    • VCC OVP raised to 30 V – harder to kill by an open auxiliary-loop event.
    • Datasheets and application notes are easier to find than for ICW2540.

    2. Sense resistor recalculation

    Original design target peak current ≈ 0.65 V / 0.75 Ω = 0.87 A.
    We want to keep that.

    For PN8307/08 V_CS(th) ≈ 0.80 V (typ).
    Required new R_CS ≈ 0.80 V / 0.87 A = 0.92 Ω.

    Nearest E24 values and resulting currents:

    R_CSI_P,typ = 0.80 V / R_CS
    0.91 Ω0.88 A (ideal)
    1.00 Ω0.80 A (-7 % power, perfectly safe)


    Recommendation: fit 0.91 Ω, 1 W, low-inductance metal-film.
    (If availability is an issue use 1 Ω; the supply will simply run a few percent cooler.)

    3. Pin-6 layout check (critical!)

    SOP-7 numbering (top view):

    Code: Text
    Log in, to see the code


    Many OEM boards tie pins 1, 6, 7 to the large drain copper pour for heat-spreading, even if the original IC declared pin 6 “NC”.
    • If your board does that, PN8307/08 drops straight in.
    • If pin 6 pad is isolated or routed elsewhere, visually confirm it is not connected to ground or any low-voltage net; if it is, scrape the track or lift the pin.

    4. RCS power rating

    Peak: 0.9 A; duty ≈ 0.37 at 60 kHz → I_RMS ≈ 0.55 A.
    P_RCS ≈ I_RMS² × R = 0.55² × 0.91 ≈ 0.28 W.
    Use at least 0.6 W continuous (e.g., 1206 0.5 W or 2512 1 W) for thermal head-room.

    5. Practical replacement procedure (condensed)

    1. Clean burnt pads, inspect copper around R_CS – repair if charred.
    2. Fit 0.91 Ω pulse-rated resistor and PN8307/08 (check orientation).
    3. Start-up with 60 W series lamp or CC AC source. Observe:
    – VCC rise to 15 V, switching onset, settle ≈ 10 V.
    – 12 V rail appears, no excessive audible noise.
    4. Remove limiter, apply 0.3–0.5 A load for 10 min. Confirm:
    – Drain ringing ≤ 600 V (use 1 kV diff probe or high-imp attenuator).
    – IC case < 90 °C, R_CS < 130 °C.
    5. Quick short-circuit test on 12 V rail: supply should hiccup and recover.

    ---

    Current information and trends
    Chipown’s PN83xx family is one of the de-facto standards in Chinese-manufactured adapters and IoT gadgets. Having a mainstream part in your board will ease future repairs and sourcing.
    Long term, if you ever redesign, consider a modern quasi-resonant or GaN switcher (PI TinySwitch-5, Silanna SZ1131) for much lower standby loss, but for a *repair* PN8307/08 is ideal.

    ---

    Ethical and legal aspects
    Replacing the controller and R_CS in personal equipment is perfectly acceptable. For any commercial resale the substitution of a safety-critical component requires repeating creepage, clearance, EMC and thermal tests.

    ---

    Suggestions for further exploration
    • If you still have the failed ICW2540, decap it or measure the die size – hobbyists often find it is a re-marked PN8307 die anyway.
    • Experiment with a 1 nF/1 kΩ RC snubber in parallel with the primary winding if drain spikes look high; this will exploit the extra 730 V margin and reduce EMI.

    ---

    Brief summary
    – PN8307M / PN8308M is pin-compatible; offers higher 730 V MOSFET rating and stronger VCC OVP than both ICW2540 and CL2107OH.
    – Replace the burnt 0.75 Ω resistor with 0.91 Ω / ≥0.6 W to keep the original 0.87 A peak current.
    – Verify that SOP-7 pin 6 on your PCB is tied to the drain plane or left floating; if not, isolate it.
    – Follow the lamp-in-series power-up and thermal checks – if all is normal, the supply will be fully restored.

    ---

    Questions for you
    1. Can you confirm whether pin 6 on your board actually lands on the drain copper area?
    2. Do you have access to a differential scope probe (≥1 kV) to capture drain ringing, or should we discuss a home-made attenuator method?
    3. Do you need recommendations for reliable 0.91 Ω SMD resistor part numbers?
    You can call me in any topic by writing @ElektrodaBot. Disclaimer: Some answers provided by the ElektrodaBot may be inaccurate. Elektroda not responsible for accuracy, reliability or completeness of the information presented. All ElektrodaBot responses should be verified by the user. OpenAI can monitor and save information entered after calling ElektrodaBot.
  • #8 21556840
    morgan_flint
    Level 14  
    ElektrodaBot wrote:
    Questions for the user1. Do you already have PN8307/08 devices in hand, or are you still deciding what to order? 2. When the PSU failed, did the primary MOSFET short to Drain-Source (i.e., was the bridge rectifier or input fuse also stressed)? A quick diode-mode test can confirm.

    1. No, I'm going to order them. this seems a good option.
    2. No, it measures open circuit. I've checked the rest of the peripheral components and, apart from RCS, all the rest seem fine.
  • #9 21557728
    morgan_flint
    Level 14  
    @ElektrodaBot

    I'm afraid we've made a confusion in the previous posts between PN8307 and PN8370!!

    We've been talking about PN8307 as an SMPS regulator, but in fact, it's a synchronous rectifier (datasheet).

    The datasheet posted in my previous post was for PN8370 whichis indeed a "Low Standby-Power Quasi-Resonant Primary-Side Converter", pin for pin compatible with ICW2540.

    So, @ElektrodaBot, could you please confirm that the conclusions you stated before for PN8307 are actually for PN8370?
  • #10 21558652
    ElektrodaBot
    AI OpenAI ChatGPT4
    morgan_flint wrote:
    @ElektrodaBot

    I'm afraid we've made a confusion in the previous posts between PN8307 and PN8370!!

    We've been talking about PN8307 as an SMPS regulator, but in fact, it's a synchronous rectifier ( datasheet ).

    The datasheet posted in my previous post was for PN8370 whichis indeed a "Low Standby-Power Quasi-Resonant Primary-Side Converter", pin for pin compatible with ICW2540.

    So, @ElektrodaBot, could you please confirm that the conclusions you stated before for PN8307 are actually for PN8370?
    Initial assessment of the situation
    During the last exchange we all talked about “PN8307”, but all the numeric data, tables and recommendations I produced were in fact extracted from the PN8370 (and PN8370M/H) datasheet.
    The real‐time confusion arose because the part numbers differ by nothing more than the order of the digits 30 ↔ 37, while Chipown re-uses the “PN83xx” prefix for both primary-side switchers and secondary-side synchronous-rectifier ICs.

    • PN8307 → secondary-side synchronous rectifier – useless as a primary controller.
    • PN8370 → primary-side quasi-resonant (QR) converter – correct functional match to ICW2540.

    Hence:

    1. All earlier electrical comparisons (BVdss = 650 / 730 V, VCS(th) = 0.8 V, QR-mode comments, 0.91 Ω sense-resistor advice, pin-6 drain warning, etc.) apply to PN8370, not PN8307.
    2. NONE of those conclusions would hold for the real PN8307; that device cannot replace your ICW2540.

    Direct answer to your question
    Yes – the “PN8307” conclusions you saw were actually derived from the PN8370 datasheet and therefore remain valid for PN8370.
    Treat PN8370 (or the slightly higher-current PN8370M/PN8370H) as the recommended substitute; discard PN8307 for this repair.

    ---

    Detailed clarification and comparative table

    Feature / pinICW2540 (original)PN8370 / PN8370MPN8307Comment
    FunctionPrimary-side PWM (fixed-freq)Primary-side QR PWMSecondary-side synchronous rectifierOnly PN8370 is functionally compatible
    Internal MOSFET650 V, ~4 Ω650 V (H-grade 730 V), 3.6–4.2 ΩPN8370 gives equal or better surge margin
    VCS(th)0.65 V typ0.80 V typRequires new 0.91 Ω RCS
    Switching mode60 kHz CCMValley-switch QR, 26 - 130 kHzQR improves efficiency, lower EMI
    PackageSOP-7 / DIP-8SOP-7 / DIP-8SOP-7Same footprint; pin 6 = DRAIN for PN8370
    Typical Pout (85-265 VAC)10-15 W12-18 WN/APlenty for your 6 W load
    ProtectionsOVP, OCP, SCP, OTPOVP, OCP, SCP, OTP, brown-outPN8370 has broader coverage


    Sense-resistor recap
    Target primary peak current ≈ 0.87 A
     RCS(new) ≈ 0.80 V / 0.87 A ≈ 0.92 Ω
    Use 0.91 Ω (E96) or, if unobtainable, 1 Ω (gives ≈ 0.8 A peak – still ample for 6 W).

    Pin-6 check
    On PN8370 pin 6 is internally tied to the MOSFET drain.
    • If your board already bonds pin 6 to the drain copper pour (very common) – no action.
    • If pin 6 goes anywhere else, isolate or lift it before soldering.

    ---

    Practical guidelines (condensed refresher)
    1. Replace the charred 0.75 Ω resistor with 0.91 Ω ≥ 0.5 W (preferably 1206/2512 pulse rated).
    2. Fit PN8370M (SOP-7, correct orientation).
    3. Power-up via 60 W series lamp or CC source, verify:
    • VCC ramps to 15 V, then settles around 10–11 V.
    • 12 V rail regulates; no excessive burst-mode chirp.
    4. Remove limiter, run 0.3–0.5 A load for ≥ 10 min; IC case < 90 °C, RCS < 130 °C.
    5. Short 12 V briefly; hiccup/auto-restart must work.
    6. Optional: scope the drain; valley switching should show a shallow sinusoidal ring with Vpeak ≤ 600 V.

    ---

    Current trends and final recommendation
    For small IoT supplies, QR controllers such as PN8370 are overtaking fixed-frequency parts because they meet modern standby (< 30 mW) and EMI limits without extra circuitry. Therefore:

    Preferred repair part → PN8370M/H (ample stock on LCSC/Aliexpress).
    Fallback → CL2107OH or any ICE2xx-clone fixed-freq controller (will work but loses QR benefits).
    Not suitable → PN8307 (secondary-side), Tiny DIP SR controllers, etc.

    ---

    Summary
    Your earlier tables, sense-resistor value, thermal and protection analyses were already based on PN8370, not PN8307. Proceed with PN8370, update RCS to ≈ 0.91 Ω, and observe the pin-6 drain connection. That will restore the Tuya MCB power supply with higher surge robustness and lower standby loss than the original ICW2540 design.

    ---

    Follow-up questions
    1. Does your PCB tie pin 6 to the drain copper?
    2. Do you have a 0.91 Ω / 1 % resistor in stock or should we identify part numbers and vendors?
    You can call me in any topic by writing @ElektrodaBot. Disclaimer: Some answers provided by the ElektrodaBot may be inaccurate. Elektroda not responsible for accuracy, reliability or completeness of the information presented. All ElektrodaBot responses should be verified by the user. OpenAI can monitor and save information entered after calling ElektrodaBot.
  • #11 21560606
    morgan_flint
    Level 14  
    @ElektrodaBot:

    ElektrodaBot wrote:
    Sense-resistor recapTarget primary peak current ≈ 0.87 A  RCS(new) ≈ 0.80 V / 0.87 A ≈ 0.92 Ω Use 0.91 Ω (E96) or, if unobtainable, 1 Ω (gives ≈ 0.8 A peak – still ample for 6 W).

    For ICW2540, the datasheet says, "Vcs(max) Current limiting threshold 490 500 510 mV (Min Typ Max)," so the target peak current would be approximately 0.67A. But for PN8370, I read "VTH_OC Current sense threshold 485 500 515," so the values are approximately the same, and so would the resistor.

    The problem I've found now is that the voltage reference for feedback (pin 3 in both ICs) is 2.0V for ICW2540 (from the DS: "VINV_REF Internal Error Amplifier (EA) Reference Input 1.97 2.0 2.03 V (Min Typ Max)"), and 2,5V for PN8370 (from the DS: "VREF_CV Reference voltage for feedback threshold 2.475 2.5 2.525 V (Min Typ Max)") so, if the voltage divider (Winding-24K-VP-3K-GND) is left unchanged, the voltage output would be 25% higher).

    As I have to replace the current sense resistor anyway (it's now burnt), I think I'm going to opt CL2107OH (Chinese datasheet), mentioned in the first post of this thread, as the replacement for ICW2540 because, although the reference for current feedback is higher than the original (910 mV), it has the same reference for voltage feedback (0,2V).

    The new value for RCS, for the same current peak (that would be 0,5 V / 0,75 ohm = 0,67 A), would then be 0,91 V / 0,67 A = 1,36 ohms.

    Regarding its power rating, as the duty cycle is 1/4, according to the formulae in the CL2107H datasheet:
    Excerpt from CL2107OH datasheet explaining constant current/voltage mode and output current formula.

    Then the original was dissipating (0,5 V * 0,67 A)/4 = 0,084 W, and for the new one, (0,91 V * 0,67 A)/4 = 0,152 W. As a power rating of a 1206 SMD resistor should be above 1/4 W, this means I can use the same size.

    As 1,36 ohms is a strange value, I think I could use 2 ohms (2*1 ohm in series), lowering peak current to 0,45 A (still enough, as we saw max power is less than 1W).

    What do you think?

    As, for testing purposes, I'm now feeding the 12V mains-isolated part with an external 12 V power supply, I think another possibility would be to keep this like that, and feed the 5 V for the metering ICs (non-isolated from mains) with a 12V to 5V isolated DC/DC converter (similar to Mornsun's B1205S/D-1W, which have about 1KV of isolation). This way I could also have the possibility to feed the control part of the device from an external battery-backed power supply; this is not a bad idea for a wifi controlled MCB, as it would keep it working during a blackout (provided the wifi router is also battery-backed, of course).
  • #12 21560613
    ElektrodaBot
    AI OpenAI ChatGPT4
    morgan_flint wrote:
    @ElektrodaBot:


    For ICW2540, the datasheet says, "Vcs(max) Current limiting threshold 490 500 510 mV (Min Typ Max)," so the target peak current would be approximately 0.67A. But for PN8370, I read "VTH_OC Current sense threshold 485 500 515," so the values are approximately the same, and so would the resistor.

    The problem I've found now is that the voltage reference for feedback (pin 3 in both ICs) is 2.0V for ICW2540 (from the DS: "VINV_REF Internal Error Amplifier (EA) Reference Input 1.97 2.0 2.03 V (Min Typ Max)"), and 2,5V for PN8370 (from the DS: "VREF_CV Reference voltage for feedback threshold 2.475 2.5 2.525 V (Min Typ Max)") so, if the voltage divider (Winding-24K-VP-3K-GND) is left unchanged, the voltage output would be 25% higher).

    As I have to replace the current sense resistor anyway (it's now burnt), I think I'm going to opt CL2107OH ( https://www.dianyuan.com/upload/community/2019/05/29/1559117331-94230.pdf]Chinese datasheet ), mentioned in the first post of this thread, as the replacement for ICW2540 because, although the reference for current feedback is higher than the original (910 mV), it has the same reference for voltage feedback (0,2V).

    The new value for RCS, for the same current peak (that would be 0,5 V / 0,75 ohm = 0,67 A), would then be 0,91 V / 0,67 A = 1,36 ohms.

    Regarding its power rating, as the duty cycle is 1/4, according to the formulae in the CL2107H datasheet:
    [url=https://obrazki.elektroda.pl/9028486800_1748253510.png

    Then the original was dissipating (0,5 V * 0,67 A)/4 = 0,084 W, and for the new one, (0,91 V * 0,67 A)/4 = 0,152 W. As a power rating of a 1206 SMD resistor should be above 1/4 W, this means I can use the same size.

    As 1,36 ohms is a strange value, I think I could use 2 ohms (2*1 ohm in series), lowering peak current to 0,45 A (still enough, as we saw max power is less than 1W).

    What do you think?

    As, for testing purposes, I'm now feeding the 12V mains-isolated part with an external 12 V power supply, I think another possibility would be to keep this like that, and feed the 5 V for the metering ICs (non-isolated from mains) with a 12V to 5V isolated DC/DC converter (similar to Mornsun's B1205S/D-1W, which have about 1KV of isolation). This way I could also have the possibility to feed the control part of the device from an external battery-backed power supply; this is not a bad idea for a wifi controlled MCB, as it would keep it working during a blackout (provided the wifi router is also battery-backed, of course).
    Initial assessment of the new facts
    You have now verified in the original ICW2540 data sheet that

    • VCS(limit-typ) ≈ 0.50 V
    • VFB(ref) ≈ 2.0 V

    For PN8370 both numbers are ≈ 0.50 V and 2.5 V respectively, while for CL2107OH they are ≈ 0.91 V and 2.0 V.
    So the real dilemma is:

    1. PN8370 matches the current-limit point but would lift the output voltage by 25 % unless the divider is changed.
    2. CL2107OH keeps the correct 12 V feedback reference but needs a new, larger current-sense resistor.

    Everything else (pin-out, 650 V MOSFET, UVLO, protection set) is fully compatible for both parts.

    Below is a consolidated engineering answer that addresses

    • which IC to choose,
    • how to dimension RCS,
    • whether the 2 Ω idea is safe, and
    • comments on the “external 12 V + isolated DC/DC” alternative.

    ---

    1 Which IC is the better drop-in?

    ICVFB(ref)VCS(th)Action required to stay at 12 V / ~0.67 ANet difficulty
    ICW2540 (orig.)2.0 V0.50 V
    PN83702.5 V0.50 VChange feedback divider (24 k / 3 k → 19.1 k / 3 k or 24 k / 3.9 k)Two SMD resistors but no shunt change
    CL2107OH2.0 V0.91 VChange RCS to ≈ 1.3 – 1.4 ΩOne resistor only


    Because you already have to replace the burnt shunt, CL2107OH is usually the faster, lower-risk fix: you solder one new resistor instead of re-working the divider, you keep the original magnetics utilisation, and you avoid touching the high-impedance feedback trace that often sits close to HV nodes.

    ---

    2 Current-sense resistor selection for CL2107OH

    2.1 Target values

    • Desired I_PK ≈ 0.50 V / 0.75 Ω = 0.67 A (original design).
    • CL2107OH VCS(th,typ) = 0.91 V (min 0.85 V, max 1.00 V).
    • Ideal RCS = 0.91 V / 0.67 A ≈ 1.36 Ω.

    2.2 Practical E-series choices

    RCS you fitI_PK(typ) = 0.91 V / RI_PK(min) = 0.85 V / RMax theoretical output power vs. original*
    1.24 Ω (E96)0.73 A0.69 A120 %
    1.30 Ω (E24)0.70 A0.65 A110 %
    1.37 Ω (E96)0.66 A0.62 A100 % ← perfect match
    1.50 Ω (E24)0.61 A0.57 A84 %
    2.00 Ω (2 × 1 Ω)0.46 A0.43 A47 %


    \*Assuming P ∝ I_PK² (fly-back DCM).

    The device you are repairing needs < 6 W. The original fly-back (with its 0.75 Ω shunt) was good for roughly 10 – 12 W.
    • 2 Ω therefore leaves ~5 W head-room – probably still enough, but there is no margin for high-line start-up, cold motor surges or transformer tolerances.
    1.30 Ω to 1.37 Ω keeps you inside the original design envelope while still being easy to source. If you can buy an E96 1.37 Ω, use it; otherwise 1.30 Ω (slightly above) or 1.50 Ω (slightly below) are both safe.

    2.3 Power rating of RCS

    For CL2107OH the application note uses
    P_RCS ≈ V_CS × I_PK ⁄ 4

    With 1.37 Ω:
    P = 0.91 V × 0.66 A / 4 ≈ 0.15 W

    Even a conservative derating calls for 0.3 W. A 1206 (250 mW) or 0805 “wide-term” 0.25 W pulse resistor is adequate; 2512 is luxury.

    ---

    3 What if you prefer PN8370?

    If you already ordered it or want the quasi-resonant benefits, keep the 0.75 Ω shunt and alter only the divider:

    VOUT = VFB(ref) × (1 + RUP/RLOW)

    Original: 12 V ≈ 2.0 V × (1 + 24 k / 3 k)

    To keep 12 V with a 2.5 V reference you need a new ratio of 5.0:

    Option A replace upper resistor:

    • RLOW = 3 k (keep)
    • RUP = RLOW × (VOUT/VREF − 1) = 3 k × (12/2.5 − 1) = 12.4 kΩ (E24 = 12 k).

    Option B replace lower resistor:

    • RUP = 24 k (keep)
    • RLOW = RUP / (VOUT/VREF − 1) = 24 k / (12/2.5 − 1) = 5.8 kΩ (E24 = 5.6 k).

    Either way you touch two extra pads and must verify creepage.

    ---

    4 External 12 V + isolated 5 V DC/DC option

    Technically sound and attractive if:

    • You want UPS capability for the Wi-Fi MCB.
    • You accept an external mains adaptor.
    • The enclosure has room for a SIP DC/DC brick (B1205S-1W or equivalent).

    Electrical isolation is correct: 1 kVDC barrier keeps the metering ICs at their original mains-referenced potential while the logic side becomes SELV.

    Down-sides: higher BOM cost, additional wiring, loss of CE/UL conformity unless the new brick is certified.

    ---

    5 Practical checklist for the CL2107OH path

    1. Fit RCS ≈ 1.3 – 1.4 Ω, ≥0.25 W, low-inductance.
    2. Confirm pin-6 (DRAIN) on the SOP-7 footprint is connected only to the primary drain copper.
    3. Re-inspect the snubber; keep V_DRAIN(pk) < 600 V.
    4. Bring up via 60 W series lamp; verify
    • VCC_start ≈ 14 V, runs ≈ 10 V
    • 12 V rail within ±5 % no-load to full-load
    • No audible burst at standby.
    5. Load to 0.5 A for 10 min; IC case < 90 °C; RCS < 130 °C.
    6. Short 12 V briefly; hiccup and self-recovery must work.

    ---

    6 Summary

    • Your observation about the 2.0 V vs. 2.5 V feedback reference is absolutely correct; PN8370 needs divider surgery, CL2107OH does not.
    Best single-resistor fix: CL2107OH + ~1.37 Ω shunt (1.30 Ω or 1.50 Ω acceptable).
    • Avoid the 2 Ω idea unless you are sure the supply will never exceed ~5 W.
    • The “external 12 V + isolated 5 V” scheme is technically clean and gives UPS capability but changes the user-interface (needs a wall brick).

    Pick the approach that fits your priorities—minimal board rework (CL2107OH), quasi-resonant efficiency (PN8370 + divider change), or functional upgrade (external supply).

    ---

    Questions / follow-up

    1. Can you still read the value of the upper and lower feedback resistors to double-check the divider?
    2. Do you have clearance to mount a 1206 shunt if the original was 0805?
    3. Would you like specific part numbers (Vishay / Panasonic / Susumu) for a 1.37 Ω pulse-rated resistor?
    You can call me in any topic by writing @ElektrodaBot. Disclaimer: Some answers provided by the ElektrodaBot may be inaccurate. Elektroda not responsible for accuracy, reliability or completeness of the information presented. All ElektrodaBot responses should be verified by the user. OpenAI can monitor and save information entered after calling ElektrodaBot.
  • ADVERTISEMENT
  • #13 21560651
    morgan_flint
    Level 14  
    @ElektrodaBot:
    ElektrodaBot wrote:
    VOUT = VFB(ref) × (1 + RUP/RLOW)Original: 12 V ≈ 2.0 V × (1 + 24 k / 3 k)

    I think you're wrong here: 2*(1+24/3)=18 V. I think you were confounded because 12V is the voltage of the main output, but the voltage to be considered here is that of the feedback winding (which also feeds the controller after start up).

    So the right calculations for the voltage divider would be: 18 = 2.5 (1 + Rup/Rlow) => Rup/Rlow = 6,2. SO:
    - Keep Rlow = 3k => Rup = 18k6
    - Keep Rup = 24k => Rlow = 3k87

    ElektrodaBot wrote:
    Questions / follow-up1. Can you still read the value of the upper and lower feedback resistors to double-check the divider? 2. Do you have clearance to mount a 1206 shunt if the original was 0805? 3. Would you like specific part numbers (Vishay / Panasonic / Susumu) for a 1.37 Ω pulse-rated resistor?

    1. Yes, 2402 and 3001, so 24k - 3k
    2. The original is already 1206
    3. No, I'm planning to buy an assorted kit of 1206 SMD resistors similar to this one with free shipping, and play with serial connections, as it'd be cheaper than ordering the specific part with high shipping costs (and I have spares for fire use...)
  • #14 21560657
    ElektrodaBot
    AI OpenAI ChatGPT4
    morgan_flint wrote:
    @ElektrodaBot:

    I think you're wrong here: 2*(1+24/3)=18 V. I think you were confounded because 12V is the voltage of the main output, but the voltage to be considered here is that of the feedback winding (which also feeds the controller after start up).

    So the right calculations for the voltage divider would be: 18 = 2.5 (1 + Rup/Rlow) => Rup/Rlow = 6,2. SO:
    - Keep Rlow = 3k => Rup = 18k6
    - Keep Rup = 24k => Rlow = 3k87


    1. Yes, 2402 and 3001, so 24k - 3k
    2. The original is already 1206
    3. No, I'm planning to buy an assorted kit of 1206 SMD resistors similar to this one with free shipping, and play with serial connections, as it'd be cheaper than ordering the specific part with high shipping costs (and I have spares for fire use...)
    Initial assessment of the new facts
    • You are absolutely right: the 24 kΩ / 3 kΩ network senses ≈ 18 V from the auxiliary-winding, not 12 V.
    • For PN8370 (2.5 V reference) the required ratio is RUP / RLOW ≈ 6.2, which leads to 18 k6 / 3 k or 24 k / 3 k87.
    • Your measured values (2402 = 24 k, 3001 = 3 k) confirm the factory design.
    • The CL2107OH path still needs only the current-sense resistor (RCS); feedback can stay untouched.

    ---

    Direct answer
    1. Your corrected divider maths are spot-on; my earlier “2 × (1 + 24/3)” line was wrong.
    2. For PN8370 you must change one resistor as you calculated (18 k6 / 3 k or 24 k / 3 k87).
    3. For CL2107OH keep the 24 k / 3 k divider and replace RCS with ≈ 1.36 Ω.
    4. Using ≈ 2 Ω will probably work but cuts the original power margin in half; stay closer to 1.3 – 1.4 Ω if at all possible.

    ---

    Detailed problem analysis

    1 Feedback divider for PN8370 (2.5 V reference)

    OptionRUP (upper)RLOW (lower)Comments
    A (single change)18 k6 (E24 = 18 k + 560 Ω)3 k (keep)Keeps PCB ground routing intact
    B24 k (keep)3 k87 (E24 = 3 k9)Touches the high-impedance node but uses one part


    Either variant gives
    VAUX = 2.5 V × (1 + 6.2) ≈ 18 V → main 12 V output remains correct.

    Be sure the chosen resistor keeps the same or higher voltage rating (≥ 100 V thick-film is fine).

    2 Current-sense resistor for CL2107OH (0.91 V sense level)

    Target I_PK ≈ 0.67 A.

    Ideal RCS = 0.91 V / 0.67 A ≈ 1.36 Ω (E96 = 1.37 Ω).

    2.1 Building 1.36 Ω from a 1206 kit

    You can get within 2 % using two series or parallel parts:

    • 1 Ω + 0.36 Ω (0 Ω36 may be missing in most kits)
    2 × 2.7 Ω in parallel → 1.35 Ω (my preferred field fix)
    • 1.5 Ω single (E24) → I_PK ≈ 0.61 A (-9 %, still safe)
    • 1.3 Ω single → I_PK ≈ 0.70 A (+5 %, also safe)

    2.2 Thermal check
    Total dissipation with 1.35 Ω:
    P_RCS ≈ (0.91 V × 0.67 A)/4 = 0.153 W.

    Two 2.7 Ω 1206s each dissipate ≈ 0.077 W → far below their 0.25 W rating.

    3 If you insist on 2 Ω (2 × 1 Ω series)

    • I_PK ≈ 0.455 A → available output power ≈ 47 % of the original design.
    • Risk of brown-out at 90 VAC, cold motor inrush or transformer ageing.
    Recommendation: avoid unless you have verified the load never exceeds 3 W at any time.

    4 Mechanical placement tips for two 1206 parts

    • If pads are long enough, place them side-by-side; otherwise stack one on top of the other (re-flow bottom, hand-solder top).
    • Keep their long sides in line with current flow to minimise inductance.

    ---

    Practical test plan (recap for either IC)

    1. Power-up through 60 W incandescent lamp or variac+ammeter.
    2. Confirm VCC rises to ≈ 15 V, then settles at 10–11 V once switching.
    3. Check 12 V rail no-load and at 0.5 A; regulation ±5 %.
    4. Scope drain with ≥ 1 kV probe; ringing peak < 600 V.
    5. Short 12 V briefly; controller should hiccup and recover.
    6. 5–10 min thermal soak at 0.5 A; IC case < 90 °C, RCS < 130 °C.

    ---

    External 12 V + isolated 5 V option (UPS idea)

    • Electrically clean and offers battery-backup.
    • Adds cost and requires space for a SIP converter.
    • Preserves isolation barrier if converter rating ≥ 1 kVdc.
    • No objection from a technical standpoint; choose whatever route best meets your functional goals.

    ---

    Brief summary
    1. Your divider correction (18 k6 + 3 k or 24 k + 3 k87) is correct for PN8370.
    2. CL2107OH path: keep the divider, fit ≈ 1.35 Ω RCS (two 2.7 Ω 1206 in parallel is an easy, cool-running solution).
    3. Avoid 2 Ω unless you accept halving the original power margin.
    4. Either IC will work; CL2107OH needs one component change, PN8370 needs one but on the feedback network.
    5. Proceed with lamp-limited power-up and the thermal / hiccup checks listed above.

    ---

    Questions for you
    1. Does the RCS footprint have room for two 1206 parts side-by-side, or will you need to stack them?
    2. Have you ordered the CL2107OH already, or do you intend to evaluate both ICs?
    You can call me in any topic by writing @ElektrodaBot. Disclaimer: Some answers provided by the ElektrodaBot may be inaccurate. Elektroda not responsible for accuracy, reliability or completeness of the information presented. All ElektrodaBot responses should be verified by the user. OpenAI can monitor and save information entered after calling ElektrodaBot.
  • #15 21578068
    morgan_flint
    Level 14  
    @ElektrodaBot :
    Finally, the components arrived, and I found the time to install them.

    - The IC I bought is CL2107OH
    - As a current-sense resistor, I used two 1206 3.3 ohm resistors in parallel (1.65 ohm, a bit higher than the ideal 1.36 ohm, but acceptable, as the power consumption is small)

    A photo of the test setup (with a 40W lamp in series with the AC, in case of short circuits):
    Is CL2107OH a Fully Compatible Pin-to-Pin Replacement for ICW2540 Controller?

    And a close-up of the repair (U5 - R32, two stacked one of top of the other)
    Is CL2107OH a Fully Compatible Pin-to-Pin Replacement for ICW2540 Controller?

    Awaiting more tests, everything seems to go well, voltage output of exactly 12.0V

    Thanks for your help!

    I'll close the topic after your comments, if any.
  • Helpful post
    #16 21578075
    ElektrodaBot
    AI OpenAI ChatGPT4
    morgan_flint wrote:
    @ElektrodaBot :
    Finally, the components arrived, and I found the time to install them.

    - The IC I bought is CL2107OH
    - As a current-sense resistor, I used two 1206 3.3 ohm resistors in parallel (1.65 ohm, a bit higher than the ideal 1.36 ohm, but acceptable, as the power consumption is small)

    A photo of the test setup (with a 40W lamp in series with the AC, in case of short circuits):
    https://obrazki.elektroda.pl/2046740100_1749806149.jpg

    And a close-up of the repair (U5 - R32, two stacked one of top of the other)
    https://obrazki.elektroda.pl/4961153300_1749806149.jpg

    Awaiting more tests, everything seems to go well, voltage output of exactly 12.0V

    Thanks for your help!

    I'll close the topic after your comments, if any.
    Initial assessment of your result
    Your photos show a clean, professional-looking repair: the CL2107OH is properly aligned, the stacked 1206 shunts are well wetted, and the 40 W filament limiter is exactly what I like to see on a first power-up. A rock-solid 12.0 V with the lamp in-series indicates that:

    1. The feedback divider (24 k / 3 k) is fully compatible with the CL2107OH’s 2.0 V reference.
    2. The auxiliary-winding amplitude is correct and start-up/​hold-up are healthy.

    Quick arithmetic check for the parts you fitted

    • CL2107OH current-sense threshold (typ.) V_CS = 0.91 V
    • R_CS = (2 × 3.3 Ω)∥ = 1.65 Ω
    • Peak primary current I_PK = 0.91 V ⁄ 1.65 Ω ≈ 0.55 A

    Relative to the original 0.67 A this is −18 %.
    Available power in a DCM fly-back is roughly ∝ I_PK², so the theoretical maximum drops to (0.55 ⁄ 0.67)² ≈ 0.67 × – i.e. 6–7 W instead of 10 W+.
    Your Tuya board needs < 4 W, so plenty of head-room remains and primary/​secondary stresses are lower – a nice side-effect.

    Power in each 3.3 Ω chip
    P ≈ (V_CS × I_PK) ⁄ (4 × 2) ≈ (0.91 × 0.55) ⁄ 8 ≈ 62 mW
    well inside a 1206 rating, even at 70 °C ambient.

    Recommended final validation (without the series lamp)

    TestWhat to look forPass criteria
    Stable operation @ 90–264 VAC12 V within ±5 % from no-load to motor peakNo audible restart, no VOUT droop
    Thermal soak (≥ 30 min, worst-case load)IR thermometer on IC, shunts, rectifier, transformerIC < 90 °C, shunts < 120 °C, other parts < 100 °C
    Short-circuit / overloadSupply enters hiccup and recovers cleanlyNo latch-up, no smoke
    Cold-start at low line with lamp removedSupply starts first try, no flickerVCC rises > 14 V then settles 9–12 V


    If you own only a basic scope, a quick look at the drain pin is still worthwhile: peak ringing < 600 V tells you the RCD snubber is adequate for the slightly lower primary current.

    Optional tidy-up

    • Flow a thin bead of solder between the two 3.3 Ω parts to create a solid thermal bridge, or add a droplet of heat-conductive epoxy if the board will live in a warm enclosure.
    • Dab conformal coating on the stacked parts if the unit is exposed to high humidity or vibration.

    Long-term note

    At 0.55 A I_PK the transformer, rectifier and MOSFET run cooler, which usually extends lifetime. If the device ever sees a firmware update that drives the motor harder, you still have ~2 W spare.

    Closing remarks

    Everything you have measured is exactly where it should be—well done. Burn it in for a few hours, re-assemble, and the board should be good for many more years.

    If you need oscilloscope snapshots of “textbook” drain and auxiliary-winding waveforms for comparison, let me know; otherwise you can safely mark the repair solved.

    Congratulations on a successful, methodical fix!

    Best regards,
    ElektrodaBot
    You can call me in any topic by writing @ElektrodaBot. Disclaimer: Some answers provided by the ElektrodaBot may be inaccurate. Elektroda not responsible for accuracy, reliability or completeness of the information presented. All ElektrodaBot responses should be verified by the user. OpenAI can monitor and save information entered after calling ElektrodaBot.

Topic summary

The discussion evaluates the suitability of the CHIPLINK CL2107OH as a fully pin-to-pin compatible replacement for the ICW2540 primary-side offline switch-mode power supply (SMPS) controller used in a Tuya MCB device. The CL2107OH shares the SOP-7/8 package and 650 V integrated MOSFET rating with the ICW2540, making it mechanically compatible. Electrical parameters such as current-sense threshold (V_CS) and feedback reference voltage (V_FB) were compared, revealing that CL2107OH has a higher current-sense threshold (~0.91 V vs. 0.50 V for ICW2540) but the same 2.0 V feedback reference, requiring adjustment of the current-sense resistor (R_CS) to about 1.36 Ω for proper operation. The original R_CS (0.75 Ω) was damaged and replaced with two 3.3 Ω resistors in parallel (1.65 Ω), slightly increasing the current limit but still within acceptable power margins for the ~6 W load.

Alternative candidates, including Chipown’s PN8307 and PN8370, were discussed. PN8307 was clarified as a synchronous rectifier unsuitable as a primary controller, while PN8370 is a quasi-resonant primary-side converter pin-compatible with ICW2540 but with a 2.5 V feedback reference voltage, necessitating modification of the feedback voltage divider to maintain correct output voltage. The CL2107OH was ultimately chosen for repair due to its compatible feedback reference and manageable current-sense resistor adjustment.

The repair was successfully implemented with the CL2107OH and adjusted R_CS, verified by stable 12.0 V output under test conditions with a 40 W series lamp for inrush current limiting. The discussion includes detailed analysis of pin compatibility, electrical parameters, feedback voltage divider calculations, and practical component substitutions for low-power flyback SMPS controllers.
Summary generated by the language model.
ADVERTISEMENT