Applications / R&D

LED and lighting tests: dim curves, input power, flicker.

Step an LED driver through its dim range from a programmable supply, and log input power, LED current and flicker at each level. Every instrument on the bench speaks SCPI, so one script drives them all.

In short
Dimming0–10 V input from a second supply channel
PowerPower analyser: watts, power factor on mains
LED currentDMM over a shunt
FlickerPhotodiode on a scope channel
Plan
01 · The setup

Light, power and control on one bench.

Line drawing of an LED test bench with numbered callouts: 1 two-channel programmable supply, 2 power analyser, 3 bench multimeter, 4 oscilloscope, 5 network switch, 6 LED driver and module on a heatsink, 7 light-tight box with a photodiode.1234567
  1. 1Two-channel programmable supply. Channel 1 powers the LED driver; channel 2 drives its 0–10 V dim input.Scpi · LAN
  2. 2Power analyser on the driver input: watts, and power factor on a mains driver.Scpi · LAN
  3. 3Bench DMM reads the LED current over a shunt.Scpi · LAN
  4. 4Oscilloscope with the photodiode on channel 1, for ripple as a flicker measure.Scpi · LAN
  5. 5Network switch. Every instrument is on the LAN.TCP/IP
  6. 6LED driver and module on a heatsink, wired to the supply and the shunt.—
  7. 7Light-tight box with the photodiode, cabled to the scope.—
02 · The dim curve

Every level, three numbers, one CSV.

EX  Dim curve over a 0–10 V inputMaker
runs inside Muxitruns on your computer · pip install muxit
scripts/dim-curve.js
// dim-curve.js: input power, LED current and flicker over the 0–10 V dim range
const supply = connector("supply");  // 24 V for the LED driver
const dim = connector("dim");        // second supply channel on the 0–10 V input
const pa = connector("analyser");    // power analyser on the 24 V input
const dmm = connector("dmm");        // LED current over a shunt
const scope = connector("scope");    // photodiode on channel 1
const csv = connector("fileaccess").openText("runs/dim-curve.csv");
csv.write("dim_v,pin_w,led_ma,ripple_vpp\n");

supply.voltage = 24;
supply.output = true;
dim.output = true;
for (let v = 10; v >= 0; v -= 0.25) {
  dim.voltage = v;
  delay(1500);
  csv.append([v, pa.power, dmm.current * 1000, scope.vpp]);
}
supply.output = false;
log.info("Dim curve saved to runs/dim-curve.csv");
dim_curve.py
# dim_curve.py: input power, LED current and flicker over the 0-10 V dim range
import csv, time
import muxit

m = muxit.connect()
supply = m.connector("supply")  # 24 V for the LED driver
dim = m.connector("dim")        # second supply channel on the 0-10 V input
pa = m.connector("analyser")    # power analyser on the 24 V input
dmm = m.connector("dmm")        # LED current over a shunt
scope = m.connector("scope")    # photodiode on channel 1

supply.voltage = 24
supply.output = True
dim.output = True
with open("dim-curve.csv", "w", newline="") as f:
    out = csv.writer(f)
    out.writerow(["dim_v", "pin_w", "led_ma", "ripple_vpp"])
    for step in range(41):                # 10 V down to 0 V in 0.25 V steps
        v = 10 - step * 0.25
        dim.voltage = v
        time.sleep(1.5)
        out.writerow([v, pa.power, dmm.current * 1000, scope.vpp])
supply.output = False
print("Dim curve saved to dim-curve.csv")

What happens

  1. Channel 1 of the supply powers the LED driver at 24 V; channel 2, set up as its own connector, drives the 0–10 V dim input from 10 V down to 0 in steps of 0.25 V.
  2. At each step the analyser gives input power, the DMM the LED current over a shunt, and the scope the ripple of a photodiode as a flicker measure.
  3. Each row goes to runs/dim-curve.csv, which Muxit charts while the run is going.

For a mains driver, a programmable AC source takes the place of channel 1 and the analyser adds power factor.

03 · What you need

Instruments and plan.

PartHow Muxit reaches it
Programmable DC supply, two channelsScpi · LAN / USB-TMC / serial
Precision power analyserScpi or ASCII commands · LAN / USB / serial
Bench DMMScpi
Oscilloscope with a photodiode or light sensorScpi
Programmable AC source, for mains driversScpi

Five instruments plus file access: that is Maker's ten connectors. A smaller setup (supply, analyser, scope) fits on Free. Pricing →

Every instrument here needs a remote interface (LAN, USB-TMC or serial). Handheld meters and supplies with only knobs can't take part in an automated test.

04 · Limits

What it doesn't do (yet).

  • Muxit has no spectrometer driver, so it does not measure colour (CCT, Duv, CRI). Light output comes from a photodiode or light sensor on the scope or DMM.
  • Muxit doesn't certify luminaires (LM-80, flicker metrics to a standard). It runs and logs the measurements.
  • Dimming over a lighting bus such as DALI needs a driver Muxit does not have. Drivers with an analogue 0–10 V or PWM input work.