LED dimmer uses only two lines

Maxim MAX5160

EDN

The circuit in Figure 1 provides 32 steps of brightness control – from 0 to 100% – for a backlight or instrument panel, using just two general-purpose-microprocessor signals. In addition, the circuit requires little board space, because it uses only three SOT-23s and one µMax package. Although Figure 1 shows the circuit driving white LEDs, the load could also be a dc motor or an incandescent lamp. The basis of the circuit is a modified Schmitt-trigger relaxation oscillator (Figure 2).

By controlling the duty cycle of a Schmitt trigger, you obtain 32 steps of brightness in an LED display.
Figure 1. By controlling the duty cycle of a Schmitt trigger, you obtain 32 steps of brightness in an LED display.
 
The MAX5160 digital potentiometer controls the duty cycle of the Schmitt trigger.
Figure 2. The MAX5160 digital potentiometer controls
the duty cycle of the Schmitt trigger.

The output of IC1 is high when

where k is the wiper position, VCC is the supply voltage, VD is the diode voltage, and VN and VP are the threshold voltages of the Schmitt trigger. The output of IC1 is low when

The period, T, and duty cycle, DC, are

and

Initial inspection of the foregoing equations may make the substitutions to solve for the duty cycle appear to be a tedious, algebraic exercise. But, when you substitute VCC, VD, VN, and VP into the two logarithmic terms, their results are close in value. So, you can simplify the expanded solution to the duty-cycle equation to

Based on the above considerations, you can see that the duty cycle of the circuit is not only linear, but also independent of the selected components. The component selection affects only the center frequency of oscillation. An approximate equation for the operating frequency is

The duty cycle of the Schmitt trigger is a linear function of the potentiometer's tap position.
Figure 3. The duty cycle of the Schmitt trigger is a linear function
of the potentiometer’s tap position.
 
Frequency also varies with the tap position, but with no effect on performance.
Figure 4. Frequency also varies with the tap position, but with no effect
on performance.

This circuit uses a MAX5160 digital potentiometer that has a full-scale resistance of 200 kΩ in combination with a 10-nF capacitor. This combination results in an operating frequency of approximately 875 Hz. Note that slight mismatches of the two logarithmic terms cause the frequency to vary slightly as you adjust the duty cycle. Figure 3 shows a plot of duty cycle versus the potentiometer's tap position; Figure 4 shows the variation in the oscillation frequency with tap position.

Materials on the topic

  1. Datasheet Maxim MAX5160
  2. Datasheet ON Semiconductor NC7S14
  3. Datasheet Diodes BAT54S
  4. Datasheet Diodes ZXM61N02F

EDN

You may have to register before you can post comments and get full access to forum.
EMS supplier