I am trying to make a PWM signal for controlling a motor.
The TL082 op-amp, connected between 0 and +5 V, takes
- a triangular input generated by an astable and filtered by a capacitor on the (-) input
- an adjustable voltage, made by a R/2R resistor network on the (+) input
All this works at about 50 kHz. In theory, the output should vary from 0 to +5 V, but in reality, it varies from +1.4 V to +5 V.
I tried to add a pull-down resistor (1 kΩ and 10 kΩ), I also tried a pull up (never know) without results. I also tried a feedback loop with a 1 kΩ resistor on the (-) which changed nothing. I lowered the frequency to 25 kHz, which changed nothing. I know that these were useless, but I was not able to come up with tomething else, this is a REALLY basic circuit.
Here is the diagram:
and here are the oscilloscope traces:
The triangle input and the adjustable one (random value):
The triangle input and the output depending on the adjustable input level:
I must be wrong somewhere, but I don't get where; normally in comparator mode, the outputs are between V- and V+ and that's it. Maybe it is the fact that I use it between 0 V and +5 V?
On the other hand, the PWM is working, it changes with the adjustable voltage increase.