This Design Idea describes a new approach to producing a variable-duty-cycle waveform from a 555-based free-running oscillator. The circuit's wide modulation range, highly linear control over a wide range of duty-cycle values, and excellent linearity make it ideal for PWM (pulse-width-modulation)-based control applications. Figure 1 shows the basic circuit, which works as follows: When IC1's output goes high, switch S1 closes, and IC1's internal discharge, switch S2, opens. Capacitor C1 charges through R1 and R2. When IC1's output goes low, S1 opens, and S2 closes, discharging C1 through R2 and R3.
The generic configuration works well for producing a fixed-value duty cycle. To obtain a continuously variable duty cycle, Figure 2 shows how to connect potentiometer R4 to the common junction of R1, R2, and R3. The output waveform's duty cycle, DTC, follows the equation:
where RPOT is the potentiometer's end-to-end resistance, and RVAR is the fraction of RPOT between the rotor and R1. As the equation shows, DTC depends linearly on RVAR. Switch S1 comprises one section of a 4066 CMOS quad bilateral SPST switch, IC2.
You can use the circuit in Figure 3 to evaluate duty-cycle linearity. A rotary switch and a tapped series string of 16-kΩ resistors provide a 10-kHz signal with nine discrete, equally spaced duty-cycle values ranging from 2 to 98%. For accurate results, use a 5½-digit multimeter to match the values of resistors R4 through R11 and a Tektronix 3012 oscilloscope or equivalent to gather DTC data.
Microsoft's Excel-spreadsheet software includes a linearity analysis that returns the following trend line for the duty-cycle measurements:
The value of 1 for R2 as Excel calculates shows that the transfer function is perfectly linear. Switch S1's on-resistance and particularly its leakage current slightly affect the DTC-versus-RVAR equation's slope and intercept, but the equation remains strictly linear. Using only one of IC2's four switches eliminates leakage effects and crosstalk that would occur if other circuits used the remaining switches. In addition, using moderately low values for the resistor network further reduces leakage-current effects on circuit performance.
PCB Pricing: https://jlcpcb.com/quote
News on theme: