EveryCircuit
Contact
Reviews
Home
anizaeger
modified 7 years ago

DAC Controlled PWM - 8 bit version with stable sawtooth

6
0
396
05:35:05
This is an 8-bit DAC-controlled pulse-width modulation circuit. The 4 pushbuttons control the pulse width via 2 counters. The outputs of the counters is fed to a set of resistors. The most significant bit has a value of 10k, with each lesser but getting a resistance twice the previous. The voltages are combined in DAC Stage 1 (the bus connecting the resistors), peaking at about 120 microvolts. This is then fed to DAC Stage 2 (lower middle), a set of op-amps which multiply the voltage to a range between 0 and 12 volts. A voltage divider, which includes two potentiometers, manipulates the output range of the DAC stage to have a range which coincides with the upper and lower peaks of the sawtooth. Specifically, the upper potentiometer sets the lower voltage limit, and the lower potentiometer controls the upper voltage limit. The use of a sawtooth generator rather than a 555 allows the waveform to be more consistent. As a side benefit, eliminating the 555 timer and its related components fed up enough space to include displays showing the hexadecimal value of the current PWM setting. Both signals are fed to a final op-amp (middle right) which generates the actual PWM output. The output drives a transistor switch, which itself controls a single LED. A similar circuit could, theoretically, be used as an LED driver. A set of the could drive an RGB LED using standard hex color codes. Scope Legend: Purple - Output current through LED. Green - Sawtooth Signal Orange - DAC Output Voltage Red - DAC Stage 2 Voltage
published 7 years ago

EveryCircuit is an easy to use, highly interactive circuit simulator and schematic capture tool. Real-time circuit simulation, interactivity, and dynamic visualization make it a must have application for professionals and academia. EveryCircuit user community has collaboratively created the largest searchable library of circuit designs. EveryCircuit app runs online in popular browsers and on mobile phones and tablets, enabling you to capture design ideas and learn electronics on the go.

Copyright © 2026 by MuseMaze, Inc.     Terms of use     Privacy policy